Skip to content

Commit 2d737b2

Browse files
committed
Auto merge of #3371 - Turbo87:font-family, r=pichfl
Extract font-family CSS variables This PR primarily unifies the font-family that is used for monospace display.
2 parents 0e427f0 + 7ef624d commit 2d737b2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/components/crate-header.module.css

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

5252
.hash {
5353
margin-right: 1px;
54-
font-family: monospace;
54+
font-family: var(--font-monospace);
5555
font-size: 90%;
5656
}
5757

app/components/crate-sidebar.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
align-items: center;
6767
justify-content: space-between;
6868
padding: 7px 12px;
69-
font-family: monospace;
69+
font-family: var(--font-monospace);
7070
font-size: 14px;
7171
line-height: 1.5em;
7272
color: var(--main-color);

app/styles/application.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
--header-bg-color: var(--green800);
1111
--footer-bg-color: var(--green800);
1212

13-
--font-family: "Fira Sans", sans-serif;
13+
--font-sans: "Fira Sans", sans-serif;
14+
--font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1415

1516
--main-color: #383838;
1617
--main-color-light: #858585;
@@ -38,7 +39,7 @@ html, body {
3839

3940
body {
4041
background-color: var(--header-bg-color);
41-
font-family: var(--font-family);
42+
font-family: var(--font-sans);
4243
font-size: 16px;
4344
display: flex;
4445
flex-direction: column;
@@ -65,8 +66,7 @@ pre {
6566
background: var(--main-color);
6667
color: white;
6768
padding: 20px;
68-
/* Use the modern font stack inspired by Bootstrap 4 */
69-
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
69+
font-family: var(--font-monospace);
7070
}
7171

7272
abbr[title] {

0 commit comments

Comments
 (0)