SHA256
CORE/CONTENT test5593 и адаптация UI
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
/* Чипы-фильтры: ряд над списком («Все / Близкие / …»), как папки в мессенджерах.
|
||||
* Выбранный чип выглядит так же, как выбранная вкладка (.tab-btn[aria-checked]). */
|
||||
.chip-row {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
overflow-x: auto;
|
||||
padding: var(--space-1) 0;
|
||||
scrollbar-width: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.chip-row::-webkit-scrollbar { display: none; }
|
||||
.chip-row[hidden] { display: none; }
|
||||
|
||||
.chip,
|
||||
.fg-filter-chip {
|
||||
flex-shrink: 0;
|
||||
min-height: 36px;
|
||||
padding: 0 14px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-pill);
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface);
|
||||
font: inherit;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--weight-medium);
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
box-shadow: none;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
|
||||
}
|
||||
.chip:active,
|
||||
.fg-filter-chip:active { color: var(--text-primary); }
|
||||
@media (hover: hover) {
|
||||
.chip:hover,
|
||||
.fg-filter-chip:hover { color: var(--text-primary); }
|
||||
}
|
||||
.chip[aria-pressed='true'],
|
||||
.chip.is-active,
|
||||
.fg-filter-chip.is-active {
|
||||
color: var(--text-primary);
|
||||
background: var(--surface-selected);
|
||||
border-color: color-mix(in srgb, var(--accent) 55%, var(--border-control));
|
||||
font-weight: var(--weight-bold);
|
||||
box-shadow: none;
|
||||
}
|
||||
.chip:focus-visible,
|
||||
.fg-filter-chip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
|
||||
.chip[hidden] { display: none; }
|
||||
|
||||
/* Значок в чипе – по размеру текста, что бы ни задала страница. */
|
||||
.chip svg { flex: 0 0 auto; width: 16px; height: 16px; }
|
||||
Reference in New Issue
Block a user