您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

black-contrast.css 7.1KB

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