Skip to content

Commit c7112ae

Browse files
committed
finally fixed the stupid safari bug...
1 parent a778f4c commit c7112ae

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta charset="UTF-8">
88
<meta http-equiv="X-UA-Compatible" content="IE=edge">
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10-
<link rel="preload" href="/assets/fonts/iosevka-regular.woff2" as="font" crossorigin>
10+
<link rel="preload" as="font" href="/assets/fonts/iosevka-regular.woff2" type="font/woff2" crossorigin="anonymous">
1111
<link rel="stylesheet" href="/assets/styles/style.css">
1212
</head>
1313
<body>

assets/styles/style.sass

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
---
22
---
33

4-
// @font-face
5-
// font-family: Iosevka
6-
// font-display: swap
7-
// src: url(../fonts/iosevka-regular.ttf)
8-
9-
$font: Iosevka
10-
$backup-font: Arial
4+
$font: Iosevka, Arial
115

126
$accent: #4fb8ff
137
$text: #92a1ae
148
$mid: #424c57
159
$dark: #21272f
1610
$very-dark: #1b2129
1711

12+
@font-face
13+
font-family: Iosevka
14+
font-display: swap
15+
src: url(/assets/fonts/iosevka-regular.woff2) format("woff2")
16+
1817
@keyframes fadein
1918
from
2019
opacity: 0
20+
transform: translateX(30px)
2121
to
2222
opacity: 1
23+
transform: translateX(0px)
2324

2425
@mixin bar-links
2526
>
@@ -35,7 +36,7 @@ $very-dark: #1b2129
3536

3637
h1, a, p
3738
color: $text
38-
font-family: $font, $backup-font
39+
font-family: $font
3940

4041
nav
4142
@include bar-links
@@ -69,4 +70,7 @@ body
6970
margin: auto
7071
width: 80vw
7172
min-height: 100vh
72-
animation: fadein 0.35s
73+
74+
>
75+
*
76+
animation: fadein 0.35s

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
layout: default
33
---
44

5-
<p><strong>{{site.url}}</strong></p>
65
<p>Work in progress blog & portfolio, just wait!</p>

0 commit comments

Comments
 (0)