Skip to content

Commit c88eca2

Browse files
committed
style: Fix wrong padding in code blocks
1 parent 6f28213 commit c88eca2

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

style.css

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
:root {
3131
--primary-color: #0461be;
32-
--rounded-corner: 12px;
32+
--rounded-corner: 9px;
3333
--fg-color: rgb(0 0 6 / 80%);
3434
--bg-color: #f5f5f6;
3535
--term-fg: rgb(0 0 6 / 80%);
@@ -123,12 +123,6 @@ h1 {
123123
margin: 3rem 0 1rem;
124124
}
125125

126-
@media screen and (min-width: 650px) {
127-
h1 {
128-
font-size: 1.6rem;
129-
}
130-
}
131-
132126
h2 {
133127
font-size: 1.2rem;
134128
}
@@ -172,15 +166,8 @@ picture.full img {
172166

173167
/* Code */
174168

175-
code {
176-
font-size: 80%;
177-
background-color: var(--term-bg);
178-
border-radius: 6px;
179-
border: 6px solid var(--term-bg);
180-
padding: 0 2px;
181-
}
182-
183169
.highlighter-rouge {
170+
font-size: 80%;
184171
line-height: normal;
185172
padding: 2px 1rem;
186173
border-radius: var(--rounded-corner);
@@ -195,11 +182,11 @@ code.highlighter-rouge {
195182
background-color: var(--term-bg);
196183
}
197184

198-
@media only screen and (max-device-width: 480px) {
199-
/* Mobile */
200-
.highlighter-rouge {
201-
max-width: 80vw;
202-
}
185+
.highlight table td {
186+
padding: 5px;
187+
}
188+
.highlight table pre {
189+
margin: 0;
203190
}
204191

205192
/* Singletons */
@@ -294,11 +281,23 @@ ul.news .title {
294281
flex-grow: 1;
295282
}
296283

284+
@media only screen and (max-device-width: 480px) {
285+
/* Mobile */
286+
.highlighter-rouge {
287+
max-width: 80vw;
288+
}
289+
}
290+
297291
@media screen and (min-width: 650px) {
292+
h1 {
293+
font-size: 1.6rem;
294+
}
295+
298296
ul.news li {
299297
padding: 0;
300298
text-align: left;
301299
}
300+
302301
ul.news li > a {
303302
flex-direction: row;
304303
padding: 1rem 3rem;

0 commit comments

Comments
 (0)