Skip to content

Commit

Permalink
Merge pull request rhazdon#44 from shibumi/font-display-auto-additions
Browse files Browse the repository at this point in the history
added additional font-display configuration
  • Loading branch information
Djordje Atlialp authored Jul 19, 2019
2 parents 7307dfe + 7cedc03 commit 64220fe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/scss/_logo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
align-items: center;
text-decoration: none;
font-weight: bold;
font-display: auto;
font-family: monospace, monospace;

img {
Expand Down
3 changes: 3 additions & 0 deletions assets/scss/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ body {
margin: 0;
padding: 0;
font-family: 'Inter UI', -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
font-display: auto;
font-size: 1rem;
line-height: 1.54;
background-color: $light-background;
Expand Down Expand Up @@ -140,6 +141,7 @@ figure {

code {
font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
font-display: auto;
font-feature-settings: normal;
background: $light-background-secondary;
padding: 1px 6px;
Expand Down Expand Up @@ -190,6 +192,7 @@ blockquote {
&:before {
content: '';
font-family: Georgia, serif;
font-display: auto;
font-size: 3.875rem;
position: absolute;
left: -40px;
Expand Down
3 changes: 3 additions & 0 deletions assets/scss/_normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ hr {

pre {
font-family: monospace, monospace; /* 1 */
font-display: auto;
font-size: 1em; /* 2 */
}

Expand Down Expand Up @@ -121,6 +122,7 @@ code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-display: auto;
font-size: 1em; /* 2 */
}

Expand Down Expand Up @@ -178,6 +180,7 @@ optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-display: auto;
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
Expand Down
1 change: 1 addition & 0 deletions assets/scss/_prism.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pre[class*="language-"] {
color: #ccc;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-display: auto;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down

0 comments on commit 64220fe

Please sign in to comment.