Skip to content

Commit c4afd5f

Browse files
authored
web safe fonts (luizdepra#496)
* web-safe-fonts initial commit * updated contributors * reduced headings font weight * make release
1 parent 9bfd70e commit c4afd5f

File tree

9 files changed

+17
-20
lines changed

9 files changed

+17
-20
lines changed

assets/scss/_base.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ html {
1212
body {
1313
color: $fg-color;
1414
background-color: $bg-color;
15-
font-family: $text-font-family;
16-
font-size: 1.6em;
17-
font-weight: 300;
15+
font-family: $font-family;
16+
font-size: 1.8em;
17+
font-weight: 400;
1818
line-height: 1.8em;
1919
@media only screen and (max-width : 768px) {
2020
font-size: 1.6em;
@@ -23,7 +23,7 @@ body {
2323
}
2424

2525
a {
26-
font-weight: 300;
26+
font-weight: 500;
2727
color: $link-color;
2828
text-decoration: none;
2929
transition: all .25s ease-in;
@@ -43,10 +43,10 @@ h3,
4343
h4,
4444
h5,
4545
h6 {
46-
font-family: $heading-font-family;
47-
font-weight: 700;
46+
font-family: $font-family;
47+
font-weight: 600;
4848
color: $alt-fg-color;
49-
margin: 6.4rem 0 3.2rem 0;
49+
margin: 4rem 0 2.5rem 0;
5050

5151
&:hover .heading-link {
5252
visibility: visible;

assets/scss/_content.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
font-size: 1.8rem;
103103
flex:2;
104104
color: $fg-color;
105-
font-family: $heading-font-family;
105+
font-family: $font-family;
106106
font-weight: 700;
107107
&:hover,
108108
&:focus {

assets/scss/_footer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.footer {
22
width: 100%;
33
text-align: center;
4-
font-family: $heading-font-family;
4+
font-size: 1.6rem;
55
line-height: 2.0rem;
66
margin-bottom:1.0rem;
77
a {

assets/scss/_navigation.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
width: 100%;
44
a, span {
55
display: inline;
6-
font-size: 1.6rem;
7-
font-family: $heading-font-family;
8-
font-weight: 700;
6+
font-size: 1.7rem;
7+
font-family: $font-family;
8+
font-weight: 600;
99
line-height: 6.0rem;
1010
color: $fg-color;
1111
}

assets/scss/_pagination.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.pagination {
22
margin-top: 6.0rem;
33
text-align: center;
4-
font-family: $heading-font-family;
4+
font-family: $font-family;
55
li {
66
display: inline;
77
text-align: center;

assets/scss/_variables.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Fonts
2-
$text-font-family: Merriweather, Georgia, serif;
3-
$heading-font-family: Lato, Helvetica, sans-serif;
4-
$code-font-family: 'Source Code Pro', 'Lucida Console', monospace;
2+
$font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
3+
$code-font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
54

65
// Colors
76
$bg-color: #FAFAFA !default;

layouts/_default/baseof.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
<link rel="canonical" href="{{ .Permalink }}">
2323
{{ end }}
2424

25-
<link rel="preconnect" href="https://fonts.gstatic.com">
26-
<link href="https://fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather:300,700%7CSource+Code+Pro:400,700&display=swap" rel="stylesheet">
2725
<link rel="preload" href="/fonts/forkawesome-webfont.woff2?v=1.1.7" as="font" type="font/woff2" crossorigin>
2826

2927
{{ if .Site.IsServer }}

resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Target":"css/coder.min.f48a4da9bd32cecaff90717ae85529411dd087c10fc0dfca9c9c329c7327e5e1.css","MediaType":"text/css","Data":{"Integrity":"sha256-9IpNqb0yzsr/kHF66FUpQR3Qh8EPwN/KnJwynHMn5eE="}}
1+
{"Target":"css/coder.min.ec198d25949ddd79a670b1ead43ca88e0bc2c1343266d0df0a9eeb7f3f207777.css","MediaType":"text/css","Data":{"Integrity":"sha256-7BmNJZSd3XmmcLHq1DyojgvCwTQyZtDfCp7rfz8gd3c="}}

0 commit comments

Comments
 (0)