diff options
| Commit | 2aa13cd22c7732f2a441c9ce226c5c1399a5506b (patch) | |
|---|---|---|
| Author | 2023-01-23 12:35:56 +0200 | |
| Committer | 2023-01-23 12:35:56 +0200 | |
| Files | 4e4065cc79962fb7cf2fa92aeb8746fd50bd671c /src/presentation.css | |
| syndamia.com-2aa13cd22c7732f2a441c9ce226c5c1399a5506b.tar syndamia.com-2aa13cd22c7732f2a441c9ce226c5c1399a5506b.tar.gz syndamia.com-2aa13cd22c7732f2a441c9ce226c5c1399a5506b.zip | ||
| Parent | aba135ae53a338e854385896c415e8c792ca1b50 (diff) | |
[presentation] Reworked how font sizes and margins are handled and slides use font-size 30 by default
1 files changed, 13 insertions, 12 deletions
| -rw-r--r-- | src/presentation.css | 25 |
diff --git a/src/presentation.css b/src/presentation.css index a3d5819..52f5291 100644 --- a/src/presentation.css +++ b/src/presentation.css @@ -1,6 +1,6 @@ /* Stylesheet override */ -article { max-width: calc(297mm + 2em); font-size: 22px; } +article { max-width: calc(297mm + 2em); } h2, h3, h4, h5, h6 { display: block; margin-block-start: 0; @@ -22,6 +22,7 @@ h2, h3, h4, h5, h6 { height: 210mm; padding: 1em; width: 297mm; /* Size of landscape A4 paper */ + font-size: 30px; } .slide img:not(.clicked-image) { height: auto; @@ -29,7 +30,10 @@ h2, h3, h4, h5, h6 { max-width: 100%; /* width: auto; */ } - .slide > p:first-child, .slide > ul:first-child { margin-top: 0; } + .slide > *:first-child, .slide > div:only-child > *:first-child, + .slide > ul:first-child > li:first-child > *:first-child { + margin-top: 0; + } .slide .svg { max-height: 1em !important; } .clide { display: flex; flex-direction: column; } @@ -41,16 +45,6 @@ h2, h3, h4, h5, h6 { } .fright { float: right; text-align: right; } - .font35, .font30, .font27, .font25, .font20, .font18 { - line-height: 1.2em; - } - .font35 { font-size: 35px; } - .font30 { font-size: 30px; } - .font27 { font-size: 27px; } - .font25 { font-size: 25px; } - .font20 { font-size: 20px; } - .font18 { font-size: 18px; } - .layout-table { margin: 0; padding: 0; @@ -68,6 +62,13 @@ h2, h3, h4, h5, h6 { } .fixed-layout { table-layout: fixed; } + .font18 { font-size: 18px; } + .font20 { font-size: 20px; } + .font22 { font-size: 22px; } + .font25 { font-size: 25px; } + .font27 { font-size: 27px; } + .font35 { font-size: 35px; } + .lineb1 { padding: 0.5em; } .lineb2 { padding: 1.0em; } .lineb3 { padding: 1.5em; } |