home: give the Today row a pointer and a hover state on desktop
The row is a clickable div, so the desktop cursor never changed and nothing answered the mouse. Both are behind @media (hover: hover) so a tap on a phone does not leave the row stuck in a hover state. Closes #14.
This commit is contained in:
1 parent
5314b342ff
commit
d0361b3fe0
1 file changed
+6
@@ -949,6 +949,7 @@ h4.sec{
|
||||
display:flex;align-items:center;justify-content:space-between;gap:10px;
|
||||
margin-top:12px;padding:12px 14px;border-radius:var(--r);background:var(--surface-2);
|
||||
transition:background var(--fast);width:100%;text-align:left;
|
||||
cursor: pointer
|
||||
}
|
||||
.today-row:active{background:var(--surface-3)}
|
||||
.today-row .lbl2{font-size:11px;font-weight:500;letter-spacing:.03em;text-transform:uppercase;color:var(--label-3)}
|
||||
@@ -957,6 +958,11 @@ h4.sec{
|
||||
letter-spacing:-.012em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.today-row:hover{background: color-mix(in srgb, var(--surface-2), var(--surface-3) 60%) }
|
||||
:root[data-theme="light"] .today-row:hover{background: color-mix(in srgb, var(--surface-2), var(--surface-3) 85%) }
|
||||
}
|
||||
|
||||
/* --------------------------------------------------- desktop (≥1000px) --- */
|
||||
.cols{display:block}
|
||||
@media (min-width:1000px){
|
||||
|
||||
Reference in new issue
Block a user