main.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. /**
  2. * Main styles of reveal.js
  3. *
  4. * @author Hakim El Hattab
  5. */
  6. /*********************************************
  7. * FONT-FACE DEFINITIONS
  8. *********************************************/
  9. @font-face {
  10. font-family: 'League Gothic';
  11. src: url('../assets/fonts/leaguegothic/league_gothic-webfont.ttf') format('truetype');
  12. font-weight: normal;
  13. font-style: normal;
  14. }
  15. /*********************************************
  16. * GLOBAL STYLES
  17. *********************************************/
  18. html, body {
  19. position: relative;
  20. padding: 0;
  21. margin: 0;
  22. overflow: hidden;
  23. font-family: 'Lato', Times, 'Times New Roman', serif;
  24. font-size: 36px;
  25. font-weight: 200;
  26. letter-spacing: -0.02em;
  27. background: #111;
  28. color: #eee;
  29. width: 100%;
  30. height: 100%;
  31. min-height: 600px;
  32. background: #555a5f;
  33. background: -moz-radial-gradient(center, ellipse cover, #555a5f 0%, #1c1e20 100%);
  34. background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#555a5f), color-stop(100%,#1c1e20));
  35. background: -webkit-radial-gradient(center, ellipse cover, #555a5f 0%,#1c1e20 100%);
  36. background: -o-radial-gradient(center, ellipse cover, #555a5f 0%,#1c1e20 100%);
  37. background: -ms-radial-gradient(center, ellipse cover, #555a5f 0%,#1c1e20 100%);
  38. background: radial-gradient(center, ellipse cover, #555a5f 0%,#1c1e20 100%);
  39. }
  40. /*********************************************
  41. * HEADERS
  42. *********************************************/
  43. h1, h2, h3, h4 {
  44. margin: 0 0 20px 0;
  45. color: #eee;
  46. font-family: 'League Gothic', sans-serif;
  47. line-height: 0.9em;
  48. letter-spacing: 0.02em;
  49. text-transform: uppercase;
  50. text-shadow: 0px 0px 6px rgba(0,0,0,0.2);
  51. }
  52. h1 { font-size: 136px; }
  53. h2 { font-size: 76px; }
  54. h3 { font-size: 56px; }
  55. h4 { font-size: 36px; }
  56. h1.inverted,
  57. h2.inverted,
  58. h3.inverted,
  59. h4.inverted {
  60. color: #fff;
  61. text-shadow: 0px 0px 2px rgba(0,0,0,0.2);
  62. }
  63. h1 {
  64. text-shadow: 0 1px 0 #ccc,
  65. 0 2px 0 #c9c9c9,
  66. 0 3px 0 #bbb,
  67. 0 4px 0 #b9b9b9,
  68. 0 5px 0 #aaa,
  69. 0 6px 1px rgba(0,0,0,.1),
  70. 0 0 5px rgba(0,0,0,.1),
  71. 0 1px 3px rgba(0,0,0,.3),
  72. 0 3px 5px rgba(0,0,0,.2),
  73. 0 5px 10px rgba(0,0,0,.25),
  74. 0 20px 20px rgba(0,0,0,.15);
  75. }
  76. /*********************************************
  77. * SLIDES
  78. *********************************************/
  79. #main {
  80. position: absolute;
  81. width: 900px;
  82. height: 600px;
  83. left: 50%;
  84. top: 50%;
  85. margin-left: -450px;
  86. margin-top: -320px;
  87. padding: 20px 0px;
  88. text-align: center;
  89. -webkit-perspective: 600px;
  90. -moz-perspective: 600px;
  91. perspective: 600px;
  92. -webkit-perspective-origin: 50% 25%;
  93. -moz-perspective-origin: 50% 25%;
  94. perspective-origin: 50% 25%;
  95. }
  96. #main>section,
  97. #main>section>section {
  98. display: none;
  99. position: absolute;
  100. width: 100%;
  101. min-height: 600px;
  102. -webkit-transform-style: preserve-3d;
  103. -moz-transform-style: preserve-3d;
  104. transform-style: preserve-3d;
  105. -webkit-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  106. -moz-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  107. -o-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  108. transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  109. }
  110. #main section.present {
  111. display: block;
  112. position: absolute;
  113. z-index: 10;
  114. }
  115. /*********************************************
  116. * DEFAULT THEME
  117. *********************************************/
  118. #main section.past {
  119. display: block;
  120. opacity: 0;
  121. -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  122. -moz-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  123. transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  124. }
  125. #main section.future {
  126. display: block;
  127. opacity: 0;
  128. -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  129. -moz-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  130. transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  131. }
  132. #main section>section.past {
  133. display: block;
  134. opacity: 0;
  135. -webkit-transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  136. -moz-transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  137. transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  138. }
  139. #main section>section.future {
  140. display: block;
  141. opacity: 0;
  142. -webkit-transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  143. -moz-transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  144. transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  145. }
  146. /*********************************************
  147. * CONCAVE THEME
  148. *********************************************/
  149. .concave #main>section.past {
  150. -webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  151. -moz-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  152. transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  153. }
  154. .concave #main>section.future {
  155. -webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  156. -moz-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  157. transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  158. }
  159. .concave #main section>section.past {
  160. -webkit-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  161. -moz-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  162. transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  163. }
  164. .concave #main section>section.future {
  165. -webkit-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  166. -moz-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  167. transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  168. }
  169. /*********************************************
  170. * LINEAR THEME
  171. *********************************************/
  172. .linear #main>section.past {
  173. -webkit-transform: translate3d(-100%, 0, 0);
  174. -moz-transform: translate3d(-100%, 0, 0);
  175. transform: translate3d(-100%, 0, 0);
  176. }
  177. .linear #main>section.future {
  178. -webkit-transform: translate3d(100%, 0, 0);
  179. -moz-transform: translate3d(100%, 0, 0);
  180. transform: translate3d(100%, 0, 0);
  181. }
  182. .linear #main section>section.past {
  183. -webkit-transform: translate3d(0, -100%, 0);
  184. -moz-transform: translate3d(0, -100%, 0);
  185. transform: translate3d(0, -100%, 0);
  186. }
  187. .linear #main section>section.future {
  188. -webkit-transform: translate3d(0, 100%, 0);
  189. -moz-transform: translate3d(0, 100%, 0);
  190. transform: translate3d(0, 100%, 0);
  191. }
  192. /*********************************************
  193. * VIEW FRAGMENTS
  194. *********************************************/
  195. #main section .fragment {
  196. opacity: 0;
  197. -webkit-transition: all .2s ease;
  198. -moz-transition: all .2s ease;
  199. -o-transition: all .2s ease;
  200. transition: all .2s ease;
  201. }
  202. #main section .fragment.visible {
  203. opacity: 1;
  204. }
  205. /*********************************************
  206. * DEFAULT ELEMENT STYLES
  207. *********************************************/
  208. #main>section {
  209. line-height: 1.2em;
  210. font-weight: normal;
  211. }
  212. strong, b {
  213. font-weight: bold;
  214. }
  215. em, i {
  216. font-style: italic;
  217. }
  218. ol, ul {
  219. display: inline-block;
  220. text-align: left;
  221. margin: 0 auto;
  222. }
  223. ol {
  224. list-style: decimal;
  225. list-style-position: inside;
  226. }
  227. ul {
  228. list-style: disc;
  229. }
  230. p {
  231. margin-bottom: 10px;
  232. }
  233. blockquote {
  234. display: block;
  235. position: relative;
  236. width: 70%;
  237. margin: 5px auto;
  238. padding: 5px;
  239. font-style: italic;
  240. background: rgba(255, 255, 255, 0.05);
  241. box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
  242. }
  243. blockquote:before {
  244. content: '“';
  245. }
  246. blockquote:after {
  247. content: '”';
  248. }
  249. pre {
  250. display: block;
  251. position: relative;
  252. width: 90%;
  253. margin: 10px auto;
  254. text-align: left;
  255. font-size: 14px;
  256. font-family: monospace;
  257. line-height: 1.1em;
  258. word-wrap: break-word;
  259. box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
  260. }
  261. code {
  262. font-family: monospace;
  263. }
  264. small {
  265. font-size: 60%;
  266. line-height: 1em;
  267. vertical-align: top;
  268. }
  269. q {
  270. font-style: italic;
  271. }
  272. q:before {
  273. content: '“';
  274. }
  275. q:after {
  276. content: '”';
  277. }
  278. a:not(.image) {
  279. color: hsl(185, 85%, 50%);
  280. text-decoration: none;
  281. -webkit-transition: all .2s ease;
  282. -moz-transition: all .2s ease;
  283. -o-transition: all .2s ease;
  284. transition: all .2s ease;
  285. }
  286. a:not(.image):hover {
  287. color: hsl(185, 85%, 70%);
  288. background: hsla(185, 25%, 20%, 0.4);
  289. text-shadow: none;
  290. border: none;
  291. border-radius: 2px;
  292. }
  293. section img {
  294. margin: 30px 0 0 0;
  295. background: rgba(255,255,255,0.12);
  296. border: 4px solid #eee;
  297. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  298. -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  299. -o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  300. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  301. -webkit-transition: all .2s linear;
  302. -moz-transition: all .2s linear;
  303. -o-transition: all .2s linear;
  304. transition: all .2s linear;
  305. }
  306. a.image:hover img {
  307. background: rgba(255,255,255,0.2);
  308. border-color: #13DAEC;
  309. -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  310. -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  311. -o-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  312. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  313. }
  314. /*********************************************
  315. * CONTROLS
  316. *********************************************/
  317. .controls {
  318. display: none;
  319. position: fixed;
  320. width: 100px;
  321. height: 100px;
  322. right: 0;
  323. bottom: 0;
  324. }
  325. .controls a {
  326. font-size: 30px;
  327. position: absolute;
  328. opacity: 0.1;
  329. color: #fff;
  330. }
  331. .controls a.enabled {
  332. opacity: 0.6;
  333. color: hsl(185, 85%, 70%);
  334. text-shadow: 0px 0px 2px hsla(185, 45%, 70%, 0.3);
  335. }
  336. .controls a.enabled:active {
  337. margin-top: 1px;
  338. }
  339. .controls .left {
  340. top: 30px;
  341. }
  342. .controls .right {
  343. left: 60px;
  344. top: 30px;
  345. }
  346. .controls .up {
  347. left: 30px;
  348. }
  349. .controls .down {
  350. left: 30px;
  351. top: 60px;
  352. }
  353. /*********************************************
  354. * PROGRESS BAR
  355. *********************************************/
  356. progress::-webkit-progress-bar {
  357. background: rgba(0,0,0,0.2);
  358. }
  359. progress::-moz-progress-bar {
  360. background: hsl(185, 85%, 50%);
  361. }
  362. progress::-webkit-progress-value {
  363. background: hsl(185, 85%, 50%);
  364. }
  365. progress {
  366. position: absolute;
  367. display: none;
  368. height: 4px;
  369. width: 100%;
  370. bottom: 0;
  371. left: 0;
  372. padding: 0;
  373. margin: 0;
  374. border: 0;
  375. outline: 0;
  376. background: none;
  377. }
  378. /*********************************************
  379. * ROLLING LINKS
  380. *********************************************/
  381. .roll {
  382. display: inline-block;
  383. overflow: hidden;
  384. vertical-align: top;
  385. -webkit-perspective: 400px;
  386. -moz-perspective: 400px;
  387. perspective: 400px;
  388. -webkit-perspective-origin: 50% 50%;
  389. -moz-perspective-origin: 50% 50%;
  390. perspective-origin: 50% 50%;
  391. }
  392. .roll:hover {
  393. background: none;
  394. text-shadow: none;
  395. }
  396. .roll span {
  397. display: block;
  398. position: relative;
  399. padding: 0 2px;
  400. pointer-events: none;
  401. -webkit-transition: all 400ms ease;
  402. -moz-transition: all 400ms ease;
  403. transition: all 400ms ease;
  404. -webkit-transform-origin: 50% 0%;
  405. -moz-transform-origin: 50% 0%;
  406. transform-origin: 50% 0%;
  407. -webkit-transform-style: preserve-3d;
  408. -moz-transform-style: preserve-3d;
  409. transform-style: preserve-3d;
  410. }
  411. .roll:hover span {
  412. background: rgba(0,0,0,0.5);
  413. -webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  414. -moz-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  415. transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  416. }
  417. .roll span:after {
  418. content: attr(data-title);
  419. display: block;
  420. position: absolute;
  421. left: 0;
  422. top: 0;
  423. padding: 0 2px;
  424. color: #fff;
  425. background: hsl(185, 60%, 35%);
  426. -webkit-transform-origin: 50% 0%;
  427. -moz-transform-origin: 50% 0%;
  428. transform-origin: 50% 0%;
  429. -webkit-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  430. -moz-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  431. transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  432. }