main.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  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. .overview #main section {
  215. padding: 20px;
  216. opacity: 1;
  217. cursor: pointer;
  218. background: rgba(0,0,0,0.1);
  219. }
  220. .overview #main section>section {
  221. opacity: 1;
  222. cursor: pointer;
  223. }
  224. .overview #main>section:hover {
  225. background: rgba(0,0,0,0.3);
  226. }
  227. .overview #main>section.present {
  228. background: rgba(0,0,0,0.3);
  229. }
  230. /*********************************************
  231. * VIEW FRAGMENTS
  232. *********************************************/
  233. #main section .fragment {
  234. opacity: 0;
  235. -webkit-transition: all .2s ease;
  236. -moz-transition: all .2s ease;
  237. -ms-transition: all .2s ease;
  238. -o-transition: all .2s ease;
  239. transition: all .2s ease;
  240. }
  241. #main section .fragment.visible {
  242. opacity: 1;
  243. }
  244. /*********************************************
  245. * DEFAULT ELEMENT STYLES
  246. *********************************************/
  247. #main>section {
  248. line-height: 1.2em;
  249. font-weight: normal;
  250. }
  251. strong, b {
  252. font-weight: bold;
  253. }
  254. em, i {
  255. font-style: italic;
  256. }
  257. ol, ul {
  258. display: inline-block;
  259. text-align: left;
  260. margin: 0 auto;
  261. }
  262. ol {
  263. list-style: decimal;
  264. list-style-position: inside;
  265. }
  266. ul {
  267. list-style: disc;
  268. }
  269. p {
  270. margin-bottom: 10px;
  271. }
  272. blockquote {
  273. display: block;
  274. position: relative;
  275. width: 70%;
  276. margin: 5px auto;
  277. padding: 5px;
  278. font-style: italic;
  279. background: rgba(255, 255, 255, 0.05);
  280. box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
  281. }
  282. blockquote:before {
  283. content: '“';
  284. }
  285. blockquote:after {
  286. content: '”';
  287. }
  288. pre {
  289. display: block;
  290. position: relative;
  291. width: 90%;
  292. margin: 10px auto;
  293. text-align: left;
  294. font-size: 14px;
  295. font-family: monospace;
  296. line-height: 1.1em;
  297. word-wrap: break-word;
  298. box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
  299. }
  300. code {
  301. font-family: monospace;
  302. }
  303. small {
  304. font-size: 60%;
  305. line-height: 1em;
  306. vertical-align: top;
  307. }
  308. q {
  309. font-style: italic;
  310. }
  311. q:before {
  312. content: '“';
  313. }
  314. q:after {
  315. content: '”';
  316. }
  317. a:not(.image) {
  318. color: hsl(185, 85%, 50%);
  319. text-decoration: none;
  320. -webkit-transition: all .2s ease;
  321. -moz-transition: all .2s ease;
  322. -ms-transition: all .2s ease;
  323. -o-transition: all .2s ease;
  324. transition: all .2s ease;
  325. }
  326. a:not(.image):hover {
  327. color: hsl(185, 85%, 70%);
  328. background: hsla(185, 25%, 20%, 0.4);
  329. text-shadow: none;
  330. border: none;
  331. border-radius: 2px;
  332. }
  333. section img {
  334. margin: 30px 0 0 0;
  335. background: rgba(255,255,255,0.12);
  336. border: 4px solid #eee;
  337. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  338. -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  339. -o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  340. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  341. -webkit-transition: all .2s linear;
  342. -moz-transition: all .2s linear;
  343. -ms-transition: all .2s linear;
  344. -o-transition: all .2s linear;
  345. transition: all .2s linear;
  346. }
  347. a.image:hover img {
  348. background: rgba(255,255,255,0.2);
  349. border-color: #13DAEC;
  350. -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  351. -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  352. -o-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  353. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  354. }
  355. /*********************************************
  356. * CONTROLS
  357. *********************************************/
  358. .controls {
  359. display: none;
  360. position: fixed;
  361. width: 100px;
  362. height: 100px;
  363. right: 0;
  364. bottom: 0;
  365. }
  366. .controls a {
  367. font-size: 30px;
  368. position: absolute;
  369. opacity: 0.1;
  370. color: #fff;
  371. }
  372. .controls a.enabled {
  373. opacity: 0.6;
  374. color: hsl(185, 85%, 70%);
  375. text-shadow: 0px 0px 2px hsla(185, 45%, 70%, 0.3);
  376. }
  377. .controls a.enabled:active {
  378. margin-top: 1px;
  379. }
  380. .controls .left {
  381. top: 30px;
  382. }
  383. .controls .right {
  384. left: 60px;
  385. top: 30px;
  386. }
  387. .controls .up {
  388. left: 30px;
  389. }
  390. .controls .down {
  391. left: 30px;
  392. top: 60px;
  393. }
  394. /*********************************************
  395. * PROGRESS BAR
  396. *********************************************/
  397. .progress {
  398. position: fixed;
  399. display: none;
  400. height: 4px;
  401. width: 100%;
  402. bottom: 0;
  403. left: 0;
  404. background: rgba(0,0,0,0.2);
  405. }
  406. .progress span {
  407. display: block;
  408. background: hsl(185, 85%, 50%);
  409. height: 100%;
  410. width: 0px;
  411. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  412. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  413. -ms-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  414. -o-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  415. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  416. }
  417. /*********************************************
  418. * ROLLING LINKS
  419. *********************************************/
  420. .roll {
  421. display: inline-block;
  422. overflow: hidden;
  423. vertical-align: top;
  424. -webkit-perspective: 400px;
  425. -moz-perspective: 400px;
  426. -ms-perspective: 400px;
  427. perspective: 400px;
  428. -webkit-perspective-origin: 50% 50%;
  429. -moz-perspective-origin: 50% 50%;
  430. -ms-perspective-origin: 50% 50%;
  431. perspective-origin: 50% 50%;
  432. }
  433. .roll:hover {
  434. background: none;
  435. text-shadow: none;
  436. }
  437. .roll span {
  438. display: block;
  439. position: relative;
  440. padding: 0 2px;
  441. pointer-events: none;
  442. -webkit-transition: all 400ms ease;
  443. -moz-transition: all 400ms ease;
  444. -ms-transition: all 400ms ease;
  445. transition: all 400ms ease;
  446. -webkit-transform-origin: 50% 0%;
  447. -moz-transform-origin: 50% 0%;
  448. -ms-transform-origin: 50% 0%;
  449. transform-origin: 50% 0%;
  450. -webkit-transform-style: preserve-3d;
  451. -moz-transform-style: preserve-3d;
  452. -ms-transform-style: preserve-3d;
  453. transform-style: preserve-3d;
  454. }
  455. .roll:hover span {
  456. background: rgba(0,0,0,0.5);
  457. -webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  458. -moz-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  459. -ms-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  460. transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  461. }
  462. .roll span:after {
  463. content: attr(data-title);
  464. display: block;
  465. position: absolute;
  466. left: 0;
  467. top: 0;
  468. padding: 0 2px;
  469. color: #fff;
  470. background: hsl(185, 60%, 35%);
  471. -webkit-transform-origin: 50% 0%;
  472. -moz-transform-origin: 50% 0%;
  473. -ms-transform-origin: 50% 0%;
  474. transform-origin: 50% 0%;
  475. -webkit-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  476. -moz-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  477. -ms-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  478. transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  479. }