header fix

This commit is contained in:
2020-07-27 12:39:59 +02:00
parent e9761aa6ca
commit 34741c345d
31 changed files with 605 additions and 267 deletions
@@ -1,76 +1,138 @@
header{
padding: 0;
height: 100px;
// display: none;
div {
height: inherit;
}
}
#block-popsu-colloque-branding{
width: 100%;
position: relative;
// z-index: 999;
padding:0;
@media screen and (min-width: 992px) {
padding:0 1rem;
}
&.is-active{
z-index: 10000;
}
& > div {
display: flex;
padding:1rem 0.5rem;
& > a{
display: inline-block;
position: relative;
img{
width: auto;
height: 100%;
object-fit: contain;
@media screen and (min-width: 768px) {
max-height: 100px;
.row{
background: white;
max-height: inherit;
justify-content: space-between;
#block-popsu-colloque-branding{
max-height: inherit;
& > div{
max-height: inherit;
a{
display: block;
max-height: inherit;
img{
width: 100%;
max-height: inherit;
object-fit: contain;
padding-bottom: 0.5rem;
padding-top: 0.5rem;
@media screen and (min-width: 450px) {
width: auto;
}
}
}
}
&.is-active{
z-index: 10000;
}
}
#block-renderedsitesettingsblock-2{
width: auto;
border-left: 1px solid $color1;
padding: 0;
display: none;
@media screen and (min-width: 1200px) {
display: flex;
}
.site_setting_entity{
display: flex;
align-items: center;
justify-content: center;
padding: 0 1rem 0 0rem;
h1{
max-width: 100%;
color: $color2;
padding-right: 1rem;
text-transform: uppercase;
text-align: right;
align-self: stretch;
margin: auto 0;
width: 100%;
}
.__info_colloque{
width: 100%;
align-self: stretch;
margin: auto 0;
height: 7vw;
height: auto;
&>div{
&:first-child{
white-space: nowrap;
border-bottom: 2px solid $color1;
}
}
}
}
}
}
}
#block-renderedsitesettingsblock-2{
width: auto;
border-left: 1px solid $color1;
padding: 0;
display: none;
min-width: 520px;
@media screen and (min-width: 768px) {
display: block;
}
.site_setting_entity{
display: flex;
align-items: center;
justify-content: center;
padding: 0 1rem;
h1{
max-width: 100%;
color: $color2;
padding-right: 1rem;
text-transform: uppercase;
text-align: right;
align-self: stretch;
margin: auto 0;
width: 100%;
}
.__info_colloque{
width: 100%;
align-self: stretch;
margin: auto 0;
height: 7vw;
height: auto;
&>div{
&:first-child{
white-space: nowrap;
border-bottom: 2px solid $color1;
#block-mainnavigation{
max-width: max-content;
width: max-content;
.burger{
padding-top: 0.25rem;
z-index: 9999;
}
.nav-main{
display: none;
@media screen and (min-width: 1200px) {
display: block;
ul{
margin-bottom: 0;
li{
margin: 0 0.5rem;
}
}
}
&.is-active{
display: block;
position: fixed;
width: 100vw;
height: 100vh;
left: 0;
top: 0;
background: white;
z-index: 9999;
@media screen and (min-width: 576px) {
height: auto;
ul{
margin: 130px 0 50px 0;
}
li{
font-size: 1.7rem;
line-height: 3rem;
padding: 0 15px;
}
}
ul{
display: flex;
justify-content: center;
flex-direction: column;
height: 100%;
align-items: center;
li{
font-size: 1.5rem;
line-height: 3rem;
padding: 0 15px;
@media screen and (min-width: 360px) {
width: 100%;
&::before{
display: inline-block;
content: " ";
width: 0%;
transition: width 1s ease;
height: 1px;
background: $color1;
}
&:hover{
&::before{
width: 10%;
transition: all 1s ease;
}
}
}
}
}
}
}
}
@@ -78,18 +140,13 @@ header{
}
#block-mainnavigation{
width: 100%;
border-left: 1px solid $color1;
padding: 0rem;
display: flex;
align-items: center;
justify-content: flex-end;
@media screen and (min-width: 1200px) {
min-width: auto;
padding: 2rem;
}
.burger{
display: block;
margin: auto;
@media screen and (min-width: 1200px) {
display: none;
}
@@ -103,84 +160,25 @@ header{
@media screen and (min-width: 1200px) {
display: flex;
}
@media screen and (max-width: 1200px) {
&.is-active{
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
z-index: 999;
ul{
display: flex;
justify-content: center;
flex-direction: column;
height: 100%;
align-items: center;
li{
width: 100%;
font-size: 2rem;
line-height: 3rem;
display: inline-flex;
align-items: center;
padding: 0 5%;
&::before{
display: block;
content: " ";
width: 0%;
transition: width 1s ease;
height: 1px;
background: $color1;
}
&:hover{
&::before{
width: 10%;
transition: all 1s ease;
}
}
a{
min-width: max-content;
margin: 0 1rem;
}
}
}
}
}
ul{
flex-wrap: nowrap;
li{
padding: 0 0.5rem;
&:not(:last-child){
border-right: 1px solid $col_black;
}
a{
white-space: nowrap;
}
}
}
}
}
header.front{
#block-popsu-colloque-branding{
width: 100%;
width: 21rem;
position: relative;
z-index: 999;
padding: 1rem 0 0 0;
& > div {
& > a{
display: inline-block;
height: 8rem;
max-height: 150px;
position: relative;
img{
width: auto;
height: 100%;
object-fit: contain;
}
z-index: 9999;
a{
max-height: 8rem!important;
}
&.is-active{
overflow: inherit;
&>div{
max-height: 115px;
}
}
}
#block-renderedsitesettingsblock-2{
display: none;
}
}
@@ -4,14 +4,25 @@
padding: 0;
margin: 0;
li{
margin-right: 1rem;
// margin-right: 1rem;
width: 100%;
text-align: center;
@media screen and (min-width: 576px) {
width: auto!important;
}
&:first-child{
margin-right: 1rem;
}
a{
display: block;
padding: 1rem 1rem;
padding: 0.5rem 1rem;
border: 1px solid $color2;
color: $color2;
background: white;
transition: color 0.3s ease, background 0.3s ease;
@media screen and (min-width: 576px) {
// padding: 1rem 1rem;
}
&:hover{
text-decoration: none;
color: white;