theme.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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. background: #3F3F3F;
  147. color: #DCDCDC;
  148. }
  149. .reveal table {
  150. margin: auto;
  151. border-collapse: collapse;
  152. border-spacing: 0;
  153. }
  154. .reveal table th {
  155. font-weight: bold;
  156. }
  157. .reveal table th,
  158. .reveal table td {
  159. text-align: left;
  160. padding: 0.2em 0.5em 0.2em 0.5em;
  161. border-bottom: 1px solid;
  162. }
  163. .reveal table tr:last-child td {
  164. border-bottom: none;
  165. }
  166. .reveal sup {
  167. vertical-align: super;
  168. }
  169. .reveal sub {
  170. vertical-align: sub;
  171. }
  172. .reveal small {
  173. display: inline-block;
  174. font-size: 0.6em;
  175. line-height: 1.2em;
  176. vertical-align: top;
  177. }
  178. .reveal small * {
  179. vertical-align: top;
  180. }
  181. /*********************************************
  182. * LINKS
  183. *********************************************/
  184. .reveal a {
  185. color: $linkColor;
  186. text-decoration: none;
  187. -webkit-transition: color .15s ease;
  188. -moz-transition: color .15s ease;
  189. transition: color .15s ease;
  190. }
  191. .reveal a:hover {
  192. color: $linkColorHover;
  193. text-shadow: none;
  194. border: none;
  195. }
  196. .reveal .roll span:after {
  197. color: #fff;
  198. background: darken( $linkColor, 15% );
  199. }
  200. /*********************************************
  201. * IMAGES
  202. *********************************************/
  203. .reveal section img {
  204. margin: 15px 0px;
  205. background: rgba(255,255,255,0.12);
  206. border: 4px solid $mainColor;
  207. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  208. }
  209. .reveal a img {
  210. -webkit-transition: all .15s linear;
  211. -moz-transition: all .15s linear;
  212. transition: all .15s linear;
  213. }
  214. .reveal a:hover img {
  215. background: rgba(255,255,255,0.2);
  216. border-color: $linkColor;
  217. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  218. }
  219. /*********************************************
  220. * NAVIGATION CONTROLS
  221. *********************************************/
  222. .reveal .controls div.navigate-left,
  223. .reveal .controls div.navigate-left.enabled {
  224. border-right-color: $linkColor;
  225. }
  226. .reveal .controls div.navigate-right,
  227. .reveal .controls div.navigate-right.enabled {
  228. border-left-color: $linkColor;
  229. }
  230. .reveal .controls div.navigate-up,
  231. .reveal .controls div.navigate-up.enabled {
  232. border-bottom-color: $linkColor;
  233. }
  234. .reveal .controls div.navigate-down,
  235. .reveal .controls div.navigate-down.enabled {
  236. border-top-color: $linkColor;
  237. }
  238. .reveal .controls div.navigate-left.enabled:hover {
  239. border-right-color: $linkColorHover;
  240. }
  241. .reveal .controls div.navigate-right.enabled:hover {
  242. border-left-color: $linkColorHover;
  243. }
  244. .reveal .controls div.navigate-up.enabled:hover {
  245. border-bottom-color: $linkColorHover;
  246. }
  247. .reveal .controls div.navigate-down.enabled:hover {
  248. border-top-color: $linkColorHover;
  249. }
  250. /*********************************************
  251. * PROGRESS BAR
  252. *********************************************/
  253. .reveal .progress {
  254. background: rgba(0,0,0,0.2);
  255. }
  256. .reveal .progress span {
  257. background: $linkColor;
  258. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  259. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  260. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  261. }
  262. /*********************************************
  263. * SLIDE NUMBER
  264. *********************************************/
  265. .reveal .slide-number {
  266. color: $linkColor;
  267. }