main-noAnimation.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. @import url('https://fonts.googleapis.com/css?family=Hammersmith+One|Playfair+Display:900|Roboto:100,300,400,900');
  2. html{
  3. font-size: 10px;
  4. }
  5. .clearfix::after {
  6. content:"";
  7. display: block;
  8. clear: both;
  9. }
  10. body * {
  11. box-sizing: border-box;
  12. }
  13. body {
  14. margin: 0;
  15. padding: 0;
  16. font-family: "roboto", sans-serif;
  17. font-size: 1.4rem;
  18. }
  19. h1,h2,h3,h4 {
  20. margin: 0;
  21. padding: 0;
  22. }
  23. p {
  24. font-weight: 100;
  25. letter-spacing: 0.05em;
  26. }
  27. header {
  28. background: url("../img/header-background.png") center top / cover;
  29. height: 670px;
  30. }
  31. header .container {
  32. width: 940px;
  33. margin: 0 auto;
  34. }
  35. header .top-line .logo {
  36. font-size: 3rem;
  37. color: #42a0c4;
  38. font-weight: 100;
  39. float: left;
  40. }
  41. header .top-line .logo img {
  42. position: relative;
  43. top: 15px;
  44. }
  45. header .top-line .nav {
  46. float: right;
  47. margin-top: 35px;
  48. }
  49. header .top-line .nav ul {
  50. margin: 0;
  51. padding: 0;
  52. list-style: none;
  53. }
  54. header .top-line .nav li {
  55. padding: 0;
  56. display: inline-block;
  57. margin-left: 25px;
  58. }
  59. header .top-line .nav a{
  60. font-size: 1.3rem;
  61. font-weight: 900;
  62. color: #fff;
  63. text-decoration: none;
  64. transition: color 0.5s ease;
  65. }
  66. header .top-line .nav a:hover {
  67. color: #00e0d0;
  68. }
  69. header .slider {
  70. position: relative;
  71. width: 100%;
  72. height: 500px;
  73. }
  74. header .slider .slide {
  75. text-align: center;
  76. position: absolute;
  77. opacity: 0;
  78. left: 100px;
  79. width: 80%;
  80. transition: opacity 0.3s ease;
  81. }
  82. header .slider .slide h1 {
  83. color: #fff;
  84. font-weight: 900;
  85. font-size: 3.2rem;
  86. margin-top: 160px;
  87. margin-bottom: 45px;
  88. font-family: 'Playfair Display', sans-serif;
  89. }
  90. header .slider .slide h1::after {
  91. content: "";
  92. height: 1px;
  93. width: 50px;
  94. background-color: #00e0d0;
  95. display: block;
  96. position: relative;
  97. left: 350px;
  98. top: 20px;
  99. }
  100. header .slider .slide p {
  101. color: #fff;
  102. line-height: 24px;
  103. }
  104. header .slider .slide:first-child {
  105. opacity: 1;
  106. z-index: 1;
  107. }
  108. header .slider .slide input[type="button"] {
  109. background: none;
  110. border: 1px solid #00e0d0;
  111. padding: 10px 15px;
  112. color: #00e0d0;
  113. font-family: 'Hammersmith One', sans-serif;
  114. font-size: 1.6rem;
  115. margin-top: 40px;
  116. }
  117. header .slider .arrows img{
  118. position: absolute;
  119. z-index: 1;
  120. }
  121. header .slider .arrows img:first-child {
  122. top: 50%;
  123. }
  124. header .slider .arrows img:last-child {
  125. top: 50%;
  126. right: 0;
  127. }