theme.scss 5.8 KB

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