dracula.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. /**
  2. * Dracula Dark theme for reveal.js.
  3. * Based on https://draculatheme.com
  4. */
  5. /**
  6. * Dracula colors by Zeno Rocha
  7. * https://draculatheme.com/contribute
  8. */
  9. html * {
  10. color-profile: sRGB;
  11. rendering-intent: auto;
  12. }
  13. section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
  14. color: #282A36;
  15. }
  16. /*********************************************
  17. * GLOBAL STYLES
  18. *********************************************/
  19. :root {
  20. --r-background-color: #282A36;
  21. --r-main-font: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  22. --r-main-font-size: 40px;
  23. --r-main-color: #F8F8F2;
  24. --r-block-margin: 20px;
  25. --r-heading-margin: 0 0 20px 0;
  26. --r-heading-font: League Gothic, Impact, sans-serif;
  27. --r-heading-color: #BD93F9;
  28. --r-heading-line-height: 1.2;
  29. --r-heading-letter-spacing: normal;
  30. --r-heading-text-transform: none;
  31. --r-heading-text-shadow: none;
  32. --r-heading-font-weight: normal;
  33. --r-heading1-text-shadow: none;
  34. --r-heading1-size: 3.77em;
  35. --r-heading2-size: 2.11em;
  36. --r-heading3-size: 1.55em;
  37. --r-heading4-size: 1em;
  38. --r-code-font: Fira Code, Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  39. --r-link-color: #FF79C6;
  40. --r-link-color-dark: rgb(255, 64.6, 174.0089552239);
  41. --r-link-color-hover: #8BE9FD;
  42. --r-selection-background-color: #44475A;
  43. --r-selection-color: #fff;
  44. --r-overlay-element-bg-color: 240, 240, 240;
  45. --r-overlay-element-fg-color: 0, 0, 0;
  46. }
  47. .reveal-viewport {
  48. background: #282A36;
  49. background-color: var(--r-background-color);
  50. }
  51. .reveal {
  52. font-family: var(--r-main-font);
  53. font-size: var(--r-main-font-size);
  54. font-weight: normal;
  55. color: var(--r-main-color);
  56. }
  57. .reveal ::selection {
  58. color: var(--r-selection-color);
  59. background: var(--r-selection-background-color);
  60. text-shadow: none;
  61. }
  62. .reveal ::-moz-selection {
  63. color: var(--r-selection-color);
  64. background: var(--r-selection-background-color);
  65. text-shadow: none;
  66. }
  67. .reveal .slides section,
  68. .reveal .slides section > section {
  69. line-height: 1.3;
  70. font-weight: inherit;
  71. }
  72. /*********************************************
  73. * HEADERS
  74. *********************************************/
  75. .reveal h1,
  76. .reveal h2,
  77. .reveal h3,
  78. .reveal h4,
  79. .reveal h5,
  80. .reveal h6 {
  81. margin: var(--r-heading-margin);
  82. color: var(--r-heading-color);
  83. font-family: var(--r-heading-font);
  84. font-weight: var(--r-heading-font-weight);
  85. line-height: var(--r-heading-line-height);
  86. letter-spacing: var(--r-heading-letter-spacing);
  87. text-transform: var(--r-heading-text-transform);
  88. text-shadow: var(--r-heading-text-shadow);
  89. word-wrap: break-word;
  90. }
  91. .reveal h1 {
  92. font-size: var(--r-heading1-size);
  93. }
  94. .reveal h2 {
  95. font-size: var(--r-heading2-size);
  96. }
  97. .reveal h3 {
  98. font-size: var(--r-heading3-size);
  99. }
  100. .reveal h4 {
  101. font-size: var(--r-heading4-size);
  102. }
  103. .reveal h1 {
  104. text-shadow: var(--r-heading1-text-shadow);
  105. }
  106. /*********************************************
  107. * OTHER
  108. *********************************************/
  109. .reveal p {
  110. margin: var(--r-block-margin) 0;
  111. line-height: 1.3;
  112. }
  113. /* Remove trailing margins after titles */
  114. .reveal h1:last-child,
  115. .reveal h2:last-child,
  116. .reveal h3:last-child,
  117. .reveal h4:last-child,
  118. .reveal h5:last-child,
  119. .reveal h6:last-child {
  120. margin-bottom: 0;
  121. }
  122. /* Ensure certain elements are never larger than the slide itself */
  123. .reveal img,
  124. .reveal video,
  125. .reveal iframe {
  126. max-width: 95%;
  127. max-height: 95%;
  128. }
  129. .reveal strong,
  130. .reveal b {
  131. font-weight: bold;
  132. }
  133. .reveal em {
  134. font-style: italic;
  135. }
  136. .reveal ol,
  137. .reveal dl,
  138. .reveal ul {
  139. display: inline-block;
  140. text-align: left;
  141. margin: 0 0 0 1em;
  142. }
  143. .reveal ol {
  144. list-style-type: decimal;
  145. }
  146. .reveal ul {
  147. list-style-type: disc;
  148. }
  149. .reveal ul ul {
  150. list-style-type: square;
  151. }
  152. .reveal ul ul ul {
  153. list-style-type: circle;
  154. }
  155. .reveal ul ul,
  156. .reveal ul ol,
  157. .reveal ol ol,
  158. .reveal ol ul {
  159. display: block;
  160. margin-left: 40px;
  161. }
  162. .reveal dt {
  163. font-weight: bold;
  164. }
  165. .reveal dd {
  166. margin-left: 40px;
  167. }
  168. .reveal blockquote {
  169. display: block;
  170. position: relative;
  171. width: 70%;
  172. margin: var(--r-block-margin) auto;
  173. padding: 5px;
  174. font-style: italic;
  175. background: rgba(255, 255, 255, 0.05);
  176. box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
  177. }
  178. .reveal blockquote p:first-child,
  179. .reveal blockquote p:last-child {
  180. display: inline-block;
  181. }
  182. .reveal q {
  183. font-style: italic;
  184. }
  185. .reveal pre {
  186. display: block;
  187. position: relative;
  188. width: 90%;
  189. margin: var(--r-block-margin) auto;
  190. text-align: left;
  191. font-size: 0.55em;
  192. font-family: var(--r-code-font);
  193. line-height: 1.2em;
  194. word-wrap: break-word;
  195. box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  196. }
  197. .reveal code {
  198. font-family: var(--r-code-font);
  199. text-transform: none;
  200. tab-size: 2;
  201. }
  202. .reveal pre code {
  203. display: block;
  204. padding: 5px;
  205. overflow: auto;
  206. max-height: 400px;
  207. word-wrap: normal;
  208. }
  209. .reveal .code-wrapper {
  210. white-space: normal;
  211. }
  212. .reveal .code-wrapper code {
  213. white-space: pre;
  214. }
  215. .reveal table {
  216. margin: auto;
  217. border-collapse: collapse;
  218. border-spacing: 0;
  219. }
  220. .reveal table th {
  221. font-weight: bold;
  222. }
  223. .reveal table th,
  224. .reveal table td {
  225. text-align: left;
  226. padding: 0.2em 0.5em 0.2em 0.5em;
  227. border-bottom: 1px solid;
  228. }
  229. .reveal table th[align=center],
  230. .reveal table td[align=center] {
  231. text-align: center;
  232. }
  233. .reveal table th[align=right],
  234. .reveal table td[align=right] {
  235. text-align: right;
  236. }
  237. .reveal table tbody tr:last-child th,
  238. .reveal table tbody tr:last-child td {
  239. border-bottom: none;
  240. }
  241. .reveal sup {
  242. vertical-align: super;
  243. font-size: smaller;
  244. }
  245. .reveal sub {
  246. vertical-align: sub;
  247. font-size: smaller;
  248. }
  249. .reveal small {
  250. display: inline-block;
  251. font-size: 0.6em;
  252. line-height: 1.2em;
  253. vertical-align: top;
  254. }
  255. .reveal small * {
  256. vertical-align: top;
  257. }
  258. .reveal img {
  259. margin: var(--r-block-margin) 0;
  260. }
  261. /*********************************************
  262. * LINKS
  263. *********************************************/
  264. .reveal a {
  265. color: var(--r-link-color);
  266. text-decoration: none;
  267. transition: color 0.15s ease;
  268. }
  269. .reveal a:hover {
  270. color: var(--r-link-color-hover);
  271. text-shadow: none;
  272. border: none;
  273. }
  274. .reveal .roll span:after {
  275. color: #fff;
  276. background: var(--r-link-color-dark);
  277. }
  278. /*********************************************
  279. * Frame helper
  280. *********************************************/
  281. .reveal .r-frame {
  282. border: 4px solid var(--r-main-color);
  283. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  284. }
  285. .reveal a .r-frame {
  286. transition: all 0.15s linear;
  287. }
  288. .reveal a:hover .r-frame {
  289. border-color: var(--r-link-color);
  290. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  291. }
  292. /*********************************************
  293. * NAVIGATION CONTROLS
  294. *********************************************/
  295. .reveal .controls {
  296. color: var(--r-link-color);
  297. }
  298. /*********************************************
  299. * PROGRESS BAR
  300. *********************************************/
  301. .reveal .progress {
  302. background: rgba(0, 0, 0, 0.2);
  303. color: var(--r-link-color);
  304. }
  305. /*********************************************
  306. * PRINT BACKGROUND
  307. *********************************************/
  308. @media print {
  309. .backgrounds {
  310. background-color: var(--r-background-color);
  311. }
  312. }
  313. :root {
  314. --r-bold-color: #FFB86C;
  315. --r-italic-color: #F1FA8C;
  316. --r-inline-code-color: #50FA7B;
  317. --r-list-bullet-color: #8BE9FD;
  318. }
  319. .reveal strong, .reveal b {
  320. color: var(--r-bold-color);
  321. }
  322. .reveal em, .reveal i, .reveal blockquote {
  323. color: var(--r-italic-color);
  324. }
  325. .reveal code {
  326. color: var(--r-inline-code-color);
  327. }
  328. .reveal ul li::marker, .reveal ol li::marker {
  329. color: var(--r-list-bullet-color);
  330. }