ox-html: CSS style tweaks

This commit is contained in:
TEC 2022-06-28 23:10:11 +08:00
parent 2691e6d5fd
commit 429f4f4df8
Signed by: tec
GPG Key ID: 779591AFDB81F06C
4 changed files with 182 additions and 80 deletions

View File

@ -52,6 +52,7 @@ table {
@include light-meta();
}
margin-bottom: 10px;
min-width: 20em;
@include light-para(15px);
}
}

View File

@ -23,55 +23,113 @@ $text-gray: var(--text-gray);
$text-medium: var(--text-medium);
$text-dark: var(--text-dark);
#page {
--accent: #002642;
--accent-dark: #00151c;
--code-foreground: #2c3e50;
--code-background: #efefef;
--code-func: #6c3163;
--code-const: #4e3163;
--code-regex: #655370;
--back-white: #fff;
--back-light: #f0eeed;
--back-medium: #c8c8c8;
--text-light: #7b7b7b;
--text-gray: #444;
--text-medium: #222;
--text-dark: #000;
--switch-icon: "🌚";
--switch-shadow-color: #373d4e;
--switch-text: "dark mode?";
}
#theme-switch:checked ~ #page {
@media (prefers-color-scheme: light) {
#page {
--accent: #002642;
--accent-dark: #daf1ff;
--accent-dark: #00151c;
--code-foreground: #a1a8ae;
--code-background: #222;
--code-func: #bd56ad;
--code-const: #8755ab;
--code-regex: #a184b3;
--code-foreground: #2c3e50;
--code-background: #efefef;
--code-func: #6c3163;
--code-const: #4e3163;
--code-regex: #655370;
--back-white: #000;
--back-light: #181818;
--back-medium: #444;
--back-white: #fff;
--back-light: #f0eeed;
--back-medium: #c8c8c8;
--text-light: #7b7b7b;
--text-gray: #c8c8c8;
--text-medium: #ddd;
--text-dark: #efefef;
--text-gray: #444;
--text-medium: #222;
--text-dark: #000;
--switch-icon: "🌝";
--switch-shadow-color: #fce477;
--switch-text: "light mode?";
--switch-icon: "🌚";
--switch-shadow-color: #373d4e;
--switch-text: "dark mode?";
}
#theme-switch:checked ~ #page {
--accent: #002642;
--accent-dark: #daf1ff;
--code-foreground: #a1a8ae;
--code-background: #222;
--code-func: #bd56ad;
--code-const: #8755ab;
--code-regex: #a184b3;
--back-white: #000;
--back-light: #181818;
--back-medium: #444;
--text-light: #7b7b7b;
--text-gray: #c8c8c8;
--text-medium: #ddd;
--text-dark: #efefef;
--switch-icon: "🌝";
--switch-shadow-color: #fce477;
--switch-text: "light mode?";
img.invertible, object[type="image/svg+xml"].invertible {
filter: invert(90.0%) hue-rotate(180deg) sepia(1%);
}
}
}
@media (prefers-color-scheme: dark) {
#theme-switch:checked ~ #page {
--accent: #002642;
--accent-dark: #00151c;
--code-foreground: #2c3e50;
--code-background: #efefef;
--code-func: #6c3163;
--code-const: #4e3163;
--code-regex: #655370;
--back-white: #fff;
--back-light: #f0eeed;
--back-medium: #c8c8c8;
--text-light: #7b7b7b;
--text-gray: #444;
--text-medium: #222;
--text-dark: #000;
--switch-icon: "🌚";
--switch-shadow-color: #373d4e;
--switch-text: "dark mode?";
img.invertible, object[type="image/svg+xml"].invertible {
filter: invert(90.0%) hue-rotate(180deg) sepia(1%);
filter: none;
}
}
#page {
--accent: #002642;
--accent-dark: #daf1ff;
--code-foreground: #a1a8ae;
--code-background: #222;
--code-func: #bd56ad;
--code-const: #8755ab;
--code-regex: #a184b3;
--back-white: #000;
--back-light: #181818;
--back-medium: #444;
--text-light: #7b7b7b;
--text-gray: #c8c8c8;
--text-medium: #ddd;
--text-dark: #efefef;
--switch-icon: "🌝";
--switch-shadow-color: #fce477;
--switch-text: "light mode?";
img.invertible, object[type="image/svg+xml"].invertible {
filter: invert(90.0%) hue-rotate(180deg) sepia(1%);
}
}
}
#theme-switch {

View File

