sky.css 7.7 KB

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