theme.scss 6.0 KB

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