main.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. font-family: 'League Gothic', Arial, Helvetica, sans-serif;
  45. line-height: 0.9em;
  46. letter-spacing: 0.02em;
  47. text-transform: uppercase;
  48. color: #222;
  49. text-shadow: 0px 0px 2px #fff, 0px 0px 4px #bbb;
  50. }
  51. h1 { font-size: 136px; }
  52. h2 { font-size: 76px; }
  53. h3 { font-size: 56px; }
  54. h4 { font-size: 36px; }
  55. h1.inverted,
  56. h2.inverted,
  57. h3.inverted,
  58. h4.inverted {
  59. color: #fff;
  60. text-shadow: 0px 0px 2px #fff, 0px 0px 2px #888;
  61. }
  62. /*********************************************
  63. * SLIDES
  64. *********************************************/
  65. #main {
  66. position: absolute;
  67. width: 800px;
  68. height: 600px;
  69. left: 50%;
  70. top: 50%;
  71. margin-left: -400px;
  72. margin-top: -320px;
  73. text-align: center;
  74. -webkit-perspective: 600px;
  75. -webkit-perspective-origin: 50% 25%;
  76. }
  77. #main>section,
  78. #main>section>section {
  79. display: none;
  80. position: absolute;
  81. width: 100%;
  82. min-height: 600px;
  83. -webkit-transform-style: preserve-3d;
  84. -webkit-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  85. -moz-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  86. -o-transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  87. transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  88. }
  89. #main section.past {
  90. display: block;
  91. opacity: 0;
  92. -webkit-transform: translate3d(-100%, 0, 0)
  93. rotateY(-90deg)
  94. translate3d(-100%, 0, 0);
  95. }
  96. #main section.present {
  97. display: block;
  98. position: relative;
  99. z-index: 10;
  100. }
  101. #main section.future {
  102. display: block;
  103. opacity: 0;
  104. -webkit-transform: translate3d(100%, 0, 0)
  105. rotateY(90deg)
  106. translate3d(100%, 0, 0);
  107. }
  108. #main section>section.past {
  109. display: block;
  110. opacity: 0;
  111. -webkit-transform: translate3d(0, -50%, 0)
  112. rotateX(70deg)
  113. translate3d(0, -50%, 0);
  114. }
  115. #main section>section.future {
  116. display: block;
  117. opacity: 0;
  118. -webkit-transform: translate3d(0, 50%, 0)
  119. rotateX(-70deg)
  120. translate3d(0, 50%, 0);
  121. }
  122. /*********************************************
  123. * DEFAULT ELEMENT STYLES
  124. *********************************************/
  125. #main>section {
  126. line-height: 1.2em;
  127. text-shadow: 0px 0px 2px #fff, 0px 0px 4px #bbb;
  128. font-weight: 600;
  129. }
  130. ol {
  131. list-style: decimal;
  132. list-style-position: inside;
  133. }
  134. li, p {
  135. margin-bottom: 10px;
  136. }
  137. a:not(.image) {
  138. color: #1b6263;
  139. text-decoration: none;
  140. border-bottom: 1px dashed rgba(0,0,0,0.3);
  141. padding: 1px 3px;
  142. }
  143. a:not(.image):hover {
  144. color: #fff;
  145. background: #2fa794;
  146. text-shadow: none;
  147. border: none;
  148. }
  149. img {
  150. margin: 30px 0 0 0;
  151. background: rgba(255,255,255,0.12);
  152. border: 4px solid #eee;
  153. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  154. -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  155. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  156. -webkit-transition: all .11s linear;
  157. -moz-transition: all .11s linear;
  158. -o-transition: all .11s linear;
  159. transition: all .11s linear;
  160. }
  161. a.image:hover img {
  162. background: rgba(255,255,255,0.2);
  163. -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  164. -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  165. box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  166. }