theme.scss 5.9 KB

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