main.css 11 KB

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