Skip to content

Commit 8a477fe

Browse files
committed
Add Google fonts
1 parent fc704c0 commit 8a477fe

8 files changed

Lines changed: 29 additions & 4 deletions

File tree

_includes/google-fonts.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script async type="text/javascript">
2+
WebFontConfig = {
3+
google: { families: [ 'Source+Sans+Pro:400,700,400italic,700italic:latin', 'Source+Code+Pro::latin' ] }
4+
};
5+
(function() {
6+
var wf = document.createElement('script');
7+
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
8+
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
9+
wf.type = 'text/javascript';
10+
wf.async = 'true';
11+
var s = document.getElementsByTagName('script')[0];
12+
s.parentNode.insertBefore(wf, s);
13+
})();
14+
</script>

_layouts/single.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
</section>
3838
</main>
3939
{% include modals/share.html %}
40+
{% include google-fonts.html %}
4041
<script src="{{site.url}}/javascript/clipboard.min.js"></script>
4142
<script src="{{site.url}}/javascript/main.js"></script>
4243
<script src="{{site.url}}/javascript/single.js"></script>

css/website.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ <h2 class="header-title">
5050
</section>
5151
</main>
5252
{% include modals/share.html %}
53+
{% include google-fonts.html %}
5354
<script src="{{site.url}}/javascript/clipboard.min.js"></script>
5455
<script src="{{site.url}}/javascript/main.js"></script>
5556
<script src="{{site.url}}/javascript/index.js"></script>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build-autoprefix": "postcss --use autoprefixer --output css/website.css css/website.css",
99
"build-clean": "rm css/website.css",
1010
"build-sass": "node-sass --output-style compressed css/website.sass css/website.css",
11+
"develop": "node-sass --output-style expanded css/website.sass css/website.css",
1112
"start": "npm run build-sass -- --watch"
1213
},
1314
"keywords": [

sass/base.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ html
33
font-size: 16px
44
-moz-osx-font-smoothing: grayscale
55
-webkit-font-smoothing: antialiased
6+
max-width: 100vw
67
min-width: 300px
78
overflow-x: hidden
89
text-rendering: optimizeLegibility

sass/example.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130

131131
+mobile
132132
.example
133-
padding: 2rem 1rem 0
133+
padding: 2rem 2rem 0
134134
.example-preview
135135
margin-top: 1rem
136136
.example-complements

sass/property.sass

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
background-repeat: no-repeat
99
background-size: 100% 4rem
1010
border-top: 2px solid $primary
11+
overflow: hidden
1112
padding-bottom: 3rem
1213
padding-top: 2rem
1314
&:first-child
@@ -17,10 +18,11 @@
1718
border-top-color: $purple
1819

1920
.property-links
20-
float: right
21+
align-items: center
22+
display: flex
2123
font-size: 0.7rem
24+
justify-content: flex-end
2225
opacity: 0.5
23-
padding: 0.25rem 0
2426
transition-duration: $speed
2527
transition-property: opacity
2628
a
@@ -98,10 +100,15 @@
98100
.property-header
99101
padding-left: 2rem
100102
padding-right: 2rem
103+
.property-links
104+
margin-bottom: 0.5rem
101105

102106
+desktop
103107
.list
104108
margin-top: $header-height
105109
.property-header
106110
padding-left: 3rem
107111
padding-right: 3rem
112+
.property-links
113+
float: right
114+
padding: 0.25rem 0

0 commit comments

Comments
 (0)