@ -75,45 +75,87 @@ summary {
display: list-item; }
/*! end normalise.css */
#page {
--accent: #002642;
--accent-dark: #00151c;
--code-foreground: #2c3e50;
--code-background: #efefef;
--code-func: #6c3163;
--code-const: #4e3163;
--code-regex: #655370;
--back-white: #fff;
--back-light: #f0eeed;
--back-medium: #c8c8c8;
--text-light: #7b7b7b;
--text-gray: #444;
--text-medium: #222;
--text-dark: #000;
--switch-icon: "🌚";
--switch-shadow-color: #373d4e;
--switch-text: "dark mode?"; }
@media (prefers-color-scheme: light) {
#page {
--accent: #002642;
--accent-dark: #00151c;
--code-foreground: #2c3e50;
--code-background: #efefef;
--code-func: #6c3163;
--code-const: #4e3163;
--code-regex: #655370;
--back-white: #fff;
--back-light: #f0eeed;
--back-medium: #c8c8c8;
--text-light: #7b7b7b;
--text-gray: #444;
--text-medium: #222;
--text-dark: #000;
--switch-icon: "🌚";
--switch-shadow-color: #373d4e;
--switch-text: "dark mode?"; }
#theme-switch:checked ~ #page {
--accent: #002642;
--accent-dark: #daf1ff;
--code-foreground: #a1a8ae;
--code-background: #222;
--code-func: #bd56ad;
--code-const: #8755ab;
--code-regex: #a184b3;
--back-white: #000;
--back-light: #181818;
--back-medium: #444;
--text-light: #7b7b7b;
--text-gray: #c8c8c8;
--text-medium: #ddd;
--text-dark: #efefef;
--switch-icon: "🌝";
--switch-shadow-color: #fce477;
--switch-text: "light mode?"; }
#theme-switch:checked ~ #page img.invertible, #theme-switch:checked ~ #page object[type="image/svg+xml"].invertible {
filter: invert(90%) hue-rotate(180deg) sepia(1%); } }
#theme-switch:checked ~ #page {
--accent: #002642;
--accent-dark: #daf1ff;
--code-foreground: #a1a8ae;
--code-background: #222;
--code-func: #bd56ad;
--code-const: #8755ab;
--code-regex: #a184b3;
--back-white: #000;
--back-light: #181818;
--back-medium: #444;
--text-light: #7b7b7b;
--text-gray: #c8c8c8;
--text-medium: #ddd;
--text-dark: #efefef;
--switch-icon: "🌝";
--switch-shadow-color: #fce477;
--switch-text: "light mode?"; }
#theme-switch:checked ~ #page img.invertible, #theme-switch:checked ~ #page object[type="image/svg+xml"].invertible {
filter: invert(90%) hue-rotate(180deg) sepia(1%); }
@media (prefers-color-scheme: dark) {
#theme-switch:checked ~ #page {
--accent: #002642;
--accent-dark: #00151c;
--code-foreground: #2c3e50;
--code-background: #efefef;
--code-func: #6c3163;
--code-const: #4e3163;
--code-regex: #655370;
--back-white: #fff;
--back-light: #f0eeed;
--back-medium: #c8c8c8;
--text-light: #7b7b7b;
--text-gray: #444;
--text-medium: #222;
--text-dark: #000;
--switch-icon: "🌚";
--switch-shadow-color: #373d4e;
--switch-text: "dark mode?"; }
#theme-switch:checked ~ #page img.invertible, #theme-switch:checked ~ #page object[type="image/svg+xml"].invertible {
filter: none; }
#page {
--accent: #002642;
--accent-dark: #daf1ff;
--code-foreground: #a1a8ae;
--code-background: #222;
--code-func: #bd56ad;
--code-const: #8755ab;
--code-regex: #a184b3;
--back-white: #000;
--back-light: #181818;
--back-medium: #444;
--text-light: #7b7b7b;
--text-gray: #c8c8c8;
--text-medium: #ddd;
--text-dark: #efefef;
--switch-icon: "🌝";
--switch-shadow-color: #fce477;
--switch-text: "light mode?"; }
#page img.invertible, #page object[type="image/svg+xml"].invertible {
filter: invert(90%) hue-rotate(180deg) sepia(1%); } }
#theme-switch {
display: none; }
@ -1787,6 +1829,7 @@ table {
line-height: 1.9; }
table caption {
margin-bottom: 10px;
min-width: 20em;
font-family: "Open Sans", sans;
font-weight: normal;
font-size: 15px;

File diff suppressed because one or more lines are too long