main.css 12 KB

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