UI: Implement Web Assets' theme system, and add 'dark' theme #103972
@ -14,6 +14,18 @@
|
|||||||
&:hover
|
&:hover
|
||||||
backdrop-filter: brightness(80%)
|
backdrop-filter: brightness(80%)
|
||||||
|
|
||||||
|
/* Event favourited styles */
|
||||||
|
&:has(button[data-is-checked="data-is-checked"])
|
||||||
martonlente marked this conversation as resolved
Outdated
|
|||||||
|
backdrop-filter: brightness(125%) saturate(200%)
|
||||||
|
color: var(--color-text-primary)
|
||||||
|
|
||||||
|
&:hover
|
||||||
|
backdrop-filter: brightness(130%) saturate(200%)
|
||||||
|
|
||||||
|
.event-header,
|
||||||
|
.event-speakers
|
||||||
|
// TODO: @web-assets consider adding variables colours grey shades
|
||||||
|
color: hsl(0, 0%, 75%)
|
||||||
|
|
||||||
=theme-light-schedule
|
=theme-light-schedule
|
||||||
--event-detail-location-color-l: 35%
|
--event-detail-location-color-l: 35%
|
||||||
@ -29,6 +41,17 @@
|
|||||||
&:hover
|
&:hover
|
||||||
backdrop-filter: brightness(115%)
|
backdrop-filter: brightness(115%)
|
||||||
|
|
||||||
|
&:has(button[data-is-checked="data-is-checked"])
|
||||||
|
backdrop-filter: brightness(90%) saturate(400%)
|
||||||
|
color: var(--color-text-primary)
|
||||||
|
|
||||||
|
&:hover
|
||||||
|
backdrop-filter: brightness(95%) saturate(400%)
|
||||||
|
|
||||||
|
.event-header,
|
||||||
|
.event-speakers
|
||||||
|
color: hsl(0, 0%, 50%)
|
||||||
|
|
||||||
\:root,
|
\:root,
|
||||||
[data-theme="light"]
|
[data-theme="light"]
|
||||||
+theme-light-schedule
|
+theme-light-schedule
|
||||||
|
Loading…
Reference in New Issue
Block a user
Seems that when the button is pressed, it only adds the
data-is-checked
attribute but it doesn't assign any value. So the user has to reload the page for it to update in real time.Perhaps we could replace the check:
From:
&:has(button[data-is-checked="data-is-checked"])
To:
&:has(button[data-is-checked])
So it updates as it is pressed.
Thanks, this is indeed much nicer with the less specificity, and works without page reload! 👍 I updated accordingly.