This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/website/components/Header/Header.css

168 lines
3.1 KiB
CSS
Raw Normal View History

/* HEADER */
.Header {
2020-08-03 14:14:45 +02:00
position: fixed;
width: 100%;
top: 0;
left: 0;
right: 0;
z-index: 100;
2020-08-03 14:14:45 +02:00
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-between;
padding: 0.5rem 1rem;
2020-08-03 14:14:45 +02:00
border-bottom: var(--border-header-footer);
background-color: var(--background-color);
}
@media (min-width: 992px) {
2020-08-03 14:14:45 +02:00
.Header {
flex-flow: row nowrap;
justify-content: flex-start;
}
}
.Header > .container {
2020-08-03 14:14:45 +02:00
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
@media (min-width: 992px) {
2020-08-03 14:14:45 +02:00
.Header > .container {
flex-wrap: nowrap;
}
}
/* Brand */
.Header__brand-link {
2020-08-03 14:14:45 +02:00
display: inline-block;
padding-top: 0.3125rem;
padding-bottom: 0.3125rem;
margin-right: 1rem;
font-size: 1.25rem;
line-height: inherit;
white-space: nowrap;
}
#brand-link__logo-small-screen {
2020-08-03 14:14:45 +02:00
display: none;
}
2020-03-18 16:26:18 +01:00
@media (max-width: 496px) {
2020-08-03 14:14:45 +02:00
#brand-link__logo {
display: none;
}
.Header__brand-link {
width: 30%;
}
#brand-link__logo-small-screen {
display: inline-block;
}
}
@media (min-width: 992px) {
2020-08-03 14:14:45 +02:00
.Header .Header__navbar {
display: flex;
flex-basis: auto;
}
}
.Header__navbar {
2020-08-03 14:14:45 +02:00
flex-basis: 100%;
flex-grow: 1;
align-items: center;
}
.navbar__list {
2020-08-03 14:14:45 +02:00
display: flex;
flex-direction: row;
margin-left: auto;
}
.navbar__list.navbar__list-active {
2020-08-03 14:14:45 +02:00
margin: 0 !important;
display: flex;
}
@media (max-width: 992px) {
2020-08-03 14:14:45 +02:00
.navbar__list {
display: none;
flex-direction: column;
align-items: center;
padding-left: 0;
list-style: none;
}
}
.navbar-link {
2020-08-03 14:14:45 +02:00
display: block;
padding: 0.5rem 1rem;
}
/* Details Styling */
.navbar-link:hover {
2020-08-03 14:14:45 +02:00
text-decoration: none;
color: rgba(255, 255, 255, 0.75);
}
2020-08-03 14:14:45 +02:00
.navbar-link,
.navbar-link-active {
color: rgba(255, 255, 255, 0.5);
}
2020-08-03 14:14:45 +02:00
.navbar-link-active,
.navbar-link-active:hover,
.Header__brand-link {
color: var(--text-color);
}
.navbar-item {
2020-08-03 14:14:45 +02:00
list-style: none;
}
.navbar-link {
2020-08-03 14:14:45 +02:00
font-size: 16px;
padding: 0.5rem;
}
/* Hamburger Icon */
.Header__hamburger {
2020-08-03 14:14:45 +02:00
display: none;
width: 56px;
height: 40px;
cursor: pointer;
background-color: transparent;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 0.25rem;
position: relative;
}
.Header__hamburger > span,
.Header__hamburger > span::before,
.Header__hamburger > span::after {
position: absolute;
width: 22px;
height: 1.3px;
background-color: rgba(255, 255, 255);
}
.Header__hamburger > span {
2020-08-03 14:14:45 +02:00
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: background-color 0.3s ease-in-out;
}
2020-08-03 14:14:45 +02:00
.Header__hamburger > span::before,
.Header__hamburger > span::after {
content: '';
transition: transform 0.3s ease-in-out;
}
.Header__hamburger > span::before {
2020-08-03 14:14:45 +02:00
transform: translateY(-8px);
}
.Header__hamburger > span::after {
2020-08-03 14:14:45 +02:00
transform: translateY(8px);
}
.Header__hamburger-active span {
2020-08-03 14:14:45 +02:00
background-color: transparent;
}
.Header__hamburger-active > span::before {
2020-08-03 14:14:45 +02:00
transform: translateY(0px) rotateZ(45deg);
}
.Header__hamburger-active > span::after {
2020-08-03 14:14:45 +02:00
transform: translateY(0px) rotateZ(-45deg);
}
/* Apparition du hamburger */
@media (max-width: 992px) {
2020-08-03 14:14:45 +02:00
.Header__hamburger {
display: flex;
}
}