_main-banner.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /* Main-banner */
  2. @media screen and (min-width: 1209px) {
  3. .main-banner__nav-button {
  4. &:hover {
  5. border-color: #ffffff;
  6. color: #ffffff;
  7. }
  8. }
  9. }
  10. .main-banner {
  11. margin-bottom: 50px;
  12. }
  13. .main-banner__list {
  14. width: 100%;
  15. height: 426px;
  16. position: relative;
  17. }
  18. .main-banner__item {
  19. position: absolute;
  20. left: 0px;
  21. top: 0px;
  22. width: 100%;
  23. height: 100%;
  24. color: #ffffff;
  25. z-index: 0;
  26. &.show {
  27. z-index: 1;
  28. .main-banner__item__img {
  29. opacity: 1;
  30. }
  31. .main-banner__item__wrapper {
  32. .main-button {
  33. transform: translateX(0px);
  34. opacity: 1;
  35. }
  36. }
  37. .main-banner__item__caption {
  38. transform: translateX(0px);
  39. opacity: 1;
  40. }
  41. .main-banner__item__sub {
  42. transform: translateX(0px);
  43. opacity: 1;
  44. }
  45. }
  46. }
  47. .main-banner__item__img {
  48. position: absolute;
  49. left: 0px;
  50. top: 0px;
  51. width: 100%;
  52. height: 100%;
  53. background-position: center;
  54. background-repeat: no-repeat;
  55. background-size: cover;
  56. opacity: 0;
  57. transition: opacity .6s;
  58. &::before {
  59. content: "";
  60. position: absolute;
  61. left: 0px;
  62. top: 0px;
  63. width: 100%;
  64. height: 100%;
  65. background: linear-gradient(0deg, rgba(28, 28, 28, 0.35), rgba(28, 28, 28, 0.35));
  66. }
  67. }
  68. .main-banner__item__wrapper {
  69. display: flex;
  70. flex-direction: column;
  71. justify-content: center;
  72. height: 100%;
  73. padding-left: 155px;
  74. .main-button {
  75. transform: translateX(-100px);
  76. opacity: 0;
  77. transition: opacity .4s .4s, transform .4s .4s, background-color .4s;
  78. }
  79. }
  80. .main-banner__item__caption {
  81. font-family: "Cochin", serif;
  82. font-weight: 700;
  83. font-size: 48px;
  84. line-height: 56px;
  85. letter-spacing: 0.05em;
  86. text-transform: uppercase;
  87. margin-bottom: 20px;
  88. max-width: 500px;
  89. transform: translateX(-100px);
  90. opacity: 0;
  91. transition: opacity .4s, transform .4s;
  92. }
  93. .main-banner__item__sub {
  94. font-size: 16px;
  95. line-height: 21px;
  96. margin-bottom: 20px;
  97. max-width: 500px;
  98. transform: translateX(-100px);
  99. opacity: 0;
  100. transition: opacity .4s .2s, transform .4s .2s;
  101. }
  102. .main-banner__nav-wrapper {
  103. display: flex;
  104. justify-content: flex-end;
  105. margin-top: -81px;
  106. position: relative;
  107. z-index: 2;
  108. }
  109. .main-banner__nav-list {
  110. display: flex;
  111. align-items: center;
  112. background-color: rgba(255, 255, 255, 0.25);
  113. padding: 20px;
  114. color: #E0E0E0;
  115. }
  116. .main-banner__nav-button {
  117. display: flex;
  118. flex-direction: column;
  119. padding-left: 15px;
  120. border-left: 1px solid #E0E0E0;
  121. padding-right: 30px;
  122. font-weight: 500;
  123. font-size: 14px;
  124. line-height: 18px;
  125. width: 200px;
  126. transition: border-color .4s, color .4s;
  127. &:last-child {
  128. padding-right: 0px;
  129. }
  130. &.active {
  131. border-color: #ffffff;
  132. color: #ffffff;
  133. }
  134. }
  135. .main-banner__nav__number {
  136. font-size: 12px;
  137. margin-bottom: 5px;
  138. }
  139. .main-banner__nav__text {
  140. white-space: nowrap;
  141. text-overflow: ellipsis;
  142. overflow: hidden;
  143. width: 100%;
  144. text-align: left;
  145. }
  146. .main-banner__nav-arrows {
  147. display: none;
  148. }
  149. @media screen and (max-width: 1280px) {
  150. .main-banner__item__wrapper {
  151. padding-left: 120px;
  152. }
  153. }
  154. @media screen and (max-width: 1210px) {
  155. .main-banner__list {
  156. height: 360px;
  157. }
  158. .main-banner__item__wrapper {
  159. padding-left: 20px;
  160. padding-top: 50px;
  161. .main-button {
  162. margin-top: auto;
  163. margin-bottom: 105px;
  164. }
  165. }
  166. .main-banner__item__caption {
  167. font-size: 30px;
  168. line-height: 35px;
  169. }
  170. .main-banner__item__sub {
  171. font-size: 16px;
  172. line-height: 21px;
  173. }
  174. .main-banner__nav-wrapper {
  175. margin-top: -74px;
  176. padding: 0px;
  177. }
  178. .main-banner__nav-list {
  179. position: relative;
  180. justify-content: space-between;
  181. width: 100%;
  182. padding: 13px 20px;
  183. }
  184. .main-banner__nav-button {
  185. padding-left: 10px;
  186. padding-right: 20px;
  187. width: calc(100% - 95px);
  188. &:not(.active) {
  189. position: absolute;
  190. opacity: 0;
  191. left: 0px;
  192. top: 0px;
  193. }
  194. }
  195. .main-banner__nav-arrows {
  196. display: flex;
  197. align-items: center;
  198. }
  199. .main-banner__nav-arrows__item {
  200. display: flex;
  201. justify-content: center;
  202. align-items: center;
  203. width: 48px;
  204. height: 48px;
  205. border: 1px solid #E0E0E0;
  206. color: #E0E0E0;
  207. font-size: 9px;
  208. &:first-child {
  209. border-right: none;
  210. }
  211. &:last-child {
  212. margin-left: -1px;
  213. }
  214. }
  215. }
  216. /* /Main-banner */