Skip to content

Commit b3e06af

Browse files
committed
Moved the collapsing styling to style.scss
1 parent a297d25 commit b3e06af

File tree

3 files changed

+21
-23
lines changed

3 files changed

+21
-23
lines changed

_sass/_darcula.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ code {
1010
color: #d8d8d8;
1111
}
1212

13-
.highlighter-rouge {
14-
background-color: #FAFAFA;
15-
color: #FF554A;
13+
.highlighter-rouge {
14+
background-color: #FAFAFA;
15+
color: #FF554A;
1616
font-size: 16px;
1717
}
1818

_sass/_highlights.scss

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,3 @@ code {
8484
.highlight .vg { color: #268BD2 } /* Name.Variable.Global */
8585
.highlight .vi { color: #268BD2 } /* Name.Variable.Instance */
8686
.highlight .il { color: #2AA198 } /* Literal.Number.Integer.Long */
87-
88-
89-
// Collapsable code blocks
90-
.collapsible-code summary {
91-
cursor: pointer;
92-
font-weight: bold;
93-
margin-bottom: 5px;
94-
background: #222;
95-
color: #fff;
96-
padding: 4px 8px;
97-
border-radius: 4px;
98-
}
99-
100-
.collapsible-code[open] summary {
101-
background: #444;
102-
}
103-
104-
.collapsible-code pre {
105-
margin-top: 0;
106-
}

assets/style.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,24 @@ Modules - reusable parts of our design
12011201
}
12021202
}
12031203

1204+
// Collapsable code blocks
1205+
.collapsible-code summary {
1206+
cursor: pointer;
1207+
font-weight: bold;
1208+
margin-bottom: 5px;
1209+
background: #222;
1210+
color: #fff;
1211+
padding: 4px 8px;
1212+
border-radius: 4px;
1213+
}
1214+
1215+
.collapsible-code[open] summary {
1216+
background: #444;
1217+
}
1218+
1219+
.collapsible-code pre {
1220+
margin-top: 0;
1221+
}
12041222

12051223
// Settled on moving the import of syntax highlighting to the bottom of the CSS
12061224
// ... Otherwise it really bloats up the top of the CSS file and makes it difficult to find the start

0 commit comments

Comments
 (0)