white.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. /**
  2. * White theme for reveal.js. This is the opposite of the 'black' theme.
  3. *
  4. * By Hakim El Hattab, http://hakim.se
  5. */
  6. @import url(./fonts/source-sans-pro/source-sans-pro.css);
  7. section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
  8. color: #fff;
  9. }
  10. /*********************************************
  11. * GLOBAL STYLES
  12. *********************************************/
  13. :root {
  14. --r-background-color: #fff;
  15. --r-main-font: Source Sans Pro, Helvetica, sans-serif;
  16. --r-main-font-size: 42px;
  17. --r-main-color: #222;
  18. --r-block-margin: 20px;
  19. --r-heading-margin: 0 0 20px 0;
  20. --r-heading-font: Source Sans Pro, Helvetica, sans-serif;
  21. --r-heading-color: #222;
  22. --r-heading-line-height: 1.2;
  23. --r-heading-letter-spacing: normal;
  24. --r-heading-text-transform: uppercase;
  25. --r-heading-text-shadow: none;
  26. --r-heading-font-weight: 600;
  27. --r-heading1-text-shadow: none;
  28. --r-heading1-size: 2.5em;
  29. --r-heading2-size: 1.6em;
  30. --r-heading3-size: 1.3em;
  31. --r-heading4-size: 1em;
  32. --r-code-font: monospace;
  33. --r-link-color: #2a76dd;
  34. --r-link-color-dark: #1a53a1;
  35. --r-link-color-hover: #6ca0e8;
  36. --r-selection-background-color: #98bdef;
  37. --r-selection-color: #fff;
  38. }
  39. .reveal-viewport {
  40. background: #fff;
  41. background-color: var(--r-background-color);
  42. }
  43. .reveal {
  44. font-family: var(--r-main-font);
  45. font-size: var(--r-main-font-size);
  46. font-weight: normal;
  47. color: var(--r-main-color);
  48. }
  49. .reveal ::selection {
  50. color: var(--r-selection-color);
  51. background: var(--r-selection-background-color);
  52. text-shadow: none;
  53. }
  54. .reveal ::-moz-selection {
  55. color: var(--r-selection-color);
  56. background: var(--r-selection-background-color);
  57. text-shadow: none;
  58. }
  59. .reveal .slides section,
  60. .reveal .slides section > section {
  61. line-height: 1.3;
  62. font-weight: inherit;
  63. }
  64. /*********************************************
  65. * HEADERS
  66. *********************************************/
  67. .reveal h1,
  68. .reveal h2,
  69. .reveal h3,
  70. .reveal h4,
  71. .reveal h5,
  72. .reveal h6 {
  73. margin: var(--r-heading-margin);
  74. color: var(--r-heading-color);
  75. font-family: var(--r-heading-font);
  76. font-weight: var(--r-heading-font-weight);
  77. line-height: var(--r-heading-line-height);
  78. letter-spacing: var(--r-heading-letter-spacing);
  79. text-transform: var(--r-heading-text-transform);
  80. text-shadow: var(--r-heading-text-shadow);
  81. word-wrap: break-word;
  82. }
  83. .reveal h1 {
  84. font-size: var(--r-heading1-size);
  85. }
  86. .reveal h2 {
  87. font-size: var(--r-heading2-size);
  88. }
  89. .reveal h3 {
  90. font-size: var(--r-heading3-size);
  91. }
  92. .reveal h4 {
  93. font-size: var(--r-heading4-size);
  94. }
  95. .reveal h1 {
  96. text-shadow: var(--r-heading1-text-shadow);
  97. }
  98. /*********************************************
  99. * OTHER
  100. *********************************************/
  101. .reveal p {
  102. margin: var(--r-block-margin) 0;
  103. line-height: 1.3;
  104. }
  105. /* Remove trailing margins after titles */
  106. .reveal h1:last-child,
  107. .reveal h2:last-child,
  108. .reveal h3:last-child,
  109. .reveal h4:last-child,
  110. .reveal h5:last-child,
  111. .reveal h6:last-child {
  112. margin-bottom: 0;
  113. }
  114. /* Ensure certain elements are never larger than the slide itself */
  115. .reveal img,
  116. .reveal video,
  117. .reveal iframe {
  118. max-width: 95%;
  119. max-height: 95%;
  120. }
  121. .reveal strong,
  122. .reveal b {
  123. font-weight: bold;
  124. }
  125. .reveal em {
  126. font-style: italic;
  127. }
  128. .reveal ol,
  129. .reveal dl,
  130. .reveal ul {
  131. display: inline-block;
  132. text-align: left;
  133. margin: 0 0 0 1em;
  134. }
  135. .reveal ol {
  136. list-style-type: decimal;
  137. }
  138. .reveal ul {
  139. list-style-type: disc;
  140. }
  141. .reveal ul ul {
  142. list-style-type: square;
  143. }
  144. .reveal ul ul ul {
  145. list-style-type: circle;
  146. }
  147. .reveal ul ul,
  148. .reveal ul ol,
  149. .reveal ol ol,
  150. .reveal ol ul {
  151. display: block;
  152. margin-left: 40px;
  153. }
  154. .reveal dt {
  155. font-weight: bold;
  156. }
  157. .reveal dd {
  158. margin-left: 40px;
  159. }
  160. .reveal blockquote {
  161. display: block;
  162. position: relative;
  163. width: 70%;
  164. margin: var(--r-block-margin) auto;
  165. padding: 5px;
  166. font-style: italic;
  167. background: rgba(255, 255, 255, 0.05);
  168. box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
  169. }
  170. .reveal blockquote p:first-child,
  171. .reveal blockquote p:last-child {
  172. display: inline-block;
  173. }
  174. .reveal q {
  175. font-style: italic;
  176. }
  177. .reveal pre {
  178. display: block;
  179. position: relative;
  180. width: 90%;
  181. margin: var(--r-block-margin) auto;
  182. text-align: left;
  183. font-size: 0.55em;
  184. font-family: var(--r-code-font);
  185. line-height: 1.2em;
  186. word-wrap: break-word;
  187. box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  188. }
  189. .reveal code {
  190. font-family: var(--r-code-font);
  191. text-transform: none;
  192. tab-size: 2;
  193. }
  194. .reveal pre code {
  195. display: block;
  196. padding: 5px;
  197. overflow: auto;
  198. max-height: 400px;
  199. word-wrap: normal;
  200. }
  201. .reveal .code-wrapper {
  202. white-space: normal;
  203. }
  204. .reveal .code-wrapper code {
  205. white-space: pre;
  206. }
  207. .reveal table {
  208. margin: auto;
  209. border-collapse: collapse;
  210. border-spacing: 0;
  211. }
  212. .reveal table th {
  213. font-weight: bold;
  214. }
  215. .reveal table th,
  216. .reveal table td {
  217. text-align: left;
  218. padding: 0.2em 0.5em 0.2em 0.5em;
  219. border-bottom: 1px solid;
  220. }
  221. .reveal table th[align=center],
  222. .reveal table td[align=center] {
  223. text-align: center;
  224. }
  225. .reveal table th[align=right],
  226. .reveal table td[align=right] {
  227. text-align: right;
  228. }
  229. .reveal table tbody tr:last-child th,
  230. .reveal table tbody tr:last-child td {
  231. border-bottom: none;
  232. }
  233. .reveal sup {
  234. vertical-align: super;
  235. font-size: smaller;
  236. }
  237. .reveal sub {
  238. vertical-align: sub;
  239. font-size: smaller;
  240. }
  241. .reveal small {
  242. display: inline-block;
  243. font-size: 0.6em;
  244. line-height: 1.2em;
  245. vertical-align: top;
  246. }
  247. .reveal small * {
  248. vertical-align: top;
  249. }
  250. .reveal img {
  251. margin: var(--r-block-margin) 0;
  252. }
  253. /*********************************************
  254. * LINKS
  255. *********************************************/
  256. .reveal a {
  257. color: var(--r-link-color);
  258. text-decoration: none;
  259. transition: color 0.15s ease;
  260. }
  261. .reveal a:hover {
  262. color: var(--r-link-color-hover);
  263. text-shadow: none;
  264. border: none;
  265. }
  266. .reveal .roll span:after {
  267. color: #fff;
  268. background: var(--r-link-color-dark);
  269. }
  270. /*********************************************
  271. * Frame helper
  272. *********************************************/
  273. .reveal .r-frame {
  274. border: 4px solid var(--r-main-color);
  275. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  276. }
  277. .reveal a .r-frame {
  278. transition: all 0.15s linear;
  279. }
  280. .reveal a:hover .r-frame {
  281. border-color: var(--r-link-color);
  282. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  283. }
  284. /*********************************************
  285. * NAVIGATION CONTROLS
  286. *********************************************/
  287. .reveal .controls {
  288. color: var(--r-link-color);
  289. }
  290. /*********************************************
  291. * PROGRESS BAR
  292. *********************************************/
  293. .reveal .progress {
  294. background: rgba(0, 0, 0, 0.2);
  295. color: var(--r-link-color);
  296. }
  297. /*********************************************
  298. * PRINT BACKGROUND
  299. *********************************************/
  300. @media print {
  301. .backgrounds {
  302. background-color: var(--r-background-color);
  303. }
  304. }