main.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /**
  2. * @author Hakim El Hattab
  3. */
  4. /*********************************************
  5. * FONT-FACE DEFINITIONS
  6. *********************************************/
  7. @font-face {
  8. font-family: 'League Gothic';
  9. src: url('../assets/fonts/leaguegothic/league_gothic-webfont.ttf') format('truetype');
  10. font-weight: normal;
  11. font-style: normal;
  12. }
  13. /*********************************************
  14. * GLOBAL STYLES
  15. *********************************************/
  16. html, body {
  17. padding: 0;
  18. margin: 0;
  19. overflow: hidden;
  20. font-family: 'Crimson Text', Times, 'Times New Roman', serif;
  21. font-size: 36px;
  22. background: #fff;
  23. color: #222;
  24. width: 100%;
  25. height: 100%;
  26. background-image: -webkit-gradient(
  27. radial,
  28. 50% 50%, 0,
  29. 50% 50%, 1000,
  30. from(rgba(245,245,245,1.0)),
  31. to(rgba(100,100,100,1.0))
  32. );
  33. background-image: -moz-radial-gradient(
  34. 50% 50% 90deg,
  35. rgba(245,245,245,1.0) 0%,
  36. rgba(100,100,100,1.0) 100%
  37. );
  38. }
  39. /*********************************************
  40. * HEADERS
  41. *********************************************/
  42. h1, h2, h3, h4 {
  43. margin: 0 0 20px 0;
  44. color: #222;
  45. font-family: 'League Gothic', Arial, Helvetica, sans-serif;
  46. line-height: 0.9em;
  47. letter-spacing: 0.02em;
  48. text-transform: uppercase;
  49. text-shadow: 0px 1px 0px #eee,
  50. 0px 0px 4px #bbb;
  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 1px #fff,
  62. 0px 0px 1px #888;
  63. }
  64. /*********************************************
  65. * SLIDES
  66. *********************************************/
  67. #main {
  68. position: absolute;
  69. width: 800px;
  70. height: 600px;
  71. left: 50%;
  72. top: 50%;
  73. margin-left: -400px;
  74. margin-top: -320px;
  75. text-align: center;
  76. -webkit-perspective: 600px;
  77. -webkit-perspective-origin: 50% 25%;
  78. }
  79. #main>section,
  80. #main>section>section {
  81. display: none;
  82. position: absolute;
  83. width: 100%;
  84. min-height: 600px;
  85. -webkit-transform-style: preserve-3d;
  86. -webkit-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  87. -moz-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  88. -o-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  89. transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  90. }
  91. #main section.past {
  92. display: block;
  93. opacity: 0;
  94. -webkit-transform: translate3d(-100%, 0, 0)
  95. rotateY(-90deg)
  96. translate3d(-100%, 0, 0);
  97. }
  98. #main section.present {
  99. display: block;
  100. position: relative;
  101. z-index: 10;
  102. }
  103. #main section.future {
  104. display: block;
  105. opacity: 0;
  106. -webkit-transform: translate3d(100%, 0, 0)
  107. rotateY(90deg)
  108. translate3d(100%, 0, 0);
  109. }
  110. #main section>section.past {
  111. display: block;
  112. opacity: 0;
  113. -webkit-transform: translate3d(0, -50%, 0)
  114. rotateX(70deg)
  115. translate3d(0, -50%, 0);
  116. }
  117. #main section>section.future {
  118. display: block;
  119. opacity: 0;
  120. -webkit-transform: translate3d(0, 50%, 0)
  121. rotateX(-70deg)
  122. translate3d(0, 50%, 0);
  123. }
  124. /*********************************************
  125. * DEFAULT ELEMENT STYLES
  126. *********************************************/
  127. #main>section {
  128. line-height: 1.2em;
  129. text-shadow: 0px 0px 2px #fff, 0px 0px 4px #bbb;
  130. font-weight: 600;
  131. }
  132. ol {
  133. list-style: decimal;
  134. list-style-position: inside;
  135. }
  136. li, p {
  137. margin-bottom: 10px;
  138. }
  139. a:not(.image) {
  140. color: #1b6263;
  141. text-decoration: none;
  142. border-bottom: 1px dashed rgba(0,0,0,0.3);
  143. padding: 1px 3px;
  144. }
  145. a:not(.image):hover {
  146. color: #fff;
  147. background: #2fa794;
  148. text-shadow: none;
  149. border: none;
  150. border-radius: 2px;
  151. }
  152. img {
  153. margin: 30px 0 0 0;
  154. background: rgba(255,255,255,0.12);
  155. border: 4px solid #eee;
  156. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  157. -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  158. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  159. -webkit-transition: all .11s linear;
  160. -moz-transition: all .11s linear;
  161. -o-transition: all .11s linear;
  162. transition: all .11s linear;
  163. }
  164. a.image:hover img {
  165. background: rgba(255,255,255,0.2);
  166. -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  167. -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  168. box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  169. }