SHA256
395 lines
10 KiB
CSS
395 lines
10 KiB
CSS
/* Settings/language feature styles. */
|
|
|
|
.settings-developer-card {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
|
|
.settings-developer-panel {
|
|
margin-top: 2px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
|
|
}
|
|
|
|
|
|
.settings-dev-avatar-modal-card {
|
|
max-width: 520px;
|
|
}
|
|
|
|
|
|
.settings-dev-avatar-meta {
|
|
min-height: 18px;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
|
|
.settings-dev-avatar-error {
|
|
min-height: 18px;
|
|
color: var(--danger);
|
|
}
|
|
|
|
|
|
.settings-dev-avatar-result {
|
|
gap: 8px;
|
|
}
|
|
|
|
|
|
/* ===== Выбор языка со стартового экрана ===== */
|
|
.language-screen {
|
|
width: min(100%, 430px);
|
|
margin-inline: auto;
|
|
}
|
|
|
|
|
|
.language-choice-card {
|
|
padding: 16px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
|
|
.language-choice-hint {
|
|
margin: 0 0 4px;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
.language-choice-grid {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.language-choice-option {
|
|
min-height: 64px;
|
|
padding: 0 16px;
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
align-items: center;
|
|
gap: 12px;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
|
|
border-radius: 16px;
|
|
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
|
box-shadow: none;
|
|
color: var(--text-primary);
|
|
text-shadow: none;
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
text-align: left;
|
|
transform: none;
|
|
transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease;
|
|
}
|
|
|
|
.language-choice-option:hover {
|
|
border-color: color-mix(in srgb, var(--accent) 16%, transparent);
|
|
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
|
box-shadow: none;
|
|
color: var(--text-primary);
|
|
transform: none;
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
.language-choice-option:active {
|
|
color: var(--text-primary);
|
|
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
|
border: 0;
|
|
box-shadow:
|
|
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
|
inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
.language-choice-option:focus-visible {
|
|
border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
|
|
background: color-mix(in srgb, var(--text-primary) 4%, transparent);
|
|
box-shadow: none;
|
|
color: var(--text-primary);
|
|
outline: 2px solid var(--border-control);
|
|
outline-offset: 2px;
|
|
transform: none;
|
|
}
|
|
|
|
.language-choice-option.is-selected,
|
|
.language-choice-option.is-selected:hover,
|
|
.language-choice-option.is-selected:focus-visible {
|
|
border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
|
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent);
|
|
}
|
|
|
|
.language-choice-option.is-selected:active {
|
|
border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
|
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
|
|
.language-choice-name {
|
|
font-size: 17px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
|
|
.language-choice-code {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: .08em;
|
|
}
|
|
|
|
|
|
.screen-content.settings-bordered-actions :is(.secondary-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn, .profile-relative-suggest-item) {
|
|
min-height: var(--control-height);
|
|
padding-inline: 14px;
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
box-shadow: none;
|
|
color: var(--text-primary);
|
|
font-size: var(--text-md);
|
|
font-weight: var(--weight-medium);
|
|
text-shadow: none;
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
transform: none;
|
|
}
|
|
.screen-content.settings-bordered-actions .primary-btn {
|
|
min-height: var(--control-height);
|
|
border: 0;
|
|
border-radius: var(--radius-md);
|
|
background: var(--accent);
|
|
color: var(--on-accent);
|
|
box-shadow: none;
|
|
font-size: var(--text-md);
|
|
font-weight: var(--weight-medium);
|
|
}
|
|
.screen-content.settings-bordered-actions .destructive-btn {
|
|
font-size: var(--text-md);
|
|
font-weight: var(--weight-medium);
|
|
min-height: var(--control-height);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
color: var(--danger);
|
|
box-shadow: none;
|
|
}
|
|
.screen-content.settings-bordered-actions :is(.secondary-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn, .profile-relative-suggest-item, .destructive-btn):hover { background: var(--surface-selected); filter: none; }
|
|
.screen-content.settings-bordered-actions :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn):active { transform: scale(0.98); filter: none; }
|
|
.screen-content.settings-bordered-actions :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn):disabled { color: var(--text-secondary); background: var(--surface-selected); border-color: transparent; }
|
|
|
|
|
|
/* Language selector: actual two-position switch with explicit confirmation. */
|
|
.language-segmented-control {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0;
|
|
padding: 4px;
|
|
min-height: 58px;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
|
|
border-radius: 18px;
|
|
background: var(--surface);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.language-segmented-thumb {
|
|
position: absolute;
|
|
z-index: 0;
|
|
top: 4px;
|
|
bottom: 4px;
|
|
left: 4px;
|
|
width: calc(50% - 4px);
|
|
border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
|
|
border-radius: 14px;
|
|
background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 20%, transparent));
|
|
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 10%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent);
|
|
transition: transform 180ms ease;
|
|
}
|
|
|
|
.language-choice-card[data-language="en"] .language-segmented-thumb { transform: translateX(100%); }
|
|
|
|
.language-segment {
|
|
position: relative;
|
|
z-index: 1;
|
|
min-height: 50px;
|
|
padding: 0 12px;
|
|
border: 0;
|
|
background: transparent;
|
|
background-image: none;
|
|
box-shadow: none;
|
|
color: var(--text-primary);
|
|
text-shadow: none;
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
font-size: 16px;
|
|
font-weight: 650;
|
|
transition:
|
|
transform 90ms ease,
|
|
box-shadow 90ms ease,
|
|
background-color 90ms ease,
|
|
filter 120ms ease;
|
|
}
|
|
|
|
.language-segment:hover {
|
|
color: var(--text-primary);
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
.language-segment:active {
|
|
color: var(--text-primary);
|
|
background: color-mix(in srgb, var(--surface) 12%, transparent);
|
|
border: 0;
|
|
box-shadow:
|
|
inset 0 3px 8px rgba(0, 0, 0, 0.58),
|
|
inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
.language-segment:focus-visible {
|
|
outline: 2px solid var(--border-control);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.language-segment::before,
|
|
.language-segment::after {
|
|
background: transparent;
|
|
background-image: none;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.language-choice-actions {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.language-choice-actions .shine-btn { height: 50px; }
|
|
|
|
/* ===== Скрытые расширенные настройки ===== */
|
|
.settings-shine-logo-button {
|
|
width: min(72vw, 280px);
|
|
min-height: 118px;
|
|
margin: 2px auto 10px;
|
|
padding: 6px 12px;
|
|
display: grid;
|
|
place-items: center;
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
user-select: none;
|
|
}
|
|
|
|
.settings-shine-logo-button:hover,
|
|
.settings-shine-logo-button:focus,
|
|
.settings-shine-logo-button:active {
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
.settings-shine-logo-button:focus-visible {
|
|
outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
|
|
outline-offset: 4px;
|
|
border-radius: 22px;
|
|
}
|
|
|
|
.settings-shine-logo {
|
|
display: block;
|
|
width: 100%;
|
|
max-height: 126px;
|
|
object-fit: contain;
|
|
pointer-events: none;
|
|
filter: drop-shadow(0 12px 30px color-mix(in srgb, var(--accent) 16%, transparent));
|
|
}
|
|
|
|
.settings-feature-toggle-row {
|
|
min-height: 76px;
|
|
padding: 15px 16px;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.settings-feature-toggle-copy {
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 5px;
|
|
}
|
|
|
|
.settings-feature-toggle-title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.settings-feature-toggle-hint {
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.settings-feature-switch {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
flex: 0 0 auto;
|
|
width: 48px;
|
|
height: 28px;
|
|
margin: 0;
|
|
padding: 2px;
|
|
border: 1px solid var(--border-control);
|
|
border-radius: var(--radius-pill);
|
|
background: var(--surface-selected);
|
|
cursor: pointer;
|
|
transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.settings-feature-switch::after {
|
|
content: '';
|
|
display: block;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: var(--text-secondary);
|
|
box-shadow: var(--shadow-sm);
|
|
transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.settings-feature-switch:checked {
|
|
border-color: var(--accent);
|
|
background: var(--accent);
|
|
}
|
|
|
|
.settings-feature-switch:checked::after {
|
|
transform: translateX(20px);
|
|
background: var(--on-accent);
|
|
}
|
|
|
|
.settings-feature-switch:focus-visible {
|
|
outline: 2px solid color-mix(in srgb, var(--accent) 82%, transparent);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.settings-shine-logo-button { justify-self: center; }
|
|
.settings-shine-logo { width: 48px; height: 48px; max-height: 48px; object-fit: contain; }
|
|
.settings-shine-logo-button { min-height: 0; padding: 0; margin: 0 auto; }
|
|
.settings-sections { gap: var(--space-4); }
|
|
.settings-theme-card { gap: var(--space-2); }
|
|
.settings-theme-editor { width: 100%; }
|
|
.settings-intro { padding-top: var(--space-3); }
|
|
.settings-intro > p { margin: 0; padding-inline: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); }
|