1
0

simple.css 7.2 KB

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