File tree 2 files changed +15
-19
lines changed
2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -160,24 +160,6 @@ pre {
160
160
overflow-x : auto ; /* add scrollbars to wide code blocks*/
161
161
}
162
162
163
- p > code ,
164
- a > code ,
165
- li > code ,
166
- figcaption > code ,
167
- td > code {
168
- padding-top : 0.1rem ;
169
- padding-bottom : 0.1rem ;
170
- font-size : 0.8em ;
171
- background : $code-background-color ;
172
- border-radius : $border-radius ;
173
-
174
- & :before ,
175
- & :after {
176
- letter-spacing : -0.2em ;
177
- content : " \00a0 " ; /* non-breaking space*/
178
- }
179
- }
180
-
181
163
/* horizontal rule */
182
164
183
165
hr {
Original file line number Diff line number Diff line change @@ -139,6 +139,20 @@ body {
139
139
}
140
140
}
141
141
142
+ :not (pre ) > code {
143
+ padding-top : 0.1rem ;
144
+ padding-bottom : 0.1rem ;
145
+ font-size : 0.8em ;
146
+ background : $code-background-color ;
147
+ border-radius : $border-radius ;
148
+
149
+ & ::before ,
150
+ & ::after {
151
+ letter-spacing : -0.2em ;
152
+ content : " \00a0 " ; /* non-breaking space*/
153
+ }
154
+ }
155
+
142
156
dt {
143
157
margin-top : 1em ;
144
158
font-family : $sans-serif ;
@@ -561,4 +575,4 @@ body {
561
575
padding-right : 0 ;
562
576
}
563
577
}
564
- }
578
+ }
You can’t perform that action at this time.
0 commit comments