Skip to content

Commit 0e00b96

Browse files
author
jordanmccullough
committed
Add "objectives" checklist style support for deck summary
1 parent 630fe35 commit 0e00b96

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

_stylesheets/curriculum.scss

Lines changed: 41 additions & 0 deletions
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;
@@ -218,6 +220,45 @@ table{
218220
color: $gray;
219221
}
220222

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+
221262
// Custom Octicon styling
222263
.mega-octicon{
223264
font-size: 110px;

0 commit comments

Comments
 (0)