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.

dracula.css 7.5KB

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