theme.scss 6.3 KB

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