SHA256
CORE/CONTENT test5593 и адаптация UI
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
/* Меню-список: группа строк «название / подсказка / ›» — для переходов по разделам
|
||||
* (кошелёк, настройки разработчика и т. п.). Для действий без перехода — обычные кнопки. */
|
||||
.nav-list { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
|
||||
.nav-list[hidden] { display: none; }
|
||||
.nav-list__title { margin: var(--space-2) 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-bold); }
|
||||
.nav-row {
|
||||
width: 100%;
|
||||
min-height: 56px;
|
||||
padding: 10px 40px 10px 14px;
|
||||
position: relative;
|
||||
display: grid;
|
||||
align-content: center;
|
||||
gap: 2px;
|
||||
border: 0;
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
border-radius: 0;
|
||||
color: var(--text-primary);
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.nav-row:first-child { border-top: 0; }
|
||||
.nav-row::after { content: '›'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-size: 22px; line-height: 1; }
|
||||
.nav-row:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .nav-row:hover { background: var(--surface-selected); } }
|
||||
.nav-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.nav-row__label { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-medium); }
|
||||
.nav-row__hint { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); }
|
||||
.nav-row--danger .nav-row__label { color: var(--danger); }
|
||||
.nav-row--danger::after { content: none; }
|
||||
.nav-row__label.is-empty { color: var(--text-secondary); font-weight: 400; }
|
||||
|
||||
.nav-list > .nav-row.profile-param-item { margin: 0; border-radius: 0; background: transparent; box-shadow: none; }
|
||||
.nav-list > .nav-row.profile-param-item:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .nav-list > .nav-row.profile-param-item:hover { background: var(--surface-selected); } }
|
||||
|
||||
.language-row::after { content: none; }
|
||||
.language-row[aria-checked='true']::after { content: '✓'; color: var(--accent); font-size: 18px; font-weight: var(--weight-bold); }
|
||||
|
||||
/* Строка с переключателем (<label class="nav-row nav-row--switch">): подпись слева,
|
||||
* .switch справа, без «›». */
|
||||
.nav-row--switch { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding-right: 14px; }
|
||||
.nav-row--switch::after { content: none; }
|
||||
.nav-row__text { display: grid; gap: 2px; min-width: 0; }
|
||||
/* Строка-сведение без перехода (версия, состояние разрешения). */
|
||||
.nav-row--static { cursor: default; padding-right: 14px; }
|
||||
.nav-row--static::after { content: none; }
|
||||
.nav-row--static:active { background: transparent; }
|
||||
@media (hover: hover) { .nav-row--static:hover { background: transparent; } }
|
||||
/* Строка с кнопкой справа («Разрешить», «Включить звук»). */
|
||||
.nav-row--action { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding-right: 10px; cursor: default; }
|
||||
.nav-row--action::after { content: none; }
|
||||
.nav-row--action:active { background: transparent; }
|
||||
@media (hover: hover) { .nav-row--action:hover { background: transparent; } }
|
||||
.nav-row__button { min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-bold); }
|
||||
Reference in New Issue
Block a user