123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547 |
- .page-node-type-ressource{
- // #block-contenudelapageprincipale{
- .layout__region--top{
- padding-top: 4rem;
- @media (max-width: 550px) {
- padding-top: 0rem;
- }
- .block-region-top{
- display: flex;
- flex-direction: column;
- @media screen and (min-width:1100px) {
- display: grid;
- // grid-template-columns: 1fr repeat(8, 1fr) 1fr;
- // grid-template-rows: auto;
- grid-template-columns: 1fr 2fr; /* 1/3 pour l'image, 2/3 pour le contenu */
- gap: 1rem;
- }
- // &div:not(.block-entity-fieldnodefield-images){
- // @media screen and (min-width:800px) {
- // grid-column: 5/span 7;
-
- // }
- // }
- .block-entity-fieldnodefield-images{
- width: fit-content;
- // margin: auto;
- padding-right: 2rem;
- padding-left: 25%;
- @media screen and (min-width:1100px) {
- // grid-column: 2/span 4;
- // grid-row: 1 /span 5;
-
- grid-column: 1;
- grid-row: 1 /span 7; /* Prendre toutes les lignes disponibles */
- align-self: start; /* S'assurer qu'il commence en haut */
- }
- @media (max-width: 1100px) {
- padding-left: 13%;
- }
- @media (max-width: 550px) {
- width: 100vw;
- padding: 0;
- }
-
- }
- .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: 7rem;
- margin-right: 1;
- grid-column: 3 / 4;
- align-self: start; /* S'assurer qu'il commence en haut */
- height: fit-content ;
- 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;
- // @media screen and (min-width:1100px) {
- // // width: 50%;
- // // grid-column: 5/span 7;
- // // grid-row: 1;
- // }
-
- }
- .block-entity-fieldnodefield-type-de-ressource{
- margin-top: 2rem;
- // margin-left: 13%;
- color: $blue-light;
- text-transform: uppercase;
- font-weight: 800;
- // @media (max-width: 810px){
- // margin-left:9%;
- // margin-right: 9%;
- // }
- // @media screen and (min-width:1100px) {
- // width: 50%;
- // grid-column: 5/span 7;
- // grid-row: 1;
- // }
- }
- .block-entity-fieldnodetitle{
- // margin-left: 13%;
- font-size: 2rem;
- font-weight: 600;
- // @media (max-width: 810px){
- // margin-left:9%;
- // margin-right: 9%;
- // }
- // @media screen and (min-width:1100px) {
- // width: 50%;
- // grid-column: 5/span 7;
- // grid-row: 2;
- // }
- .field--name-title{
- @media (max-width: 550px) {
- font-size: 1.5rem;
- width: 80vw;
- }
- }
- }
- .block-entity-fieldnodefield-sous-titre{
- // margin-left: 13%;
- .field--name-field-edition{
- p{
- margin-bottom: 0;
- }
- }
- // @media (max-width: 810px){
- // margin-left:9%;
- // margin-right: 9%;
- // }
- // @media screen and (min-width:1100px) {
- // width: 50%;
- // grid-column: 5/span 7;
- // grid-row: 3;
- // }
- }
- .block-entity-fieldnodefield-edition{
- // margin-left: 13%;
- .field--name-field-edition{
- p{
- margin-bottom: 0;
- }
- }
- // @media (max-width: 810px){
- // margin-left:9%;
- // margin-right: 9%;
- // }
- // @media screen and (min-width:1100px) {
- // width: 50%;
- // grid-column: 5/span 7;
- // grid-row: 4;
- // }
- }
- .block-entity-fieldnodefield-auteur-s-{
- // margin-left: 13%;
- .field--name-field-auteur-s-{
- font-size: 1.5rem;
- font-weight: 800;
- p{
- margin: 0;
- }
- }
- // @media (max-width: 810px){
- // margin-left:9%;
- // margin-right: 9%;
- // }
- // @media screen and (min-width:1100px) {
- // width: 50%;
- // grid-column: 5/span 7;
- // grid-row: 5;
- // }
- }
- .block-entity-fieldnodefield-date-de-parution{
- // margin-left: 13%;
- // @media (max-width: 810px){
- // margin-left:9%;
- // margin-right: 9%;
- // }
- // @media screen and (min-width:1100px) {
- // width: 50%;
- // grid-column: 5/span 7;
- // grid-row: 6;
- // }
- }
- .block-entity-fieldnodefield-mots-clefs{
- // margin-left: 13%;
- .field--name-field-mots-clefs{
- display: inline-flex;
- margin-top: 2rem;
- // &::after{
- // content: url("../images/pictos/noun_Arrow_3771902.svg");
- // align-self: end;
- // }
- .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){
- // margin-left:9%;
- // margin-right: 9%;
- .field--name-field-mots-clefs{
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- .field__item{
- margin-bottom: 0.5rem;
- }
- }
- }
- // @media screen and (min-width:800px) {
- // width: 50%;
- // grid-column: 5/span 7;
- // grid-row: 7;
- // }
- }
- }
- /* 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: 7rem;
- .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;
-
- }
- .field--name-field-fichiers{
- min-height: 4rem;
- background: $white;
- color: $blue-light;
- padding-left: 1rem;
- padding-top: 1rem;
- margin-bottom: 1rem;
-
- span:nth-of-type(2){
- display: none;
- }
-
- .file--mime-application-pdf{
- height: inherit;
- margin: auto;
- ::before{
- content: url("../images/pictos/noun_Download_file_307900.svg");
- min-width:30px;
- height: auto;
- padding-right: 1rem;
- }
- a{
- hyphens: auto;
- display: inline-flex;
- align-items: center;
- color: $blue-light;
- font-weight: 800;
- // max-width: 80px ;
- }
- }
-
- }
- .block-entity-fieldnodefield-liens{
- .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;
- }
- a{
- display: inline-flex;
- align-items: center;
- color: $blue-light;
- font-weight: 800;
- &::before{
- content: url("../images/pictos/noun_External Link_674151.svg");
- min-width: 30px;
- height: auto;
- padding-right: 1rem;
- }
- svg.ext{
- display: none;
- }
- }
- }
-
- }
-
-
- .block-entity-fieldnodefield-ress{
- 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;
- }
-
- }
- }
- }
-
- }
-
-
- }
-
-
- }
- // }
- }
|