picocss/docs/scss/themes/_docs.scss

38 lines
717 B
SCSS
Raw Normal View History

/**
* Theme: Additions for docs
*/
@import "../../../scss/themes/default/colors";
2020-09-29 08:38:35 +07:00
@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;
2021-10-24 12:33:20 +07:00
}
2022-01-17 10:32:35 -08:00
// Display the grid with colors
.flex.demo > * > * {
display: block;
padding: .3em 0;
background: #008000;
text-align: center;
}
.flex.demo > *:nth-child(2n) > * {
background: #00FFFF;
}