responsive page /ressources

This commit is contained in:
2025-10-07 13:26:40 +02:00
parent fc9112e31e
commit b52522fa33
2 changed files with 62 additions and 1 deletions
+38
View File
@@ -3231,6 +3231,13 @@ html.js body.node-type-operation.node-id-7 div.dialog-off-canvas-main-canvas div
max-height: 17rem; max-height: 17rem;
padding-bottom: 5rem; padding-bottom: 5rem;
} }
@media (max-width: 450px) {
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 {
display: flex;
flex-direction: column;
margin-bottom: 6rem;
}
}
.page-ressources .view-ressources #views-exposed-form-ressources-page-1::before { .page-ressources .view-ressources #views-exposed-form-ressources-page-1::before {
content: "FILTRER :"; content: "FILTRER :";
grid-column: 1; grid-column: 1;
@@ -3238,10 +3245,20 @@ html.js body.node-type-operation.node-id-7 div.dialog-off-canvas-main-canvas div
display: block; display: block;
line-height: 5; line-height: 5;
} }
@media (max-width: 450px) {
.page-ressources .view-ressources #views-exposed-form-ressources-page-1::before {
line-height: 3;
}
}
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item, .page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-actions { .page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item, .page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-actions {
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
align-self: end; align-self: end;
} }
@media (max-width: 450px) {
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item, .page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-actions {
align-self: auto;
}
}
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item-combine { .page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item-combine {
grid-column: 1/span 8; grid-column: 1/span 8;
grid-row: 2; grid-row: 2;
@@ -3251,16 +3268,31 @@ html.js body.node-type-operation.node-id-7 div.dialog-off-canvas-main-canvas div
grid-row: 3; grid-row: 3;
width: 45%; width: 45%;
} }
@media (max-width: 450px) {
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .js-form-item-field-site-target-id {
width: 100%;
}
}
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item-field-themes-target-id { .page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item-field-themes-target-id {
grid-column: 3/span 4; grid-column: 3/span 4;
grid-row: 3; grid-row: 3;
width: 45%; width: 45%;
} }
@media (max-width: 450px) {
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item-field-themes-target-id {
width: 100%;
}
}
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item-field-type-de-ressource-target-id { .page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item-field-type-de-ressource-target-id {
width: 45%; width: 45%;
grid-column: 5/span 6; grid-column: 5/span 6;
grid-row: 3; grid-row: 3;
} }
@media (max-width: 450px) {
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-item-field-type-de-ressource-target-id {
width: 100%;
}
}
.page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-select { .page-ressources .view-ressources #views-exposed-form-ressources-page-1 .form-select {
background: white; background: white;
border: solid gray 1px; border: solid gray 1px;
@@ -3291,6 +3323,12 @@ html.js body.node-type-operation.node-id-7 div.dialog-off-canvas-main-canvas div
transform: scale(1.05); transform: scale(1.05);
transition: 0.3s transform ease, 0.3s box-shadow ease; transition: 0.3s transform ease, 0.3s box-shadow ease;
} }
@media (max-width: 450px) {
.page-ressources .view-ressources .views-row {
width: 100%;
margin-bottom: 3rem;
}
}
.page-ressources .view-ressources .views-row .node-type-ressource { .page-ressources .view-ressources .views-row .node-type-ressource {
width: 100%; width: 100%;
display: flex !important; display: flex !important;
@@ -24,18 +24,29 @@
height: fit-content; height: fit-content;
max-height: 17rem; max-height: 17rem;
padding-bottom: 5rem; padding-bottom: 5rem;
@media (max-width:450px){
display: flex;
flex-direction: column;
margin-bottom: 6rem;
}
&::before{ &::before{
content: 'FILTRER :'; content: 'FILTRER :';
grid-column: 1; grid-column: 1;
grid-row: 1; grid-row: 1;
display: block; display: block;
line-height: 5; line-height: 5;
@media (max-width:450px){
line-height: 3;
}
} }
.form-item, .form-actions{ .form-item, .form-actions{
// margin: 1rem; // margin: 1rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
align-self: end; align-self: end;
@media (max-width:450px){
align-self: auto;
}
} }
.form-item-combine{ .form-item-combine{
grid-column: 1 /span 8; grid-column: 1 /span 8;
@@ -47,17 +58,25 @@
grid-column: 1 /span 4; grid-column: 1 /span 4;
grid-row: 3; grid-row: 3;
width: 45%; width: 45%;
@media (max-width:450px){
width: 100%;
}
} }
.form-item-field-themes-target-id{ .form-item-field-themes-target-id{
grid-column: 3 /span 4; grid-column: 3 /span 4;
grid-row: 3; grid-row: 3;
width: 45%; width: 45%;
@media (max-width:450px){
width: 100%;
}
} }
.form-item-field-type-de-ressource-target-id{ .form-item-field-type-de-ressource-target-id{
width: 45%; width: 45%;
grid-column: 5 /span 6; grid-column: 5 /span 6;
grid-row: 3; grid-row: 3;
@media (max-width:450px){
width: 100%;
}
} }
.form-select{ .form-select{
@@ -92,6 +111,10 @@
transform: scale(1.05); transform: scale(1.05);
transition: 0.3s transform ease, 0.3s box-shadow ease; transition: 0.3s transform ease, 0.3s box-shadow ease;
} }
@media (max-width:450px){
width: 100%;
margin-bottom: 3rem;
}
.node-type-ressource{ .node-type-ressource{
width: 100%; width: 100%;
// margin: auto; // margin: auto;