theme.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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. text-transform: none;
  141. }
  142. .reveal pre code {
  143. display: block;
  144. padding: 5px;
  145. overflow: auto;
  146. max-height: 400px;
  147. word-wrap: normal;
  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 tbody tr:last-child th,
  172. .reveal table tbody tr:last-child td {
  173. border-bottom: none;
  174. }
  175. .reveal sup {
  176. vertical-align: super;
  177. }
  178. .reveal sub {
  179. vertical-align: sub;
  180. }
  181. .reveal small {
  182. display: inline-block;
  183. font-size: 0.6em;
  184. line-height: 1.2em;
  185. vertical-align: top;
  186. }
  187. .reveal small * {
  188. vertical-align: top;
  189. }
  190. /*********************************************
  191. * LINKS
  192. *********************************************/
  193. .reveal a {
  194. color: $linkColor;
  195. text-decoration: none;
  196. -webkit-transition: color .15s ease;
  197. -moz-transition: color .15s ease;
  198. transition: color .15s ease;
  199. }
  200. .reveal a:hover {
  201. color: $linkColorHover;
  202. text-shadow: none;
  203. border: none;
  204. }
  205. .reveal .roll span:after {
  206. color: #fff;
  207. background: darken( $linkColor, 15% );
  208. }
  209. /*********************************************
  210. * IMAGES
  211. *********************************************/
  212. .reveal section img {
  213. margin: 15px 0px;
  214. background: rgba(255,255,255,0.12);
  215. border: 4px solid $mainColor;
  216. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  217. }
  218. .reveal section img.plain {
  219. border: 0;
  220. box-shadow: none;
  221. }
  222. .reveal a img {
  223. -webkit-transition: all .15s linear;
  224. -moz-transition: all .15s linear;
  225. transition: all .15s linear;
  226. }
  227. .reveal a:hover img {
  228. background: rgba(255,255,255,0.2);
  229. border-color: $linkColor;
  230. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  231. }
  232. /*********************************************
  233. * NAVIGATION CONTROLS
  234. *********************************************/
  235. .reveal .controls {
  236. color: $linkColor;
  237. }
  238. /*********************************************
  239. * PROGRESS BAR
  240. *********************************************/
  241. .reveal .progress {
  242. background: rgba(0,0,0,0.2);
  243. color: $linkColor;
  244. }
  245. .reveal .progress span {
  246. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  247. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  248. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  249. }