fix(webui): restore flag button styles after css revert

This commit is contained in:
hanlap0503 committed 2026-10-15 09:34:43 +00:00
1 parent 0c016a1e36
commit 68e7c1bf3e
1 file changed
+6 -70
+6 -70
View File
@@ -314,85 +314,21 @@ pre,
color: var(--muted);
max-width: 680px;
}
.toolbar {
display: flex;
gap: 8px;
align-items: center;
}
.lang {
position: relative;
}
.lang-flag {
display: grid;
place-items: center;
width: 40px;
height: 40px;
padding: 0;
border: 1px solid var(--ink);
border-radius: 50%;
background: var(--white);
overflow: hidden;
cursor: pointer;
}
.lang-flag:hover {
background: var(--paper2);
}
.lang-flag[aria-expanded="true"] {
border-color: var(--orange);
box-shadow: 0 0 0 3px #ed5a2a33;
}
.flag-icon {
display: block;
width: 100%;
height: 100%;
}
.lang-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
z-index: 40;
min-width: 172px;
padding: 6px;
display: grid;
gap: 2px;
background: var(--white);
border: 1px solid var(--ink);
box-shadow: var(--shadow);
}
.lang-menu[hidden] {
display: none;
}
.lang-option {
display: grid;
grid-template-columns: 28px 1fr;
align-items: center;
gap: 10px;
.lang-switch {
padding: 8px 10px;
border: 0;
border: 1px solid var(--ink);
background: transparent;
text-align: left;
font-weight: 650;
color: var(--ink);
font-weight: 700;
cursor: pointer;
}
.lang-option:hover {
background: var(--paper2);
}
.lang-option[aria-current="true"] {
box-shadow: inset 3px 0 0 var(--orange);
color: var(--forest);
}
.lang-option .flag-icon {
width: 26px;
height: 13px;
border: 1px solid var(--line);
}
.lang-row {
display: flex;
justify-content: flex-end;
margin-bottom: 18px;
}
.login-card .lang-menu {
right: 0;
.login-card .lang-switch {
background: var(--paper2);
}
.primary,
.ghost,