theme.scss 6.0 KB

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