Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_header.scss 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. /*--------------------------------------------------------------
  2. 7. Header
  3. ----------------------------------------------------------------*/
  4. .cs_site_header {
  5. position: relative;
  6. z-index: 101;
  7. }
  8. .cs_hero_search_heading {
  9. display: flex;
  10. justify-content: space-between;
  11. margin-bottom: 50px;
  12. h3 {
  13. font-size: 20px;
  14. margin: 0;
  15. }
  16. }
  17. .cs_header_search_wrap {
  18. position: fixed;
  19. top: 0;
  20. left: 0;
  21. height: 100%;
  22. width: 100%;
  23. background-color: #fff;
  24. z-index: 10000;
  25. opacity: 0;
  26. visibility: hidden;
  27. padding-top: 90px;
  28. transition: all 0.3s ease;
  29. &.active {
  30. opacity: 1;
  31. visibility: visible;
  32. }
  33. }
  34. .cs_header_search_in {
  35. margin-left: auto;
  36. margin-right: auto;
  37. }
  38. .cs_header_search_form {
  39. display: flex;
  40. flex: 1;
  41. position: relative;
  42. input {
  43. width: 100%;
  44. background-color: #fff;
  45. padding: 7px 50px 7px 0px;
  46. border: none;
  47. outline: none;
  48. border-bottom: 2px solid;
  49. font-size: 30px;
  50. line-height: 1.5em;
  51. font-weight: 500;
  52. &:focus {
  53. border-color: $accent;
  54. }
  55. }
  56. button {
  57. position: absolute;
  58. right: 0;
  59. top: 0;
  60. height: 60px;
  61. width: 24px;
  62. background-color: transparent;
  63. outline: none;
  64. border: none;
  65. font-size: 22px;
  66. padding: 0;
  67. &:hover {
  68. color: $accent;
  69. transform: scale(1.1);
  70. }
  71. }
  72. }
  73. .cs_header_search_close {
  74. border: none;
  75. outline: none;
  76. font-size: 24px;
  77. background-color: transparent;
  78. &:hover {
  79. color: red;
  80. }
  81. }
  82. .cs_header_action {
  83. display: flex;
  84. align-items: center;
  85. gap: 20px;
  86. .cs_action_icon {
  87. background-color: transparent;
  88. padding: 0;
  89. border: none;
  90. transition: all 0.3s ease;
  91. display: flex;
  92. &:hover {
  93. color: $accent;
  94. }
  95. }
  96. }
  97. .cs_header_number {
  98. display: flex;
  99. align-items: center;
  100. gap: 7px;
  101. + .cs_header_action {
  102. padding-left: 20px;
  103. margin-left: 20px;
  104. position: relative;
  105. &::before {
  106. content: '';
  107. position: absolute;
  108. height: 18px;
  109. width: 1px;
  110. left: 0;
  111. top: 3px;
  112. background-color: $secondary;
  113. }
  114. }
  115. }
  116. .cs_text_slide {
  117. display: flex;
  118. line-height: 1.5em;
  119. > span {
  120. position: relative;
  121. display: flex;
  122. &:not(:last-child) {
  123. padding-right: 20px;
  124. margin-right: 20px;
  125. &::before {
  126. content: '';
  127. height: 16px;
  128. width: 1px;
  129. background-color: currentColor;
  130. position: absolute;
  131. right: 0;
  132. top: 5px;
  133. }
  134. }
  135. }
  136. .cs_text_slide_btn {
  137. display: inline-flex;
  138. position: relative;
  139. &::before {
  140. content: '';
  141. height: 1px;
  142. width: 100%;
  143. position: absolute;
  144. bottom: 2px;
  145. left: 0;
  146. background-color: currentColor;
  147. }
  148. }
  149. }
  150. .cs_site-branding {
  151. display: inline-block;
  152. max-width: 180px;
  153. }
  154. .cs_site_header {
  155. position: absolute;
  156. width: 100%;
  157. left: 0;
  158. top: 0px;
  159. transition: all 0.4s ease;
  160. }
  161. .cs_site_header.cs_style_1 {
  162. .cs_main_header_in,
  163. .cs_top_header_in {
  164. display: flex;
  165. align-items: center;
  166. flex-wrap: wrap;
  167. justify-content: space-between;
  168. position: relative;
  169. }
  170. .cs_main_header_in {
  171. height: 80px;
  172. }
  173. .cs_top_header_in {
  174. height: 60px;
  175. overflow: hidden;
  176. transition: all 0.3s ease;
  177. }
  178. .cs_top_header {
  179. background-color: #fff;
  180. }
  181. .cs_main_header_right {
  182. height: 100%;
  183. display: flex;
  184. justify-content: center;
  185. align-items: center;
  186. @media (max-width: 1199px) {
  187. padding-right: 50px;
  188. }
  189. }
  190. @media (max-width: 1199px) {
  191. .cs_btn.cs_style_1 {
  192. display: none;
  193. }
  194. }
  195. }
  196. .cs_site_header.cs_style_1 {
  197. &.cs_sticky_active {
  198. background-color: $white;
  199. box-shadow: 0 10px 10px -10px rgba(33, 43, 53, 0.1);
  200. }
  201. .cs_action_box {
  202. display: flex;
  203. align-items: center;
  204. .cs_action_value {
  205. margin-left: 15px;
  206. }
  207. > * {
  208. &:not(:last-child) {
  209. margin-right: 35px;
  210. }
  211. }
  212. }
  213. &.cs_color_1 {
  214. .cs_header_action {
  215. color: #fff;
  216. }
  217. .cs_nav_list {
  218. > li > a {
  219. color: $white;
  220. &:hover {
  221. color: $accent;
  222. &::after {
  223. border-color: $accent;
  224. }
  225. }
  226. }
  227. }
  228. &.cs_gescout_show {
  229. background-color: $primary;
  230. }
  231. }
  232. }
  233. @media screen and (max-width: 1199px) {
  234. .cs_main_header .cs_container-fluid_fluide {
  235. max-width: 100%;
  236. }
  237. .cs_site_header.cs_style_1 {
  238. .cs_nav {
  239. display: flex;
  240. }
  241. }
  242. }
  243. .cs_nav ul {
  244. margin: 0;
  245. padding: 0;
  246. list-style: none;
  247. }
  248. .cs_sticky_header {
  249. position: fixed !important;
  250. width: 100%;
  251. z-index: 999;
  252. }
  253. .cs_gescout_sticky {
  254. position: fixed !important;
  255. top: -110px;
  256. opacity: 0;
  257. transition: all 0.4s ease;
  258. background-color: $white;
  259. &.cs_site_header.cs_style_1 .cs_top_header_in {
  260. height: 0;
  261. }
  262. }
  263. .cs_gescout_show {
  264. top: 0 !important;
  265. opacity: 1;
  266. box-shadow: 0px 1px 2px 0px rgba(2, 0, 181, 0.1);
  267. }
  268. .cs_site_branding {
  269. display: inline-block;
  270. }
  271. @media screen and (min-width: 1200px) {
  272. .cs_main_header {
  273. position: relative;
  274. }
  275. .cs_main_header_center,
  276. .cs_top_header_center {
  277. position: absolute;
  278. left: 50%;
  279. top: 50%;
  280. transform: translate(-50%, -50%);
  281. }
  282. .cs_site_header.cs_style_1 {
  283. .cs_main_header_center {
  284. display: flex;
  285. justify-content: center;
  286. align-items: center;
  287. height: 100%;
  288. width: 100%;
  289. max-width: calc(100% - 300px);
  290. }
  291. .cs_main_header_left {
  292. height: 100%;
  293. display: flex;
  294. justify-content: center;
  295. align-items: center;
  296. gap: 50px;
  297. }
  298. }
  299. .cs_nav {
  300. display: flex;
  301. align-items: center;
  302. height: 100%;
  303. line-height: 1.6em;
  304. .cs_nav_list {
  305. display: flex !important;
  306. flex-wrap: wrap;
  307. height: inherit;
  308. > li {
  309. margin-right: 40px;
  310. height: inherit;
  311. &:last-child {
  312. margin-right: 0;
  313. }
  314. > a {
  315. padding: 10px 0;
  316. display: inline-flex;
  317. position: relative;
  318. height: inherit;
  319. align-items: center;
  320. }
  321. > ul {
  322. left: 0;
  323. top: calc(100% + 15px);
  324. }
  325. &:hover {
  326. > ul {
  327. top: 100%;
  328. opacity: 1;
  329. visibility: visible;
  330. transition: all 0.4s ease;
  331. }
  332. }
  333. &.menu-item-has-children {
  334. > a {
  335. position: relative;
  336. &::after {
  337. content: '';
  338. display: inline-block;
  339. height: 6px;
  340. width: 6px;
  341. border: 2px solid currentColor;
  342. transform: rotate(45deg);
  343. border-left: 0;
  344. border-top: 0;
  345. margin-left: 6px;
  346. position: relative;
  347. top: -1px;
  348. border-radius: 0px 0px 2px 0px;
  349. }
  350. }
  351. }
  352. }
  353. li:not(.cs_mega_menu) {
  354. position: relative;
  355. }
  356. ul {
  357. width: 260px;
  358. background-color: $primary;
  359. color: $white;
  360. position: absolute;
  361. padding: 10px 0;
  362. z-index: 100;
  363. opacity: 0;
  364. visibility: hidden;
  365. display: block !important;
  366. border-radius: 0 0 3px 3px;
  367. transition: all 0.1s ease;
  368. li {
  369. &:hover {
  370. ul {
  371. top: 0px;
  372. }
  373. > ul {
  374. opacity: 1;
  375. visibility: visible;
  376. transition: all 0.4s ease;
  377. }
  378. }
  379. }
  380. a {
  381. display: block;
  382. line-height: inherit;
  383. padding: 10px 20px;
  384. }
  385. ul {
  386. top: 15px;
  387. left: 100%;
  388. }
  389. }
  390. }
  391. }
  392. .cs_menu_toggle,
  393. .cs_menu_dropdown_toggle {
  394. display: none;
  395. }
  396. .cs_nav .cs_nav_list {
  397. .cs_mega_menu {
  398. position: initial;
  399. }
  400. .cs_mega_wrapper {
  401. width: 1320px !important;
  402. left: 50%;
  403. transform: translateX(-50%);
  404. display: flex !important;
  405. position: absolute;
  406. padding: 5px 15px 10px;
  407. a {
  408. padding: 7px 10px;
  409. }
  410. > li {
  411. flex: 1;
  412. padding: 10px 0;
  413. > a {
  414. font-size: 18px;
  415. font-weight: 600;
  416. pointer-events: none;
  417. &:hover {
  418. background-color: transparent;
  419. }
  420. }
  421. ul {
  422. position: initial;
  423. border: none;
  424. padding: 0;
  425. width: 100%;
  426. box-shadow: none;
  427. background-color: transparent;
  428. a {
  429. transition: all 0.4s ease;
  430. &:hover {
  431. letter-spacing: 1px;
  432. }
  433. }
  434. }
  435. }
  436. }
  437. .cs_mega_menu {
  438. &:hover {
  439. .cs_mega_wrapper {
  440. li ul {
  441. opacity: 1;
  442. visibility: visible;
  443. }
  444. }
  445. }
  446. }
  447. }
  448. .cs_nav
  449. .cs_nav_list
  450. > li
  451. ul:not(.cs_mega_wrapper)
  452. .menu-item-has-children
  453. > a {
  454. position: relative;
  455. }
  456. }
  457. .cs_header_cart {
  458. position: relative;
  459. }
  460. @media screen and (max-width: 1400px) {
  461. .cs_nav .cs_nav_list .cs_mega_wrapper {
  462. width: 1116px !important;
  463. }
  464. .cs_site-branding {
  465. max-width: 190px;
  466. }
  467. }
  468. @media screen and (max-width: 1199px) {
  469. .cs_nav .cs_nav_list .cs_mega_wrapper {
  470. width: 100% !important;
  471. }
  472. .cs_menu_dropdown_toggle {
  473. position: absolute;
  474. height: 40px;
  475. width: 100%;
  476. top: 0;
  477. left: 0px;
  478. display: flex;
  479. align-items: center;
  480. justify-content: flex-end;
  481. padding: 23px 18px;
  482. cursor: pointer;
  483. z-index: 3;
  484. span {
  485. display: block;
  486. position: relative;
  487. height: 10px;
  488. width: 10px;
  489. &:before,
  490. &:after {
  491. content: '';
  492. display: block;
  493. position: absolute;
  494. left: 50%;
  495. top: 50%;
  496. transform: translate(-50%, -50%);
  497. height: 2px;
  498. width: 10px;
  499. background-color: currentColor;
  500. transition: all 0.3s ease;
  501. }
  502. &:before {
  503. transform: translate(-50%, -50%) rotate(90deg);
  504. }
  505. }
  506. &.active {
  507. span {
  508. &:before {
  509. transform: translate(-50%, -50%) rotate(0deg);
  510. }
  511. }
  512. }
  513. }
  514. .menu-item-has-children {
  515. .menu-item-has-children {
  516. .cs_menu_dropdown_toggle {
  517. padding: 20px 18px;
  518. }
  519. }
  520. }
  521. .cs_site_branding {
  522. position: relative;
  523. z-index: 101;
  524. }
  525. .cs_nav {
  526. .cs_nav_list {
  527. position: absolute;
  528. width: 100%;
  529. top: 100%;
  530. left: 0;
  531. overflow: auto;
  532. line-height: 1.6em;
  533. display: none;
  534. background-color: #fff;
  535. border-top: 1px solid $border;
  536. padding: 10px 0;
  537. ul {
  538. padding-left: 15px;
  539. display: none;
  540. }
  541. a {
  542. display: block;
  543. padding: 12px 15px;
  544. line-height: 16px;
  545. }
  546. > li {
  547. > a {
  548. font-size: 18px;
  549. line-height: 22px;
  550. }
  551. }
  552. }
  553. .menu-item-has-children {
  554. position: relative;
  555. }
  556. }
  557. .cs_animo_links > li > a {
  558. .cs_animo_text {
  559. text-shadow: 0 32px 0 currentColor;
  560. }
  561. &:hover span {
  562. transform: translateY(-32px);
  563. }
  564. }
  565. /*Mobile Menu Button*/
  566. .cs_menu_toggle {
  567. display: inline-block;
  568. width: 30px;
  569. height: 27px;
  570. cursor: pointer;
  571. position: absolute;
  572. top: 27px;
  573. right: 30px;
  574. span,
  575. span:before,
  576. span:after {
  577. width: 100%;
  578. height: 2px;
  579. background-color: currentColor;
  580. display: block;
  581. }
  582. span {
  583. margin: 0 auto;
  584. position: relative;
  585. top: 12px;
  586. transition-duration: 0s;
  587. transition-delay: 0.2s;
  588. &:before {
  589. content: '';
  590. position: absolute;
  591. margin-top: -9px;
  592. transition-property: margin, transform;
  593. transition-duration: 0.2s;
  594. transition-delay: 0.2s, 0s;
  595. }
  596. &:after {
  597. content: '';
  598. position: absolute;
  599. margin-top: 9px;
  600. transition-property: margin, transform;
  601. transition-duration: 0.2s;
  602. transition-delay: 0.2s, 0s;
  603. }
  604. }
  605. }
  606. .cs_site_header.cs_style_1.cs_color_1 {
  607. .cs_nav_list {
  608. background-color: $primary;
  609. color: $white;
  610. }
  611. .cs_menu_toggle {
  612. color: $white;
  613. }
  614. }
  615. .cs_site_header.cs_style_1 .cs_menu_toggle {
  616. top: 50%;
  617. right: 0px;
  618. margin-top: -13px;
  619. }
  620. .cs_toggle_active {
  621. span {
  622. background-color: rgba(0, 0, 0, 0);
  623. transition-delay: 0.2s;
  624. &:before {
  625. margin-top: 0;
  626. transform: rotate(45deg);
  627. transition-delay: 0s, 0.2s;
  628. }
  629. &:after {
  630. margin-top: 0;
  631. transform: rotate(-45deg);
  632. transition-delay: 0s, 0.2s;
  633. }
  634. }
  635. }
  636. .cs_nav .cs_nav_list a {
  637. position: relative;
  638. }
  639. .cs_site_header.cs_style_1 .cs_main_header_in {
  640. height: 80px;
  641. }
  642. .cs_site_header .current-menu-item > a:before {
  643. display: none;
  644. }
  645. .cs_site_header.cs_style_1 .cs_main_header_center {
  646. .cs_site_branding {
  647. position: absolute;
  648. left: 0px;
  649. top: 50%;
  650. transform: translateY(-50%);
  651. }
  652. }
  653. .cs_site_header.cs_style_1 {
  654. top: 0;
  655. .container {
  656. max-width: 100%;
  657. padding-left: 25px;
  658. padding-right: 25px;
  659. }
  660. .cs_nav {
  661. .cs_nav_list {
  662. width: calc(100% + 50px);
  663. margin-left: -25px;
  664. padding-left: 15px;
  665. padding-right: 15px;
  666. @media (max-width: 991px) {
  667. width: calc(100% + 30px);
  668. margin-left: -15px;
  669. padding-left: 0px;
  670. padding-right: 0px;
  671. }
  672. }
  673. }
  674. }
  675. .cs_has_main_nav {
  676. display: none;
  677. }
  678. }
  679. @media screen and (max-width: 991px) {
  680. .cs_site_header.cs_style_1 {
  681. .container {
  682. padding-left: 15px;
  683. padding-right: 15px;
  684. }
  685. }
  686. .cs_site_header .cs_container-fluid_fluide {
  687. max-width: 100%;
  688. }
  689. .cs_site_header.cs_style_1 {
  690. .cs_action_box > *:not(:last-child) {
  691. margin-right: 25px;
  692. }
  693. }
  694. .cs_site_header.cs_style_1 .cs_top_header {
  695. display: none;
  696. }
  697. }
  698. @media screen and (max-width: 575px) {
  699. .cs_site-branding {
  700. max-width: 150px;
  701. }
  702. .cs_header_number {
  703. display: none;
  704. }
  705. .cs_header_number + .cs_header_action {
  706. padding-left: 0;
  707. margin-left: 0;
  708. &:before {
  709. display: none;
  710. }
  711. }
  712. }