1
0

theme.scss 5.7 KB

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