ckground-color var(--category-transition-duration); user-select: none; } .sidebar-item--tall { height: var(--category-height); } .sidebar-item--condensed { height: calc(var(--base-unit) * 9); } .sidebar-item__link { display: block; height: 100%; } .sidebar-item__link, .sidebar-item__link:hover { color: inherit; /* do not apply usual link colors, but grab this element parent's */ } .sidebar-item:not(.sidebar-item--selectable) { color: var(--secondary-text-color); } .sidebar-item--selectable:hover { background-color: var(--sidebar-background-hover); } .sidebar-item--selected { color: var(--sidebar-selected-color); } .sidebar-item--breathe { margin-block-start: calc(6 * var(--base-unit)); margin-block-end: calc(2 * var(--base-unit)); } @media (prefers-contrast) { /* Color transitions (black <-> white) look bad in high contrast */ .sidebar-item { transition: background 0s; } .sidebar-item--selected, .sidebar-item--selected:hover { background-color: ButtonText; } /* `color: inherit` should not be used in high contrast mode otherwise the link inherits the color from ua.css */ .sidebar-item__link, .sidebar-item__link:hover { color: ButtonText; } .sidebar-item--selected .sidebar-item__link, .sidebar-item--selected .sidebar-item__link:hover { color: ButtonFace; } } PK