web safe fonts (#496)

* web-safe-fonts initial commit

* updated contributors

* reduced headings font weight

* make release
This commit is contained in:
Peter Duchnovsky
2021-02-10 15:46:37 +01:00
committed by GitHub
parent 9bfd70ec83
commit c4afd5f51a
9 changed files with 17 additions and 20 deletions

View File

@@ -12,9 +12,9 @@ html {
body { body {
color: $fg-color; color: $fg-color;
background-color: $bg-color; background-color: $bg-color;
font-family: $text-font-family; font-family: $font-family;
font-size: 1.6em; font-size: 1.8em;
font-weight: 300; font-weight: 400;
line-height: 1.8em; line-height: 1.8em;
@media only screen and (max-width : 768px) { @media only screen and (max-width : 768px) {
font-size: 1.6em; font-size: 1.6em;
@@ -23,7 +23,7 @@ body {
} }
a { a {
font-weight: 300; font-weight: 500;
color: $link-color; color: $link-color;
text-decoration: none; text-decoration: none;
transition: all .25s ease-in; transition: all .25s ease-in;
@@ -43,10 +43,10 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
font-family: $heading-font-family; font-family: $font-family;
font-weight: 700; font-weight: 600;
color: $alt-fg-color; color: $alt-fg-color;
margin: 6.4rem 0 3.2rem 0; margin: 4rem 0 2.5rem 0;
&:hover .heading-link { &:hover .heading-link {
visibility: visible; visibility: visible;

View File

@@ -102,7 +102,7 @@
font-size: 1.8rem; font-size: 1.8rem;
flex:2; flex:2;
color: $fg-color; color: $fg-color;
font-family: $heading-font-family; font-family: $font-family;
font-weight: 700; font-weight: 700;
&:hover, &:hover,
&:focus { &:focus {

View File

@@ -1,7 +1,7 @@
.footer { .footer {
width: 100%; width: 100%;
text-align: center; text-align: center;
font-family: $heading-font-family; font-size: 1.6rem;
line-height: 2.0rem; line-height: 2.0rem;
margin-bottom:1.0rem; margin-bottom:1.0rem;
a { a {

View File

@@ -3,9 +3,9 @@
width: 100%; width: 100%;
a, span { a, span {
display: inline; display: inline;
font-size: 1.6rem; font-size: 1.7rem;
font-family: $heading-font-family; font-family: $font-family;
font-weight: 700; font-weight: 600;
line-height: 6.0rem; line-height: 6.0rem;
color: $fg-color; color: $fg-color;
} }

View File

@@ -1,7 +1,7 @@
.pagination { .pagination {
margin-top: 6.0rem; margin-top: 6.0rem;
text-align: center; text-align: center;
font-family: $heading-font-family; font-family: $font-family;
li { li {
display: inline; display: inline;
text-align: center; text-align: center;

View File

@@ -1,7 +1,6 @@
// Fonts // Fonts
$text-font-family: Merriweather, Georgia, serif; $font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
$heading-font-family: Lato, Helvetica, sans-serif; $code-font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
$code-font-family: 'Source Code Pro', 'Lucida Console', monospace;
// Colors // Colors
$bg-color: #FAFAFA !default; $bg-color: #FAFAFA !default;

View File

@@ -22,8 +22,6 @@
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
{{ end }} {{ end }}
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather:300,700%7CSource+Code+Pro:400,700&display=swap" rel="stylesheet">
<link rel="preload" href="/fonts/forkawesome-webfont.woff2?v=1.1.7" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/fonts/forkawesome-webfont.woff2?v=1.1.7" as="font" type="font/woff2" crossorigin>
{{ if .Site.IsServer }} {{ if .Site.IsServer }}

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"Target":"css/coder.min.f48a4da9bd32cecaff90717ae85529411dd087c10fc0dfca9c9c329c7327e5e1.css","MediaType":"text/css","Data":{"Integrity":"sha256-9IpNqb0yzsr/kHF66FUpQR3Qh8EPwN/KnJwynHMn5eE="}} {"Target":"css/coder.min.ec198d25949ddd79a670b1ead43ca88e0bc2c1343266d0df0a9eeb7f3f207777.css","MediaType":"text/css","Data":{"Integrity":"sha256-7BmNJZSd3XmmcLHq1DyojgvCwTQyZtDfCp7rfz8gd3c="}}