body>header,
body>section.subheader {
& img {
margin: 0;
}
& #topbar-menu,
#cta,
#main-menu {
display: flex;
}
& nav {
gap: 2rem;
& li {
padding: 0;
}
}
& #main-menu {
position: relative;
z-index: 99;
margin: 0;
gap: 2rem;
&>li {
&>a {
display: inline-block;
padding-block: 1rem;
}
&:has(>a:hover) {
position: relative;
&:before {
content: '';
background-color: var(--wp--preset--color--lichtblauw-20);
position: absolute;
inset: -2px -.5rem -1px;
height: auto;
z-index: -2;
}
}
&.icon-home {
display: inline-block;
font-size: 0;
&>a {
width: 1.5rem;
height: 2.5rem;
background: var(--wp--preset--color--blauw);
-webkit-mask-image: url(//www.aangetekendmailen.nl/wp-content/themes/aangetekend/images/home-icon.svg);
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: contain;
mask-image: url(//www.aangetekendmailen.nl/wp-content/themes/aangetekend/images/home-icon.svg);
mask-repeat: no-repeat;
mask-size: contain;
padding: 0;
}
}
&.menu-item-has-children {
&>a {
padding-right: 24px;
position: relative;
&:after {
content: '';
position: absolute;
top: 1rem;
right: 0;
width: 16px;
height: 16px;
background-image: url(//www.aangetekendmailen.nl/wp-content/themes/aangetekend/images/icon-chevron-rechts.svg);
background-size: contain;
background-repeat: no-repeat;
transform: rotate(90deg);
transition: transform .2s ease-in-out;
}
}
&.active>a:after {
transform: rotate(270deg);
}
}
&:is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_parent, .current_page_ancestor, .current-page-ancestor, .active) {
position: relative;
&:after {
content: '';
background-color: var(--wp--preset--color--oranje);
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
z-index: -2;
transition: right .15s ease-in-out;
@starting-style {
right: 100%;
}
}
}
&.is-contact-label {
position: fixed !important;
right: 0;
top: 40%;
transform: rotate(270deg) translateY(-50%);
transform-origin: right;
&:before {
display: none !important;
}
& a {
padding: 8px 16px;
background-color: var(--wp--preset--color--lichtblauw-40);
color: var(--wp--preset--color--blauw);
font-weight: 400;
font-size: 16px;
border-radius: 8px 8px 0 0;
border: 1px solid var(--wp--preset--color--blauw);
border-bottom: 0;
}
}
}
&:has(li.active) :is(.current_page_item, .current-menu-item, .current_page_parent, .current-menu-ancestor, .current_page_ancestor):not(.active):after {
display: none;
}
& ul {
display: none;
}
}
& nav:has(.main-submenus) {
margin-inline: 0;
padding-inline: max(calc((100% - var(--wp--style--global--wide-size)) / 2), 12px);
background: white;
position: absolute;
left: 0;
right: 0;
& .main-submenus {
display: block;
width: 100%;
& .submenu-details {
display: none;
&.active {
display: grid;
grid-template-columns: 350px auto;
gap: 2rem;
padding-block: 2rem;
& h2 {
grid-column: 1 / span 2;
margin-bottom: 0;
}
& ul {
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 1em;
& li {
padding: 0;
& a {
display: block;
padding-right: 32px;
position: relative;
&:after {
content: '';
position: absolute;
top: 0;
right: 0;
width: 16px;
height: 16px;
background-image: url(//www.aangetekendmailen.nl/wp-content/themes/aangetekend/images/icon-chevron-rechts.svg);
background-size: contain;
background-repeat: no-repeat;
}
position: relative;
font-weight: 600;
line-height: 1;
&:is(:hover, .active) {
text-decoration: none;
&:before {
content: '';
background-color: var(--wp--preset--color--lichtblauw-40);
position: absolute;
inset: -.7rem -.5rem -.5rem -.5rem;
border-radius: .5rem;
z-index: -2;
}
}
}
}
}
& .preview {
display: none;
&.active {
display: grid;
grid-template-columns: 3fr 2fr;
gap: 2rem;
align-items: start;
opacity: 1;
transform: translateX(0);
transition: .5s opacity ease-in-out, .2s transform ease-in-out;
& .preview-thumbnail {
width: 100%;
aspect-ratio: 4 / 3;
background-size: cover;
background-color: #eee;
border-radius: .5rem;
}
@starting-style {
transform: translateX(10px);
opacity: 0;
}
}
& .readmore {
display: inline-block;
color: var(--wp--preset--color--blauw);
font-weight: 600;
border: 2px solid var(--wp--preset--color--blauw);
padding: 8px 48px 4px 32px;
border-radius: 4px;
position: relative;
&:after {
content: '';
position: absolute;
top: 50%;
right: 24px;
width: 16px;
height: 16px;
background: currentColor;
-webkit-mask-image: url(//www.aangetekendmailen.nl/wp-content/themes/aangetekend/images/icon-chevron-rechts.svg);
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: contain;
mask-image: url(//www.aangetekendmailen.nl/wp-content/themes/aangetekend/images/icon-chevron-rechts.svg);
mask-repeat: no-repeat;
mask-size: contain;
transform: translateY(-50%);
}
&:hover {
text-decoration: none;
background-color: var(--wp--preset--color--blauw);
color: var(--wp--preset--color--wit);
}
}
}
}
}
}
}
& #topbar-menu {
margin-left: auto;
font-size: 14px;
}
& #search {
width: 14px;
}
& #mobile-menu {
display: none;
}
}
body.submenu-open {
& main:after {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #000;
z-index: 98;
transition: all .3s ease-in-out;
opacity: 0.2;
@starting-style {
opacity: 0;
}
}
}
body.is-consument {
header nav>* {
flex-grow: 1;
&:is(span) {
flex-grow: 0;
}
}
}
body>header {
& figure {
margin: 0 !important;
padding: 0 !important;
}
& img,
img[src$=".svg"] {
margin: 0 !important;
height: clamp(48px, 5vw, 88px);
}
& .wp-block-image :where(figcaption) {
margin-bottom: 0;
margin-top: 0;
font-size: var(--wp--preset--font-size--x-small);
}
} body>main {
&>.alignwide,
&>.rank-math-breadcrumb {
margin-inline: max(calc((100% - var(--wp--style--global--wide-size)) / 2), 12px);
}
}
body>footer { grid-template-columns: auto auto;
align-items: center;
gap: 5rem;
&>nav {
grid-column: 1 / span 2;
}
}
body>.copyright {
display: grid;
grid-template-columns: 1fr 4fr 1fr;
align-items: center;
&>.custom-logo-link {
text-align: left;
}
&>.custom-edias-link {
text-align: right;
}
}
.hide-on-desktop {
display: none !important;
}
.beautiful-taxonomy-filters {
& #beautiful-taxonomy-filters-form {
flex-direction: row;
& .beautiful-taxonomy-filters-select-wrap {
flex-direction: row;
}
}
}