velxio/frontend/src/components/layout/LanguageSwitcher.css

94 lines
1.8 KiB
CSS

.velxio-language-switcher {
position: relative;
}
.velxio-language-btn {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background: transparent;
border: none;
color: #86868b;
border-radius: 6px;
cursor: pointer;
font-size: 12px;
transition: color 0.2s, background 0.2s;
font-family: inherit;
}
.velxio-language-btn:hover {
color: #f5f5f7;
background: rgba(255, 255, 255, 0.08);
}
.velxio-language-current {
font-size: 11px;
font-weight: 500;
letter-spacing: 0.4px;
}
.velxio-language-menu {
position: absolute;
right: 0;
top: 110%;
list-style: none;
margin: 6px 0 0;
padding: 6px 0;
background: #1c1c1e;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
min-width: 200px;
z-index: 200;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.velxio-language-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
background: transparent;
border: none;
padding: 8px 14px;
color: #ccc;
font-size: 13px;
cursor: pointer;
text-align: left;
font-family: inherit;
transition: color 0.15s, background 0.15s;
}
.velxio-language-item:hover {
background: rgba(255, 255, 255, 0.06);
color: #f5f5f7;
}
.velxio-language-item-active {
color: #0071e3;
font-weight: 500;
}
.velxio-language-code {
font-size: 11px;
color: #6e6e73;
letter-spacing: 0.4px;
}
/* Inside the editor's bottom-left corner box the switcher sits at the
bottom edge of the screen — the menu must drop UP or it opens straight
into the void below the viewport. */
.editor-corner-box .velxio-language-menu {
top: auto;
bottom: 110%;
margin: 0 0 6px;
}
/* Same drop-up need at the explorer footer. */
.explorer-account-footer .velxio-language-menu {
top: auto;
bottom: 110%;
margin: 0 0 6px;
}