main.css 14 KB

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