main.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. }
  99. #main section.future {
  100. display: block;
  101. opacity: 0;
  102. -webkit-transform: translate3d(100%, 0, 0)
  103. rotateY(90deg)
  104. translate3d(100%, 0, 0);
  105. }
  106. #main section>section.past {
  107. display: block;
  108. opacity: 0;
  109. -webkit-transform: translate3d(0, -50%, 0)
  110. rotateX(70deg)
  111. translate3d(0, -50%, 0);
  112. }
  113. #main section>section.future {
  114. display: block;
  115. opacity: 0;
  116. -webkit-transform: translate3d(0, 50%, 0)
  117. rotateX(-70deg)
  118. translate3d(0, 50%, 0);
  119. }
  120. /*********************************************
  121. * DEFAULT ELEMENT STYLES
  122. *********************************************/
  123. #main>section {
  124. line-height: 1.2em;
  125. text-shadow: 0px 0px 2px #fff, 0px 0px 4px #bbb;
  126. font-weight: 600;
  127. }
  128. ol {
  129. list-style: decimal;
  130. list-style-position: inside;
  131. }
  132. li, p {
  133. margin-bottom: 10px;
  134. }
  135. a:not(.image) {
  136. color: #1b6263;
  137. text-decoration: none;
  138. border-bottom: 1px dashed rgba(0,0,0,0.3);
  139. padding: 1px 3px;
  140. }
  141. a:not(.image):hover {
  142. color: #fff;
  143. background: #2fa794;
  144. text-shadow: none;
  145. border: none;
  146. }
  147. img {
  148. margin: 30px 0 0 0;
  149. background: rgba(255,255,255,0.12);
  150. border: 4px solid #eee;
  151. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  152. -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  153. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  154. -webkit-transition: all .11s linear;
  155. -moz-transition: all .11s linear;
  156. -o-transition: all .11s linear;
  157. transition: all .11s linear;
  158. }
  159. a.image:hover img {
  160. background: rgba(255,255,255,0.2);
  161. -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  162. -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  163. box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  164. }