mirror of
https://github.com/picocss/pico.git
synced 2025-06-17 19:55:22 -04:00
Docs: Adapt the DOM and styles for code blocks #36
This commit is contained in:
parent
d64bb2343d
commit
b40a9277f2
7 changed files with 108 additions and 28 deletions
|
@ -4,5 +4,23 @@
|
|||
|
||||
@import "../../../scss/themes/default/colors";
|
||||
@import "docs/icons";
|
||||
|
||||
// Light theme (Default)
|
||||
// Can be forced with data-theme="light"
|
||||
@import "docs/light";
|
||||
|
||||
|
||||
// Dark theme (Auto)
|
||||
// Automatically enabled if user has Dark mode enabled
|
||||
@import "docs/dark";
|
||||
@media only screen and (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
@include dark;
|
||||
}
|
||||
}
|
||||
|
||||
// Dark theme (Forced)
|
||||
// Enabled if forced with data-theme="dark"
|
||||
[data-theme="dark"] {
|
||||
@include dark;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue