Skip to content

Commit 8b13e32

Browse files
author
james
committed
docs: add icons on slides with notes
1 parent 1d0a96f commit 8b13e32

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

docs/language/ql-training/_static-training/slides-semmle-2/layout.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,18 @@
148148
</slides>
149149

150150

151+
<script type="text/javascript">
152+
153+
//insert info buttons on slides that have additional notes
154+
$(".admonition.note").before("<button id='extra-notes'>&#9432;</button>");
155+
$(".admonition-title").before("<button id='close-notes'>&times;</button>");
156+
$(document).ready(function() {
157+
$('button').click(function() {
158+
document.body.classList.toggle('with-notes');
159+
});
160+
});
161+
</script>
151162

152-
<!--[if IE]>
153-
<script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
154-
<script>CFInstall.check({mode: 'overlay'});</script>
155-
<![endif]-->
156163
<script type="text/javascript">
157164

158165
//assigns font-size when document is ready

docs/language/ql-training/_static-training/slides-semmle-2/static/theme/css/default.css

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,6 @@ dt {
587587
/* line 386, ../scss/default.scss */
588588
button {
589589
display: inline-block;
590-
background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSI0MCUiIHN0b3AtY29sb3I9IiNmOWY5ZjkiLz48c3RvcCBvZmZzZXQ9IjcwJSIgc3RvcC1jb2xvcj0iI2UzZTNlMyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
591-
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(40%, #f9f9f9), color-stop(70%, #e3e3e3));
592-
background: -moz-linear-gradient(#f9f9f9 40%, #e3e3e3 70%);
593-
background: -webkit-linear-gradient(#f9f9f9 40%, #e3e3e3 70%);
594-
background: linear-gradient(#f9f9f9 40%, #e3e3e3 70%);
595-
border: 1px solid #a9a9a9;
596-
-moz-border-radius: 3px;
597-
-webkit-border-radius: 3px;
598-
border-radius: 3px;
599590
padding: 5px 8px;
600591
outline: none;
601592
white-space: nowrap;
@@ -605,7 +596,6 @@ button {
605596
user-select: none;
606597
cursor: pointer;
607598
text-shadow: 1px 1px #fff;
608-
font-size: 10pt;
609599
}
610600

611601
/* line 400, ../scss/default.scss */
@@ -1599,7 +1589,7 @@ p.first.admonition-title {
15991589
font-size: 1em;
16001590
}
16011591

1602-
.admonition.note ul li {
1592+
.admonition.note ul {
16031593
width: 90%;
16041594
}
16051595

@@ -1618,7 +1608,7 @@ p.first.admonition-title {
16181608
display: block;
16191609
position: fixed;
16201610
top: 0;
1621-
right: 0;
1611+
right: -1%;
16221612
font-size: 1.2em;
16231613
}
16241614

@@ -1802,4 +1792,4 @@ li > ul > li {
18021792
width: 90%;
18031793
height: 100%;
18041794
}
1805-
}
1795+
}

0 commit comments

Comments
 (0)