theme.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. // Base theme template for reveal.js
  2. /*********************************************
  3. * GLOBAL STYLES
  4. *********************************************/
  5. @import "./exposer";
  6. .reveal-viewport {
  7. @include bodyBackground();
  8. background-color: var(--r-background-color);
  9. }
  10. .reveal {
  11. font-family: var(--r-main-font);
  12. font-size: var(--r-main-font-size);
  13. font-weight: normal;
  14. color: var(--r-main-color);
  15. }
  16. .reveal ::selection {
  17. color: var(--r-selection-color);
  18. background: var(--r-selection-background-color);
  19. text-shadow: none;
  20. }
  21. .reveal ::-moz-selection {
  22. color: var(--r-selection-color);
  23. background: var(--r-selection-background-color);
  24. text-shadow: none;
  25. }
  26. .reveal .slides section,
  27. .reveal .slides section>section {
  28. line-height: 1.3;
  29. font-weight: inherit;
  30. }
  31. /*********************************************
  32. * HEADERS
  33. *********************************************/
  34. .reveal h1,
  35. .reveal h2,
  36. .reveal h3,
  37. .reveal h4,
  38. .reveal h5,
  39. .reveal h6 {
  40. margin: var(--r-heading-margin);
  41. color: var(--r-heading-color);
  42. font-family: var(--r-heading-font);
  43. font-weight: var(--r-heading-font-weight);
  44. line-height: var(--r-heading-line-height);
  45. letter-spacing: var(--r-heading-letter-spacing);
  46. text-transform: var(--r-heading-text-transform);
  47. text-shadow: var(--r-heading-text-shadow);
  48. word-wrap: break-word;
  49. }
  50. .reveal h1 {font-size: var(--r-heading1-size); }
  51. .reveal h2 {font-size: var(--r-heading2-size); }
  52. .reveal h3 {font-size: var(--r-heading3-size); }
  53. .reveal h4 {font-size: var(--r-heading4-size); }
  54. .reveal h1 {
  55. text-shadow: var(--r-heading1-text-shadow);
  56. }
  57. /*********************************************
  58. * OTHER
  59. *********************************************/
  60. .reveal p {
  61. margin: var(--r-block-margin) 0;
  62. line-height: 1.3;
  63. }
  64. /* Remove trailing margins after titles */
  65. .reveal h1:last-child,
  66. .reveal h2:last-child,
  67. .reveal h3:last-child,
  68. .reveal h4:last-child,
  69. .reveal h5:last-child,
  70. .reveal h6:last-child {
  71. margin-bottom: 0;
  72. }
  73. /* Ensure certain elements are never larger than the slide itself */
  74. .reveal img,
  75. .reveal video,
  76. .reveal iframe {
  77. max-width: 95%;
  78. max-height: 95%;
  79. }
  80. .reveal strong,
  81. .reveal b {
  82. font-weight: bold;
  83. }
  84. .reveal em {
  85. font-style: italic;
  86. }
  87. .reveal ol,
  88. .reveal dl,
  89. .reveal ul {
  90. display: inline-block;
  91. text-align: left;
  92. margin: 0 0 0 1em;
  93. }
  94. .reveal ol {
  95. list-style-type: decimal;
  96. }
  97. .reveal ul {
  98. list-style-type: disc;
  99. }
  100. .reveal ul ul {
  101. list-style-type: square;
  102. }
  103. .reveal ul ul ul {
  104. list-style-type: circle;
  105. }
  106. .reveal ul ul,
  107. .reveal ul ol,
  108. .reveal ol ol,
  109. .reveal ol ul {
  110. display: block;
  111. margin-left: 40px;
  112. }
  113. .reveal dt {
  114. font-weight: bold;
  115. }
  116. .reveal dd {
  117. margin-left: 40px;
  118. }
  119. .reveal blockquote {
  120. display: block;
  121. position: relative;
  122. width: 70%;
  123. margin: var(--r-block-margin) auto;
  124. padding: 5px;
  125. font-style: italic;
  126. background: rgba(255, 255, 255, 0.05);
  127. box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
  128. }
  129. .reveal blockquote p:first-child,
  130. .reveal blockquote p:last-child {
  131. display: inline-block;
  132. }
  133. .reveal q {
  134. font-style: italic;
  135. }
  136. .reveal pre {
  137. display: block;
  138. position: relative;
  139. width: 90%;
  140. margin: var(--r-block-margin) auto;
  141. text-align: left;
  142. font-size: 0.55em;
  143. font-family: var(--r-code-font);
  144. line-height: 1.2em;
  145. word-wrap: break-word;
  146. box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  147. }
  148. .reveal code {
  149. font-family: var(--r-code-font);
  150. text-transform: none;
  151. tab-size: 2;
  152. }
  153. .reveal pre code {
  154. display: block;
  155. padding: 5px;
  156. overflow: auto;
  157. max-height: 400px;
  158. word-wrap: normal;
  159. }
  160. .reveal .code-wrapper {
  161. white-space: normal;
  162. }
  163. .reveal .code-wrapper code {
  164. white-space: pre;
  165. }
  166. .reveal table {
  167. margin: auto;
  168. border-collapse: collapse;
  169. border-spacing: 0;
  170. }
  171. .reveal table th {
  172. font-weight: bold;
  173. }
  174. .reveal table th,
  175. .reveal table td {
  176. text-align: left;
  177. padding: 0.2em 0.5em 0.2em 0.5em;
  178. border-bottom: 1px solid;
  179. }
  180. .reveal table th[align="center"],
  181. .reveal table td[align="center"] {
  182. text-align: center;
  183. }
  184. .reveal table th[align="right"],
  185. .reveal table td[align="right"] {
  186. text-align: right;
  187. }
  188. .reveal table tbody tr:last-child th,
  189. .reveal table tbody tr:last-child td {
  190. border-bottom: none;
  191. }
  192. .reveal sup {
  193. vertical-align: super;
  194. font-size: smaller;
  195. }
  196. .reveal sub {
  197. vertical-align: sub;
  198. font-size: smaller;
  199. }
  200. .reveal small {
  201. display: inline-block;
  202. font-size: 0.6em;
  203. line-height: 1.2em;
  204. vertical-align: top;
  205. }
  206. .reveal small * {
  207. vertical-align: top;
  208. }
  209. .reveal img {
  210. margin: var(--r-block-margin) 0;
  211. }
  212. /*********************************************
  213. * LINKS
  214. *********************************************/
  215. .reveal a {
  216. color: var(--r-link-color);
  217. text-decoration: none;
  218. transition: color .15s ease;
  219. }
  220. .reveal a:hover {
  221. color: var(--r-link-color-hover);
  222. text-shadow: none;
  223. border: none;
  224. }
  225. .reveal .roll span:after {
  226. color: #fff;
  227. // background: darken( var(--r-link-color), 15% );
  228. background: var(--r-link-color-dark);
  229. }
  230. /*********************************************
  231. * Frame helper
  232. *********************************************/
  233. .reveal .r-frame {
  234. border: 4px solid var(--r-main-color);
  235. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  236. }
  237. .reveal a .r-frame {
  238. transition: all .15s linear;
  239. }
  240. .reveal a:hover .r-frame {
  241. border-color: var(--r-link-color);
  242. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  243. }
  244. /*********************************************
  245. * NAVIGATION CONTROLS
  246. *********************************************/
  247. .reveal .controls {
  248. color: var(--r-link-color);
  249. }
  250. /*********************************************
  251. * PROGRESS BAR
  252. *********************************************/
  253. .reveal .progress {
  254. background: rgba(0,0,0,0.2);
  255. color: var(--r-link-color);
  256. }
  257. /*********************************************
  258. * PRINT BACKGROUND
  259. *********************************************/
  260. @media print {
  261. .backgrounds {
  262. background-color: var(--r-background-color);
  263. }
  264. }