mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 03:06:14 -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
|
@ -1,23 +1,9 @@
|
|||
// 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"]) {
|
||||
--invalid-color: #{rgba($red-900, .5)};
|
||||
--valid-color: #{rgba($green-800, .5)};
|
||||
--nav-background-color: #{rgba(darken($grey-900, 6%), .8)};
|
||||
--nav-border-color: #{rgba($grey-500, .2)};
|
||||
--nav-logo-color: #{mix($black, $grey-900)};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Dark theme (Forced) [Additions for docs]
|
||||
// Enabled if forced with data-theme="dark"
|
||||
[data-theme="dark"] {
|
||||
// Dark theme [Additions for docs]
|
||||
@mixin dark {
|
||||
--invalid-color: #{rgba($red-900, .5)};
|
||||
--valid-color: #{rgba($green-800, .5)};
|
||||
--nav-background: #{rgba(darken($grey-900, 6%), .8)};
|
||||
--nav-background-color: #{rgba(darken($grey-900, 6%), .8)};
|
||||
--nav-border-color: #{rgba($grey-500, .2)};
|
||||
--nav-logo-color: #{mix($black, $grey-900)};
|
||||
}
|
||||
--article-code-background-color: var(--code-background-color);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue