diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-06-11 12:32:39 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-06-11 12:32:39 +0200 |
commit | 38301d57c547a349e2cc790996c1213720aed9d4 (patch) | |
tree | 1b659030db6a10a31e7f578cef3d2b9997529dfe /css/theme/template | |
parent | f5ac0b35d1f9886de8782dbbc573d0ef12dcd131 (diff) | |
download | perl-software-in-gnu-guix-38301d57c547a349e2cc790996c1213720aed9d4.tar perl-software-in-gnu-guix-38301d57c547a349e2cc790996c1213720aed9d4.tar.gz |
move large chunk of content styles from core css to theme css
Diffstat (limited to 'css/theme/template')
-rw-r--r-- | css/theme/template/theme.scss | 152 |
1 files changed, 151 insertions, 1 deletions
diff --git a/css/theme/template/theme.scss b/css/theme/template/theme.scss index 10b4689..f1ba266 100644 --- a/css/theme/template/theme.scss +++ b/css/theme/template/theme.scss @@ -55,7 +55,157 @@ body { .reveal p { margin-bottom: 10px; - line-height: 1.3; + line-height: 1.2em; +} + +/* Ensure certain elements are never larger than the slide itself */ +.reveal img, +.reveal video, +.reveal iframe { + max-width: 95%; + max-height: 95%; +} +.reveal strong, +.reveal b { + font-weight: bold; +} + +.reveal em { + font-style: italic; +} + +.reveal ol, +.reveal dl, +.reveal ul { + display: inline-block; + + text-align: left; + margin: 0 0 0 1em; +} + +.reveal ol { + list-style-type: decimal; +} + +.reveal ul { + list-style-type: disc; +} + +.reveal ul ul { + list-style-type: square; +} + +.reveal ul ul ul { + list-style-type: circle; +} + +.reveal ul ul, +.reveal ul ol, +.reveal ol ol, +.reveal ol ul { + display: block; + margin-left: 40px; +} + +.reveal dt { + font-weight: bold; +} + +.reveal dd { + margin-left: 40px; +} + +.reveal q, +.reveal blockquote { + quotes: none; +} + +.reveal blockquote { + display: block; + position: relative; + width: 70%; + margin: 5px auto; + padding: 5px; + + font-style: italic; + background: rgba(255, 255, 255, 0.05); + box-shadow: 0px 0px 2px rgba(0,0,0,0.2); +} + .reveal blockquote p:first-child, + .reveal blockquote p:last-child { + display: inline-block; + } + +.reveal q { + font-style: italic; +} + +.reveal pre { + display: block; + position: relative; + width: 90%; + margin: 15px auto; + + text-align: left; + font-size: 0.55em; + font-family: monospace; + line-height: 1.2em; + + word-wrap: break-word; + + box-shadow: 0px 0px 6px rgba(0,0,0,0.3); +} +.reveal code { + font-family: monospace; +} + +.reveal pre code { + display: block; + padding: 5px; + overflow: auto; + max-height: 400px; + word-wrap: normal; + background: #3F3F3F; + color: #DCDCDC; +} + +.reveal table { + margin: auto; + border-collapse: collapse; + border-spacing: 0; +} + +.reveal table th { + font-weight: bold; +} + +.reveal table th, +.reveal table td { + text-align: left; + padding: 0.2em 0.5em 0.2em 0.5em; + border-bottom: 1px solid; +} + +.reveal table tr:last-child td { + border-bottom: none; +} + +.reveal sup { + vertical-align: super; +} +.reveal sub { + vertical-align: sub; +} + +.reveal small { + display: inline-block; + font-size: 0.6em; + line-height: 1.2em; + vertical-align: top; +} + +.reveal small * { + vertical-align: top; } |