<header class="header header--checkout">
<div class="container">
<div class="header__wrapper">
<a class="logo header__logo" href="/components/preview/home" aria-label="Homepage">
<img
class="logo__image "
src="/images/logo/logo_cruc.jpeg"
alt="Cruc Logo"
>
</a>
<div class="header__buttons">
<div class="header__icon">
<a class="
header-button
button
button--icon
button--icon-light
" href="#" aria-label="cartLink">
<svg
class="icon header-button__icon"
role="img"
>
<title>cart link</title>
<use xlink:href="/images/icons-sprite.svg#shopping-cart"></use>
</svg>
<span class="header-button__label"></span>
</a>
</div>
</div>
</div>
</div>
</header>
{{#if skipNav }}
{{ render '@skip-nav' }}
{{/if}}
{{#if marketingBar }}
{{ render '@marketing-bar' }}
{{/if}}
{{#if contactBar }}
{{ render '@contact-bar' }}
{{/if}}
<header class="header {{ class }}" {{{ attributes }}}>
<div class="container">
<div class="header__wrapper">
{{#if logo}}
{{ render '@logo' logo merge="true" }}
{{/if}}
{{#if sideMenu}}
{{ render '@side-menu' }}
{{/if}}
{{#if buttons }}
<div class="header__buttons">
{{#each buttons as |item| }}
<div class="header__icon">
<a
class="
header-button
button
button--icon
button--icon-light
{{ item.class }}
"
href="#"
aria-label="{{ item.ariaLabel }}"
>
{{ render '@icon' item.icon }}
<span class="header-button__label">{{ label }}</span>
</a>
</div>
{{/each}}
{{#if minicart}}
<div class="header__minicart">
<button
type="button"
class="
header-button
button
button--icon
button--icon-light
modal-trigger
margin-left-xs
"
aria-label="{{ minicartTrigger.ariaLabel }}"
data-modal-trigger="modal-minicart"
>
{{ render '@icon' minicartTrigger.icon }}
<span class="header-button__counter">
<span class="header-button__counter-dot">2</span>
</span>
<span class="header-button__label">{{ minicartTrigger.label }}</span>
</button>
</div>
{{ render '@modal--secondary' minicartModal merge=true }}
{{/if}}
</div>
{{/if}}
{{#if search }}
<div class="header__search-wrapper">
<form class="search-form">
<div class="search-form__wrapper">
{{ render '@input' searchInput }}
{{ render '@button--icon' searchButton }}
</div>
{{#if quicksearch }}
{{ render '@quicksearch' }}
{{/if}}
</form>
</div>
{{/if}}
</div>
</div>
</header>
{{#if megaMenu }}
{{ render '@mega-menu' }}
{{/if}}
{
"contactBar": false,
"sideMenu": false,
"search": false,
"quicksearch": false,
"megaMenu": false,
"skipNav": false,
"marketingBar": false,
"minicart": false,
"buttons": [
{
"ariaLabel": "cartLink",
"icon": {
"id": "shopping-cart",
"title": "cart link",
"class": "header-button__icon"
}
}
],
"logo": {
"class": "header__logo"
},
"searchInput": {
"class": "search-form__input-wrapper margin-0",
"label": {
"text": "Search products",
"hidden": true
},
"field": {
"class": "search-form__input border-color-light",
"id": "search",
"name": "search",
"type": "search",
"placeholder": "Zoeken in de winkel..."
}
},
"searchButton": {
"tag": "button",
"text": "",
"class": "button--icon search-form__button",
"icon": {
"id": "search",
"title": "Search",
"class": "button__icon",
"hidden": true
},
"attributes": "type=\"button\" aria-label=\"Search\""
},
"minicartTrigger": {
"icon": {
"id": "new-cart",
"title": "Winkelwagen",
"class": "header-button__icon",
"hidden": true
},
"label": "Winkelwagen",
"link": "/cart",
"ariaLabel": "Shopping cart dropdown trigger"
},
"minicartModal": {
"trigger": false,
"modal": {
"id": "modal-minicart",
"attributes": "aria-labelledby=\"minicart-title\" aria-describedby=\"minicart-products\""
},
"modalComponent": {
"content": "minicart-content",
"contentContext": ""
},
"modalContent": {
"class": "modal__content--block"
},
"script": true,
"modalTop": false,
"modalMiddle": false,
"modalBottom": false
},
"briefInfo": false,
"class": "header--checkout"
}
.header-button {
@include mq($screen-xl) {
margin: $header-button__margin\@extra-large;
}
&__counter {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: $header-button__counter-top;
right: $header-button__counter-right;
padding: 2px;
border: $header-button__counter-border;
border-radius: $header-button__counter-size;
line-height: $header-button__counter-font-size;
font-size: $header-button__counter-font-size;
color: $header-button__counter-color;
background-color: $header-button__counter-background;
z-index: $header-button__counter-z-index;
&--hidden {
display: none;
}
&-dot {
min-width: $header-button__counter-dot-size;
min-height: $header-button__counter-dot-size;
border-radius: $header-button__counter-dot-size;
margin: auto;
background-color: $header-button__counter-dot-bg-color;
}
}
&__summary-count {
@include visually-hidden();
}
&.button--icon-fill {
&:before {
background-color: $button__before-background--icon-light;
}
}
}
$header__border : $border-base !default;
$header__border-width : 0 0 $border-width-base 0 !default;
$header__border\@large : 0 !default;
$header__border-width\@large : 0 !default;
$header__background : $white !default;
$header__background--email : $white !default;
$header__sticky-animation : slide-down 1s !default;
$header__wrapper-margin : 0 !default;
$header__wrapper-padding : 0 0 $spacer !default;
$header__wrapper-padding\@medium : 0 0 $spacer--semi-medium !default;
$header__wrapper-padding\@large : 0 0 $spacer--semi-medium !default;
$header__wrapper-column-gap : $spacer--semi-medium !default;
$header__logo-padding : 0 0 $spacer--extra-small 0 !default;
$header__logo-padding\@medium : 0 !default;
$header__logo-order\@medium : 2 !default;
$header__side-menu-order : 1 !default;
$header__side-menu-max-width : 30% !default;
$header__buttons-width : calc(100% - (#{$logo__max-width} * 2 + 5% )) !default;
$header__buttons-width\@medium : calc(2 * 48px + 1 * #{$spacer}) !default;
$header__buttons-order\@medium : 3 !default;
$header__buttons-width\@extra-large : 30% !default;
$header__search-wrapper-z-index : $z-index-high + 1 !default;
$header__search-wrapper-padding : 0 !default;
$header__search-wrapper-padding\@medium : 0 24px !default;
$header__search-wrapper-padding\@large : 0 0 0 !default;
$header__search-wrapper-padding\@extra-large : 0 $spacer--small 0 0 !default;
$header__search-wrapper-order : 3 !default;
$header__search-wrapper-order\@medium : 2 !default;
$header__search-wrapper-max-width\@large : 750px !default;
$header__search-wrapper-max-width\@extra-large: 800px !default;
$header__minicart-border\@medium : $border-base !default;
$header__minicart-border-width\@medium : 0 0 0 1px !default;
$header__brief-info-display : none !default;
$header__brief-info-display\@large : flex !default;
$header__brief-info-min-width : 220px !default;
$header__brief-info-order : 3 !default;
$header__brief-info-subtitle-font-size : $font-size-small !default;
// Buttons
$header-button__margin\@extra-large : 0 0 0 $spacer--medium !default;
$header-button__counter-top : 6px !default;
$header-button__counter-right : 6px !default;
$header-button__counter-font-size : $font-size-small !default;
$header-button__counter-background : $theme-second !default;
$header-button__counter-color : $white !default;
$header-button__counter-size : $spacer--medium !default;
$header-button__counter-border : none !default;
$header-button__counter-z-index : $z-index-low !default;
$header-button__counter-dot-size : $spacer--small !default;
$header-button__counter-dot-bg-color : $theme-second !default;
$header-button__icon-before-bg--icon-fill : $button__before-background--icon-light !default;
// Search
$search-form__position : static !default;
$search-form__position\@medium : static !default;
$search-form__height : 34px !default;
$search-form__width : 100% !default;
$search-form__width--extra-large : 70% !default;
$search-form__alignment : flex-end !default;
$search-form__margin : 0 !default;
$search-form__border : 1px solid $gray-light !default;
$search-form__font-size : $input__placeholder-font-size !default;
$search-form__button-margin : 0 !default;
$search-form__button-top : 1px !default;
$search-form__button-right : 0 !default;
$search-form__button-border : $border-base !default;
$search-form__button-border-width : 0 1px !default;
$search-form__button-border-radius : 0 $form-elements-radius $form-elements-radius 0 !default;
$search-form__button-height : 46px !default;
$search-form__button-background--disabled : none !default;
$search-form__button-icon-fill--disabled : $color-primary !default;
$search-form__placeholder-color : $input__placeholder-color !default;
// Checkout variant
$header__wrapper-padding--checkout : 0 !default;
$header__wrapper-padding--checkout\@medium : $spacer--medium 0 !default;
@import 'header-variables';
@import 'button';
@import 'search-form';
.header {
position: fixed;
border: $header__border;
border-width: $header__border-width;
background: $header__background;
z-index: 51;
width: 100%;
top: 0;
@include mq($screen-m) {
padding: 5px;
}
@include mq($screen-l) {
margin-top: 1rem;
position: relative;
border: none;
padding: 0;
}
&__top {
margin-top: 101px;
@include mq($screen-m) {
margin-top: 141px;
}
@include mq($screen-l) {
margin-top: 0;
}
.usps-top--mobile {
display: block;
@include mq($screen-l) {
display: none;
}
.header-usps--item {
display: none;
}
.slick-track {
.header-usps--item {
display: block;
}
}
}
}
&.sticky {
@include mq($screen-l) {
position: fixed;
top: 0;
width: 100%;
margin-top: 0;
border-bottom: 1px solid #f5f5f5;
z-index: 51;
animation: $header__sticky-animation;
padding: 24px 0 0;
.quicksearch {
top: 75%;
}
}
}
&--checkout {
position: static;
.header__wrapper {
padding: $header__wrapper-padding--checkout;
@include mq($screen-m) {
padding: $header__wrapper-padding--checkout\@medium;
}
}
.header__minicart {
border: none;
}
@include mq($screen-l) {
border: $header__border;
border-width: $header__border-width;
}
.sticky {
position: relative !important; // sass-lint:disable-line no-important
}
}
&--email {
background-color: $header__background--email;
}
&__wrapper {
position: relative;
justify-content: space-between;
display: flex;
flex-flow: row wrap;
padding: $header__wrapper-padding;
@include mq($screen-l) {
flex-wrap: nowrap;
border: $header__border\@large;
border-width: $header__border-width\@large;
padding: $header__wrapper-padding\@large;
margin-top: $header__wrapper-margin;
column-gap: $header__wrapper-column-gap;
}
}
&__logo {
padding: $header__logo-padding;
@include mq($screen-l) {
order: $header__logo-order\@medium;
padding: $header__logo-padding\@medium;
}
}
&__search-wrapper {
display: flex;
flex-flow: column nowrap;
flex: 1 100%;
order: $header__search-wrapper-order;
justify-content: center;
padding: $header__search-wrapper-padding;
z-index: $header__search-wrapper-z-index;
width: 100%;
@include mq($screen-l) {
order: $header__search-wrapper-order\@medium;
flex-direction: column;
justify-content: center;
padding: $header__search-wrapper-padding\@large;
max-width: $header__search-wrapper-max-width\@large;
}
@include mq($screen-xl) {
padding: $header__search-wrapper-padding\@extra-large;
max-width: $header__search-wrapper-max-width\@extra-large;
}
}
&__minicart {
position: relative;
display: flex;
flex-direction: column;
//@include mq($screen-m) {
// border: $header__minicart-border\@medium;
// border-width: $header__minicart-border-width\@medium;
//}
}
&__buttons {
display: flex;
flex: 1 $header__buttons-width;
max-width: $header__buttons-width;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-end;
padding: $header__search-wrapper-padding;
order: 3;
@include mq($screen-l) {
order: $header__buttons-order\@medium;
flex-wrap: nowrap;
flex: 1 $header__buttons-width\@extra-large;
max-width: $header__buttons-width\@extra-large;
padding: $header__search-wrapper-padding\@large;
}
@include mq($screen-xl) {
padding: $header__search-wrapper-padding\@extra-large;
}
.header-button {
min-width: 35px;
min-height: 35px;
margin: 0;
flex-direction: column;
.icon {
width: 25px;
height: 25px;
}
&__counter {
@include mq($screen-m) {
top: -6px;
right: 32px;
width: 16px;
height: 16px;
background: $theme-second;
&-dot {
background: $theme-second;
}
}
}
&__label {
display: none;
@include mq($screen-m) {
display: flex;
color: #555;
text-transform: none;
padding: 7px 0 0;
}
}
&:after {
display: none;
}
&:hover {
background: transparent !important;// sass-lint:disable-line no-important
.header-button__label {
color: $theme-second;
text-decoration: underline;
}
}
}
}
&__icon {
display: flex;
flex-direction: column;
@include mq($screen-xl) {
margin-right: $spacer--semi-medium;
}
}
&__brief-info {
display: $header__brief-info-display;
align-items: center;
order: $header__brief-info-order;
min-width: $header__brief-info-min-width;
@include mq($screen-l) {
display: $header__brief-info-display\@large;
}
.brief-info__subtitle {
font-size: $header__brief-info-subtitle-font-size;
}
}
.side-menu {
max-width: $header__side-menu-max-width;
order: $header__side-menu-order;
flex: 1 $header__side-menu-max-width;
}
.container {
@include mq($screen-m) {
margin: 0 auto;
}
}
}
.search-form {
width: $search-form__width;
align-self: $search-form__alignment;
line-height: $font-line-height;
margin: $search-form__margin;
position: $search-form__position;
@include mq($screen-m) {
position: $search-form__position\@medium;
}
&__wrapper {
position: relative;
}
&__input-wrapper {
position: relative;
}
&__input {
width: 100%;
}
&__button {
position: absolute;
top: $search-form__button-top;
right: $search-form__button-right;
height: $search-form__button-height;
min-height: $search-form__button-height;
margin: $search-form__button-margin;
border: $search-form__button-border;
border-width: $search-form__button-border-width;
border-radius: $search-form__button-border-radius;
&:disabled,
&[disabled] {
background: $search-form__button-background--disabled;
&:hover {
background: $search-form__button-background--disabled;
}
.icon {
fill: $search-form__button-icon-fill--disabled;
}
}
}
}
There are no notes for this item.