Browse Source

Experimental theme change

* Change paragraph, code, heading fonts
* Widen viewport
pull/1304/head
Still Hsu 6 years ago
parent
commit
47bf003f7f
3 changed files with 52 additions and 12 deletions
  1. +9
    -0
      docs/_template/light-dark-theme/styles/dark.css
  2. +9
    -0
      docs/_template/light-dark-theme/styles/gray.css
  3. +34
    -12
      docs/_template/light-dark-theme/styles/master.css

+ 9
- 0
docs/_template/light-dark-theme/styles/dark.css View File

@@ -7,6 +7,15 @@ body {
color: #C0C0C0; color: #C0C0C0;
} }


h1,
h2,
h3,
h4,
h5,
h6 {
color: #E0E0E0;
}

button, button,
a { a {
color: #64B5F6; color: #64B5F6;


+ 9
- 0
docs/_template/light-dark-theme/styles/gray.css View File

@@ -7,6 +7,15 @@ body {
color: #dddddd; color: #dddddd;
} }


h1,
h2,
h3,
h4,
h5,
h6 {
color: #EEEEEE;
}

button, button,
a { a {
color: #64B5F6; color: #64B5F6;


+ 34
- 12
docs/_template/light-dark-theme/styles/master.css View File

@@ -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, html,
body { body {
font-family: 'Titillium Web', 'Segoe UI', Tahoma, Helvetica, sans-serif;
font-family: 'Roboto', 'Segoe UI', Tahoma, Helvetica, sans-serif;
font-display: optional; font-display: optional;
height: 100%; height: 100%;
font-size: 15px; font-size: 15px;
scroll-behavior: smooth; 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 #logo
{ {
max-width: 100px; max-width: 100px;
@@ -57,16 +80,6 @@ article.content h6{
transition: all .25s ease-in-out; 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 { .sideaffix {
line-height: 140%; line-height: 140%;
} }
@@ -173,3 +186,12 @@ span.arrow-d{
span.arrow-r{ span.arrow-r{
top: 6px; position: relative; top: 6px; position: relative;
} }

/* widen viewport */

@media (min-width: 1085px) {
.container {
width: calc(100% - 15vw);
max-width: calc(100% - 15vw);
}
}

Loading…
Cancel
Save