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
@@ -3,6 +3,7 @@ footer{
width: 100%;
height: auto;
padding: 2rem 0;
margin-top:2rem;
h2{
font-size: 1rem;
text-transform: uppercase;
@@ -85,7 +85,7 @@
/* style the items (options), including the selected item: */
.select-items div,.select-selected {
color: #ffffff;
padding: 8px 16px;
padding: 8px 30px 8px 16px;
border: 1px solid transparent;
border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
cursor: pointer;
@@ -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;
@@ -20,7 +20,7 @@ main{
}
main:not(.home){
padding-top: 0rem;
padding-top: 2rem;
@media screen and (min-width: 768px) {
padding: 5rem 0!important;
}
@@ -77,7 +77,7 @@ article{
.__head{
div{
& > div{
// padding: 0 0.5rem;
padding: 0 0.5rem;
}
}
}
@@ -15,9 +15,49 @@
}
#block-views-block-slide-programme-block-1{
.date{
font-size: 1.5rem;
font-family: 'truenoregular';
text-transform: uppercase;
}
.__slide{
.flickity-viewport{
overflow: initial;
}
a{
height: 100%;
background: white;
@include shadow;
}
article{
min-height: calc(100% - 30px );
height: 325px;
background: none;
display: flex;
margin-top: 3rem;
margin-bottom: 1.5rem;
&.__wrap{
background: white;
}
&.last::after{
display: inline-block;
content: " ";
width: 3px;
height: auto;
margin: -2.5rem 0 0 0;
background: $color1;
position: relative;
left: 0.5rem;
}
&.first{
flex-direction: column;
span{
position: absolute;
top: -2.5rem;
width: max-content;
font-size: 1.5rem;
font-family: 'truenoregular';
}
}
}
}
}
@@ -33,7 +73,31 @@
display: block;
}
.flickity-slider{
margin-left: 1rem;
// margin-left: 1rem;
}
}
}
}
.paragraph--type--role-de-l-intervenant{
margin-bottom: 2rem;
.__slide{
&:after {
content: 'flickity';
display: none;
@media screen and ( min-width: 768px ) {
content: '';
}
}
.flickity-viewport{
overflow: initial;
}
.flickity-slider > div{
width: 70%;
padding: 0 0.5rem;
@media screen and ( min-width: 768px ) {
width: 100%;
}
}
}
@@ -1,10 +1,18 @@
// thumbnails global
section{
& > div:not(.__slide){
article.thumbnails.programme{
@include shadow;
}
}
}
.thumbnails{
width: 100%;
height: auto;
background: white;
margin: $gutter1;
&:not(.bibliographie){
&:not(.bibliographie):not(.programme){
@include shadow;
}
figure{
@@ -38,6 +46,11 @@
}
&.bibliographie{
background: white!important;
padding: 0.5rem;
&.link_ext{
@include shadow;
}
@media screen and (min-width: 768px) {
width: calc(100% / 2 - #{$gutter1} * 2);
}
@@ -47,12 +60,18 @@
@media screen and (min-width: 1200px) {
width: calc(100% / 4 - #{$gutter1} * 2);
}
a{
& > div * {
display: inline;
background: white;
color: $color2;
& > div * {
color: $col_black;
&.__auteur *{
font-size: 1.4rem;
}
&.__body{
margin:1rem 0;
}
}
a{
text-decoration: underline;
color: $color1;
}
}
}
@@ -60,7 +79,11 @@
// thumbnails slides
.__slide{
.thumbnails{
max-width: 380px;
// max-width: 380px;
width: calc(100% - 30px);
a{
width: calc(100%);
}
@media screen and (min-width: 768px) {
width: calc(100% / 2 - #{$gutter1} * 2);
}