Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fncnt/vncnt-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfncnt <github@vncnt.eu>2019-05-25 12:01:24 +0300
committerfncnt <github@vncnt.eu>2019-05-25 12:01:24 +0300
commit61abe6ae0ea49e0b63f96134968e45855b913d53 (patch)
treeef0866767655ec340cad96fcf915da6821cb2ca2
parenta0901fc25887267255939d60567ac51c4028e592 (diff)
Duplicate prefers-color-scheme media query from barebones.css for further modifications.
-rw-r--r--static/css/vncnt.css37
1 files changed, 37 insertions, 0 deletions
diff --git a/static/css/vncnt.css b/static/css/vncnt.css
index f7f2f1c..320a3a3 100644
--- a/static/css/vncnt.css
+++ b/static/css/vncnt.css
@@ -18,6 +18,43 @@ there.
*/
@import url('barebones.css');
+@media (prefers-color-scheme: dark) {
+ :html {
+ /* dark theme: light background, dark text, blue accent */
+ --theme-hue: 0; /* black */
+ --accent-hue: 194; /* blue */
+
+ --text-color-richer: hsl(var(--theme-hue), 0%, 95%); /* */
+ --text-color-normal: hsl(var(--theme-hue), 0%, 80%); /* text color; button:hover:focus color */
+ --text-color-softer: hsl(var(--theme-hue), 0%, 67%); /* button color; button:hover border */
+
+ --accent-color: hsl(var(--accent-hue), 76%, 49%); /* link; button-primary bg+border; textarea,select:focus border */
+ --accent-color-hover: hsl(var(--accent-hue), 86%, 57%); /* link hover; button-primary:hover:focus bg+border */
+
+ --border-color: hsl(var(--theme-hue), 0%, 27%); /* button border */
+ --border-color-softer: hsl(var(--theme-hue), 0%, 20%); /* textarea,select,code,td,hr border */
+
+ --background-color: hsl(var(--theme-hue), 0%, 12%); /* body background; textarea,select background */
+ --background-color-softer: hsl(var(--theme-hue), 0%, 18%);
+ --code-background: hsl(var(--theme-hue), 0%, 5%); /* code background*/
+
+ --button-primary-color: white;
+ }
+
+ img.value-img {
+ filter: invert(0.8);
+ }
+ /* TODO - test dialing back image intensity on dark background
+ img {
+ opacity: .80;
+ transition: opacity .5s ease-in-out;
+ }
+ img:hover {
+ opacity: 1;
+ }
+ */
+}
+
h1.h3-like, h2.h3-like {
font-size: 3.0rem;
line-height: 1.3;