diff --git a/css/dist/reveal.css b/css/dist/pretext-reveal.css similarity index 89% rename from css/dist/reveal.css rename to css/dist/pretext-reveal.css index 16e1d787f0..ff434df4d2 100644 --- a/css/dist/reveal.css +++ b/css/dist/pretext-reveal.css @@ -34,15 +34,13 @@ ul.circle { ul { display: block !important; } -dfn { - font-weight: bold; -} .cols1 li, .cols2 li, .cols3 li, .cols4 li, .cols5 li, .cols6 li { + float: left; padding-right: 2em; } .definition-like, @@ -51,7 +49,7 @@ dfn { .project-like { border-width: 0.5px; border-style: solid; - border-radius: 2px 10px; + border-radius: 2px 10px 2px; padding: 1%; margin-bottom: var(--r-block-margin); } @@ -72,18 +70,24 @@ dfn { border-radius: 2px 10px; padding: 4px; } -.ptx-content :is(.image-box, .audio-box, .video-box, .asymptote-box) { +.image-box, +.audio-box, +.video-box, +.asymptote-box { position: relative; } -.ptx-content iframe.asymptote, -.ptx-content .video-box .video, -.ptx-content .video-box .video-poster { +iframe.asymptote, +.video-box .video, +.video-box .video-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } +div[style*="display:table-cell"] img { + width: 100%; +} .code-inline { background: color-mix(in srgb, var(--r-background-color) 75%, var(--r-link-color)); padding: 0 3px; @@ -96,20 +100,6 @@ dfn { color: black; border: 0.5px solid var(--r-main-color); } -.reveal pre { - box-shadow: none; - line-height: 1; - font-size: inherit; - width: auto; - margin: inherit; -} -.reveal pre code { - display: block; - padding: 0; - overflow: unset; - max-height: unset; - word-wrap: normal; -} .program { background: color-mix(in srgb, var(--r-background-color) 75%, var(--r-link-color)); max-height: 450px; @@ -125,5 +115,22 @@ pre[class*=language-] { padding: 0; line-height: 1.2; } +.reveal pre { + box-shadow: none; + line-height: 1; + font-size: inherit; + width: auto; + margin: inherit; +} +.reveal pre code { + display: block; + padding: 0; + overflow: unset; + max-height: unset; + word-wrap: normal; +} +dfn { + font-weight: bold; +} /*! Theme: reveal */ -/*# sourceMappingURL=reveal.css.map */ +/*# sourceMappingURL=pretext-reveal.css.map */ diff --git a/css/targets/revealjs/reveal.scss b/css/targets/revealjs/reveal.scss index 3513955371..d20bf68c79 100644 --- a/css/targets/revealjs/reveal.scss +++ b/css/targets/revealjs/reveal.scss @@ -1,23 +1,27 @@ /*! Theme: reveal */ + +// Tip: to build just this file directly to a folder for testing, do something like: +// npm run build -- -w -t pretext-reveal -o ../../examples/sample-slideshow/out/_static/pretext/css + @use "components/elements/list-styles"; +//---- List Styles ---- ul { display: block !important; } -dfn { - font-weight: bold; -} - .cols1 li, .cols2 li, .cols3 li, .cols4 li, .cols5 li, .cols6 li { + float: left; padding-right: 2em; } +//---- Container Styles ---- + /* Callout boxes */ // Note: the box around a "theorem" does not contain // the associated "proof" because the HTML does not @@ -28,7 +32,7 @@ dfn { .project-like { border-width: 0.5px; border-style: solid; - border-radius: 2px 10px; + border-radius: 2px 10px 2px; padding: 1%; margin-bottom: var(--r-block-margin); } @@ -49,20 +53,23 @@ dfn { background: color-mix(in srgb, var(--r-background-color) 75%, #608000); } -/* Image-like */ +//---- Media Styles ---- .reveal img { border: 0.5px !important; border-radius: 2px 10px; padding: 4px; } -.ptx-content :is(.image-box, .audio-box, .video-box, .asymptote-box) { +.image-box, +.audio-box, +.video-box, +.asymptote-box { position: relative; } -.ptx-content iframe.asymptote, -.ptx-content .video-box .video, -.ptx-content .video-box .video-poster { +iframe.asymptote, +.video-box .video, +.video-box .video-poster { position: absolute; top: 0; left: 0; @@ -70,7 +77,13 @@ dfn { height: 100%; } -/* Code-like blocks */ +// make small images full-width in #sidebyside +// could improve with a .sidebyside class +div[style*="display:table-cell"] img { + width: 100%; +} + +//---- Codelike Styles ---- .code-inline { background: color-mix(in srgb, var(--r-background-color) 75%, var(--r-link-color)); padding: 0 3px; @@ -85,22 +98,6 @@ dfn { border: 0.5px solid var(--r-main-color); } -.reveal pre { - box-shadow: none; - line-height: 1; - font-size: inherit; - width: auto; - margin: inherit; -} - -.reveal pre code { - display: block; - padding: 0; - overflow: unset; - max-height: unset; - word-wrap: normal; -} - .program { background: color-mix(in srgb, var(--r-background-color) 75%, var(--r-link-color)); max-height: 450px; @@ -117,4 +114,26 @@ code[class*="language-"], pre[class*="language-"] { padding: 0; line-height: 1.2; +} + +// Undo some reveal.js defaults +.reveal pre { + box-shadow: none; + line-height: 1; + font-size: inherit; + width: auto; + margin: inherit; +} + +.reveal pre code { + display: block; + padding: 0; + overflow: unset; + max-height: unset; + word-wrap: normal; +} + +//---- Other Styles ---- +dfn { + font-weight: bold; } \ No newline at end of file diff --git a/doc/guide/publisher/publication-file.xml b/doc/guide/publisher/publication-file.xml index d91524d7bb..6d4c62d9fe 100644 --- a/doc/guide/publisher/publication-file.xml +++ b/doc/guide/publisher/publication-file.xml @@ -857,8 +857,9 @@

The /publication/revealjs/appearance - element can have the following attribute: