Skip to content

Commit 884160a

Browse files
authored
Merge pull request #430 from pastelsky/typography
Typography Improvements
2 parents fa85292 + 0c15aad commit 884160a

File tree

12 files changed

+30
-28
lines changed

12 files changed

+30
-28
lines changed

assets/geomanist-medium.woff

-21.3 KB
Binary file not shown.

assets/geomanist-medium.woff2

-13.5 KB
Binary file not shown.

assets/geomanist-regular.woff

-39.9 KB
Binary file not shown.

assets/geomanist-regular.woff2

-27.5 KB
Binary file not shown.

components/navigation/navigation-style.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797

9898
width:0;
9999
font-size:14px;
100-
font-family:'Cabin', 'Century Gothic', sans-serif;
101100
text-indent:0.5em;
102101
border-bottom:1px solid getColor(fiord);
103102
margin-right:0;

components/navigation/search-style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
color: getColor(dusty-grey);
3838

3939
.algolia-docsearch-suggestion--highlight {
40-
color: lighten(getColor(denim), 5%);
40+
color: $text-color-highlight;
4141
box-shadow: none;
4242
font-weight: bold;
4343
}
4444
}
4545

4646
.algolia-docsearch-suggestion--highlight {
47-
color: lighten(getColor(denim), 5%);
47+
color: $text-color-highlight;
4848
background: rgba(getColor(malibu), 0.15);
4949
}
5050

components/sidebar-item/sidebar-item-style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
color: inherit;
1212

1313
&:hover {
14-
color: lighten(getColor(denim), 5%);
14+
color: $text-color-highlight;
1515
}
1616
}
1717

@@ -61,7 +61,7 @@
6161
}
6262

6363
.sidebar-item__title {
64-
color: lighten(getColor(denim), 5%);
64+
color: $text-color-highlight;
6565
}
6666

6767
.sidebar-item__toggle {

styles/fonts.scss

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono);
2-
@import url(https://fonts.googleapis.com/css?family=Cabin:400,400i,600,600i);
3-
41
@font-face {
52
font-family: 'Geomanist';
63
src: url('../assets/geomanist-medium.woff2') format('woff2'),
7-
url('../assets/geomanist-medium.woff') format('woff');
8-
font-weight: 500;
9-
font-style: normal;
10-
}
11-
12-
@font-face {
13-
font-family: 'Geomanist';
14-
src: url('../assets/geomanist-regular.woff2') format('woff2'),
15-
url('../assets/geomanist-regular.woff') format('woff');
16-
font-weight: 400;
4+
url('../assets/geomanist-medium.woff') format('woff');
5+
font-weight: 600;
176
font-style: normal;
187
}

styles/index.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
*/
77

88
@import 'vars';
9+
@import 'fonts';
910
@import 'functions';
1011

1112
@import './reset';
12-
@import './fonts';
1313

1414
* {
1515
box-sizing: inherit;
@@ -20,12 +20,12 @@ html {
2020
}
2121

2222
body {
23-
font: 400 getFontSize(0) 'Cabin', 'Century Gothic', sans-serif;
24-
color: getColor(emperor);
23+
font: 400 getFontSize(0) $font-stack-body;
24+
color: getColor(elephant);
2525
}
2626

2727
a {
28-
color: lighten(getColor(denim), 5%);
28+
color: $text-color-highlight;
2929
text-decoration: none;
3030
transition: color 250ms;
3131

@@ -37,7 +37,7 @@ a {
3737
color:lighten(getColor(dusty-grey), 10%);
3838

3939
&:hover {
40-
color: lighten(getColor(denim), 5%);
40+
color: $text-color-highlight;
4141
}
4242
}
4343

styles/markdown.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
h6 { font-size: getFontSize(-1); }
1616

1717
h1, h2, h3, h4, h5, h6 {
18-
font-family:'Geomanist', 'Century Gothic', sans-serif;
19-
font-weight:400;
18+
font-family: $font-stack-heading;
19+
font-weight:600;
2020
line-height:1;
2121
margin:1.5em 0 0.25em;
22-
color:getColor(mine-shaft);
22+
color:getColor(fiord);
2323

2424
&:first-child { margin-top:0; }
25-
tt, code { font-size:inherit; }
25+
tt, code { font-size: 90%; color: inherit }
2626
}
2727

2828
p, blockquote, table, pre {
@@ -159,7 +159,8 @@
159159
}
160160

161161
code, tt {
162-
font-family:'Ubuntu Mono', monospace;
162+
font-family: $font-stack-code;
163+
font-size: 90%;
163164
margin: 0 2px;
164165
padding: 2px 6px;
165166
white-space: nowrap;
@@ -168,6 +169,10 @@
168169
text-shadow: 0 1px 0 transparentize(getColor(white), 0.4);
169170
}
170171

172+
a code {
173+
color: $text-color-highlight;
174+
}
175+
171176
pre {
172177
background-color: rgba(238, 238, 238, 0.35);
173178
background-color: getColor(elephant);

0 commit comments

Comments
 (0)