theme.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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: $codeFont;
  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: $codeFont;
  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. font-size: smaller;
  178. }
  179. .reveal sub {
  180. vertical-align: sub;
  181. font-size: smaller;
  182. }
  183. .reveal small {
  184. display: inline-block;
  185. font-size: 0.6em;
  186. line-height: 1.2em;
  187. vertical-align: top;
  188. }
  189. .reveal small * {
  190. vertical-align: top;
  191. }
  192. /*********************************************
  193. * LINKS
  194. *********************************************/
  195. .reveal a {
  196. color: $linkColor;
  197. text-decoration: none;
  198. -webkit-transition: color .15s ease;
  199. -moz-transition: color .15s ease;
  200. transition: color .15s ease;
  201. }
  202. .reveal a:hover {
  203. color: $linkColorHover;
  204. text-shadow: none;
  205. border: none;
  206. }
  207. .reveal .roll span:after {
  208. color: #fff;
  209. background: darken( $linkColor, 15% );
  210. }
  211. /*********************************************
  212. * IMAGES
  213. *********************************************/
  214. .reveal section img {
  215. margin: 15px 0px;
  216. background: rgba(255,255,255,0.12);
  217. border: 4px solid $mainColor;
  218. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  219. }
  220. .reveal section img.plain {
  221. border: 0;
  222. box-shadow: none;
  223. }
  224. .reveal a img {
  225. -webkit-transition: all .15s linear;
  226. -moz-transition: all .15s linear;
  227. transition: all .15s linear;
  228. }
  229. .reveal a:hover img {
  230. background: rgba(255,255,255,0.2);
  231. border-color: $linkColor;
  232. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  233. }
  234. /*********************************************
  235. * NAVIGATION CONTROLS
  236. *********************************************/
  237. .reveal .controls {
  238. color: $linkColor;
  239. }
  240. /*********************************************
  241. * PROGRESS BAR
  242. *********************************************/
  243. .reveal .progress {
  244. background: rgba(0,0,0,0.2);
  245. color: $linkColor;
  246. }
  247. .reveal .progress span {
  248. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  249. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  250. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  251. }
  252. /*********************************************
  253. * PRINT BACKGROUND
  254. *********************************************/
  255. @media print {
  256. .backgrounds {
  257. background-color: $backgroundColor;
  258. }
  259. }