Files
nhgooi.nl/resources/assets/sass/components/_menu.scss
Jorit Tijsen 1a8bbeb084 Most pages are now styled.
Small changes to existing pages.
Changes to base layout style.
2024-03-15 13:35:43 +01:00

233 lines
4.5 KiB
SCSS
Vendored

@use "../abstracts/variables" as *;
@use "../abstracts/mixin" as *;
.menu_container {
height: 75px;
margin-bottom: 20px;
background-image: linear-gradient(to right, #0102b0, #4090e3);
nav {
display: flex;
> div {
height: 30px;
background: white;
flex-grow: 1;
border: 1px solid white;
}
}
.menu {
@include reset-list;
overflow: hidden;
position: relative;
z-index: 0;
margin: 0px -1px;
width: 1170px;
margin: 0 auto;
> li {
float: left;
margin: 0px -1px;
&.has_submenu {
position: relative;
}
ul {
display: none;
}
a {
display: block;
font-family: Nunito, serif;
color: $nav-text-color;
font-weight: $nav-text-weight;
font-size: $nav-text-size;
text-align: center;
padding: 5px 20px 5px 40px;
text-decoration: none;
background: white;
text-transform: uppercase
}
&.selected a, &:hover a, &.hover a {
color: white;
background: transparent;
position: relative;
&:before {
content: '';
display: block;
width: 33px;
height: 25px;
background-image: URL('/images/menu-corner-1.svg');
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
&:after {
content: '';
display: block;
width: 12px;
height: 15px;
background-image: URL('/images/menu-corner-2.svg');
position: absolute;
bottom: 0;
right: -1px;
z-index: 1;
}
}
&:last-child {
margin-left: 10px;
&:after {
content: '\a0';
z-index: -1;
background: white;
position: absolute;
top: 0;
width: 100%;
height: 100%;
margin-left: -10px;
}
}
}
}
}
.top_menu_container {
height: 50px;
@include container;
ul {
float: right;
@include reset-list;
li {
float: left;
padding: 6px 19px;
margin: 8px;
border-right: 1px solid #fff;
&:last-child {
border: none;
}
&:nth-child(2) {
padding: 0 19px;
}
a {
float: left;
font-family: Nunito, serif;
font-size: 14px;
font-weight: bold;
text-align: right;
color: #fff;
text-decoration: none;
text-transform: uppercase;
i {
font-size: 18px;
position: relative;
top: 2px;
margin-left: 5px;
}
}
.search_form {
float: left;
overflow: hidden;
height: 34px;
margin-right: 10px;
.search_input {
border: 1px solid #efefef;
border-radius: 5px;
background-color: #fff;
height: 29px;
font-family: Montserrat, serif;
font-size: 16px;
line-height: 1.25;
color: #1a1a1a;
}
.search_submit {
float: right;
margin: 6px;
}
}
.search_button {
margin-top: 6px;
}
}
}
}
.menu-submenu {
position: absolute;
> a {
display: block;
height: 30px;
}
ul {
@include reset-list;
a {
display: block;
font-family: Nunito, serif;
font-size: 14px;
font-weight: bold;
color: #1a1a1a;
text-decoration: none;
padding: 15px 0;
border-bottom: 1px solid #f8f8f8;
text-transform: uppercase;
}
}
> ul {
padding: 20px;
border-radius: 3px;
box-shadow: 0 0 15px 0 rgba(35, 31, 32, 0.1);
background-color: #fff;
margin-left: 20px;
width: max-content;
display: none;
li {
ul {
display: none;
li {
padding-left: 10px;
}
}
}
li.has_submenu {
position: relative;
&:after {
-webkit-font-smoothing: antialiased;
display: var(--fa-display, inline-block);
font-style: normal;
font-variant: normal;
line-height: 1;
text-rendering: auto;
font-family: "Font Awesome 6 Free";
font-weight: 900;
content: "\f0d7";
position: absolute;
right: 0;
top: 15px;
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
&.opened:after {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
}
}