Migrate to bulma-css-variables and introduce dark mode #954
|
@ -7,20 +7,16 @@
|
|||
0 3px 6px hsla(var(--grey-500-hsl), .08);
|
||||
--shadow-lg: 0 15px 25px hsla(var(--grey-500-hsl), .12),
|
||||
0 5px 10px hsla(var(--grey-500-hsl), .05);
|
||||
// unused --shadow-xl: 0 20px 40px hsla(var(--grey-500-hsl), .2);
|
||||
}
|
||||
|
||||
adrinux marked this conversation as resolved
Outdated
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
/* Even darker shadows for dark mode */
|
||||
--shadow-xs: 0 1px 3px hsla(var(--grey-100-hsl),.12),
|
||||
0 1px 2px hsla(var(--grey-100-hsl), .24);
|
||||
--shadow-sm: 0 3px 6px hsla(var(--grey-100-hsl), .12),
|
||||
0 2px 4px hsla(var(--grey-100-hsl), .10);
|
||||
--shadow-md: 0 10px 20px hsla(var(--grey-100-hsl), .12),
|
||||
0 3px 6px hsla(var(--grey-100-hsl), .08);
|
||||
--shadow-lg: 0 15px 25px hsla(var(--grey-100-hsl), .12),
|
||||
0 5px 10px hsla(var(--grey-100-hsl), .05);
|
||||
// unused --shadow-xl: 0 20px 40px hsla(var(--grey-100-hsl), .2);
|
||||
/* Even darker shadows for dark mode */
|
||||
--shadow-xs: 0 1px 3px hsla(var(--grey-100-hsl),.12),
|
||||
0 1px 2px hsla(var(--grey-100-hsl), .24);
|
||||
adrinux marked this conversation as resolved
Outdated
dpschen
commented
Nest the Nest the `@media` so we don't need to repeat `:root`. (2)
adrinux
commented
Done Done https://kolaente.dev/adrinux/frontend/commit/a258b938fabdb69b30615897b157c37a020b4059
|
||||
--shadow-sm: 0 3px 6px hsla(var(--grey-100-hsl), .12),
|
||||
0 2px 4px hsla(var(--grey-100-hsl), .10);
|
||||
--shadow-md: 0 10px 20px hsla(var(--grey-100-hsl), .12),
|
||||
0 3px 6px hsla(var(--grey-100-hsl), .08);
|
||||
--shadow-lg: 0 15px 25px hsla(var(--grey-100-hsl), .12),
|
||||
0 5px 10px hsla(var(--grey-100-hsl), .05);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user
good catch!
I think we should either remove it or uncomment it. Like this doesn't make sense (?).
The comment was to spark exactly this conversation :)
Should I remove it?
It's not used. It's not overriding something declared by bulma.
I vote for remove...
@konrad: do you remember the reason for shadow?
No real reason. When I added the shadows, I added a few variants to have a bit more flexibility. If it's not used anywhere I think it is fine to remove.
Removed shadow-xl
92b2010cdc