theme.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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 blockquote {
  110. display: block;
  111. position: relative;
  112. width: 70%;
  113. margin: $blockMargin auto;
  114. padding: 5px;
  115. font-style: italic;
  116. background: rgba(255, 255, 255, 0.05);
  117. box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
  118. }
  119. .reveal blockquote p:first-child,
  120. .reveal blockquote p:last-child {
  121. display: inline-block;
  122. }
  123. .reveal q {
  124. font-style: italic;
  125. }
  126. .reveal pre {
  127. display: block;
  128. position: relative;
  129. width: 90%;
  130. margin: $blockMargin auto;
  131. text-align: left;
  132. font-size: 0.55em;
  133. font-family: monospace;
  134. line-height: 1.2em;
  135. word-wrap: break-word;
  136. box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
  137. }
  138. .reveal code {
  139. font-family: monospace;
  140. }
  141. .reveal pre code {
  142. display: block;
  143. padding: 5px;
  144. overflow: auto;
  145. max-height: 400px;
  146. word-wrap: normal;
  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 th[align="center"],
  163. .reveal table td[align="center"] {
  164. text-align: center;
  165. }
  166. .reveal table th[align="right"],
  167. .reveal table td[align="right"] {
  168. text-align: right;
  169. }
  170. .reveal table tbody tr:last-child th,
  171. .reveal table tbody 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 section img.plain {
  218. border: 0;
  219. box-shadow: none;
  220. }
  221. .reveal a img {
  222. -webkit-transition: all .15s linear;
  223. -moz-transition: all .15s linear;
  224. transition: all .15s linear;
  225. }
  226. .reveal a:hover img {
  227. background: rgba(255,255,255,0.2);
  228. border-color: $linkColor;
  229. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  230. }
  231. /*********************************************
  232. * NAVIGATION CONTROLS
  233. *********************************************/
  234. .reveal .controls {
  235. color: $linkColor;
  236. }
  237. /*********************************************
  238. * PROGRESS BAR
  239. *********************************************/
  240. .reveal .progress {
  241. background: rgba(0,0,0,0.2);
  242. color: $linkColor;
  243. }
  244. .reveal .progress span {
  245. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  246. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  247. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  248. }