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