Skip to content

Commit b0ff09b

Browse files
author
james
committed
docs: further css tweaks
1 parent 1d31a78 commit b0ff09b

File tree

9 files changed

+225
-15
lines changed

9 files changed

+225
-15
lines changed

docs/language/ql-training-rst/_static-training/semmle-template.svg

Lines changed: 148 additions & 1 deletion
Loading

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

Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,25 @@ slide {
14121412
.agenda-slide h1 {
14131413
padding:0;
14141414
}
1415+
1416+
/* Title slide styles */
1417+
1418+
.semmle-logo sup {
1419+
vertical-align: super;
1420+
font-size: 0.4em;
1421+
}
1422+
1423+
.title-slide .semmle-logo {
1424+
color: white;
1425+
font-size: 1.2em;
1426+
position: absolute;
1427+
top: 125px;
1428+
}
1429+
1430+
.title-slide p {
1431+
color: white;
1432+
font-size: 1.2em;
1433+
}
14151434
/* James column experiments */
14161435

14171436
.column-left {
@@ -1426,12 +1445,10 @@ slide {
14261445
padding: 0px;
14271446
width: 45%;
14281447
line-height: 1.2em;
1429-
height: 500px;
14301448
}
14311449

14321450
.column-right img, .column-left img {
1433-
max-height: -webkit-fill-available;
1434-
padding-bottom: 15%;
1451+
max-height: 60vh;
14351452
display: block;
14361453
margin-left: auto;
14371454
margin-right: auto;
@@ -1479,14 +1496,18 @@ p.first.admonition-title {
14791496
margin-bottom: 10px;
14801497
}
14811498

1482-
.admonition.note .highlight-ql.notranslate {
1499+
.admonition.note .notranslate {
14831500
width: 100%;
14841501
}
14851502

14861503
.admonition.note > p {
14871504
width: inherit;
14881505
}
14891506

1507+
.admonition.note ul {
1508+
width: inherit;
1509+
}
1510+
14901511
/* scale and centre images*/
14911512

14921513
.image-box {
@@ -1578,9 +1599,29 @@ img {
15781599
pre, code {
15791600
font-family: monospace !important;
15801601
}
1602+
1603+
/* make notes appear on slides for print view*/
1604+
1605+
.note {
1606+
position: unset;
1607+
}
1608+
1609+
/* make fonts smaller */
1610+
1611+
html {
1612+
font-size: 45%;
1613+
height: 100%;
1614+
width: 100%;
1615+
}
1616+
1617+
/* don't display slide number */
1618+
slides > slide:not(.nobackground):after {
1619+
display: none;
1620+
}
1621+
15811622
}
15821623

1583-
@media (max-width: 480px) {
1624+
@media screen and (max-width: 480px) {
15841625
html {
15851626
height: 100%;
15861627
overflow: auto;
@@ -1599,18 +1640,15 @@ img {
15991640
height: auto;
16001641
}
16011642

1602-
/*img {
1603-
transform: scale(0.6) translate(-20%, 0);
1604-
}*/
1605-
16061643
article {
16071644
top: 20%;
16081645
left: 10%;
16091646
right: 10%;
16101647
}
16111648
}
16121649

1613-
@media (min-width: 481px) and (max-width: 1024px) {
1650+
1651+
@media screen and (min-width: 481px) and (max-width: 1024px) {
16141652
html {
16151653
height: 100%;
16161654
overflow: auto;
@@ -1629,12 +1667,9 @@ img {
16291667
height: auto;
16301668
}
16311669

1632-
img {
1633-
transform: scale(0.75)
1634-
}
16351670
}
16361671

1637-
@media (min-width: 1025px) and (max-width: 1800px) {
1672+
@media screen and (min-width: 1025px) and (max-width: 1800px) {
16381673
html {
16391674
height: 100%;
16401675
overflow: auto;

docs/language/ql-training-rst/cpp/control-flow-cpp.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Analyzing control flow for C/C++
22
================================
33

4+
.. container:: semmle-logo
5+
6+
Semmle :sup:`TM`
7+
48
Getting started and setting up
59
==============================
610

docs/language/ql-training-rst/cpp/data-flow-cpp.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Introduction to data flow
22
=========================
33

4+
.. container:: semmle-logo
5+
6+
Semmle :sup:`TM`
7+
48
Finding string formatting vulnerabilities in C/C++
59

610
Getting started and setting up

docs/language/ql-training-rst/cpp/global-data-flow-cpp.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Introduction to global data flow
22
================================
33

4+
.. container:: semmle-logo
5+
6+
Semmle :sup:`TM`
7+
48
Getting started and setting up
59
==============================
610

docs/language/ql-training-rst/cpp/program-representation-cpp.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ QL for C/C++
33

44
Program representation
55

6+
.. container:: semmle-logo
7+
8+
Semmle :sup:`TM`
9+
610
Agenda
711
======
812

docs/language/ql-training-rst/cpp/snprintf.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Exercise: ``snprintf`` overflow
22
===============================
33

4+
.. container:: semmle-logo
5+
6+
Semmle :sup:`TM`
7+
48
Getting started and setting up
59
==============================
610

docs/language/ql-training-rst/intro-to-ql/intro-ql-cpp.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
Introduction to variant analysis for C/C++
55
==========================================
66

7+
.. container:: semmle-logo
8+
9+
Semmle :sup:`TM`
10+
711
Information
812
===========
913

docs/language/ql-training-rst/intro-to-ql/intro-ql-java.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
Introduction to variant analysis for Java
55
=========================================
66

7+
.. container:: semmle-logo
8+
9+
Semmle :sup:`TM`
10+
711
Information
812
===========
913

0 commit comments

Comments
 (0)