Skip to content

Commit 53f72e2

Browse files
Prevent code hilighting from modifying the padding of blocks
1 parent ac9fd79 commit 53f72e2

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

doc-tool/resources/css/color-brewer.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ Ported by Fabrício Tavares de Oliveira
77
*/
88

99
.hljs {
10-
display: block;
11-
overflow-x: auto;
12-
padding: 0.5em;
13-
background: #fff;
10+
background: transparent;
1411
}
1512

1613
.hljs,
@@ -45,8 +42,6 @@ Ported by Fabrício Tavares de Oliveira
4542
color: #88f;
4643
}
4744

48-
49-
5045
.hljs-keyword,
5146
.hljs-selector-tag,
5247
.hljs-title,

doc-tool/resources/css/dottydoc.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,10 @@ pre {
182182
border: 1px solid rgba(0, 0, 0, 0.1);
183183
}
184184

185-
pre > code.language-none,
186-
pre > code.language-shell,
187-
pre > code.hljs {
185+
pre > code {
188186
display: block;
189-
padding: 10px;
187+
padding: 0.5rem;
188+
overflow-x: auto;
190189
background: transparent;
191190
}
192191

0 commit comments

Comments
 (0)