ressources liées dans page une ressource

This commit is contained in:
2021-12-20 20:28:40 +01:00
parent d789379837
commit e02b8f5242
3 changed files with 260 additions and 214 deletions
+23 -8
View File
@@ -1512,15 +1512,30 @@ a {
width: 100%; width: 100%;
height: auto; } height: auto; }
.page-node-type-ressource .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .field--name-field-ress .node-type-ressource .field--name-field-type-de-ressource { .page-node-type-ressource .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .field--name-field-ress .node-type-ressource .field--name-field-type-de-ressource {
display: inline-flex; text-transform: uppercase; }
.page-node-type-ressource .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .field--name-field-ress .node-type-ressource .field--name-field-type-de-ressource a {
color: #009ee3;
font-weight: 900;
font-size: 0.8rem; }
.page-node-type-ressource .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .field--name-field-ress .node-type-ressource .field--name-field-mots-clefs {
display: flex;
margin-top: 2rem; margin-top: 2rem;
background: #09398b; flex-direction: row;
margin-right: 1rem; flex-wrap: wrap; }
padding-left: 0.3rem; .page-node-type-ressource .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .field--name-field-ress .node-type-ressource .field--name-field-mots-clefs .field__item {
padding-right: 0.3rem; margin-right: 1rem;
color: white; padding-left: 0.3rem;
font-weight: 800; padding-right: 0.3rem; }
vertical-align: middle; } .page-node-type-ressource .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .field--name-field-ress .node-type-ressource .field--name-field-mots-clefs .field__item a {
background: #09398b;
color: white;
font-weight: 800;
vertical-align: super;
padding-left: 0.1rem;
padding-right: 0.1rem;
display: inline-flex; }
.page-node-type-ressource .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .field--name-field-ress .node-type-ressource ul.links.inline {
display: none; }
.offresdeservices .layout-content .region-content #block-contenudelapageprincipale { .offresdeservices .layout-content .region-content #block-contenudelapageprincipale {
background: url("../images/pictos/carre-contour-bleu_programme.svg"); background: url("../images/pictos/carre-contour-bleu_programme.svg");
@@ -30,222 +30,223 @@
background-size: cover; background-size: cover;
// bandeau filtres collections // bandeau filtres collections
.block-views-blockcollections-block-1{ .block-views-blockcollections-block-1{
background: $background-actus; background: $background-actus;
height: fit-content; height: fit-content;
display: flex;
div{
width: 100%;
}
.view-id-collections{
height: 100%;
display: flex; display: flex;
width: 60%; div{
margin: auto; width: 100%;
}
.view-id-collections{
height: 100%;
display: flex;
width: 60%;
margin: auto;
.view-content{
display: flex;
flex-direction: row;
margin: auto;
margin-top: 2rem;
margin-bottom: 2rem;
justify-content: space-between;
align-items: center;
.views-row{
background: $white;
width: 46%;
height: 80%;
padding: 1rem;
a{
color: $black;
font-size: 1.5rem;
font-weight: 600;
}
&:hover{
background: $blue-dark;
a{
color: $white;
}
}
}
}
}
// .view-filters{
// .views-exposed-form-base-de-donnees-block-1{
// .form-item-field-type-de-ressource-target-id{
// #edit-field-type-de-ressource-target-id{
// label{
// display: none;
// }
// }
// }
// }
// }
}
// texte présentation
.block-config-pages-block{
margin: 2rem;
.field--name-field-introduction{
width: 65%;
margin: auto;
background: $white;
}
}
// grille des ressources
.block-views-blockbase-de-donnees-block-1{
margin: auto;
width: 60%;
.view-filters{
display: none;
background-color: $white;
margin-top: 2rem;
margin-bottom: 2rem;
.views-exposed-form-base-de-donnees-block-1{
width: fit-content;
display: flex;
.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;
}
.form-item{
width: fit-content;
}
.form-item-field-type-de-ressource-target-id{
width: fit-content;
}
}
}
.view-content{ .view-content{
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin: auto; flex-wrap: wrap;
margin-top: 2rem;
margin-bottom: 2rem;
justify-content: space-between; justify-content: space-between;
align-items: center; margin-top: 3rem;
.views-row{ .views-row{
background: $white; width: 49%;
width: 46%; // padding: 1rem;
// width: 50%;
min-height: 300px;
border: 2px solid $blue-light;
background-color: $white;
margin-bottom: 1rem;
}
height: 80%; .node-type-ressource{
padding: 1rem; display: flex;
a{ flex-direction: column;
color: $black; // border: 2px solid $blue-light;
font-size: 1.5rem; padding: 1rem;
font-weight: 600;
} &:hover{
&:hover{ background-color: $blue-light;
background: $blue-dark; .field--name-field-mots-clefs{
a{ // &::after{
color: $white; // content: url("../images/pictos/noun_Arrow_3771902.svg");
// }
}
} }
} // &::after{
// content: url("../images/pictos/noun_Arrow_3771902.svg");
// align-self: end;
// margin-top: 1rem;
// }
} .field--name-field-type-de-ressource{
} text-transform: uppercase;
}
// .view-filters{
// .views-exposed-form-base-de-donnees-block-1{
// .form-item-field-type-de-ressource-target-id{
// #edit-field-type-de-ressource-target-id{
// label{ a{
// display: none; color: $blue-light;
// } font-weight: 900;
// } font-size: 0.8rem;
}
}
.field--name-title{
h2{
margin: 0;
a{
color: $black;
font-size: 1.4rem;
font-weight: 600;
// } }
// }
// } }
}
} .field--name-field-auteur-s-{
font-weight: 800;
// texte présentation p{
.block-config-pages-block{ margin: 0;
margin: 2rem; }
.field--name-field-introduction{ .field__label{
width: 65%; display:none;
margin: auto; }
background: $white; }
} .field--name-field-edition{
} p{
margin: 0;
// grille des ressources }
.block-views-blockbase-de-donnees-block-1{ .field__label{
margin: auto; display:none;
width: 60%; }
}
.field--name-field-images{
.view-filters{ display: none;
display: none; width: 50%;
background-color: $white; img{
margin-top: 2rem; width: 100%;
margin-bottom: 2rem; height: auto;
.views-exposed-form-base-de-donnees-block-1{ }
width: fit-content; }
display: flex;
.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;
}
.form-item{
width: fit-content;
}
.form-item-field-type-de-ressource-target-id{
width: fit-content;
}
}
}
.view-content{
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 3rem;
.views-row{
width: 49%;
// padding: 1rem;
// width: 50%;
min-height: 300px;
border: 2px solid $blue-light;
background-color: $white;
margin-bottom: 1rem;
}
.node-type-ressource{
display: flex;
flex-direction: column;
// border: 2px solid $blue-light;
padding: 1rem;
&:hover{
background-color: $blue-light;
.field--name-field-mots-clefs{ .field--name-field-mots-clefs{
display: flex;
margin-top: 2rem;
flex-direction: row;
flex-wrap: wrap;
// &::after{ // &::after{
// content: url("../images/pictos/noun_Arrow_3771902.svg"); // content: url("../images/pictos/noun_Arrow_3771902.svg");
// align-self: center;
// } // }
} .field__item{
}
// &::after{
// content: url("../images/pictos/noun_Arrow_3771902.svg");
// align-self: end;
// margin-top: 1rem;
// }
.field--name-field-type-de-ressource{ margin-right: 1rem;
text-transform: uppercase; padding-left: 0.3rem;
padding-right: 0.3rem;
a{ a{
color: $blue-light; background: $blue-dark;
font-weight: 900; color: $white;
font-size: 0.8rem; font-weight: 800;
} vertical-align: super;
} padding-left: 0.1rem;
.field--name-title{ padding-right: 0.1rem;
h2{ display: inline-flex;
margin: 0; }
a{
color: $black;
font-size: 1.4rem;
font-weight: 600;
}
}
}
.field--name-field-auteur-s-{
font-weight: 800;
p{
margin: 0;
}
.field__label{
display:none;
}
}
.field--name-field-edition{
p{
margin: 0;
}
.field__label{
display:none;
}
}
.field--name-field-images{
display: none;
width: 50%;
img{
width: 100%;
height: auto;
}
}
.field--name-field-mots-clefs{
display: flex;
margin-top: 2rem;
flex-direction: row;
flex-wrap: wrap;
// &::after{
// content: url("../images/pictos/noun_Arrow_3771902.svg");
// align-self: center;
// }
.field__item{
margin-right: 1rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
a{
background: $blue-dark;
color: $white;
font-weight: 800;
vertical-align: super;
padding-left: 0.1rem;
padding-right: 0.1rem;
display: inline-flex;
} }
} }
ul.links.inline{
display: none;
}
} }
ul.links.inline{ }
display: none;
}
}
} }
}
} }
@@ -258,15 +258,45 @@
} }
} }
.field--name-field-type-de-ressource{ .field--name-field-type-de-ressource{
display: inline-flex; text-transform: uppercase;
a{
color: $blue-light;
font-weight: 900;
font-size: 0.8rem;
}
}
.field--name-field-mots-clefs{
display: flex;
margin-top: 2rem; margin-top: 2rem;
background: $blue-dark; flex-direction: row;
margin-right: 1rem; flex-wrap: wrap;
padding-left: 0.3rem;
padding-right: 0.3rem; // &::after{
color: $white; // content: url("../images/pictos/noun_Arrow_3771902.svg");
font-weight: 800;
vertical-align: middle; // align-self: center;
// }
.field__item{
margin-right: 1rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
a{
background: $blue-dark;
color: $white;
font-weight: 800;
vertical-align: super;
padding-left: 0.1rem;
padding-right: 0.1rem;
display: inline-flex;
}
}
}
ul.links.inline{
display: none;
} }
} }
} }