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

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ignatowicz <42359949+rignato@users.noreply.github.com>2020-01-26 05:22:16 +0300
committerzwbetz-gh <37317628+zwbetz-gh@users.noreply.github.com>2020-01-26 05:22:16 +0300
commiteec634badd668dd8b9f1cc93c18ece1e4c61ae27 (patch)
treed149d108bf4534d5116067d523dcc22b1522688f
parent9e3ec40f5b44f8ade9c2b509174441c2b90a0c9d (diff)
First attempt at fixing firefox dark mode (#22)
-rw-r--r--assets/css/template-styles.css10
-rw-r--r--layouts/partials/head.html2
2 files changed, 11 insertions, 1 deletions
diff --git a/assets/css/template-styles.css b/assets/css/template-styles.css
index ae58463..9ca6f8c 100644
--- a/assets/css/template-styles.css
+++ b/assets/css/template-styles.css
@@ -1024,3 +1024,13 @@ h1 svg {
background: none;
}
}
+
+::-moz-selection { /* Code for Firefox */
+ background: rgba(0,0,0,.8);
+ color: #fefefe;
+}
+
+::selection {
+ background: rgba(0,0,0,.8);
+ color: #fefefe;
+} \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6d294ba..37d4eb6 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -27,7 +27,7 @@
<link rel="stylesheet" type="text/css" href="{{ $styles.Permalink }}">
<style id="inverter" media="none">
- html { filter: invert(100%) }
+ .intro-and-nav, .main-and-footer { filter: invert(100%) }
* { background-color: inherit }
img:not([src*=".svg"]), .colors, iframe, .demo-container { filter: invert(100%) }
</style>