Skip to content

Commit 97d6260

Browse files
committed
styles: Extract --font-monospace CSS variable
1 parent a92c743 commit 97d6260

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
--footer-bg-color: var(--green800);
1212

1313
--font-family: "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;
@@ -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)