SHA256
Касания: подсветка наведения больше не залипает на телефоне
На сенсорном экране :hover после касания остаётся на элементе: после перехода в настройках строка под пальцем выглядела выбранной, кнопка «назад» на следующем экране – нажатой. Все правила с :hover (77) теперь внутри @media (hover: hover): с мышью всё как было, на телефоне подсветки наведения нет. Чтобы нажатие оставалось заметным, там, где у элемента не было своего :active, а наведение меняло только цвет, фон или рамку, тот же вид получает :active (46 правил: строки настроек, кнопки шапки, строки уведомлений, поиск и т. д.). Порядок правил и специфичность не менялись, !important не добавлялось.
This commit is contained in:
@@ -57,7 +57,8 @@
|
||||
.user-profile-screen .pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
|
||||
.user-profile-screen .pf-stat { min-height: 64px; padding: var(--space-2) var(--space-1); display: grid; align-content: center; justify-items: center; gap: 2px; border: 0; border-left: 1px solid var(--border-subtle); background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; }
|
||||
.user-profile-screen .pf-stat:first-child { border-left: 0; }
|
||||
.user-profile-screen .pf-stat:hover { background: var(--surface-selected); }
|
||||
.user-profile-screen .pf-stat:active { background: var(--surface-selected); }
|
||||
@media (hover: hover) { .user-profile-screen .pf-stat:hover { background: var(--surface-selected); } }
|
||||
.user-profile-screen .pf-stat:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
|
||||
.user-profile-screen .pf-stat-value { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-bold); }
|
||||
.user-profile-screen .pf-stat-value small { color: var(--text-secondary); font-size: var(--text-xs); font-weight: var(--weight-medium); }
|
||||
@@ -90,9 +91,9 @@
|
||||
.user-profile-screen .pf-tile::after { content: none; }
|
||||
.user-profile-screen .pf-tile svg { width: 22px; height: 22px; }
|
||||
.user-profile-screen .pf-tile span { color: var(--text-primary); }
|
||||
.user-profile-screen .pf-tile:hover,
|
||||
.user-profile-screen .pf-tile:active,
|
||||
.user-profile-screen .pf-tile.is-active { background: var(--surface-selected); box-shadow: none; transform: none; }
|
||||
@media (hover: hover) { .user-profile-screen .pf-tile:hover { background: var(--surface-selected); box-shadow: none; transform: none; } }
|
||||
.user-profile-screen .pf-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.user-profile-screen .pf-tile .pf-tile-mandala,
|
||||
.user-profile-screen .pf-tile img { width: 24px; height: 24px; object-fit: contain; filter: none; }
|
||||
@@ -115,7 +116,8 @@
|
||||
.profiles-login { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-primary); }
|
||||
.profiles-active-badge { padding: 2px 8px; border-radius: var(--radius-pill); color: var(--accent); background: var(--accent-soft); font-size: .6875rem; font-weight: var(--weight-bold); }
|
||||
.screen-content .profiles-row .profiles-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); color: var(--text-secondary); background: transparent; font-size: 22px; cursor: pointer; }
|
||||
.screen-content .profiles-row .profiles-close:hover { background: var(--surface-selected); color: var(--danger); }
|
||||
.screen-content .profiles-row .profiles-close:active { background: var(--surface-selected); color: var(--danger); }
|
||||
@media (hover: hover) { .screen-content .profiles-row .profiles-close:hover { background: var(--surface-selected); color: var(--danger); } }
|
||||
|
||||
/* Экран управления отношениями с другим пользователем. */
|
||||
.relation-manage-screen { gap: var(--space-3); }
|
||||
@@ -162,9 +164,14 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.user-profile-screen .user-profile-note-add:hover {
|
||||
.user-profile-screen .user-profile-note-add:active {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.user-profile-screen .user-profile-note-add:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.user-profile-screen .user-profile-note-add:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
|
||||
Reference in New Issue
Block a user