Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 375b5df

Browse files
authored
feat: typography — reusable styling for font ref (#270)
feat: `typography` — reusable styling for font ref
2 parents ac6719f + aa6caf0 commit 375b5df

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.font-montserrat {
2+
font-family: 'Montserrat', sans-serif;
3+
}
4+
5+
.font-monospace {
6+
font-family: monospace, "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
7+
}

src/assets/scss/pages/_article.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../abstracts/mixin" as mix;
2+
@use "../abstracts/typography";
23

34
.article {
45
--_l: 20%;
@@ -169,8 +170,8 @@
169170
code,
170171
kbd,
171172
samp {
173+
@extend .font-monospace;
172174
padding: 0 0.3em;
173-
font-family: monospace, "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
174175
// font-size: 0.8rem;
175176
line-height: 1.4;
176177
}

0 commit comments

Comments
 (0)