fix bugs responsive
This commit is contained in:
@@ -290,7 +290,7 @@
|
||||
}
|
||||
.field--name-field-images{
|
||||
// grid-column: 2 / 4;
|
||||
@media (max-width: 479px) {
|
||||
@media (max-width: 810px) {
|
||||
width: 100%;
|
||||
}
|
||||
.field__item{
|
||||
@@ -307,7 +307,7 @@
|
||||
flex: 1 1 50px;
|
||||
// grid-column: 4 / 9;
|
||||
padding-left: 1rem;
|
||||
@media (max-width: 534px){
|
||||
@media (max-width: 810px){
|
||||
padding-left: 0em;
|
||||
flex: 1 1 100%;
|
||||
padding-right: 1rem;
|
||||
@@ -323,7 +323,7 @@
|
||||
padding-bottom: 2rem;
|
||||
margin-block-start: 0;
|
||||
text-align: start !important;
|
||||
@media (max-width: 479px){
|
||||
@media (max-width: 810px){
|
||||
font-size: 1.2rem;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -365,6 +365,9 @@
|
||||
color: $red;
|
||||
font-family: 'Source Code Pro';
|
||||
font-weight: 1000;
|
||||
@media (max-width: 479px){
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
.view-projets{
|
||||
width: 80%;
|
||||
@@ -373,8 +376,15 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
@media(max-width: 810px){
|
||||
flex-direction: column;
|
||||
}
|
||||
.views-row{
|
||||
width: 49%;
|
||||
@media(max-width: 810px){
|
||||
width: 100%;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.node-type-projet{
|
||||
color: $blue-dark;
|
||||
@@ -406,7 +416,7 @@
|
||||
}
|
||||
img{
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
// object-fit: cover;
|
||||
// height: fit-content;
|
||||
height: auto;
|
||||
max-height: 400px;
|
||||
@@ -492,13 +502,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// .node-type-projet{
|
||||
// .field--type-image img{
|
||||
// object-fit: cover;
|
||||
// width: 100%;
|
||||
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -509,13 +512,15 @@
|
||||
.block-block-contentbfb4368c-4f85-4329-88f1-8769161aa66f{
|
||||
display: flex;
|
||||
flex-flow: row-reverse;
|
||||
// top: -109px;
|
||||
// position: relative;
|
||||
// right: 200px;
|
||||
background: $background-actus;
|
||||
padding-right:10%;
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 4rem;
|
||||
@media(max-width:479px) {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
|
||||
}
|
||||
.field--type-text-with-summary{
|
||||
height: fit-content;
|
||||
padding: 0.4rem 1rem;
|
||||
|
||||
@@ -15,24 +15,17 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-bottom: 2rem;
|
||||
max-height: 600px;
|
||||
// width: 800px;
|
||||
// max-height: 600px;
|
||||
@media (max-width: 568px){
|
||||
flex-direction: column;
|
||||
}
|
||||
.block-entity-fieldnodefield-photo{
|
||||
width: 60%;
|
||||
padding-right: 2rem;
|
||||
// margin-right: 2rem;
|
||||
// @media (max-width: 810px) {
|
||||
// }
|
||||
@media (max-width: 568px){
|
||||
width: 100%;
|
||||
}
|
||||
img{
|
||||
// padding-top: 2rem;
|
||||
// width: 600px;
|
||||
// width: 65%;
|
||||
height: auto;
|
||||
max-height: 600px;
|
||||
object-fit: contain;
|
||||
@@ -137,21 +130,23 @@
|
||||
.top_bottom{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
// margin: auto;
|
||||
border: 0.1rem solid;
|
||||
justify-content: space-evenly;
|
||||
width: 90%;
|
||||
margin-top: 3rem;
|
||||
@media(max-width:479px){
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
.top_bottom_left{
|
||||
padding-right: 1rem;
|
||||
order: 1;
|
||||
// display: grid;
|
||||
// grid-template-columns: 1fr, repeat(2, 2fr);
|
||||
width: 30%;
|
||||
position: relative;
|
||||
@media(max-width:479px){
|
||||
width: 100%;
|
||||
}
|
||||
&::before{
|
||||
// grid-column: 1;
|
||||
// grid-row: 1 /span 2;
|
||||
content: url("../images/pictos/picto_lieu.svg");
|
||||
display: inline-block;
|
||||
width: 50px;
|
||||
@@ -165,15 +160,10 @@
|
||||
order: 1;
|
||||
margin-left: 70px;
|
||||
margin-bottom: 1rem;
|
||||
// grid-column: 2;
|
||||
// grid-row: 1;
|
||||
}
|
||||
.block-entity-fieldnodefield-adresse{
|
||||
order: 2;
|
||||
margin-left: 70px;
|
||||
// grid-column: 2;
|
||||
// grid-row: 2;
|
||||
// margin-block-start: .83em;
|
||||
.field--name-field-adresse{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -184,10 +174,6 @@
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
margin: 0;
|
||||
// .locality::after{
|
||||
// content:",";
|
||||
// margin-right: 0.3rem;
|
||||
// }
|
||||
.country{
|
||||
display: none;
|
||||
}
|
||||
@@ -203,6 +189,13 @@
|
||||
padding-bottom: 1rem;
|
||||
border-left: 0.1rem solid ;
|
||||
width: 30%;
|
||||
@media(max-width:479px){
|
||||
width: 100%;
|
||||
border-top: 0.1rem solid ;
|
||||
border-left: 0;
|
||||
padding-right: 0rem;
|
||||
padding-left: 0rem;
|
||||
}
|
||||
h2{
|
||||
color: $blue-dark;
|
||||
font-size: 1.2rem;
|
||||
@@ -211,8 +204,18 @@
|
||||
margin-bottom: 0rem !important;
|
||||
&:after{
|
||||
content: ' :';
|
||||
}
|
||||
@media(max-width:479px){
|
||||
padding-right: 1rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
.field__item{
|
||||
@media(max-width:479px){
|
||||
padding-right: 1rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
.field__label{
|
||||
display: none;
|
||||
}
|
||||
@@ -223,6 +226,13 @@
|
||||
border-left: 0.1rem solid ;
|
||||
padding-bottom: 1rem;
|
||||
width: 20%;
|
||||
@media(max-width:479px){
|
||||
border-left: 0;
|
||||
border-top: 0.1rem solid ;
|
||||
width: 100%;
|
||||
padding-right: 0rem;
|
||||
padding-left: 0rem;
|
||||
}
|
||||
h2{
|
||||
color: $blue-dark;
|
||||
font-size: 1.2rem;
|
||||
@@ -232,6 +242,16 @@
|
||||
&:after{
|
||||
content: ' :';
|
||||
}
|
||||
@media(max-width:479px){
|
||||
padding-right: 1rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
.field__item{
|
||||
@media(max-width:479px){
|
||||
padding-right: 1rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
.field__label{
|
||||
display: none;
|
||||
@@ -243,6 +263,13 @@
|
||||
padding-bottom: 1rem;
|
||||
border-left: 0.1rem solid ;
|
||||
width: 20%;
|
||||
@media(max-width:479px){
|
||||
border-left: 0;
|
||||
border-top: 0.1rem solid ;
|
||||
width: 100%;
|
||||
padding-right: 0rem;
|
||||
padding-left: 0rem;
|
||||
}
|
||||
h2{
|
||||
color: $blue-dark;
|
||||
font-size: 1.2rem;
|
||||
@@ -251,7 +278,17 @@
|
||||
margin-bottom: 0rem !important;
|
||||
&:after{
|
||||
content: ' :';
|
||||
}
|
||||
}
|
||||
@media(max-width:479px){
|
||||
padding-right: 1rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
.field__item{
|
||||
@media(max-width:479px){
|
||||
padding-right: 1rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
.field__label{
|
||||
display: none;
|
||||
@@ -403,11 +440,17 @@
|
||||
.layout__region--third{
|
||||
// grid-row: 4;
|
||||
margin-top: 5rem;
|
||||
|
||||
@media(max-width:479px){
|
||||
margin-top: 2rem;
|
||||
}
|
||||
.block-region-third{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 65%;
|
||||
@media(max-width:479px){
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
}
|
||||
.block-entity-fieldnodefield-fichiers{
|
||||
h2{display: none;}
|
||||
.field--name-field-fichiers{
|
||||
@@ -501,7 +544,9 @@
|
||||
|
||||
.block-entity-fieldnodefield-ressource-s-liee-s-{
|
||||
margin-top: 3rem;
|
||||
|
||||
@media(max-width:479px){
|
||||
margin-top: 2rem;
|
||||
}
|
||||
h2{
|
||||
font-size: 0.8rem;
|
||||
color: $black;
|
||||
|
||||
@@ -119,6 +119,9 @@
|
||||
.layout__region--first{ // menu ancres a gauche
|
||||
margin-top: 3rem;
|
||||
position: relative;
|
||||
@media (max-width: 810px){
|
||||
display: none;
|
||||
}
|
||||
.block-region-first{
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
@@ -189,7 +192,10 @@
|
||||
.block-region-third{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 70%;
|
||||
width: 70%;
|
||||
@media (max-width: 810px){
|
||||
width: 100%;
|
||||
}
|
||||
.block-entity-fieldnodefield-fichiers{
|
||||
height: fit-content;
|
||||
border: 2px solid $blue-light;
|
||||
@@ -277,20 +283,9 @@
|
||||
height: fit-content;
|
||||
margin-bottom: 1rem;
|
||||
background-color: $white;
|
||||
// &:first-of-type{
|
||||
// border-top: 1px solid $blue-light;
|
||||
// padding-top: 1rem;
|
||||
// &::after{
|
||||
// content: url("../images/pictos/noun_Arrow_3771902.svg");
|
||||
// align-self: flex-end;
|
||||
// }
|
||||
// }
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
// &::after{
|
||||
// content: url("../images/pictos/noun_Arrow_3771902.svg");
|
||||
// align-self: flex-end;
|
||||
// }
|
||||
|
||||
div{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -12,27 +12,37 @@
|
||||
.block-region-content{
|
||||
display: grid;
|
||||
grid-template-columns: 1fr repeat(4, 1fr) 1fr;
|
||||
@media (max-width: 479px){
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
// texte présentation
|
||||
.block-config-pages-block{
|
||||
grid-column: 1 / span 4;
|
||||
margin-left: 1rem;
|
||||
|
||||
@media (max-width:479px) {
|
||||
order: 1;
|
||||
margin-left: 0;
|
||||
}
|
||||
.config_pages--base-de-donnees--full{
|
||||
// .field--name-field-introduction{
|
||||
grid-column: 1 / span 5;
|
||||
// margin: 2rem;
|
||||
.field--name-field-introduction{
|
||||
// width: 65%;
|
||||
margin: auto;
|
||||
background: $white;
|
||||
margin-top:5rem;
|
||||
}
|
||||
@media (max-width: 810px){
|
||||
padding: 2rem;
|
||||
grid-column: 1 / span 5;
|
||||
@media (max-width: 810px){
|
||||
padding: 2rem;
|
||||
margin-top:1rem;
|
||||
}
|
||||
@media (max-width: 479px){
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.field--name-field-introduction{
|
||||
margin: auto;
|
||||
background: $white;
|
||||
margin-top:5rem;
|
||||
@media (max-width: 479px){
|
||||
margin-top:1rem;
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,13 +53,16 @@
|
||||
grid-column: 6 / span 5;
|
||||
grid-row: 1;
|
||||
margin-top: 4rem;
|
||||
// margin-right: 1rem;
|
||||
// padding-right: 1rem;
|
||||
background-color: $blue-light;
|
||||
height: fit-content;
|
||||
width: 100%;
|
||||
// margin-left: 2rem;
|
||||
// grid-row: 1;
|
||||
@media (max-width: 810px){
|
||||
grid-column: 5 / span 5;
|
||||
}
|
||||
@media (max-width: 479px){
|
||||
grid-column: 5 / span 5;
|
||||
order: 2;
|
||||
}
|
||||
.display{
|
||||
display: block;
|
||||
}
|
||||
@@ -88,16 +101,20 @@
|
||||
margin-top: 2rem;
|
||||
width: 100%;
|
||||
grid-column: 1 / span 6;
|
||||
@media (max-width:479px) {
|
||||
order: 3;
|
||||
}
|
||||
.view-filters{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
||||
background-color: $white;
|
||||
margin-top: 2rem;
|
||||
margin-left: 1rem;
|
||||
margin-bottom: 5rem;
|
||||
|
||||
@media (max-width: 479px) {
|
||||
margin-left: 0;
|
||||
}
|
||||
&::before{
|
||||
content: "Filtrer par : ";
|
||||
padding-right: 1rem;
|
||||
@@ -110,20 +127,12 @@
|
||||
width: fit-content;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
// .js-form-item.form-item.js-form-type-select.form-item-field-type-de-ressource-target-id.js-form-item-field-type-de-ressource-target-id{
|
||||
// width: fit-content;
|
||||
// padding-right: 1rem;
|
||||
// padding-left: 1rem;
|
||||
|
||||
// }
|
||||
// .form-item{
|
||||
// width: fit-content;
|
||||
// }
|
||||
// .form-item-field-type-de-ressource-target-id{
|
||||
// width: fit-content;
|
||||
|
||||
// }
|
||||
flex-wrap: wrap;
|
||||
#edit-field-mots-clefs-target-id{
|
||||
@media (max-width: 479px){
|
||||
width: 75vw;
|
||||
}
|
||||
}
|
||||
|
||||
#edit-actions{
|
||||
display: flex;
|
||||
@@ -136,10 +145,10 @@
|
||||
border: none;
|
||||
padding: 0.1rem 0.7rem;
|
||||
margin-left: 2rem;
|
||||
|
||||
@media (max-width: 479px){
|
||||
margin-left: 0rem;
|
||||
margin-right: 2rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
#edit-reset{
|
||||
@@ -160,14 +169,9 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
// justify-content: space-between;
|
||||
.views-row{
|
||||
width: 25%;
|
||||
flex: 0 0 25%;
|
||||
// padding: 0.5rem;
|
||||
// background-color: $white;
|
||||
// margin-bottom: 1rem;
|
||||
|
||||
flex: 0 0 25%;
|
||||
.node-type-ressource{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -175,6 +179,9 @@
|
||||
margin-left: 1rem;
|
||||
margin-bottom: 1rem ;
|
||||
padding: 1rem;
|
||||
@media (max-width: 479px) {
|
||||
margin-left: 0;
|
||||
}
|
||||
&:hover{
|
||||
background-color: $background-actus;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user