UI: Implement Web Assets' theme system, and add 'dark' theme #103972
@ -1,3 +1,44 @@
|
||||
=theme-dark-schedule
|
||||
--schedule-container-location-color-l: 65%
|
||||
--schedule-filters-container-location-bg-color-l: 20%
|
||||
--schedule-filters-container-location-color-l: 60%
|
||||
|
||||
.schedule-container
|
||||
&.horizontal
|
||||
.event
|
||||
backdrop-filter: brightness(90%)
|
||||
|
||||
|
||||
&:hover
|
||||
backdrop-filter: brightness(85%)
|
||||
|
||||
|
||||
=theme-light-schedule
|
||||
--schedule-container-location-color-l: 35%
|
||||
--schedule-filters-container-location-bg-color-l: 10%
|
||||
--schedule-filters-container-location-color-l: 50%
|
||||
|
||||
.schedule-container
|
||||
&.horizontal
|
||||
.event
|
||||
backdrop-filter: brightness(110%)
|
||||
|
||||
&:hover
|
||||
backdrop-filter: brightness(115%)
|
||||
|
||||
\:root,
|
||||
[data-theme="light"]
|
||||
+theme-light-schedule
|
||||
|
||||
[data-theme="dark"]
|
||||
+theme-dark-schedule
|
||||
|
||||
@media (prefers-color-scheme: dark)
|
||||
\:root
|
||||
+theme-dark-schedule
|
||||
|
||||
[data-theme="light"]
|
||||
+theme-light-schedule
|
||||
|
||||
$col-time-width: 8%
|
||||
|
||||
.schedule-container
|
||||
@ -633,25 +674,12 @@ body.is-scrolled
|
||||
right: 0
|
||||
|
||||
.event
|
||||
backdrop-filter: brightness(110%)
|
||||
background-color: transparent
|
||||
transition: backdrop-filter var(--transition-speed)
|
||||
|
||||
&:hover
|
||||
backdrop-filter: brightness(115%)
|
||||
|
||||
.schedule-filters-container
|
||||
+padding(2, y)
|
||||
|
||||
[data-theme="dark"]
|
||||
.schedule-container
|
||||
&.horizontal
|
||||
.event
|
||||
backdrop-filter: brightness(90%)
|
||||
|
||||
&:hover
|
||||
backdrop-filter: brightness(85%)
|
||||
|
||||
.scroll-horizontal
|
||||
padding-top: var(--time-slots-height)
|
||||
overflow-x: auto
|
||||
|
@ -54,9 +54,9 @@
|
||||
}
|
||||
|
||||
.event-location-{{ location.slug }} input:checked ~ label {
|
||||
background-color: hsla(var(--location-hue-{{ location.slug }}), 50%, 50%, 10%);
|
||||
background-color: hsla(var(--location-hue-{{ location.slug }}), 50%, 50%, var(--schedule-filters-container-location-bg-color-l));
|
||||
border-color: hsla(var(--location-hue-{{ location.slug }}), 50%, 50%, 20%);
|
||||
color: hsl(var(--location-hue-{{ location.slug }}), 50%, 50%);
|
||||
color: hsl(var(--location-hue-{{ location.slug }}), 50%, var(--schedule-filters-container-location-color-l));
|
||||
}
|
||||
|
||||
.event-location-{{ location.slug }} input:checked ~ label:hover {
|
||||
@ -195,7 +195,7 @@
|
||||
|
||||
| {% if event.location.slug %}
|
||||
li.event-location(
|
||||
style="color: hsl(var(--location-hue-{{ event.location.slug }}), 80%, 35%);")
|
||||
style="color: hsl(var(--location-hue-{{ event.location.slug }}), 80%, var(--schedule-container-location-color-l));")
|
||||
| {{ event.location.slug | upper }}
|
||||
| {% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user
Any reason to limit this to the horizontal layout? The same concept could be used in the vertical schedule.
Sorry for the late reponse, just noticed the new comments.
I like the idea to display followed/assisting items in the vertical schedule more remarkably, but I think here it should look different, as the vertical layout doesn't have the coloured rows by location. Maybe we should just apply a slightly different tone of grey to highlighted items' backgrounds? Or shall we try to go for location-based colouring here as well, possibly with less saturated tones?
Based on this, I think the existing rule is correct, and we could extend vertical layout styles with additional rules.