Skip to content

Commit 1aaa9ec

Browse files
author
Agil Mammadov
committed
style: consolidate and nest content styles in _content.scss
1 parent daf543b commit 1aaa9ec

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

_sass/_content.scss

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,29 @@ highlight {
44
color: var(--bg-color);
55
}
66

7-
div.highlighter-rouge code {
8-
display: block;
9-
overflow-x: auto;
10-
white-space: pre-wrap;
11-
}
7+
div.highlighter-rouge {
8+
code {
9+
display: block;
10+
overflow-x: auto;
11+
white-space: pre-wrap;
12+
}
1213

13-
pre.highlight {
14-
padding: var(--space-md);
14+
pre.highlight {
15+
padding: var(--space-md);
16+
}
1517
}
1618

1719
table {
1820
width: 100%;
1921
margin-bottom: var(--space-md);
20-
}
2122

22-
table,
23-
th,
24-
td {
25-
border: thin solid var(--meta-color);
26-
border-collapse: collapse;
27-
padding: var(--space-xs);
23+
&,
24+
th,
25+
td {
26+
border: thin solid var(--meta-color);
27+
border-collapse: collapse;
28+
padding: var(--space-xs);
29+
}
2830
}
2931

3032
blockquote {

0 commit comments

Comments
 (0)