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

github.com/niklasbuschmann/contrast-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Buschmann <niklasbuschmann@posteo.org>2020-11-26 17:28:01 +0300
committerNiklas Buschmann <niklasbuschmann@posteo.org>2020-11-26 17:28:01 +0300
commit14607244ba053f28b0a662c495b4026b93ae6473 (patch)
tree449bbdd4e31b93b885899c8823a374565e4d1e3c
parent10e9f8e93a1dbbd31c0c20625b45a3df14a7e8d4 (diff)
merge upstream
-rw-r--r--static/css/index.css35
1 files changed, 17 insertions, 18 deletions
diff --git a/static/css/index.css b/static/css/index.css
index b493b2b..48ad9a7 100644
--- a/static/css/index.css
+++ b/static/css/index.css
@@ -13,7 +13,17 @@
}
}
+html {
+ background: #393b47;
+ font-size: 16px;
+ font-size: calc(0.8rem + 0.3vw);
+ padding: 0 calc(38% - 18em);
+}
+
@media (prefers-color-scheme: light) {
+ html {
+ background: #393b47;
+ }
body {
background: #ffffff;
color: #1c1d22;
@@ -21,23 +31,22 @@
}
@media (prefers-color-scheme: dark) {
+ html {
+ background: #23242b;
+ }
body {
background: #1c1d22;
color: #ffffff;
}
}
-html {
- font-size: 16px;
- font-size: calc(0.8rem + 0.3vw);
-}
-
body {
font-family: "PT Sans", -apple-system, "Helvetica Neue", "Segoe UI", "Roboto", sans-serif;
font-weight: 400;
line-height: 1.6;
margin: 0;
min-height: 100vh;
+ box-shadow: 0 0 0 1px #393b47;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@@ -131,7 +140,7 @@ body > header {
align-items: center;
background: #1c1d22;
color: #ffffff;
- border-bottom: 1px solid rgba(255, 255, 255, 0.05);
+ border-bottom: 1px solid #393b47;
}
body > header > a {
@@ -159,18 +168,8 @@ body > header, body > article, body > footer {
padding: 1.5em;
}
-@media (min-width: 32em) {
- body > header, body > article, body > footer {
- padding: 1.7em calc(38% - 12em);
- }
-}
-
-@media (prefers-color-scheme: light) and (min-width: 44em) {
- html {
- background: #393b45;
- padding: 0 calc(38% - 18em);
- }
+@media (min-width: 40em) {
body > header, body > article, body > footer {
- padding: 1.7em 12.5%;
+ padding: 1.65em 12.5%;
}
}