563 lines
21 KiB
SCSS
563 lines
21 KiB
SCSS
|
|
.page-node-type-ressource{
|
|
.layout-container{
|
|
overflow: visible;
|
|
@media (max-width: 810px) {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
// #block-contenudelapageprincipale{
|
|
.layout__region--top{
|
|
padding-top: 4rem;
|
|
@media (max-width: 550px) {
|
|
padding-top: 0rem;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.block-region-top{
|
|
display: flex;
|
|
flex-direction: column;
|
|
@media screen and (min-width:1100px) {
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr; /* 1/3 pour l'image, 2/3 pour le contenu */
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.block-entity-fieldnodefield-images {
|
|
width: fit-content;
|
|
padding-left: 25%;
|
|
|
|
@media (min-width: 1100px) {
|
|
grid-column: 1;
|
|
grid-row: 1 / span 7;
|
|
align-self: start;
|
|
justify-self: end;
|
|
margin-left: 2rem;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
padding-left: 13%;
|
|
}
|
|
|
|
@media (max-width: 550px) {
|
|
width: 100vw;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
img{
|
|
border: solid 1px gray;
|
|
max-width: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
}
|
|
|
|
.block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640,
|
|
.block-entity-fieldnodefield-type-de-ressource,
|
|
.block-entity-fieldnodetitle,
|
|
.block-entity-fieldnodefield-sous-titre,
|
|
.block-entity-fieldnodefield-edition,
|
|
.block-entity-fieldnodefield-auteur-s-,
|
|
.block-entity-fieldnodefield-date-de-parution,
|
|
.block-entity-fieldnodefield-mots-clefs {
|
|
width: 100%;
|
|
margin-left: 13%;
|
|
@media (max-width: 1099px) {
|
|
width: auto;
|
|
margin-right: 15%;
|
|
}
|
|
@media screen and (min-width: 1100px) {
|
|
width: auto;
|
|
margin-left: 2rem;
|
|
margin-right: 15%;
|
|
grid-column: 2 / 4;
|
|
align-self: start; /* S'assurer qu'il commence en haut */
|
|
height: fit-content ;
|
|
justify-self: start;
|
|
p{margin: 0;}
|
|
|
|
}
|
|
@media (max-width: 810px) {
|
|
margin-left: 9%;
|
|
margin-right: 9%;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
.block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640{
|
|
width: 100%;
|
|
font-family: 'Source Code Pro';
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
color: $white;
|
|
background-color: $blue-light;
|
|
text-transform: uppercase;
|
|
padding-left: 13%;
|
|
padding-top: 1rem;
|
|
padding-bottom: 0.5rem;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.block-entity-fieldnodefield-type-de-ressource{
|
|
color: $blue-light;
|
|
text-transform: uppercase;
|
|
font-weight: 900;
|
|
@media (max-width: 1099px) {
|
|
margin-top: 2rem;
|
|
}
|
|
}
|
|
.block-entity-fieldnodetitle{
|
|
font-size: 2.5rem;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
.field--name-title{
|
|
@media (max-width: 550px) {
|
|
font-size: 1.5rem;
|
|
width: 80vw;
|
|
}
|
|
}
|
|
}
|
|
|
|
.block-entity-fieldnodefield-sous-titre{
|
|
font-weight: 600;
|
|
font-size: 2rem;
|
|
.field--name-field-edition{
|
|
font-weight: 600;
|
|
font-size: 2rem;
|
|
p{
|
|
font-weight: 600;
|
|
font-size: 2rem;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
@media (max-width: 550px) {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
.block-entity-fieldnodefield-edition{
|
|
.field--name-field-edition{
|
|
p{
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
}
|
|
.block-entity-fieldnodefield-auteur-s-{
|
|
.field--name-field-auteur-s-{
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
line-height: 0.8;
|
|
margin-top: 1rem;
|
|
p{
|
|
margin: 0;
|
|
}
|
|
@media (max-width: 550px) {
|
|
margin-top: 0rem;
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
}
|
|
}
|
|
@media (max-width: 550px) {
|
|
|
|
margin-top: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.block-entity-fieldnodefield-date-de-parution{
|
|
@media (max-width: 550px) {
|
|
margin-top: 0.5rem;
|
|
}
|
|
}
|
|
.block-entity-fieldnodefield-mots-clefs{
|
|
.field--name-field-mots-clefs{
|
|
display: inline-flex;
|
|
margin-top: 0.5rem;
|
|
.field__item{
|
|
background: $blue-dark;
|
|
margin-right: 1rem;
|
|
padding-left: 0.3rem;
|
|
padding-right: 0.3rem;
|
|
color: $white;
|
|
font-weight: 800;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
@media (max-width: 810px){
|
|
.field--name-field-mots-clefs{
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
.field__item{
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Hide empty blocks */
|
|
.block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640:empty,
|
|
.block-entity-fieldnodefield-type-de-ressource:empty,
|
|
.block-entity-fieldnodetitle:empty,
|
|
.block-entity-fieldnodefield-sous-titre:empty,
|
|
.block-entity-fieldnodefield-edition:empty,
|
|
.block-entity-fieldnodefield-auteur-s-:empty,
|
|
.block-entity-fieldnodefield-date-de-parution:empty,
|
|
.block-entity-fieldnodefield-mots-clefs:empty {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
position: sticky;
|
|
top: 13rem;
|
|
.block-entity-fieldnodefield-textes{
|
|
display: flex;
|
|
width: 50%;
|
|
background-color: $white;
|
|
padding-right: 2rem;
|
|
|
|
.field--name-field-titre{
|
|
display: flex;
|
|
font-size: 1rem;
|
|
font-weight: 1000;
|
|
color: $blue-dark;
|
|
border-bottom: 1px solid $blue-light;
|
|
padding-bottom: 0.5rem;
|
|
padding-right: 1rem;
|
|
|
|
&:hover{
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.layout__region--second{ // paragraphe texte
|
|
margin-top: 3rem;
|
|
.block-entity-fieldnodefield-textes{
|
|
|
|
background-color: $white;
|
|
.field--name-field-titre{
|
|
font-size: 1.5rem;
|
|
font-weight: 1000;
|
|
font-family: 'Source Code Pro';
|
|
color: $blue-dark;
|
|
text-transform: uppercase;
|
|
}
|
|
h4{
|
|
text-transform: none !important;
|
|
|
|
img{
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
.field--type-text-long{
|
|
padding-right: 2rem;
|
|
@media (max-width: 550px){
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
p{
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
@media (max-width: 810px){
|
|
flex: 0 1 80%;
|
|
margin: auto;
|
|
margin-top: 2rem;
|
|
}
|
|
}
|
|
|
|
.layout__region--third{ // colone de droite fichiers et ressources liées
|
|
margin-top: 3rem;
|
|
@media (max-width: 810px){
|
|
flex: 0 1 80%;
|
|
margin-left: 10%;
|
|
}
|
|
.block-region-third{
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 70%;
|
|
@media (max-width: 810px){
|
|
width: 100%;
|
|
}
|
|
|
|
.block-entity-fieldnodefield-fichiers{
|
|
height: fit-content;
|
|
border: 2px solid $blue-light;
|
|
background-color: $white;
|
|
order: 2;
|
|
}
|
|
.field--name-field-fichiers{
|
|
min-height: 4rem;
|
|
background: $white;
|
|
color: $blue-light;
|
|
padding-left: 1rem;
|
|
padding-top: 1rem;
|
|
// margin-bottom: 1rem;
|
|
padding: 1rem;
|
|
|
|
span:nth-of-type(2){
|
|
display: none;
|
|
}
|
|
|
|
.file--mime-application-pdf{
|
|
height: inherit;
|
|
margin: auto;
|
|
width: fit-content;
|
|
::before{
|
|
content: url("../images/pictos/download.png");
|
|
min-width:30px;
|
|
height: auto;
|
|
padding-right: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
a{
|
|
hyphens: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: $blue-light;
|
|
font-weight: 800;
|
|
// max-width: 80px ;
|
|
}
|
|
}
|
|
|
|
}
|
|
.block-entity-fieldnodefield-liens{
|
|
order: 3;
|
|
.field--name-field-liens{
|
|
.field__item{
|
|
margin: auto;
|
|
height: fit-content;
|
|
border: 2px solid $blue-light;
|
|
min-height: 4rem;
|
|
background: $white;
|
|
color: $blue-light;
|
|
padding-left: 1rem;
|
|
padding-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
padding: 1rem;
|
|
|
|
}
|
|
a{
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: $blue-light;
|
|
font-weight: 800;
|
|
&::before{
|
|
content: url("../images/pictos/external_link.png");
|
|
min-width: 30px;
|
|
height: auto;
|
|
padding-right: 1rem;
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
svg.ext{
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
.block-entity-fieldnodefield-ress{
|
|
order: 4;
|
|
margin-top: 3rem;
|
|
.field--name-field-ress{
|
|
.field__label{
|
|
font-size: 0.8rem;
|
|
color: $black;
|
|
font-weight: 900;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.node-type-ressource{
|
|
border: 2px solid $blue-light;
|
|
padding: 1rem;
|
|
height: fit-content;
|
|
margin-bottom: 1rem;
|
|
background-color: $white;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
div{
|
|
display: flex;
|
|
flex-direction: column;
|
|
.field--name-field-type-de-ressource{
|
|
order: 2;
|
|
text-transform: uppercase;
|
|
color: $blue-light;
|
|
font-weight: 900;
|
|
font-size: 0.8rem;
|
|
}
|
|
.field--name-title{
|
|
order: 3;
|
|
h2{
|
|
margin: 0;
|
|
a{
|
|
color: $black;
|
|
font-size: 1rem;
|
|
font-weight: 900;
|
|
font-style: italic;
|
|
}
|
|
}
|
|
}
|
|
.field--name-field-sous-titre{
|
|
order:4;
|
|
}
|
|
.field--name-field-auteur-s-{
|
|
order: 5;
|
|
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;
|
|
order: 1;
|
|
width: 25%;
|
|
|
|
img{
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
.field--name-field-date-de-parution{
|
|
order: 6;
|
|
.field__label{
|
|
display: none;
|
|
}
|
|
}
|
|
.field--name-field-mots-clefs{
|
|
order: 7;
|
|
display: flex;
|
|
margin-top: 0.8rem;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
.field__label{
|
|
display: none;
|
|
}
|
|
.field__items{
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
.field__item{
|
|
padding-bottom: 0.5rem;
|
|
margin-right: 0.5rem;
|
|
padding-right: 0.3rem;
|
|
font-size: 0.8rem;
|
|
|
|
a{
|
|
background: $blue-dark;
|
|
color: $white;
|
|
font-weight: 800;
|
|
vertical-align: super;
|
|
padding-left: 0.1rem;
|
|
padding-right: 0.1rem;
|
|
display: inline-flex;
|
|
pointer-events: none !important;
|
|
cursor: default;
|
|
}
|
|
}
|
|
}
|
|
ul.links.inline{
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.block-entity-fieldnodefield-projets-liee{
|
|
order: 1;
|
|
// margin-top: 3rem;
|
|
@media(max-width:479px){
|
|
margin-top: 2rem;
|
|
}
|
|
h2{
|
|
display: none;
|
|
font-size: 0.8rem;
|
|
color: $black;
|
|
font-weight: 900;
|
|
}
|
|
.field--name-field-projets-liee{
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-bottom: 1px solid $black;
|
|
padding: 1rem;
|
|
|
|
height: fit-content;
|
|
margin-bottom: 3rem;
|
|
background-color: $white;
|
|
|
|
|
|
.field__label{ display: none;}
|
|
.field__items{
|
|
|
|
:before{
|
|
content: url("../images/pictos/picto_lieu_blue.svg");
|
|
display: inline-block;
|
|
color: $blue-dark;
|
|
margin-right: 1rem;
|
|
}
|
|
}
|
|
.field__item{
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin-bottom: 1.5rem;
|
|
:before{
|
|
content: 'Voir le projet';
|
|
display: block;
|
|
color: $blue-dark;
|
|
|
|
}
|
|
a{
|
|
color: $blue-dark;
|
|
font-size: 1rem;
|
|
font-weight: 900;
|
|
// font-style: italic;
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
// }
|
|
} |