Skip to content

Commit f5bc4d9

Browse files
author
jordanmccullough
committed
Add pre-code margin fix
1 parent 5980821 commit f5bc4d9

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

_stylesheets/curriculum-beta.scss

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,20 @@ html, body{
2828
height: 100%;
2929
width: 100%;
3030

31-
h1,h2,h3,h4,h5,h6,p,ul,pre,svg{
31+
h1,h2,h3,h4,h5,h6,p,ul,svg{
3232
font-weight: normal;
33-
padding: 0 30%;
33+
padding: 0 15%;
34+
}
35+
36+
pre{
37+
margin: 0 15%;
38+
39+
&:before {
40+
content: "\f0c8";
41+
font: normal normal 22px octicons;
42+
float: right;
43+
opacity: .4;
44+
}
3445
}
3546

3647
h3{
@@ -114,35 +125,6 @@ html, body{
114125
font: normal normal 20px octicons;
115126
}
116127
}
117-
//
118-
// pre{
119-
// margin: 0 30%;
120-
// }
121-
122-
// table, pre{
123-
// background: $mono-light;
124-
// padding: 20px;
125-
// display: block;
126-
// }
127-
128-
pre{
129-
padding: 10px auto;
130-
margin: 1em auto 2em;
131-
width: auto;
132-
133-
/* To ensure scrolling of long code lines */
134-
overflow: auto;
135-
word-wrap: normal;
136-
white-space: pre;
137-
}
138-
139-
pre:before {
140-
content: "\f0c8";
141-
font: normal normal 22px octicons;
142-
float: right;
143-
opacity: .4;
144-
}
145-
146128
}
147129

148130
#toc-wrapper{

0 commit comments

Comments
 (0)