Skip to content

Commit 0b8c8cf

Browse files
committed
Move styles to code file
1 parent 52ca08d commit 0b8c8cf

File tree

2 files changed

+38
-39
lines changed

2 files changed

+38
-39
lines changed

_sass/_code.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@use "solarized/colours";
2+
@use "variables";
3+
4+
// Inline code tags
5+
code {
6+
padding: 0.25em 0.5em;
7+
font-size: 85%;
8+
color: colours.$magenta;
9+
background-color: variables.$lighter-gray;
10+
}
11+
12+
p code {
13+
white-space: nowrap;
14+
}
15+
16+
// code blocks
17+
.highlight {
18+
margin-inline-end: 0;
19+
margin-inline-start: 0;
20+
21+
pre,
22+
pre code {
23+
font-size: .9em;
24+
line-height: 1.25em;
25+
}
26+
27+
pre code {
28+
background-color: transparent;
29+
padding: 0;
30+
}
31+
32+
.p {
33+
font-size: inherit;
34+
}
35+
}

assets/css/styles.scss

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,5 @@
11
---
22
---
3-
@use "sass:meta";
4-
@use "solarized/colours";
5-
@use "variables";
6-
7-
@include meta.load-css("pixyll");
8-
@include meta.load-css("solarized");
9-
10-
// Inline code tags
11-
code {
12-
padding: 0.25em 0.5em;
13-
font-size: 85%;
14-
color: colours.$magenta;
15-
background-color: variables.$lighter-gray;
16-
}
17-
18-
p code {
19-
white-space: nowrap;
20-
}
21-
22-
// code blocks
23-
.highlight {
24-
margin-inline-end: 0;
25-
margin-inline-start: 0;
26-
27-
pre,
28-
pre code {
29-
font-size: .9em;
30-
line-height: 1.25em;
31-
}
32-
33-
pre code {
34-
background-color: transparent;
35-
padding: 0;
36-
}
37-
38-
.p {
39-
font-size: inherit;
40-
}
41-
}
3+
@use "pixyll";
4+
@use "solarized";
5+
@use "code";

0 commit comments

Comments
 (0)