2019-12-02 11:52:26 +07:00
|
|
|
/**
|
|
|
|
* Theme: Additions for docs
|
|
|
|
*/
|
|
|
|
|
|
|
|
@import "../../../scss/themes/default/colors";
|
2020-09-29 08:38:35 +07:00
|
|
|
@import "docs/icons";
|
2021-10-23 23:02:36 +07:00
|
|
|
|
|
|
|
// Light theme (Default)
|
|
|
|
// Can be forced with data-theme="light"
|
2019-12-02 11:52:26 +07:00
|
|
|
@import "docs/light";
|
2021-10-23 23:02:36 +07:00
|
|
|
|
|
|
|
// Dark theme (Auto)
|
|
|
|
// Automatically enabled if user has Dark mode enabled
|
2019-12-02 11:52:26 +07:00
|
|
|
@import "docs/dark";
|
2021-10-23 23:02:36 +07:00
|
|
|
@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;
|
|
|
|
}
|