@@ -119,10 +119,6 @@ slides {
119119 height : 56.25vw ;
120120 max-height : 100vh ;
121121 max-width : 177.78vh ;
122- /*width: 1200px;
123- height: 675px;
124- left: 50%;
125- top: 50%;*/
126122 bottom : auto;
127123 right : auto;
128124 transform : translate (-50% , -50% );
@@ -543,7 +539,9 @@ pre {
543539 -webkit-box-sizing : border-box;
544540 box-sizing : border-box;
545541 overflow : auto;
542+ white-space : pre-wrap;
546543}
544+
547545/* line 351, ../scss/default.scss */
548546pre [data-lang ]: after {
549547 content : attr (data-lang);
@@ -1394,7 +1392,9 @@ aside.gdbar img {
13941392 display : none;
13951393}
13961394
1397- /* James rst markup */
1395+ /****** Semmle-specific styles *********/
1396+
1397+ /* rst markup */
13981398strong {
13991399 font-weight : bold;
14001400}
@@ -1408,73 +1408,43 @@ sup {
14081408 font-size : 0.5em ;
14091409}
14101410
1411-
1412- /* James slide backgrounds */
1413-
1414- .title-slide {
1415- background-image : url ("../../title-slide.svg" );
1416- background-size : cover;
1417- }
1418-
1411+ /*custom slide styles */
1412+ /* general */
14191413slide {
14201414 background-image : url ("../../normal-slide.svg" );
14211415 background-size : cover;
14221416 width : 100% ;
14231417 height : 100% ;
14241418 overflow : auto;
14251419 transform : scale (1 );
1426- }
1427-
1428- .end-slide {
1429- background-image : url ("../../end-slide.svg" );
1430- background-size : 100% 100% ;
1431- background-color : # 5c31ff ;
1432- }
1420+ }
14331421
1434- .background2 {
1435- background-image : url ("../../alternative-slide.svg" );
1436- background-size : cover;
1422+ .highlight {
1423+ width : auto;
1424+ background : transparent !important ;
1425+ margin-bottom : 2% ;
14371426}
14381427
1439- . setup , . agenda {
1440- background-image : url ( "../../setup-slide.svg" ) ;
1441- background -size: cover ;
1428+ p {
1429+ color : black ;
1430+ font -size: 1 em ;
14421431}
14431432
1444- . setup article , . agenda article {
1433+ article {
14451434 margin-top : 3% ;
1446- border-left : 1px solid # 5c31ff ;
1447- position : absolute;
1448- top : 0 ;
1449- bottom : 0 ;
1450- right : 0 ;
1451- left : 0 ;
1452- margin : auto;
1453- width : 50% ;
1454- height : fit-content;
1455- padding : 2% ;
14561435}
14571436
1458- .setup li {
1459- line-height : 1.5em ;
1460- margin-top : 1.5em ;
1461- }
1462-
1463- .agenda li {
1464- margin : 0 ;
1437+ hgroup .pre {
1438+ color : # 5c31ff ;
14651439}
14661440
1467- .setup ul , .agenda ul {
1468- padding : 0 ;
1469- }
1441+ /* title slide (deck title, subtitle, semmle logo)*/
14701442
1471- .setup hgroup , . agenda hgroup {
1472- position : relative ;
1473- margin : 7 % 0 0 17 % ;
1443+ .title-slide {
1444+ background-image : url ( "../../title-slide.svg" ) ;
1445+ background-size : cover ;
14741446}
14751447
1476- /*custom slide styles */
1477-
14781448.semmle-logo sup {
14791449 vertical-align : super;
14801450 font-size : 0.3em ;
@@ -1495,6 +1465,17 @@ slide {
14951465 bottom : 30% ;
14961466}
14971467
1468+ .title-slide hgroup .pre {
1469+ color : white;
1470+ }
1471+
1472+ /* purple background slides (new section)*/
1473+
1474+ .background2 {
1475+ background-image : url ("../../alternative-slide.svg" );
1476+ background-size : cover;
1477+ }
1478+
14981479.background2 h2 {
14991480 color : white;
15001481}
@@ -1504,15 +1485,54 @@ slide {
15041485 font-size : 1.5em ;
15051486}
15061487
1507- hgroup .pre {
1508- color : # 5c31ff ;
1488+ /* setup and agenda slides */
1489+
1490+ .setup , .agenda {
1491+ background-image : url ("../../setup-slide.svg" );
1492+ background-size : cover;
15091493}
15101494
1511- .title-slide hgroup .pre {
1512- color : white;
1495+ .setup article , .agenda article {
1496+ margin-top : 3% ;
1497+ border-left : 1px solid # 5c31ff ;
1498+ position : absolute;
1499+ top : 0 ;
1500+ bottom : 0 ;
1501+ right : 0 ;
1502+ left : 0 ;
1503+ margin : auto;
1504+ width : 50% ;
1505+ height : fit-content;
1506+ padding : 2% ;
15131507}
15141508
1515- /* James column experiments */
1509+ .setup li {
1510+ line-height : 1.5em ;
1511+ margin-top : 1.5em ;
1512+ }
1513+
1514+ .agenda li {
1515+ margin : 0 ;
1516+ }
1517+
1518+ .setup ul , .agenda ul {
1519+ padding : 0 ;
1520+ }
1521+
1522+ .setup hgroup , .agenda hgroup {
1523+ position : relative;
1524+ margin : 7% 0 0 17% ;
1525+ }
1526+
1527+ /* end slide */
1528+
1529+ .end-slide {
1530+ background-image : url ("../../end-slide.svg" );
1531+ background-size : 100% 100% ;
1532+ background-color : # 5c31ff ;
1533+ }
1534+
1535+ /* styles for side by side columns */
15161536
15171537.column-left {
15181538 float : left;
@@ -1539,18 +1559,7 @@ hgroup .pre {
15391559 max-width : 100% ;
15401560}
15411561
1542- .highlight {
1543- width : auto;
1544- background : transparent !important ;
1545- margin-bottom : 2% ;
1546- }
1547-
1548- p {
1549- color : black;
1550- font-size : 1em ;
1551- }
1552-
1553- /* James admonition changes */
1562+ /* admonition (speaker notes) styles */
15541563
15551564p .first .admonition-title {
15561565 display : none;
@@ -1584,12 +1593,34 @@ p.first.admonition-title {
15841593 width : inherit;
15851594}
15861595
1587- /* more custom styles */
1596+ /* images */
1597+ /* general styles to scale and centre images*/
1598+
1599+ .image-box {
1600+ display : grid;
1601+ height : 100% ;
1602+ }
1603+
1604+ img {
1605+ width : 50% ;
1606+ margin : auto;
1607+ }
1608+
1609+ /* deck-specific styles for individual images*/
1610+ /* intro to ql */
1611+ img .analysis {
1612+ width : 90% ;
1613+ }
15881614
1589- span .n , span .p {
1590- color : grey;
1615+ /* program representation*/
1616+ .ast-graph {
1617+ width : 66% ;
1618+ position : absolute;
1619+ right : -10% ;
15911620}
15921621
1622+ /* custom styles for lists*/
1623+
15931624ol {
15941625 color : black;
15951626}
@@ -1598,21 +1629,25 @@ li > ul > li {
15981629 margin-bottom : 0 ;
15991630}
16001631
1601- /* scale and centre images*/
1632+ /*
1633+ * extra styles for more appropriate for syntax highlighting
1634+ *
1635+ */
16021636
1603- .image-box {
1604- display : grid;
1605- height : 100% ;
1606- }
1637+ span .n , span .p , span .o {
1638+ color : black !important ;
1639+ }
16071640
1608- img {
1609- max-width : 50% ;
1610- margin : auto;
1611- }
1641+ .highlight { color : # 333 !important } /* default */
1642+ .highlight .s { color : # 06994a !important } /* strings */
1643+ .highlight .m { color : # 333 } /* numbers (no special highlighting) */
1644+ .highlight .c1 { color : # 007020 !important ; font-style : italic !important } /* one-line comments */
1645+ .highlight .cm { color : # 007020 !important ; font-style : italic !important } /* multiline comments */
1646+ .highlight .cp { color : # 2F1695 !important ; font-style : italic !important } /* QLDoc comments */
1647+ .highlight .k { color : # 7a65cd !important ; font-weight : bold !important } /* keywords */
1648+ .highlight .kt { color : # 7a65cd !important ; font-weight : bold !important } /* built-in type keywords */
1649+ .highlight .kr { color : # 333 !important ; font-style : italic !important } /* annotations */
16121650
1613- article {
1614- margin-top : 3% ;
1615- }
16161651
16171652@media print {
16181653 /* line 978, ../scss/default.scss */
@@ -1716,59 +1751,4 @@ article {
17161751 slides {
17171752 bottom : unset;
17181753 }
1719-
1720- }
1721- /*
1722- @media screen and (max-width: 450px) {
1723- slides {
1724- font-size: 1.2vmin;
1725- }
1726- }
1727-
1728- @media screen and (min-width: 451px) and (max-width: 767px) {
1729- slides {
1730- font-size: 2.5vmin;
1731- }
1732- }
1733-
1734- @media screen and (min-width: 451px) and (orientation : portrait) {
1735- slides {
1736- font-size: 1.2vmin;
1737- }
1738- }
1739-
1740- @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
1741- slides {
1742- font-size: 1.2vmin;
1743- }
1744- }
1745-
1746- @media screen and (min-width: 768px) and (max-width: 812px) and (orientation: landscape) {
1747- slides {
1748- font-size: 2.2vmin;
1749- }
1750- }
1751-
1752-
1753- @media screen and (min-width: 813px) and (max-width: 1024px) and (orientation: landscape) {
1754- slides {
1755- font-size: 1.8vmin;
1756- }
1757- }
1758-
1759- @media screen and (min-width: 1025px) and (orientation: landscape){
1760- slides {
1761- font-size: 2vmin;
1762- }
1763- }
1764-
1765- @media screen and (min-width: 1025px) and (orientation: portrait){
1766- slides {
1767- font-size: 1.2vmin;
1768- }
1769- }
1770- */
1771- .wrapper {
1772- height : 675px ;
1773- resize : both;
17741754}
0 commit comments