Skip to content

Commit 470240a

Browse files
author
Jordan McCullough
committed
Merge pull request #303 from github/slide-checklist-style-update
Slide objective list styling
2 parents e88945d + c78d241 commit 470240a

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

_stylesheets/curriculum.scss

+54
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ table{
3030
}
3131
}
3232

33+
34+
3335
// Custom columns for hide/show of TOC
3436
.col-content, .col-toc{
3537
transition: padding 300ms, opacity 200ms;
@@ -208,6 +210,7 @@ table{
208210
.slide{
209211
h2{
210212
font-size: 52px;
213+
margin-bottom: 30px;
211214
}
212215
h3,h4{
213216
font-size: 42px;
@@ -217,6 +220,45 @@ table{
217220
color: $gray;
218221
}
219222

223+
.objectives{
224+
-webkit-column-count: 2;
225+
-moz-column-count: 2;
226+
column-count: 2;
227+
width: 85%;
228+
margin: 0 auto;
229+
text-align: left;
230+
}
231+
232+
input[type="checkbox"]{
233+
display:none;
234+
235+
&+label{
236+
width: 100%;
237+
line-height: 40px;
238+
239+
&:before{
240+
content: " ";
241+
float: left;
242+
font: normal normal 20px octicons;
243+
text-align: center;
244+
height: 20px;
245+
width: 20px;
246+
margin: 10px;
247+
border-radius: 50%;
248+
box-shadow: 0 0 0 2px $gray-lighter;
249+
}
250+
}
251+
252+
&:checked + label{
253+
text-decoration: line-through;
254+
255+
&:before{
256+
content: "\f03a";
257+
color: $brand-primary;
258+
}
259+
}
260+
}
261+
220262
// Custom Octicon styling
221263
.mega-octicon{
222264
font-size: 110px;
@@ -263,6 +305,18 @@ table{
263305
width: 100%;
264306
display: table;
265307

308+
a[href^="http://"],
309+
a[href^="https://"]{
310+
&:after{
311+
content: "";
312+
margin-left: 0;
313+
}
314+
}
315+
316+
p{
317+
padding: 0 20px;
318+
}
319+
266320
pre{
267321
width: 80%;
268322
padding: 2em;

0 commit comments

Comments
 (0)