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;
|
|
|
|
}
|