responsive node ressource
This commit is contained in:
@@ -18,18 +18,19 @@
|
|||||||
@media (max-width: 810px) {
|
@media (max-width: 810px) {
|
||||||
#sites-map-container {
|
#sites-map-container {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 530px) {
|
@media (max-width: 530px) {
|
||||||
#sites-map-container {
|
#sites-map-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 485px;
|
height:396px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 400px) {
|
@media (max-width: 400px) {
|
||||||
#sites-map-container {
|
#sites-map-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 430px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#sites-map-container .site-link:hover {
|
#sites-map-container .site-link:hover {
|
||||||
|
|||||||
@@ -4729,6 +4729,11 @@ body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media (max-width: 810px) {
|
||||||
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first {
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
@@ -4742,6 +4747,11 @@ body {
|
|||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container h2::after {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container h2::after {
|
||||||
content: " :";
|
content: " :";
|
||||||
}
|
}
|
||||||
|
@media (max-width: 810px) {
|
||||||
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container h2 {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link div {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link div {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -4759,6 +4769,11 @@ body {
|
|||||||
padding-top: 0.2rem;
|
padding-top: 0.2rem;
|
||||||
padding-left: 0.2rem;
|
padding-left: 0.2rem;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 810px) {
|
||||||
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link a {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link a::before {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link a::before {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
content: url("../img/noun-arrow-to-left.svg");
|
content: url("../img/noun-arrow-to-left.svg");
|
||||||
@@ -4772,6 +4787,13 @@ body {
|
|||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
margin-right: 2rem;
|
margin-right: 2rem;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 810px) {
|
||||||
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second {
|
||||||
|
order: 1;
|
||||||
|
margin-top: 3rem;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -4779,10 +4801,11 @@ body {
|
|||||||
margin-left: 2rem;
|
margin-left: 2rem;
|
||||||
margin-right: 3rem;
|
margin-right: 3rem;
|
||||||
}
|
}
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 810px) {
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second {
|
||||||
margin-left: 0.5rem;
|
margin-left: 0rem;
|
||||||
margin-top: 1rem;
|
margin-top: 0rem;
|
||||||
|
margin-right: 0rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_title,
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_title,
|
||||||
@@ -4931,11 +4954,22 @@ body {
|
|||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media (max-width: 810px) {
|
||||||
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images img {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images img {
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
width: 220px !important;
|
width: 220px !important;
|
||||||
height: 145px;
|
height: 145px;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 810px) {
|
||||||
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images img {
|
||||||
|
width: 100% !important;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .image-field-caption {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .image-field-caption {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -4944,6 +4978,11 @@ body {
|
|||||||
font-size: 0.5rem;
|
font-size: 0.5rem;
|
||||||
font-family: "gilroy-light";
|
font-family: "gilroy-light";
|
||||||
}
|
}
|
||||||
|
@media (max-width: 810px) {
|
||||||
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .image-field-caption p {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field--name-field-documents) {
|
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field--name-field-documents) {
|
||||||
order: 5;
|
order: 5;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
|
|||||||
@@ -13,8 +13,12 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
}
|
}
|
||||||
.layout__region--first{
|
.layout__region--first{
|
||||||
|
@media(max-width: 810px){
|
||||||
|
order:2
|
||||||
|
}
|
||||||
.block-region-first{
|
.block-region-first{
|
||||||
#sites-map-container{
|
#sites-map-container{
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
@@ -27,6 +31,9 @@
|
|||||||
&::after{
|
&::after{
|
||||||
content: " :";
|
content: " :";
|
||||||
}
|
}
|
||||||
|
@media(max-width: 810px){
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,6 +54,9 @@
|
|||||||
padding-bottom: 0.2rem;
|
padding-bottom: 0.2rem;
|
||||||
padding-top: 0.2rem;
|
padding-top: 0.2rem;
|
||||||
padding-left: 0.2rem;
|
padding-left: 0.2rem;
|
||||||
|
@media(max-width: 810px){
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
// svg{
|
// svg{
|
||||||
// display: none;
|
// display: none;
|
||||||
@@ -71,15 +81,21 @@
|
|||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
margin-right: 2rem;
|
margin-right: 2rem;
|
||||||
// width: 60%;
|
// width: 60%;
|
||||||
|
@media(max-width: 810px){
|
||||||
|
order:1;
|
||||||
|
margin-top: 3rem;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
.block-region-second{
|
.block-region-second{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-left: 2rem;
|
margin-left: 2rem;
|
||||||
margin-right: 3rem;
|
margin-right: 3rem;
|
||||||
@media(max-width: 500px){
|
@media(max-width: 810px){
|
||||||
margin-left: 0.5rem;
|
margin-left: 00rem;
|
||||||
margin-top: 1rem;
|
margin-top: 0rem;
|
||||||
|
margin-right: 0rem;
|
||||||
}
|
}
|
||||||
.field_title,
|
.field_title,
|
||||||
.field_field_sous_titre{
|
.field_field_sous_titre{
|
||||||
@@ -219,6 +235,7 @@
|
|||||||
div:has(.field_field_images){
|
div:has(.field_field_images){
|
||||||
order: 10;
|
order: 10;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.diaporama{
|
.diaporama{
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: row !important;
|
flex-direction: row !important;
|
||||||
@@ -231,10 +248,17 @@
|
|||||||
}
|
}
|
||||||
.images{
|
.images{
|
||||||
// margin: auto;
|
// margin: auto;
|
||||||
|
@media (max-width:810px){
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
img{
|
img{
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
width: 220px !important;
|
width: 220px !important;
|
||||||
height: 145px;
|
height: 145px;
|
||||||
|
@media (max-width:810px){
|
||||||
|
width: 100% !important;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.image-field-caption{
|
.image-field-caption{
|
||||||
@@ -244,6 +268,9 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
font-size: 0.5rem;
|
font-size: 0.5rem;
|
||||||
font-family: 'gilroy-light';
|
font-family: 'gilroy-light';
|
||||||
|
@media (max-width:810px){
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user