header.less 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. .fixed-header-box {
  2. position: relative;
  3. z-index: 10;
  4. margin: 0 auto;
  5. .sticky-header.sticky-header-type-below &,
  6. .had-sticky-header.sticky-header-type-below & {
  7. position: -webkit-sticky;
  8. position: sticky;
  9. top: 0;
  10. .admin-bar& {
  11. top: 32px;
  12. }
  13. }
  14. &.sticky-header-state-stuck {
  15. box-shadow: 0 2px 40px 0 rgba(0,0,0,0.05);
  16. }
  17. &.hbox-filler {
  18. background: var( --vamtam-header-background-background-image ) center top / var( --vamtam-header-background-background-size ) var( --vamtam-header-background-background-repeat ) var( --vamtam-header-background-background-attachment ) var( --vamtam-header-background-background-color );
  19. }
  20. .logo-wrapper {
  21. display: flex;
  22. flex-direction: column;
  23. justify-content: center;
  24. text-align: center;
  25. .logo {
  26. text-decoration: none !important;
  27. line-height: 1;
  28. display: block;
  29. position: relative;
  30. border: none;
  31. img {
  32. clear: both;
  33. padding: 0;
  34. border: 0 !important;
  35. vertical-align: bottom;
  36. body.sticky-header & {
  37. width: auto;
  38. }
  39. }
  40. &.text-logo {
  41. .vamtam-font(logo-);
  42. line-height: 30px;
  43. white-space: nowrap;
  44. border: var( --vamtam-no-border-link );
  45. &, &:hover {
  46. color: var( --vamtam-logo-color );
  47. }
  48. }
  49. }
  50. .site-tagline {
  51. display: block;
  52. padding-top: 5px;
  53. color: var( --vamtam-accent-color-1 );
  54. font-family: var( --vamtam-additional-font-2-font-family );
  55. font-size: 0.9em;
  56. line-height: 1em;
  57. }
  58. }
  59. }
  60. .header-background {
  61. background: var( --vamtam-header-background-background-image ) center top / var( --vamtam-header-background-background-size ) var( --vamtam-header-background-background-repeat ) var( --vamtam-header-background-background-attachment ) var( --vamtam-header-background-background-color );
  62. margin-top: 0;
  63. transition: background .3s ease-out;
  64. body.sticky-header-type-over.sticky-header .sticky-header-state-reset & {
  65. background-color: transparent;
  66. background-image: none;
  67. border-bottom: 1px solid fade(#fff, 10%);
  68. }
  69. }
  70. header.main-header {
  71. @menu-height: 49px;
  72. padding: 0;
  73. box-sizing: border-box;
  74. .sticky-header-state-stuck & {
  75. border-bottom-color: transparent;
  76. }
  77. body.sticky-header-type-over.sticky-header .sticky-header-state-stuck &,
  78. body.sticky-header-type-normal & {
  79. &:not( .layout-single-row ) {
  80. .second-row {
  81. background: var( --vamtam-sub-header-background-background-image ) center top / var( --vamtam-sub-header-background-background-size ) var( --vamtam-sub-header-background-background-repeat ) scroll var( --vamtam-sub-header-background-background-color );
  82. }
  83. }
  84. }
  85. body.sticky-header-type-over.sticky-header .sticky-header-state-reset & .first-row {
  86. .normal-logo {
  87. opacity: 0;
  88. }
  89. .alternative-logo {
  90. opacity: 1;
  91. }
  92. }
  93. body.sticky-header &:not(.layout-single-row) {
  94. transition: background .3s ease-out, border .3s ease-out;
  95. }
  96. body.sticky-header-type-over.sticky-header &.layout-single-row {
  97. transition: none;
  98. }
  99. .first-row {
  100. display: flex;
  101. align-items: center;
  102. justify-content: center;
  103. width: 100%;
  104. height: calc( var( --vamtam-header-height ) - @menu-height );
  105. box-sizing: border-box;
  106. .alternative-logo {
  107. position: absolute;
  108. top: 0;
  109. left: 50%;
  110. transform: translateX( -50% );
  111. opacity: 0;
  112. }
  113. }
  114. .second-row {
  115. clear: both;
  116. min-height: @menu-height;
  117. width: 100%;
  118. .second-row-columns {
  119. display: flex;
  120. align-items: center;
  121. box-sizing: border-box;
  122. position : relative;
  123. width: 100%;
  124. }
  125. }
  126. .header-left {
  127. padding: 0;
  128. min-width: 160px;
  129. white-space: nowrap;
  130. }
  131. .header-center {
  132. width: 100%;
  133. text-align: center;
  134. padding: 0px;
  135. &:after {
  136. display: block;
  137. clear: both;
  138. content: "";
  139. }
  140. #megaMenu #megaMenuToggle {
  141. position: relative;
  142. padding-right: 30px;
  143. .megaMenuToggle-icon {
  144. position: absolute;
  145. top: 50%;
  146. right: 10px;
  147. margin-top: 4px;
  148. }
  149. }
  150. }
  151. .header-right {
  152. position: relative;
  153. padding: 0;
  154. text-align: right;
  155. }
  156. body.sticky-header-type-over.sticky-header .sticky-header-state-reset & {
  157. .vamtam-cart-dropdown-link {
  158. .icon,
  159. .products {
  160. color: var( --vamtam-main-menu-text-sticky-color ) !important;
  161. }
  162. }
  163. .vamtam-overlay-menu-toggle {
  164. span.top-line,
  165. span.bottom-line,
  166. span.middle-line {
  167. background: var( --vamtam-accent-color-5 );
  168. }
  169. &:hover {
  170. span.top-line,
  171. span.bottom-line,
  172. span.middle-line {
  173. background: var( --vamtam-accent-color-1 );
  174. }
  175. }
  176. }
  177. }
  178. body.sticky-header-type-over.sticky-header .sticky-header-state-reset & {
  179. .logo-tagline {
  180. .site-tagline,
  181. .logo {
  182. color: var( --vamtam-main-menu-text-sticky-color );
  183. }
  184. }
  185. }
  186. #header-text {
  187. padding: 10px 0px;
  188. white-space: nowrap;
  189. transition: color .3s;
  190. font-size: 11px;
  191. h4 {
  192. margin: 0;
  193. line-height: 10px;
  194. a {
  195. font-size: 16px;
  196. font-weight: 600;
  197. color: var( --vamtam-accent-color-1 );
  198. &:hover {
  199. color: var( --vamtam-accent-color-3 );
  200. }
  201. }
  202. }
  203. body.sticky-header-type-over.sticky-header .sticky-header-state-reset & {
  204. &, p, .icon {
  205. color: var( --vamtam-main-menu-text-sticky-color ) !important;
  206. }
  207. }
  208. }
  209. button.header-search {
  210. border: 0;
  211. background: none;
  212. color: var( --vamtam-accent-color-6 );
  213. font-size: 1.4em;
  214. vertical-align: middle;
  215. transition: color 0.3s;
  216. font-family: 'theme' !important;
  217. body.sticky-header-type-over.sticky-header .sticky-header-state-reset & {
  218. color: var( --vamtam-main-menu-text-sticky-color );
  219. }
  220. &:hover {
  221. color: var( --vamtam-accent-color-1 );
  222. }
  223. }
  224. &.layout-standard {
  225. .logo {
  226. height: auto;
  227. display: inline-block;
  228. }
  229. .logo-wrapper {
  230. height: calc( var( --vamtam-header-height ) - @menu-height );
  231. }
  232. .first-row {
  233. border-bottom: solid 1px var( --vamtam-default-line-color );
  234. box-sizing: border-box;
  235. }
  236. .header-left,
  237. .header-right {
  238. display: block;
  239. min-width: 100px;
  240. flex: 1 1 100px ;
  241. }
  242. .header-left {
  243. justify-content: flex-start;
  244. &, #header-text {
  245. white-space: normal;
  246. }
  247. }
  248. .header-right {
  249. display: flex;
  250. align-items: center;
  251. justify-content: flex-end;
  252. }
  253. .header-center {
  254. display: block;
  255. flex: 100 1 auto ;
  256. }
  257. .search-wrapper,
  258. .cart-dropdown {
  259. display: inline-block;
  260. }
  261. }
  262. &.layout-single-row {
  263. .header-contents {
  264. display: flex;
  265. align-items: center;
  266. }
  267. .first-row {
  268. width: auto;
  269. height: auto;
  270. background: transparent;
  271. box-sizing: border-box;
  272. .logo-wrapper {
  273. min-height: var( --vamtam-header-height );
  274. position: relative;
  275. text-align: left;
  276. }
  277. }
  278. .second-row {
  279. width: 100%;
  280. background: transparent;
  281. text-align: right;
  282. &:last-child #menus {
  283. margin-right: -10px;
  284. }
  285. &:not(:last-child) #menus {
  286. }
  287. }
  288. .search-wrapper,
  289. #header-text {
  290. padding-left: 20px;
  291. body.sticky-header-type-over.sticky-header &:last-child {
  292. padding-right: 2px;
  293. }
  294. }
  295. #header-text {
  296. padding-left: 15px;
  297. }
  298. }
  299. &.layout-logo-text-menu {
  300. .first-row {
  301. height: auto;
  302. box-sizing: content-box;
  303. .alternative-logo {
  304. left: 0;
  305. transform: none;
  306. }
  307. .first-row-right-inner {
  308. width: 100%;
  309. display: flex;
  310. align-items: center;
  311. }
  312. .first-row-left .logo-wrapper,
  313. .first-row-right {
  314. min-height: calc( var( --vamtam-header-height ) - @menu-height );
  315. }
  316. .first-row-left {
  317. .logo-wrapper {
  318. text-align: left;
  319. .logo-tagline {
  320. width: 450px;
  321. }
  322. }
  323. }
  324. .first-row-right {
  325. width: 100%;
  326. text-align: right;
  327. }
  328. #header-text {
  329. padding: 0;
  330. width: 100%;
  331. > div {
  332. padding: 10px 0 10px 40px;
  333. text-align: right;
  334. max-width: 50%;
  335. margin-left: auto;
  336. }
  337. p {
  338. display: inline-block;
  339. padding-left: 10px;
  340. text-align: left;
  341. font-size: 1em;
  342. strong {
  343. font-weight: 500;
  344. font-size: 1.2em;
  345. }
  346. }
  347. }
  348. }
  349. .second-row {
  350. #main-menu .menu {
  351. text-align: left;
  352. }
  353. .header-center {
  354. padding-right: 0;
  355. padding-left: 0;
  356. }
  357. .search-wrapper {
  358. padding-left: 10px;
  359. }
  360. }
  361. }
  362. .mobile-top-bar,
  363. .mobile-logo-additions {
  364. display: none;
  365. }
  366. }
  367. #top-nav-sidebar {
  368. .widget {
  369. display: inline-block;
  370. margin: 0 var( --vamtam-horizontal-padding ) 0 0;
  371. vertical-align: middle;
  372. &:last-child {
  373. margin-right: 0;
  374. }
  375. }
  376. .widgettitle {
  377. display: none;
  378. }
  379. .vamtam_icon_link {
  380. .content {
  381. display: none !important;
  382. }
  383. }
  384. }
  385. .header-middle {
  386. position: relative;
  387. z-index: 9;
  388. transform: translateZ(0);
  389. > h5 {
  390. padding: 30px 0px 0px 0px;
  391. }
  392. body.boxed & {
  393. > .limit-wrapper > .row,
  394. > .row {
  395. margin: 0;
  396. }
  397. }
  398. }