theme.scss 5.6 KB

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