main.css 12 KB

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