Skip to content

Commit cc6dcff

Browse files
committed
update monospace stack
1 parent 626a4e6 commit cc6dcff

2 files changed

Lines changed: 25 additions & 26 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
$TextFont: "Gellix", "Helvetica Neue", Arial, sans-serif;
22
$titleFont: "Gellix", "Helvetica Neue", Arial, sans-serif;
3-
$monoFont: "Space Mono", monospace;
3+
$monoFont: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

assets/scss/components/_typography-improvements.scss

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
--docs-font-size: 16px;
88
--docs-small-font: 14px;
99
--docs-large-font: 18px;
10-
10+
1111
// Improve line height for documentation
1212
--docs-line-height: 1.7;
1313
--docs-heading-line-height: 1.3;
14-
14+
1515
// Enhanced spacing
1616
--docs-paragraph-margin: 1.35rem;
1717
--docs-list-spacing: 0.45rem;
@@ -33,35 +33,34 @@ body {
3333
margin-bottom: var(--docs-paragraph-margin);
3434
font-size: var(--docs-font-size);
3535
line-height: var(--docs-line-height);
36-
36+
3737
}
38-
38+
3939
// List improvements
4040
ul, ol {
4141
margin-bottom: var(--docs-paragraph-margin);
42-
42+
4343
li {
4444
margin-bottom: var(--docs-list-spacing);
4545
line-height: var(--docs-line-height);
4646
font-size: var(--docs-font-size);
47-
47+
4848
// Nested lists
4949
ul, ol {
5050
margin-top: var(--docs-list-spacing);
5151
margin-bottom: var(--docs-list-spacing);
5252
}
5353
}
5454
}
55-
55+
5656
// Code blocks readability
5757
pre {
5858
font-size: var(--docs-small-font);
5959
line-height: 1.5;
6060
border-radius: 4px;
61-
61+
6262
code {
6363
font-size: inherit;
64-
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
6564
}
6665
}
6766
}
@@ -73,7 +72,7 @@ h1, h2, h3, h4, h5, h6 {
7372
letter-spacing: -0.02em;
7473
margin-top: 2rem;
7574
margin-bottom: 1rem;
76-
75+
7776
// Better heading hierarchy
7877
+ p {
7978
margin-top: 0.75rem;
@@ -84,7 +83,7 @@ h1 {
8483
font-size: 2rem;
8584
font-weight: 700;
8685
margin-top: 0;
87-
86+
8887
@media (max-width: 768px) {
8988
font-size: 1.875rem;
9089
}
@@ -94,7 +93,7 @@ h2 {
9493
font-size: 1.625rem;
9594
margin-top: 2.5rem;
9695
padding-top: 0.5rem;
97-
96+
9897
@media (max-width: 768px) {
9998
font-size: 1.5rem;
10099
}
@@ -103,15 +102,15 @@ h2 {
103102
h3 {
104103
font-size: 1.5rem;
105104
margin-top: 2rem;
106-
105+
107106
@media (max-width: 768px) {
108107
font-size: 1.25rem;
109108
}
110109
}
111110

112111
h4 {
113112
font-size: 1.25rem;
114-
113+
115114
@media (max-width: 768px) {
116115
font-size: 1.125rem;
117116
}
@@ -121,12 +120,12 @@ h4 {
121120
table {
122121
font-size: var(--docs-small-font);
123122
line-height: 1.6;
124-
123+
125124
th {
126125
font-weight: 600;
127126
padding: 0.75rem 1rem;
128127
}
129-
128+
130129
td {
131130
padding: 0.75rem 1rem;
132131
}
@@ -141,10 +140,10 @@ blockquote {
141140
padding-left: 1.5rem;
142141
margin: 1.5rem 0;
143142
color: var(--muted-text-color);
144-
143+
145144
p {
146145
margin-bottom: 0.75rem;
147-
146+
148147
&:last-child {
149148
margin-bottom: 0;
150149
}
@@ -157,10 +156,10 @@ blockquote {
157156
font-size: var(--docs-font-size);
158157
line-height: var(--docs-line-height);
159158
padding: 1.25rem;
160-
159+
161160
p {
162161
margin-bottom: 0.75rem;
163-
162+
164163
&:last-child {
165164
margin-bottom: 0;
166165
}
@@ -173,11 +172,11 @@ a {
173172
text-decoration-thickness: 1px;
174173
text-underline-offset: 0.15em;
175174
transition: all 0.2s ease;
176-
175+
177176
&:hover {
178177
text-decoration-thickness: 2px;
179178
}
180-
179+
181180
// Exception for navigation links
182181
&.nav-link,
183182
&.btn {
@@ -198,14 +197,14 @@ a {
198197
font-size: 12pt;
199198
line-height: 1.5;
200199
}
201-
200+
202201
h1 { font-size: 20pt; }
203202
h2 { font-size: 18pt; }
204203
h3 { font-size: 16pt; }
205204
h4 { font-size: 14pt; }
206-
205+
207206
p, li {
208207
font-size: 12pt;
209208
line-height: 1.5;
210209
}
211-
}
210+
}

0 commit comments

Comments
 (0)