You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

311 lines
5.0KB

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