lostplaces-frontend/components/03_Organisms/header/_header.scss

72 lines
1.3 KiB
SCSS
Raw Permalink Normal View History

2020-08-04 23:47:39 +02:00
$-logo-height: 45px;
2020-07-17 17:55:46 +02:00
.LP-Header {
display: flex;
align-items: center;
justify-content: space-between;
2020-08-02 23:02:25 +02:00
height: 60px;
box-shadow: 0 0 2px $-light-brown;
grid-area: header;
background-color: white;
padding-left: 25px;
2020-08-04 19:42:13 +02:00
&__Navigation{
flex-grow: 2;
}
2020-08-02 23:02:25 +02:00
2020-07-17 17:55:46 +02:00
&__Logo {
2020-08-04 23:47:39 +02:00
height: $-logo-height;
2020-08-02 23:02:25 +02:00
object-fit:cover;
max-height: 100%;
2020-08-04 23:47:39 +02:00
width: 225px;
2020-08-02 23:02:25 +02:00
overflow: hidden;
2020-08-04 19:42:13 +02:00
flex-shrink: 0;
2020-08-02 23:02:25 +02:00
.LP-Image{
2020-08-04 23:47:39 +02:00
height: 100%;
2020-08-02 23:02:25 +02:00
}
2020-07-17 17:55:46 +02:00
}
2020-08-02 23:02:25 +02:00
}
2020-07-17 17:55:46 +02:00
2020-08-04 19:42:13 +02:00
.LP-Header__UserInformation{
margin-right: 3%;
.LP-Paragraph{
font-family: $-primary-sans-serif-font;
white-space: nowrap;
}
.LP-Link{
margin: 0 3px;
padding: 4px 4px;
}
}
2020-08-02 23:02:25 +02:00
@media(max-width: $-viewport-medium){
2020-07-27 10:23:58 +02:00
.LP-Header__Logo{
2020-08-04 23:47:39 +02:00
width: $-logo-height;
2020-08-02 23:02:25 +02:00
.LP-Image{
object-position: 0 0;
object-fit: cover;
}
}
}
@media(max-width: $-viewport-extra-small){
.LP-Header__Logo{
display: none;
}
.LP-Header__Navigation{
width: 100%;
2020-07-17 17:55:46 +02:00
}
2020-08-16 10:30:55 +02:00
}
@media(max-width: $-viewport-toggle-sidebar){
.LP-Header{
padding-left: 60px;
width: calc(100% - 60px);
position: fixed;
z-index: 10;
}
2021-10-02 07:19:34 +02:00
}