This commit is contained in:
@@ -35,8 +35,9 @@ const changeLocale = (lang) => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="menu-container" ref="menuContainer">
|
<div class="menu-container" ref="menuContainer">
|
||||||
<button class="menu-button" @click="toggleDropdown">{{ $t("site_options.language_selector.dropdown") }} </button>
|
<button class="menu-button" @click="toggleDropdown">{{ $t("site_options.language_selector.dropdown") }} ▾</button>
|
||||||
|
|
||||||
|
<Transition name="dropdown">
|
||||||
<div class="dropdown" v-show="dropdownVisible">
|
<div class="dropdown" v-show="dropdownVisible">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<div :class="{'menu-item': true, 'active': locale === loc.code}"
|
<div :class="{'menu-item': true, 'active': locale === loc.code}"
|
||||||
@@ -45,6 +46,7 @@ const changeLocale = (lang) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -63,8 +65,17 @@ const changeLocale = (lang) => {
|
|||||||
background-color: #30363d;
|
background-color: #30363d;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Dropdown transitions */
|
||||||
|
.dropdown-enter-active, .dropdown-leave-active {
|
||||||
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||||
|
}
|
||||||
|
.dropdown-enter-from, .dropdown-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-8px);
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown {
|
.dropdown {
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
right: 110px;
|
right: 110px;
|
||||||
|
|||||||
@@ -30,8 +30,9 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="menu-container" ref="menuContainer">
|
<div class="menu-container" ref="menuContainer">
|
||||||
<button class="menu-button" @click="toggleDropdown">{{ $t('site_options.theme_selector.dropdown') }} </button>
|
<button class="menu-button" @click="toggleDropdown">{{ $t('site_options.theme_selector.dropdown') }} ▾</button>
|
||||||
|
|
||||||
|
<Transition name="dropdown">
|
||||||
<div class="dropdown" v-show="dropdownVisible">
|
<div class="dropdown" v-show="dropdownVisible">
|
||||||
<div class="two-columns">
|
<div class="two-columns">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
@@ -82,6 +83,7 @@ onUnmounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -146,9 +148,18 @@ onUnmounted(() => {
|
|||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dropdown transitions */
|
||||||
|
.dropdown-enter-active, .dropdown-leave-active {
|
||||||
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||||
|
}
|
||||||
|
.dropdown-enter-from, .dropdown-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-8px);
|
||||||
|
}
|
||||||
|
|
||||||
/* Dropdown */
|
/* Dropdown */
|
||||||
.dropdown {
|
.dropdown {
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user