181 lines
3.0 KiB
SCSS
181 lines
3.0 KiB
SCSS
|
|
.language-selector {
|
||
|
|
position: relative;
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-button {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
padding: 8px 12px;
|
||
|
|
background: transparent;
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||
|
|
border-radius: 8px;
|
||
|
|
color: #ffffff;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 500;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
background: rgba(255, 255, 255, 0.05);
|
||
|
|
border-color: rgba(255, 255, 255, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-flag {
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
display: inline-block;
|
||
|
|
border-radius: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-code {
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.dropdown-arrow {
|
||
|
|
transition: transform 0.3s ease;
|
||
|
|
opacity: 0.7;
|
||
|
|
|
||
|
|
&.rotated {
|
||
|
|
transform: rotate(180deg);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-dropdown {
|
||
|
|
position: absolute;
|
||
|
|
top: calc(100% + 8px);
|
||
|
|
right: 0;
|
||
|
|
min-width: 180px;
|
||
|
|
background: var(--card-bg, #1a1a1a);
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||
|
|
border-radius: 12px;
|
||
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
|
||
|
|
opacity: 0;
|
||
|
|
visibility: hidden;
|
||
|
|
transform: translateY(-10px);
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
z-index: 1000;
|
||
|
|
overflow: hidden;
|
||
|
|
|
||
|
|
&.open {
|
||
|
|
opacity: 1;
|
||
|
|
visibility: visible;
|
||
|
|
transform: translateY(0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-option {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
width: 100%;
|
||
|
|
padding: 12px 16px;
|
||
|
|
background: transparent;
|
||
|
|
border: none;
|
||
|
|
color: #ffffff;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: background 0.2s ease;
|
||
|
|
font-size: 14px;
|
||
|
|
text-align: left;
|
||
|
|
|
||
|
|
&:hover:not(.disabled) {
|
||
|
|
background: rgba(255, 255, 255, 0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
&.active {
|
||
|
|
background: rgba(255, 255, 255, 0.1);
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
&.disabled {
|
||
|
|
opacity: 0.5;
|
||
|
|
cursor: not-allowed;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.option-flag {
|
||
|
|
width: 24px;
|
||
|
|
height: 24px;
|
||
|
|
display: inline-block;
|
||
|
|
border-radius: 3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.option-name {
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Light theme adjustments
|
||
|
|
:host-context(.novo-header),
|
||
|
|
:host-context(.header) {
|
||
|
|
.language-button {
|
||
|
|
border-color: rgba(0, 0, 0, 0.2);
|
||
|
|
color: #333333;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
background: rgba(0, 0, 0, 0.05);
|
||
|
|
border-color: rgba(0, 0, 0, 0.3);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
:host-context(.light-theme) {
|
||
|
|
.language-button {
|
||
|
|
border-color: rgba(0, 0, 0, 0.2);
|
||
|
|
color: #333333;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
background: rgba(0, 0, 0, 0.05);
|
||
|
|
border-color: rgba(0, 0, 0, 0.3);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-dropdown {
|
||
|
|
background: #ffffff;
|
||
|
|
border-color: rgba(0, 0, 0, 0.1);
|
||
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-option {
|
||
|
|
color: #333333;
|
||
|
|
|
||
|
|
&:hover:not(.disabled) {
|
||
|
|
background: rgba(0, 0, 0, 0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
&.active {
|
||
|
|
background: rgba(0, 0, 0, 0.1);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mobile responsiveness
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.language-button {
|
||
|
|
padding: 6px 10px;
|
||
|
|
font-size: 13px;
|
||
|
|
|
||
|
|
.language-flag {
|
||
|
|
width: 18px;
|
||
|
|
height: 18px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-dropdown {
|
||
|
|
min-width: 160px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.language-option {
|
||
|
|
padding: 10px 14px;
|
||
|
|
font-size: 13px;
|
||
|
|
|
||
|
|
.option-flag {
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|