init
This commit is contained in:
commit
d013ece0f3
363 changed files with 20823 additions and 0 deletions
51
themes/duckquill/templates/partials/variables.html
Normal file
51
themes/duckquill/templates/partials/variables.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
<style type="text/css">
|
||||
:root {
|
||||
{%- if page.extra.accent_color -%}
|
||||
--accent-color: {{ page.extra.accent_color | safe }};
|
||||
{%- elif section.extra.accent_color -%}
|
||||
--accent-color: {{ section.extra.accent_color | safe }};
|
||||
{%- else -%}
|
||||
--accent-color: {{ config.extra.accent_color | default(value="#6f8396") | safe }};
|
||||
{%- endif -%}
|
||||
}
|
||||
|
||||
{%- if page.extra.accent_color_dark -%}
|
||||
[data-theme="dark"] {
|
||||
--accent-color: {{ page.extra.accent_color_dark | safe }};
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--accent-color: {{ page.extra.accent_color_dark | safe }};
|
||||
}
|
||||
}
|
||||
{%- elif section.extra.accent_color_dark -%}
|
||||
[data-theme="dark"] {
|
||||
--accent-color: {{ section.extra.accent_color_dark | safe }};
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--accent-color: {{ section.extra.accent_color_dark | safe }};
|
||||
}
|
||||
}
|
||||
{%- elif config.extra.accent_color_dark -%}
|
||||
[data-theme="dark"] {
|
||||
--accent-color: {{ config.extra.accent_color_dark | safe }};
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--accent-color: {{ config.extra.accent_color_dark | safe }};
|
||||
}
|
||||
}
|
||||
{%- endif -%}
|
||||
|
||||
{%- if config.extra.debug.layout -%}
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
outline: solid 1px var(--accent-color);
|
||||
}
|
||||
{%- endif -%}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue