main.css 14 KB

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