161 lines
3.2 KiB
SCSS
161 lines
3.2 KiB
SCSS
.header {
|
|
background: #006400;
|
|
}
|
|
.header__content {
|
|
display: grid;
|
|
grid-template-rows: 1fr;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-areas: "header-logo header-menu";
|
|
min-height: 75px;
|
|
}
|
|
.header__logo {
|
|
grid-area: header-logo;
|
|
height: 50px;
|
|
margin-top: 12px;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
img {
|
|
max-height: 100%;
|
|
}
|
|
}
|
|
|
|
#mobile-menu {
|
|
grid-area: header-menu;
|
|
border: 0;
|
|
background: none;
|
|
color: #ffffff;
|
|
margin-left: auto;
|
|
cursor: pointer;
|
|
position: relative;
|
|
z-index: 110;
|
|
|
|
.open {
|
|
display: block;
|
|
}
|
|
|
|
.close {
|
|
display: none;
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
body.mobile-menu-open {
|
|
overflow: hidden;
|
|
|
|
#mobile-menu {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 15px;
|
|
height: 67px;
|
|
|
|
.open {
|
|
display: none;
|
|
}
|
|
|
|
.close {
|
|
display: block;
|
|
}
|
|
}
|
|
#menu {
|
|
background: #4a6a47;
|
|
display: block;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
overflow: auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 100;
|
|
color: #fff;
|
|
overflow: auto;
|
|
|
|
.menu__profile__logout {
|
|
color: #e19191;
|
|
}
|
|
|
|
a {
|
|
color: #fff;
|
|
}
|
|
}
|
|
.menu__title {
|
|
background: #006400;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
padding-top: 20px;
|
|
padding-left: 15px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
}
|
|
.header__right {
|
|
display: none;
|
|
}
|
|
@media (min-width: 1000px) {
|
|
.header__logo {
|
|
margin-left: 20px;
|
|
}
|
|
.header__content {
|
|
grid-template-areas: "header-logo header-right";
|
|
}
|
|
.header__right {
|
|
display: block;
|
|
grid-area: header-right;
|
|
text-align: right;
|
|
padding-top: 15px;
|
|
}
|
|
#mobile-menu {
|
|
display: none;
|
|
}
|
|
.header__right__login {
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 5px;
|
|
padding: 10px 20px;
|
|
color: #fff;
|
|
transition: background 0.2s ease-out;
|
|
}
|
|
.header__right__login:hover {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.header__right__logout {
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
background: rgba(143, 28, 28, 0.7);
|
|
border-radius: 5px;
|
|
padding: 10px 20px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease-out;
|
|
white-space: nowrap;
|
|
border: 0;
|
|
font-size: 14px;
|
|
|
|
svg {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
.header__right__logout:hover {
|
|
background: rgba(143, 28, 28, 0.3);
|
|
}
|
|
.header__right__profile {
|
|
text-decoration: none;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
margin-right: 20px;
|
|
}
|
|
.header__right__profile,
|
|
.header__right__logout-form {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
}
|