Skip to content

Commit 626a4e6

Browse files
committed
remove ligatures from code elements
1 parent 766b987 commit 626a4e6

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

assets/scss/components/_typography-enhanced.scss

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ h1 {
4242
font-weight: $font-bold;
4343
line-height: 1.1;
4444
margin-bottom: 1.5rem;
45-
45+
4646
@media (min-width: 768px) {
4747
font-size: $text-5xl;
4848
}
@@ -53,7 +53,7 @@ h2 {
5353
font-weight: $font-semibold;
5454
margin-top: 3rem;
5555
margin-bottom: 1.25rem;
56-
56+
5757
@media (min-width: 768px) {
5858
font-size: $text-4xl;
5959
}
@@ -64,7 +64,7 @@ h3 {
6464
font-weight: $font-semibold;
6565
margin-top: 2.5rem;
6666
margin-bottom: 1rem;
67-
67+
6868
@media (min-width: 768px) {
6969
font-size: $text-3xl;
7070
}
@@ -98,15 +98,15 @@ p {
9898
line-height: $leading-relaxed;
9999
margin-bottom: 1.25rem;
100100
color: var(--body-color);
101-
101+
102102
&.lead {
103103
font-size: $text-lg;
104104
line-height: $leading-relaxed;
105105
font-weight: $font-normal;
106106
color: var(--body-color);
107107
opacity: 0.9;
108108
}
109-
109+
110110
&.small {
111111
font-size: $text-sm;
112112
}
@@ -118,17 +118,17 @@ a {
118118
text-decoration: none;
119119
transition: color 0.2s ease;
120120
position: relative;
121-
121+
122122
&:hover {
123123
color: var(--secondary-2);
124124
text-decoration: underline;
125125
}
126-
126+
127127
&.link-underline {
128128
text-decoration: underline;
129129
text-decoration-thickness: 1px;
130130
text-underline-offset: 2px;
131-
131+
132132
&:hover {
133133
text-decoration-thickness: 2px;
134134
}
@@ -142,15 +142,15 @@ ul, ol {
142142
line-height: $leading-relaxed;
143143
margin-bottom: 1.25rem;
144144
padding-left: 1.5rem;
145-
145+
146146
li {
147147
margin-bottom: 0.5rem;
148-
148+
149149
&:last-child {
150150
margin-bottom: 0;
151151
}
152152
}
153-
153+
154154
ul, ol {
155155
margin-top: 0.5rem;
156156
margin-bottom: 0.5rem;
@@ -168,19 +168,19 @@ blockquote {
168168
border-left: 4px solid var(--primary-1);
169169
padding-left: 1.5rem;
170170
margin: 2rem 0;
171-
171+
172172
p {
173173
margin-bottom: 0;
174174
}
175-
175+
176176
cite {
177177
display: block;
178178
font-size: $text-sm;
179179
font-style: normal;
180180
font-weight: $font-medium;
181181
margin-top: 1rem;
182182
opacity: 0.8;
183-
183+
184184
&:before {
185185
content: "";
186186
}
@@ -193,13 +193,14 @@ code {
193193
font-size: 0.85em;
194194
padding: 0.2em 0.4em;
195195
background-color: var(--code-color);
196+
font-variant-ligatures: none;
196197
}
197198

198199
pre {
199200
font-family: $monoFont;
200201
font-size: $text-sm;
201202
line-height: $leading-normal;
202-
203+
203204
code {
204205
padding: 0;
205206
background-color: transparent;
@@ -217,7 +218,7 @@ table {
217218
text-transform: uppercase;
218219
letter-spacing: 0.05em;
219220
}
220-
221+
221222
td {
222223
font-family: $TextFont;
223224
font-size: $text-base;
@@ -288,14 +289,14 @@ small, .text-sm {
288289
body {
289290
font-size: $text-base;
290291
}
291-
292+
292293
p {
293294
font-size: $text-base;
294295
line-height: $leading-normal;
295296
}
296-
297+
297298
blockquote {
298299
font-size: $text-base;
299300
padding-left: 1rem;
300301
}
301-
}
302+
}

0 commit comments

Comments
 (0)