gui/event-widget: Add focus ring

This commit is contained in:
Hari Rana
2025-04-30 21:44:46 -03:00
parent c42d987335
commit 02a7b13043
2 changed files with 9 additions and 3 deletions
+9 -2
View File
@@ -3,11 +3,20 @@
}
event {
outline: 0 solid transparent;
outline-offset: 6px;
transition: var(--focus-ring-transition);
margin: 1px;
font-size: 0.9rem;
background-color: var(--event-bg-color);
}
event:focus:focus-visible {
outline-color: rgb(from var(--accent-color) r g b / var(--dim-opacity));
outline-width: 2px;
outline-offset: 1px;
}
event.timed {
background-color: color-mix(in srgb, var(--event-bg-color) 17%, transparent);
}
@@ -47,13 +56,11 @@ event.slanted-start:dir(rtl) {
event:not(.timed).color-dark {
/* Keep in symc with the dark style's event.timed colors */
color: var(--light-1);
outline-color: rgba(0, 0, 0, 0.3);
}
event.timed,
event:not(.timed).color-light {
color: rgb(from var(--dark-5) r g b / 80%);
outline-color: rgba(255, 255, 255, 0.5);
}
event.slanted,
event.slanted-start,
-1
View File
@@ -4,7 +4,6 @@
event.timed {
color: var(--light-1);
outline-color: rgba(0, 0, 0, 0.3);
}
/*