mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 10:46:14 -04:00
Scss files organization
+ Slim version example
This commit is contained in:
parent
f8e51cb875
commit
434cbe02ac
28 changed files with 1329 additions and 300 deletions
17
docs/scss/themes/docs/_dark.scss
Normal file
17
docs/scss/themes/docs/_dark.scss
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Dark theme (Auto) [Additions for docs]
|
||||
// Automatically enabled if user has Dark mode enabled
|
||||
@media only screen and (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--nav-background: #{rgba(darken($grey-900, 6%), .8)};
|
||||
--nav-border: #{rgba($grey-500, .2)};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Dark theme (Forced) [Additions for docs]
|
||||
// Enabled if forced with data-theme="dark"
|
||||
[data-theme="dark"] {
|
||||
--nav-background: #{rgba(darken($grey-900, 6%), .8)};
|
||||
--nav-border: #{rgba($grey-500, .2)};
|
||||
}
|
7
docs/scss/themes/docs/_light.scss
Normal file
7
docs/scss/themes/docs/_light.scss
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Light theme (Default) [Additions for docs]
|
||||
// Can be forced with data-theme="light"
|
||||
[data-theme="light"],
|
||||
:root:not([data-theme="dark"]) {
|
||||
--nav-background: #{rgba($white, .7)};
|
||||
--nav-border: #{rgba($grey-500, .2)};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue