main.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  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. -webkit-transform-style: preserve-3d;
  106. -moz-transform-style: preserve-3d;
  107. -ms-transform-style: preserve-3d;
  108. transform-style: preserve-3d;
  109. -webkit-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  110. -moz-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  111. -ms-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  112. -o-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  113. transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  114. }
  115. #main section.present {
  116. display: block;
  117. position: absolute;
  118. z-index: 10;
  119. }
  120. /*********************************************
  121. * DEFAULT THEME
  122. *********************************************/
  123. #main section.past {
  124. display: block;
  125. opacity: 0;
  126. -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  127. -moz-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  128. -ms-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  129. transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  130. }
  131. #main section.future {
  132. display: block;
  133. opacity: 0;
  134. -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  135. -moz-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  136. -ms-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  137. transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  138. }
  139. #main section>section.past {
  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. -ms-transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  145. transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  146. }
  147. #main section>section.future {
  148. display: block;
  149. opacity: 0;
  150. -webkit-transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  151. -moz-transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  152. -ms-transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  153. transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  154. }
  155. /*********************************************
  156. * CONCAVE THEME
  157. *********************************************/
  158. .concave #main>section.past {
  159. -webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  160. -moz-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  161. -ms-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  162. transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  163. }
  164. .concave #main>section.future {
  165. -webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  166. -moz-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  167. -ms-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  168. transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  169. }
  170. .concave #main section>section.past {
  171. -webkit-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  172. -moz-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  173. -ms-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  174. transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  175. }
  176. .concave #main section>section.future {
  177. -webkit-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  178. -moz-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  179. -ms-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  180. transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  181. }
  182. /*********************************************
  183. * LINEAR THEME
  184. *********************************************/
  185. .linear #main>section.past {
  186. -webkit-transform: translate3d(-100%, 0, 0);
  187. -moz-transform: translate3d(-100%, 0, 0);
  188. -ms-transform: translate3d(-100%, 0, 0);
  189. transform: translate3d(-100%, 0, 0);
  190. }
  191. .linear #main>section.future {
  192. -webkit-transform: translate3d(100%, 0, 0);
  193. -moz-transform: translate3d(100%, 0, 0);
  194. -ms-transform: translate3d(100%, 0, 0);
  195. transform: translate3d(100%, 0, 0);
  196. }
  197. .linear #main section>section.past {
  198. -webkit-transform: translate3d(0, -100%, 0);
  199. -moz-transform: translate3d(0, -100%, 0);
  200. -ms-transform: translate3d(0, -100%, 0);
  201. transform: translate3d(0, -100%, 0);
  202. }
  203. .linear #main section>section.future {
  204. -webkit-transform: translate3d(0, 100%, 0);
  205. -moz-transform: translate3d(0, 100%, 0);
  206. -ms-transform: translate3d(0, 100%, 0);
  207. transform: translate3d(0, 100%, 0);
  208. }
  209. /*********************************************
  210. * VIEW FRAGMENTS
  211. *********************************************/
  212. #main section .fragment {
  213. opacity: 0;
  214. -webkit-transition: all .2s ease;
  215. -moz-transition: all .2s ease;
  216. -ms-transition: all .2s ease;
  217. -o-transition: all .2s ease;
  218. transition: all .2s ease;
  219. }
  220. #main section .fragment.visible {
  221. opacity: 1;
  222. }
  223. /*********************************************
  224. * DEFAULT ELEMENT STYLES
  225. *********************************************/
  226. #main>section {
  227. line-height: 1.2em;
  228. font-weight: normal;
  229. }
  230. strong, b {
  231. font-weight: bold;
  232. }
  233. em, i {
  234. font-style: italic;
  235. }
  236. ol, ul {
  237. display: inline-block;
  238. text-align: left;
  239. margin: 0 auto;
  240. }
  241. ol {
  242. list-style: decimal;
  243. list-style-position: inside;
  244. }
  245. ul {
  246. list-style: disc;
  247. }
  248. p {
  249. margin-bottom: 10px;
  250. }
  251. blockquote {
  252. display: block;
  253. position: relative;
  254. width: 70%;
  255. margin: 5px auto;
  256. padding: 5px;
  257. font-style: italic;
  258. background: rgba(255, 255, 255, 0.05);
  259. box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
  260. }
  261. blockquote:before {
  262. content: '“';
  263. }
  264. blockquote:after {
  265. content: '”';
  266. }
  267. pre {
  268. display: block;
  269. position: relative;
  270. width: 90%;
  271. margin: 10px auto;
  272. text-align: left;
  273. font-size: 14px;
  274. font-family: monospace;
  275. line-height: 1.1em;
  276. word-wrap: break-word;
  277. box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
  278. }
  279. code {
  280. font-family: monospace;
  281. }
  282. small {
  283. font-size: 60%;
  284. line-height: 1em;
  285. vertical-align: top;
  286. }
  287. q {
  288. font-style: italic;
  289. }
  290. q:before {
  291. content: '“';
  292. }
  293. q:after {
  294. content: '”';
  295. }
  296. a:not(.image) {
  297. color: hsl(185, 85%, 50%);
  298. text-decoration: none;
  299. -webkit-transition: all .2s ease;
  300. -moz-transition: all .2s ease;
  301. -ms-transition: all .2s ease;
  302. -o-transition: all .2s ease;
  303. transition: all .2s ease;
  304. }
  305. a:not(.image):hover {
  306. color: hsl(185, 85%, 70%);
  307. background: hsla(185, 25%, 20%, 0.4);
  308. text-shadow: none;
  309. border: none;
  310. border-radius: 2px;
  311. }
  312. section img {
  313. margin: 30px 0 0 0;
  314. background: rgba(255,255,255,0.12);
  315. border: 4px solid #eee;
  316. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  317. -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  318. -o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  319. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  320. -webkit-transition: all .2s linear;
  321. -moz-transition: all .2s linear;
  322. -ms-transition: all .2s linear;
  323. -o-transition: all .2s linear;
  324. transition: all .2s linear;
  325. }
  326. a.image:hover img {
  327. background: rgba(255,255,255,0.2);
  328. border-color: #13DAEC;
  329. -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  330. -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  331. -o-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  332. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  333. }
  334. /*********************************************
  335. * CONTROLS
  336. *********************************************/
  337. .controls {
  338. display: none;
  339. position: fixed;
  340. width: 100px;
  341. height: 100px;
  342. right: 0;
  343. bottom: 0;
  344. }
  345. .controls a {
  346. font-size: 30px;
  347. position: absolute;
  348. opacity: 0.1;
  349. color: #fff;
  350. }
  351. .controls a.enabled {
  352. opacity: 0.6;
  353. color: hsl(185, 85%, 70%);
  354. text-shadow: 0px 0px 2px hsla(185, 45%, 70%, 0.3);
  355. }
  356. .controls a.enabled:active {
  357. margin-top: 1px;
  358. }
  359. .controls .left {
  360. top: 30px;
  361. }
  362. .controls .right {
  363. left: 60px;
  364. top: 30px;
  365. }
  366. .controls .up {
  367. left: 30px;
  368. }
  369. .controls .down {
  370. left: 30px;
  371. top: 60px;
  372. }
  373. /*********************************************
  374. * PROGRESS BAR
  375. *********************************************/
  376. .progress {
  377. position: fixed;
  378. display: none;
  379. height: 4px;
  380. width: 100%;
  381. bottom: 0;
  382. left: 0;
  383. background: rgba(0,0,0,0.2);
  384. }
  385. .progress span {
  386. display: block;
  387. background: hsl(185, 85%, 50%);
  388. height: 100%;
  389. width: 0px;
  390. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  391. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  392. -ms-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  393. -o-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  394. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  395. }
  396. /*********************************************
  397. * ROLLING LINKS
  398. *********************************************/
  399. .roll {
  400. display: inline-block;
  401. overflow: hidden;
  402. vertical-align: top;
  403. -webkit-perspective: 400px;
  404. -moz-perspective: 400px;
  405. -ms-perspective: 400px;
  406. perspective: 400px;
  407. -webkit-perspective-origin: 50% 50%;
  408. -moz-perspective-origin: 50% 50%;
  409. -ms-perspective-origin: 50% 50%;
  410. perspective-origin: 50% 50%;
  411. }
  412. .roll:hover {
  413. background: none;
  414. text-shadow: none;
  415. }
  416. .roll span {
  417. display: block;
  418. position: relative;
  419. padding: 0 2px;
  420. pointer-events: none;
  421. -webkit-transition: all 400ms ease;
  422. -moz-transition: all 400ms ease;
  423. -ms-transition: all 400ms ease;
  424. transition: all 400ms ease;
  425. -webkit-transform-origin: 50% 0%;
  426. -moz-transform-origin: 50% 0%;
  427. -ms-transform-origin: 50% 0%;
  428. transform-origin: 50% 0%;
  429. -webkit-transform-style: preserve-3d;
  430. -moz-transform-style: preserve-3d;
  431. -ms-transform-style: preserve-3d;
  432. transform-style: preserve-3d;
  433. }
  434. .roll:hover span {
  435. background: rgba(0,0,0,0.5);
  436. -webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  437. -moz-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  438. -ms-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  439. transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  440. }
  441. .roll span:after {
  442. content: attr(data-title);
  443. display: block;
  444. position: absolute;
  445. left: 0;
  446. top: 0;
  447. padding: 0 2px;
  448. color: #fff;
  449. background: hsl(185, 60%, 35%);
  450. -webkit-transform-origin: 50% 0%;
  451. -moz-transform-origin: 50% 0%;
  452. -ms-transform-origin: 50% 0%;
  453. transform-origin: 50% 0%;
  454. -webkit-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  455. -moz-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  456. -ms-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  457. transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  458. }