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

sky.css 7.5KB

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