mirror of
https://github.com/monero-project/monero-docs.git
synced 2024-10-29 18:37:35 +00:00
theme: fix nojs & override defaults
This commit is contained in:
parent
6216ac77da
commit
2c57a28dc7
2 changed files with 66 additions and 11 deletions
|
@ -10,24 +10,81 @@ article .md-typeset__table {
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--md-primary-fg-color: #121212;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-md-color-scheme="default"] {
|
[data-md-color-scheme="default"] {
|
||||||
--md-typeset-a-color: #4051b5;
|
|
||||||
|
--md-primary-fg-color: #ffffff; /* header */
|
||||||
|
--md-default-bg-color: #ffffff; /* background color */
|
||||||
|
|
||||||
|
/* imported from white theme */
|
||||||
|
--md-primary-fg-color--light: hsla(var(--md-hue),0%,100%,0.7);
|
||||||
|
--md-primary-fg-color--dark: hsla(var(--md-hue),0%,0%,0.07); /* shade on repo into */
|
||||||
|
|
||||||
|
--md-primary-bg-color: hsla(var(--md-hue),0%,0%,0.87); /* header text */
|
||||||
|
--md-primary-bg-color--light: hsla(var(--md-hue),0%,0%,0.54);
|
||||||
|
/* ------------------------- */
|
||||||
|
|
||||||
|
--md-typeset-a-color: #ff6600; /* links */
|
||||||
|
|
||||||
|
--md-accent-fg-color: #ff6600; /* accent/buttons color */
|
||||||
|
--md-accent-bg-color: #ffffff; /* accent/buttons text */
|
||||||
|
|
||||||
|
--md-footer-bg-color: var(--md-default-bg-color); /* forward/back panel */
|
||||||
|
--md-footer-bg-color--dark: #181818; /* bottom footer */
|
||||||
|
--md-footer-fg-color: #000000; /* footer text */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[data-md-color-scheme="slate"] {
|
[data-md-color-scheme="slate"] {
|
||||||
--md-hue: 232;
|
--md-hue: 232;
|
||||||
--md-default-bg-color: #121212;
|
|
||||||
--md-footer-bg-color: #181818;
|
--md-primary-fg-color: #141414; /* header */
|
||||||
--md-footer-bg-color--dark: #181818;
|
--md-default-bg-color: #191919; /* background color */
|
||||||
--md-typeset-a-color: #FF6600;
|
|
||||||
--md-code-bg-color: #191919;
|
/* imported from black theme */
|
||||||
|
--md-primary-fg-color--light: hsla(var(--md-hue),15%,9%,0.54);
|
||||||
|
--md-primary-fg-color--dark: hsla(var(--md-hue),15%,9%,1); /* shade on repo into */
|
||||||
|
|
||||||
|
--md-primary-bg-color: hsla(var(--md-hue),15%,100%,1); /* header text */
|
||||||
|
--md-primary-bg-color--light: hsla(var(--md-hue),15%,100%,0.7);
|
||||||
|
/* ------------------------- */
|
||||||
|
|
||||||
|
--md-typeset-a-color: #ff6600; /* links */
|
||||||
|
|
||||||
|
--md-accent-fg-color: #ff6600; /* accent/buttons color */
|
||||||
|
--md-accent-bg-color: #ffffff; /* accent/buttons text */
|
||||||
|
|
||||||
|
--md-footer-bg-color: var(--md-default-bg-color); /* forward/back panel */
|
||||||
|
--md-footer-bg-color--dark: #141414; /* bottom footer */
|
||||||
|
--md-footer-fg-color: #ffffff; /* footer text */
|
||||||
|
|
||||||
|
--md-code-bg-color: #1f1f1f; /* code boxes */
|
||||||
}
|
}
|
||||||
|
|
||||||
[role=tooltip]>.md-tooltip2__inner {
|
[role=tooltip]>.md-tooltip2__inner {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* nav icons */
|
||||||
|
[dir="ltr"] .md-nav--primary .md-nav__icon {
|
||||||
|
color: #ff6600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* back to top */
|
||||||
|
.md-top {
|
||||||
|
background-color: var(--md-primary-bg-color);
|
||||||
|
color: var(--md-primary-fg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* buttons */
|
||||||
|
.md-typeset .md-button {
|
||||||
|
background-color: #181818;
|
||||||
|
color: var(--md-accent-bg-color);
|
||||||
|
border-color:var(--md-accent-fg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* links */
|
||||||
|
.md-typeset a {
|
||||||
|
color: var(--md-primary-bg-color);
|
||||||
|
}
|
||||||
|
|
|
@ -103,15 +103,13 @@ theme:
|
||||||
name: Switch to light mode
|
name: Switch to light mode
|
||||||
- media: "(prefers-color-scheme: light)"
|
- media: "(prefers-color-scheme: light)"
|
||||||
scheme: default
|
scheme: default
|
||||||
primary: white
|
primary: custom
|
||||||
accent: deep-orange
|
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/toggle-switch
|
icon: material/toggle-switch
|
||||||
name: Switch to dark mode
|
name: Switch to dark mode
|
||||||
- media: "(prefers-color-scheme: dark)"
|
- media: "(prefers-color-scheme: dark)"
|
||||||
scheme: slate
|
scheme: slate
|
||||||
primary: black
|
primary: custom
|
||||||
accent: deep-orange
|
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/toggle-switch-off
|
icon: material/toggle-switch-off
|
||||||
name: Switch to system preference
|
name: Switch to system preference
|
||||||
|
|
Loading…
Reference in a new issue