main.css 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  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: #1c1e20;
  34. background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPHJhZGlhbEdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzUlIj4KICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM1NTVhNWYiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjMWMxZTIwIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L3JhZGlhbEdyYWRpZW50PgogIDxyZWN0IHg9Ii01MCIgeT0iLTUwIiB3aWR0aD0iMTAxIiBoZWlnaHQ9IjEwMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
  35. background: -moz-radial-gradient(center, ellipse cover, rgba(85,90,95,1) 0%, rgba(28,30,32,1) 100%);
  36. background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(85,90,95,1)), color-stop(100%,rgba(28,30,32,1)));
  37. background: -webkit-radial-gradient(center, ellipse cover, rgba(85,90,95,1) 0%,rgba(28,30,32,1) 100%);
  38. background: -o-radial-gradient(center, ellipse cover, rgba(85,90,95,1) 0%,rgba(28,30,32,1) 100%);
  39. background: -ms-radial-gradient(center, ellipse cover, rgba(85,90,95,1) 0%,rgba(28,30,32,1) 100%);
  40. background: radial-gradient(center, ellipse cover, rgba(85,90,95,1) 0%,rgba(28,30,32,1) 100%);
  41. }
  42. /*********************************************
  43. * HEADERS
  44. *********************************************/
  45. #reveal h1,
  46. #reveal h2,
  47. #reveal h3,
  48. #reveal h4 {
  49. margin: 0 0 20px 0;
  50. color: #eee;
  51. font-family: 'League Gothic', sans-serif;
  52. line-height: 0.9em;
  53. letter-spacing: 0.02em;
  54. text-transform: uppercase;
  55. text-shadow: 0px 0px 6px rgba(0,0,0,0.2);
  56. }
  57. #reveal h1 { font-size: 136px; }
  58. #reveal h2 { font-size: 76px; }
  59. #reveal h3 { font-size: 56px; }
  60. #reveal h4 { font-size: 36px; }
  61. #reveal h1.inverted,
  62. #reveal h2.inverted,
  63. #reveal h3.inverted,
  64. #reveal h4.inverted {
  65. color: #fff;
  66. text-shadow: 0px 0px 2px rgba(0,0,0,0.2);
  67. }
  68. #reveal h1 {
  69. text-shadow: 0 1px 0 #ccc,
  70. 0 2px 0 #c9c9c9,
  71. 0 3px 0 #bbb,
  72. 0 4px 0 #b9b9b9,
  73. 0 5px 0 #aaa,
  74. 0 6px 1px rgba(0,0,0,.1),
  75. 0 0 5px rgba(0,0,0,.1),
  76. 0 1px 3px rgba(0,0,0,.3),
  77. 0 3px 5px rgba(0,0,0,.2),
  78. 0 5px 10px rgba(0,0,0,.25),
  79. 0 20px 20px rgba(0,0,0,.15);
  80. }
  81. /*********************************************
  82. * VIEW FRAGMENTS
  83. *********************************************/
  84. #reveal .slides section .fragment {
  85. opacity: 0;
  86. -webkit-transition: all .2s ease;
  87. -moz-transition: all .2s ease;
  88. -ms-transition: all .2s ease;
  89. -o-transition: all .2s ease;
  90. transition: all .2s ease;
  91. }
  92. #reveal .slides section .fragment.visible {
  93. opacity: 1;
  94. }
  95. /*********************************************
  96. * DEFAULT ELEMENT STYLES
  97. *********************************************/
  98. #reveal .slides section {
  99. line-height: 1.2em;
  100. font-weight: normal;
  101. }
  102. #reveal strong,
  103. #reveal b {
  104. font-weight: bold;
  105. }
  106. #reveal em,
  107. #reveal i {
  108. font-style: italic;
  109. }
  110. #reveal ol,
  111. #reveal ul {
  112. display: inline-block;
  113. text-align: left;
  114. margin: 0 auto;
  115. }
  116. #reveal ol {
  117. list-style: decimal;
  118. list-style-position: inside;
  119. }
  120. #reveal ul {
  121. list-style: disc;
  122. }
  123. #reveal p {
  124. margin-bottom: 10px;
  125. }
  126. #reveal blockquote {
  127. display: block;
  128. position: relative;
  129. width: 70%;
  130. margin: 5px auto;
  131. padding: 5px;
  132. font-style: italic;
  133. background: rgba(255, 255, 255, 0.05);
  134. box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
  135. }
  136. #reveal blockquote:before {
  137. content: '“';
  138. }
  139. #reveal blockquote:after {
  140. content: '”';
  141. }
  142. #reveal pre {
  143. display: block;
  144. position: relative;
  145. width: 90%;
  146. margin: 10px auto;
  147. text-align: left;
  148. font-size: 14px;
  149. font-family: monospace;
  150. line-height: 1.2em;
  151. word-wrap: break-word;
  152. box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
  153. }
  154. #reveal code {
  155. font-family: monospace;
  156. }
  157. #reveal small {
  158. font-size: 60%;
  159. line-height: 1em;
  160. vertical-align: top;
  161. }
  162. #reveal q {
  163. font-style: italic;
  164. }
  165. #reveal q:before {
  166. content: '“';
  167. }
  168. #reveal q:after {
  169. content: '”';
  170. }
  171. #reveal a:not(.image) {
  172. color: hsl(185, 85%, 50%);
  173. text-decoration: none;
  174. -webkit-transition: all .2s ease;
  175. -moz-transition: all .2s ease;
  176. -ms-transition: all .2s ease;
  177. -o-transition: all .2s ease;
  178. transition: all .2s ease;
  179. }
  180. #reveal a:not(.image):hover {
  181. color: hsl(185, 85%, 70%);
  182. background: hsla(185, 25%, 20%, 0.4);
  183. text-shadow: none;
  184. border: none;
  185. border-radius: 2px;
  186. }
  187. #reveal section img {
  188. margin: 30px 0 0 0;
  189. background: rgba(255,255,255,0.12);
  190. border: 4px solid #eee;
  191. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  192. -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  193. -o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  194. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  195. -webkit-transition: all .2s linear;
  196. -moz-transition: all .2s linear;
  197. -ms-transition: all .2s linear;
  198. -o-transition: all .2s linear;
  199. transition: all .2s linear;
  200. }
  201. #reveal a:hover img {
  202. background: rgba(255,255,255,0.2);
  203. border-color: #13DAEC;
  204. -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  205. -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  206. -o-box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  207. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  208. }
  209. /*********************************************
  210. * CONTROLS
  211. *********************************************/
  212. #reveal .controls {
  213. display: none;
  214. position: fixed;
  215. width: 100px;
  216. height: 100px;
  217. right: 0;
  218. bottom: 0;
  219. }
  220. #reveal .controls a {
  221. font-size: 30px;
  222. position: absolute;
  223. opacity: 0.1;
  224. color: #fff;
  225. }
  226. #reveal .controls a.enabled {
  227. opacity: 0.6;
  228. color: hsl(185, 85%, 70%);
  229. text-shadow: 0px 0px 2px hsla(185, 45%, 70%, 0.3);
  230. }
  231. #reveal .controls a.enabled:active {
  232. margin-top: 1px;
  233. }
  234. #reveal .controls .left {
  235. top: 30px;
  236. }
  237. #reveal .controls .right {
  238. left: 60px;
  239. top: 30px;
  240. }
  241. #reveal .controls .up {
  242. left: 30px;
  243. }
  244. #reveal .controls .down {
  245. left: 30px;
  246. top: 60px;
  247. }
  248. /*********************************************
  249. * PROGRESS BAR
  250. *********************************************/
  251. #reveal .progress {
  252. position: fixed;
  253. display: none;
  254. height: 3px;
  255. width: 100%;
  256. bottom: 0;
  257. left: 0;
  258. background: rgba(0,0,0,0.2);
  259. }
  260. #reveal .progress span {
  261. display: block;
  262. background: hsl(185, 85%, 50%);
  263. height: 100%;
  264. width: 0px;
  265. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  266. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  267. -ms-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  268. -o-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  269. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  270. }
  271. /*********************************************
  272. * ROLLING LINKS
  273. *********************************************/
  274. #reveal .roll {
  275. display: inline-block;
  276. overflow: hidden;
  277. vertical-align: top;
  278. -webkit-perspective: 400px;
  279. -moz-perspective: 400px;
  280. -ms-perspective: 400px;
  281. perspective: 400px;
  282. -webkit-perspective-origin: 50% 50%;
  283. -moz-perspective-origin: 50% 50%;
  284. -ms-perspective-origin: 50% 50%;
  285. perspective-origin: 50% 50%;
  286. }
  287. #reveal .roll:hover {
  288. background: none;
  289. text-shadow: none;
  290. }
  291. #reveal .roll span {
  292. display: block;
  293. position: relative;
  294. padding: 0 2px;
  295. pointer-events: none;
  296. -webkit-transition: all 400ms ease;
  297. -moz-transition: all 400ms ease;
  298. -ms-transition: all 400ms ease;
  299. transition: all 400ms ease;
  300. -webkit-transform-origin: 50% 0%;
  301. -moz-transform-origin: 50% 0%;
  302. -ms-transform-origin: 50% 0%;
  303. transform-origin: 50% 0%;
  304. -webkit-transform-style: preserve-3d;
  305. -moz-transform-style: preserve-3d;
  306. -ms-transform-style: preserve-3d;
  307. transform-style: preserve-3d;
  308. }
  309. #reveal .roll:hover span {
  310. background: rgba(0,0,0,0.5);
  311. -webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  312. -moz-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  313. -ms-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  314. transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
  315. }
  316. #reveal .roll span:after {
  317. content: attr(data-title);
  318. display: block;
  319. position: absolute;
  320. left: 0;
  321. top: 0;
  322. padding: 0 2px;
  323. color: #fff;
  324. background: hsl(185, 60%, 35%);
  325. -webkit-transform-origin: 50% 0%;
  326. -moz-transform-origin: 50% 0%;
  327. -ms-transform-origin: 50% 0%;
  328. transform-origin: 50% 0%;
  329. -webkit-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  330. -moz-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  331. -ms-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  332. transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
  333. }
  334. /*********************************************
  335. * SLIDES
  336. *********************************************/
  337. #reveal .slides {
  338. position: absolute;
  339. width: 900px;
  340. height: 600px;
  341. left: 50%;
  342. top: 50%;
  343. margin-left: -450px;
  344. margin-top: -320px;
  345. padding: 20px 0px;
  346. text-align: center;
  347. -webkit-transition: -webkit-perspective .4s ease;
  348. -moz-transition: -moz-perspective .4s ease;
  349. -ms-transition: -ms-perspective .4s ease;
  350. -o-transition: -o-perspective .4s ease;
  351. transition: perspective .4s ease;
  352. -webkit-perspective: 600px;
  353. -moz-perspective: 600px;
  354. -ms-perspective: 600px;
  355. perspective: 600px;
  356. -webkit-perspective-origin: 50% 25%;
  357. -moz-perspective-origin: 50% 25%;
  358. -ms-perspective-origin: 50% 25%;
  359. perspective-origin: 50% 25%;
  360. }
  361. #reveal .slides>section,
  362. #reveal .slides>section>section {
  363. display: none;
  364. position: absolute;
  365. width: 100%;
  366. min-height: 600px;
  367. z-index: 10;
  368. -webkit-transform-style: preserve-3d;
  369. -moz-transform-style: preserve-3d;
  370. -ms-transform-style: preserve-3d;
  371. transform-style: preserve-3d;
  372. -webkit-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  373. -moz-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  374. -ms-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  375. -o-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  376. transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  377. }
  378. #reveal .slides>section.present {
  379. display: block;
  380. z-index: 11;
  381. opacity: 1;
  382. }
  383. /*********************************************
  384. * DEFAULT TRANSITION
  385. *********************************************/
  386. #reveal .slides>section.past {
  387. display: block;
  388. opacity: 0;
  389. -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  390. -moz-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  391. -ms-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  392. transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
  393. }
  394. #reveal .slides>section.future {
  395. display: block;
  396. opacity: 0;
  397. -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  398. -moz-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  399. -ms-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  400. transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
  401. }
  402. #reveal .slides>section>section.past {
  403. display: block;
  404. opacity: 0;
  405. -webkit-transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  406. -moz-transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  407. -ms-transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  408. transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
  409. }
  410. #reveal .slides>section>section.future {
  411. display: block;
  412. opacity: 0;
  413. -webkit-transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  414. -moz-transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  415. -ms-transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  416. transform: translate3d(0, 50%, 0) rotateX(-70deg) translate3d(0, 50%, 0);
  417. }
  418. /*********************************************
  419. * CONCAVE TRANSITION
  420. *********************************************/
  421. #reveal.concave .slides>section.past {
  422. -webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  423. -moz-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  424. -ms-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  425. transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
  426. }
  427. #reveal.concave .slides>section.future {
  428. -webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  429. -moz-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  430. -ms-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  431. transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
  432. }
  433. #reveal.concave .slides>section>section.past {
  434. -webkit-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  435. -moz-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  436. -ms-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  437. transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
  438. }
  439. #reveal.concave .slides>section>section.future {
  440. -webkit-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  441. -moz-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  442. -ms-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  443. transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
  444. }
  445. /*********************************************
  446. * LINEAR TRANSITION
  447. *********************************************/
  448. #reveal.linear .slides>section.past {
  449. -webkit-transform: translate(-150%, 0);
  450. -moz-transform: translate(-150%, 0);
  451. -ms-transform: translate(-150%, 0);
  452. -o-transform: translate(-150%, 0);
  453. transform: translate(-150%, 0);
  454. }
  455. #reveal.linear .slides>section.future {
  456. -webkit-transform: translate(150%, 0);
  457. -moz-transform: translate(150%, 0);
  458. -ms-transform: translate(150%, 0);
  459. -o-transform: translate(150%, 0);
  460. transform: translate(150%, 0);
  461. }
  462. #reveal.linear .slides>section>section.past {
  463. -webkit-transform: translate(0, -150%);
  464. -moz-transform: translate(0, -150%);
  465. -ms-transform: translate(0, -150%);
  466. -o-transform: translate(0, -150%);
  467. transform: translate(0, -150%);
  468. }
  469. #reveal.linear .slides>section>section.future {
  470. -webkit-transform: translate(0, 150%);
  471. -moz-transform: translate(0, 150%);
  472. -ms-transform: translate(0, 150%);
  473. -o-transform: translate(0, 150%);
  474. transform: translate(0, 150%);
  475. }
  476. /*********************************************
  477. * BOX TRANSITION
  478. *********************************************/
  479. #reveal.cube .slides {
  480. margin-top: -350px;
  481. -webkit-perspective-origin: 50% 25%;
  482. -moz-perspective-origin: 50% 25%;
  483. -ms-perspective-origin: 50% 25%;
  484. perspective-origin: 50% 25%;
  485. -webkit-perspective: 1300px;
  486. -moz-perspective: 1300px;
  487. -ms-perspective: 1300px;
  488. perspective: 1300px;
  489. }
  490. #reveal.cube .slides section {
  491. padding: 30px;
  492. -webkit-backface-visibility: hidden;
  493. -moz-backface-visibility: hidden;
  494. -ms-backface-visibility: hidden;
  495. backface-visibility: hidden;
  496. -webkit-box-sizing: border-box;
  497. -moz-box-sizing: border-box;
  498. box-sizing: border-box;
  499. }
  500. #reveal.cube .slides section:not(.stack):before {
  501. content: '';
  502. position: absolute;
  503. display: block;
  504. width: 100%;
  505. height: 100%;
  506. left: 0;
  507. top: 0;
  508. background: #232628;
  509. border-radius: 4px;
  510. -webkit-transform: translateZ( -20px );
  511. -moz-transform: translateZ( -20px );
  512. -ms-transform: translateZ( -20px );
  513. -o-transform: translateZ( -20px );
  514. transform: translateZ( -20px );
  515. }
  516. #reveal.cube .slides section:not(.stack):after {
  517. content: '';
  518. position: absolute;
  519. display: block;
  520. width: 90%;
  521. height: 30px;
  522. left: 5%;
  523. bottom: 0;
  524. background: none;
  525. z-index: 1;
  526. border-radius: 4px;
  527. box-shadow: 0px 95px 25px rgba(0,0,0,0.2);
  528. -webkit-transform: translateZ(-90px) rotateX( 65deg );
  529. -moz-transform: translateZ(-90px) rotateX( 65deg );
  530. -ms-transform: translateZ(-90px) rotateX( 65deg );
  531. -o-transform: translateZ(-90px) rotateX( 65deg );
  532. transform: translateZ(-90px) rotateX( 65deg );
  533. }
  534. #reveal.cube .slides>section.stack {
  535. padding: 0;
  536. background: none;
  537. }
  538. #reveal.cube .slides>section.past {
  539. -webkit-transform-origin: 100% 0%;
  540. -moz-transform-origin: 100% 0%;
  541. -ms-transform-origin: 100% 0%;
  542. transform-origin: 100% 0%;
  543. -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg);
  544. -moz-transform: translate3d(-100%, 0, 0) rotateY(-90deg);
  545. -ms-transform: translate3d(-100%, 0, 0) rotateY(-90deg);
  546. transform: translate3d(-100%, 0, 0) rotateY(-90deg);
  547. }
  548. #reveal.cube .slides>section.future {
  549. -webkit-transform-origin: 0% 0%;
  550. -moz-transform-origin: 0% 0%;
  551. -ms-transform-origin: 0% 0%;
  552. transform-origin: 0% 0%;
  553. -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg);
  554. -moz-transform: translate3d(100%, 0, 0) rotateY(90deg);
  555. -ms-transform: translate3d(100%, 0, 0) rotateY(90deg);
  556. transform: translate3d(100%, 0, 0) rotateY(90deg);
  557. }
  558. #reveal.cube .slides>section>section.past {
  559. -webkit-transform-origin: 0% 100%;
  560. -moz-transform-origin: 0% 100%;
  561. -ms-transform-origin: 0% 100%;
  562. transform-origin: 0% 100%;
  563. -webkit-transform: translate3d(0, -100%, 0) rotateX(90deg);
  564. -moz-transform: translate3d(0, -100%, 0) rotateX(90deg);
  565. -ms-transform: translate3d(0, -100%, 0) rotateX(90deg);
  566. transform: translate3d(0, -100%, 0) rotateX(90deg);
  567. }
  568. #reveal.cube .slides>section>section.future {
  569. -webkit-transform-origin: 0% 0%;
  570. -moz-transform-origin: 0% 0%;
  571. -ms-transform-origin: 0% 0%;
  572. transform-origin: 0% 0%;
  573. -webkit-transform: translate3d(0, 100%, 0) rotateX(-90deg);
  574. -moz-transform: translate3d(0, 100%, 0) rotateX(-90deg);
  575. -ms-transform: translate3d(0, 100%, 0) rotateX(-90deg);
  576. transform: translate3d(0, 100%, 0) rotateX(-90deg);
  577. }
  578. /*********************************************
  579. * PAGE TRANSITION
  580. *********************************************/
  581. #reveal.page .slides {
  582. margin-top: -350px;
  583. -webkit-perspective-origin: 50% 50%;
  584. -moz-perspective-origin: 50% 50%;
  585. -ms-perspective-origin: 50% 50%;
  586. perspective-origin: 50% 50%;
  587. -webkit-perspective: 3000px;
  588. -moz-perspective: 3000px;
  589. -ms-perspective: 3000px;
  590. perspective: 3000px;
  591. }
  592. #reveal.page .slides section {
  593. padding: 30px;
  594. -webkit-box-sizing: border-box;
  595. -moz-box-sizing: border-box;
  596. box-sizing: border-box;
  597. }
  598. #reveal.page .slides section.past {
  599. z-index: 12;
  600. }
  601. #reveal.page .slides section:not(.stack):before {
  602. content: '';
  603. position: absolute;
  604. display: block;
  605. width: 100%;
  606. height: 100%;
  607. left: 0;
  608. top: 0;
  609. background: #232628;
  610. -webkit-transform: translateZ( -20px );
  611. -moz-transform: translateZ( -20px );
  612. -ms-transform: translateZ( -20px );
  613. -o-transform: translateZ( -20px );
  614. transform: translateZ( -20px );
  615. }
  616. #reveal.page .slides section:not(.stack):after {
  617. content: '';
  618. position: absolute;
  619. display: block;
  620. width: 90%;
  621. height: 30px;
  622. left: 5%;
  623. bottom: 0;
  624. background: none;
  625. z-index: 1;
  626. border-radius: 4px;
  627. box-shadow: 0px 95px 25px rgba(0,0,0,0.2);
  628. -webkit-transform: translateZ(-90px) rotateX( 65deg );
  629. }
  630. #reveal.page .slides>section.stack {
  631. padding: 0;
  632. background: none;
  633. }
  634. #reveal.page .slides>section.past {
  635. -webkit-transform-origin: 0% 0%;
  636. -moz-transform-origin: 0% 0%;
  637. -ms-transform-origin: 0% 0%;
  638. transform-origin: 0% 0%;
  639. -webkit-transform: translate3d(-40%, 0, 0) rotateY(-80deg);
  640. -moz-transform: translate3d(-40%, 0, 0) rotateY(-80deg);
  641. -ms-transform: translate3d(-40%, 0, 0) rotateY(-80deg);
  642. transform: translate3d(-40%, 0, 0) rotateY(-80deg);
  643. }
  644. #reveal.page .slides>section.future {
  645. -webkit-transform-origin: 100% 0%;
  646. -moz-transform-origin: 100% 0%;
  647. -ms-transform-origin: 100% 0%;
  648. transform-origin: 100% 0%;
  649. -webkit-transform: translate3d(0, 0, 0);
  650. -moz-transform: translate3d(0, 0, 0);
  651. -ms-transform: translate3d(0, 0, 0);
  652. transform: translate3d(0, 0, 0);
  653. }
  654. #reveal.page .slides>section>section.past {
  655. -webkit-transform-origin: 0% 0%;
  656. -moz-transform-origin: 0% 0%;
  657. -ms-transform-origin: 0% 0%;
  658. transform-origin: 0% 0%;
  659. -webkit-transform: translate3d(0, -40%, 0) rotateX(80deg);
  660. -moz-transform: translate3d(0, -40%, 0) rotateX(80deg);
  661. -ms-transform: translate3d(0, -40%, 0) rotateX(80deg);
  662. transform: translate3d(0, -40%, 0) rotateX(80deg);
  663. }
  664. #reveal.page .slides>section>section.future {
  665. -webkit-transform-origin: 0% 100%;
  666. -moz-transform-origin: 0% 100%;
  667. -ms-transform-origin: 0% 100%;
  668. transform-origin: 0% 100%;
  669. -webkit-transform: translate3d(0, 0, 0);
  670. -moz-transform: translate3d(0, 0, 0);
  671. -ms-transform: translate3d(0, 0, 0);
  672. transform: translate3d(0, 0, 0);
  673. }
  674. /*********************************************
  675. * NEON THEME
  676. *********************************************/
  677. #reveal.neon a,
  678. #reveal.neon a:hover,
  679. #reveal.neon .controls a.enabled {
  680. color: #5de048;
  681. }
  682. #reveal.neon .progress span,
  683. #reveal.neon .roll span:after {
  684. background: #5de048;
  685. }
  686. #reveal.neon a.image:hover img {
  687. border-color: #5de048;
  688. }
  689. /*********************************************
  690. * OVERVIEW
  691. *********************************************/
  692. #reveal.overview .slides {
  693. -webkit-perspective: 700px;
  694. -moz-perspective: 700px;
  695. -ms-perspective: 700px;
  696. perspective: 700px;
  697. }
  698. #reveal.overview .slides section {
  699. padding: 20px 0;
  700. opacity: 1;
  701. cursor: pointer;
  702. background: rgba(0,0,0,0.1);
  703. }
  704. #reveal.overview .slides section .fragment {
  705. opacity: 1;
  706. }
  707. #reveal.overview .slides section:after,
  708. #reveal.overview .slides section:before {
  709. display: none !important;
  710. }
  711. #reveal.overview .slides section>section {
  712. opacity: 1;
  713. cursor: pointer;
  714. }
  715. #reveal.overview .slides section:hover {
  716. background: rgba(0,0,0,0.3);
  717. }
  718. #reveal.overview .slides section.present {
  719. background: rgba(0,0,0,0.3);
  720. }
  721. #reveal.overview .slides>section.stack {
  722. background: none;
  723. padding: 0;
  724. }
  725. /*********************************************
  726. * FALLBACK
  727. *********************************************/
  728. .no-transforms {
  729. overflow-y: auto;
  730. }
  731. .no-transforms .slides section {
  732. -webkit-transform: none;
  733. -moz-transform: none;
  734. -ms-transform: none;
  735. transform: none;
  736. display: block!important;
  737. opacity: 1!important;
  738. position: relative!important;
  739. }
  740. /*********************************************
  741. * DEFAULT STATES
  742. *********************************************/
  743. .state-background {
  744. position: absolute;
  745. width: 100%;
  746. height: 100%;
  747. background: rgba( 0, 0, 0, 0 );
  748. -webkit-transition: background 800ms ease;
  749. -moz-transition: background 800ms ease;
  750. -ms-transition: background 800ms ease;
  751. -o-transition: background 800ms ease;
  752. transition: background 800ms ease;
  753. }
  754. .alert .state-background {
  755. background: rgba( 200, 50, 30, 0.6 );
  756. }
  757. .soothe .state-background {
  758. background: rgba( 50, 200, 90, 0.4 );
  759. }
  760. .blackout .state-background {
  761. background: rgba( 0, 0, 0, 0.6 );
  762. }