No hover highlighting on mobile
This commit is contained in:
+6
-1
@@ -296,8 +296,13 @@ a.heading-anchor:hover { color: var(--primary-hover); }
|
||||
.data-table th,
|
||||
.data-table td { padding: 0.4rem var(--space-3); text-align: left; }
|
||||
.data-table:not(.data-table-grid) tbody tr + tr { border-top: var(--border); }
|
||||
.data-table:not(.data-table-grid) tbody tr:hover,
|
||||
.data-table tr.is-active { background: var(--bg-panel-hover); }
|
||||
/* Hover-highlight only on devices with a real pointer. On touch, a tap or
|
||||
drag-scroll leaves an emulated :hover stuck on the last-touched row until
|
||||
the next tap — distracting while scrolling a listing. */
|
||||
@media (hover: hover) {
|
||||
.data-table:not(.data-table-grid) tbody tr:hover { background: var(--bg-panel-hover); }
|
||||
}
|
||||
.data-table tbody tr.is-empty,
|
||||
.data-table tbody tr.is-empty:hover {
|
||||
color: var(--text-muted);
|
||||
|
||||
Reference in New Issue
Block a user