squirrel/assets/scss/header.scss

170 lines
2.7 KiB
SCSS
Raw Normal View History

2021-02-25 21:23:58 +00:00
.header {
margin: auto;
width: 100%;
padding: 0.5rem;
2021-02-25 21:23:58 +00:00
padding-right: 0rem;
display: flex;
font-size: large;
overflow: hidden;
flex-shrink: 0;
background: white;
box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.2);
position: fixed;
z-index: 999;
top: 0;
}
.header-container {
width: 100%;
max-width: 1152px;
display: flex;
margin: auto;
}
.header-blocker {
width: 100%;
min-height: 4rem;
}
2021-02-25 21:23:58 +00:00
.sticky {
position: fixed;
top: 0;
}
.logo {
height: 3rem;
2021-02-25 21:23:58 +00:00
max-width: 10rem;
}
.small-logo {
height: 2.5rem;
2021-02-25 21:23:58 +00:00
max-width: 10rem;
}
.menu-icon {
display: none;
font-size: larger;
2022-06-27 14:09:44 +00:00
color: inherit;
2021-02-25 21:23:58 +00:00
}
.header-items {
margin: auto;
2022-06-27 14:09:44 +00:00
margin-right: 0px;
padding-right: 24px;
2021-02-25 21:23:58 +00:00
display: flex;
2022-06-27 14:09:44 +00:00
justify-content: center;
2021-02-25 21:23:58 +00:00
}
.header-item {
2022-06-27 14:09:44 +00:00
margin: auto;
margin-inline: 1rem;
2022-06-27 14:09:44 +00:00
color: inherit;
2021-02-25 21:23:58 +00:00
}
.dropdown {
overflow: hidden;
}
.dropdown .dropbtn {
border: none;
outline: none;
margin: 0;
}
.dropdown-content {
display: none;
position: fixed;
background-color: #ffffff;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
padding: 0.5rem 1rem;
display: block;
2022-06-27 14:09:44 +00:00
color: inherit;
2021-02-25 21:23:58 +00:00
}
.dropdown-content a:hover {
background-color: #ddd;
}
.dropdown:hover .dropdown-content {
display: block;
}
@media screen and (max-width: 600px) {
2022-06-27 14:09:44 +00:00
.header {
padding: 0.5rem;
padding-right: 0.5rem;
}
2021-02-25 21:23:58 +00:00
.header-container {
display: block;
}
.home {
width: 100vw;
}
.menu-icon {
display: block;
position: fixed;
top: 15px;
2021-02-25 21:23:58 +00:00
right: 30px;
}
.menu-icon .hide {
display: none;
}
.small-icon {
top: 15px;
2021-02-25 21:23:58 +00:00
}
.header-items {
display: none;
}
.header-items.responsive {
position: relative;
float: none;
display: block;
text-align: left;
margin-top: 0.5rem;
2022-06-27 14:09:44 +00:00
padding-right: 0rem;
2021-02-25 21:23:58 +00:00
}
.header-items.responsive .header-item {
display: block;
margin-left: 0rem;
padding-bottom: 0.5rem;
padding-top: 0.5rem;
}
2022-06-27 14:09:44 +00:00
.header-items.responsive .header-contact-button {
display: block;
margin-left: 0rem;
}
2021-02-25 21:23:58 +00:00
.header-items.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.header-items.responsive .dropdown {
float: none;
}
.header-items.responsive .dropdown-content {
position: relative;
box-shadow: none;
}
.header-items.responsive .dropdown .dropbtn {
display: block;
width: 100vw;
text-align: left;
}
}