From 47bf003f7faaa5554a0c944c899b5be5acca884e Mon Sep 17 00:00:00 2001 From: Still Hsu <341464@gmail.com> Date: Fri, 8 Feb 2019 05:57:40 +0800 Subject: [PATCH] Experimental theme change * Change paragraph, code, heading fonts * Widen viewport --- .../light-dark-theme/styles/dark.css | 9 ++++ .../light-dark-theme/styles/gray.css | 9 ++++ .../light-dark-theme/styles/master.css | 46 ++++++++++++++----- 3 files changed, 52 insertions(+), 12 deletions(-) diff --git a/docs/_template/light-dark-theme/styles/dark.css b/docs/_template/light-dark-theme/styles/dark.css index 54ad76c79..2583f60a5 100644 --- a/docs/_template/light-dark-theme/styles/dark.css +++ b/docs/_template/light-dark-theme/styles/dark.css @@ -7,6 +7,15 @@ body { color: #C0C0C0; } +h1, +h2, +h3, +h4, +h5, +h6 { + color: #E0E0E0; +} + button, a { color: #64B5F6; diff --git a/docs/_template/light-dark-theme/styles/gray.css b/docs/_template/light-dark-theme/styles/gray.css index 4cb658788..4854c4562 100644 --- a/docs/_template/light-dark-theme/styles/gray.css +++ b/docs/_template/light-dark-theme/styles/gray.css @@ -7,6 +7,15 @@ body { color: #dddddd; } +h1, +h2, +h3, +h4, +h5, +h6 { + color: #EEEEEE; +} + button, a { color: #64B5F6; diff --git a/docs/_template/light-dark-theme/styles/master.css b/docs/_template/light-dark-theme/styles/master.css index e0f7befb5..040fa7cf8 100644 --- a/docs/_template/light-dark-theme/styles/master.css +++ b/docs/_template/light-dark-theme/styles/master.css @@ -1,14 +1,37 @@ -@import url('https://fonts.googleapis.com/css?family=Titillium+Web|Noto+Sans'); +@import url('https://fonts.googleapis.com/css?family=Roboto|Muli|Fira+Mono'); html, body { - font-family: 'Titillium Web', 'Segoe UI', Tahoma, Helvetica, sans-serif; + font-family: 'Roboto', 'Segoe UI', Tahoma, Helvetica, sans-serif; font-display: optional; height: 100%; font-size: 15px; scroll-behavior: smooth; } +code{ + font-family: 'Fira Mono', 'Courier New', Courier, monospace +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: 'Muli', Verdana, Geneva, Tahoma, sans-serif; + line-height: 130%; +} + +h1, +.h1, +h2, +.h2, +h3, +.h3 { + font-weight: 600; +} + #logo { max-width: 100px; @@ -57,16 +80,6 @@ article.content h6{ transition: all .25s ease-in-out; } -h1, -h2, -h3, -h4, -h5, -h6 { - font-family: 'Noto Sans', Verdana, Geneva, Tahoma, sans-serif; - line-height: 130%; -} - .sideaffix { line-height: 140%; } @@ -173,3 +186,12 @@ span.arrow-d{ span.arrow-r{ top: 6px; position: relative; } + +/* widen viewport */ + +@media (min-width: 1085px) { + .container { + width: calc(100% - 15vw); + max-width: calc(100% - 15vw); + } +} \ No newline at end of file