Files
d9-eql/web/themes/custom/eql/scss/pages/_actualite.scss
T
2025-05-16 15:48:36 +02:00

532 lines
19 KiB
SCSS

.path-node.page-node-type-actualite{
.layout-container{
overflow: unset;
}
.offresdeservices.layout-content.region-content#block-contenudelapageprincipale{
background: none !important;
}
.layout--threecol-25-50-25{
.layout__region--top{
background: linear-gradient(to bottom, $background-actus 60%, white 40%);
padding-bottom: 4rem;
@media (max-width: 900px) {
order: 1;
}
@media (max-width: 568px){
padding-left: 2rem;
padding-right: 2rem;
}
.block-region-top{
display: grid;
grid-template-columns: 1fr repeat(8, 1fr) 1fr;
.block-entity-fieldnodefield-actu-type{
order: 5;
grid-column: 2;
margin-top: 1rem;
color: $blue-dark;
}
.block-entity-fieldnodetitle{
order: 3;
grid-column: 2 /span 7;
margin: 0;
color: $blue-dark;
@media (max-width: 568px){
grid-column: 2 /span 8;
max-width: 80vw;
}
@media (max-width: 499px){
grid-column: 2 /span 9;
max-width: 80vw;
}
.field--name-title{
font-family: "Marianne";
font-size: 2.5rem;
font-weight: 800;
line-height: 3rem;
@media (max-width: 810px){
font-size: 1.9em;
line-height: 2.3rem;
}
}
}
.block-entity-fieldnodefield-date{
order: 1;
padding-top: 2rem;
grid-column: 2 / span 3;
text-transform: uppercase;
color: $blue-dark;
font-size: 1.2rem;
font-weight: 800;
margin-top: 1rem;
.field--name-field-date{
display: flex;
flex-direction: row;
justify-content: flex-start;
.field__item{
padding-right: 2 rem;
}
}
}
.block-entity-fieldnodefield-lieu{
order: 2;
grid-column: 2 / span 4;
text-transform: uppercase;
color: $blue-dark;
font-size: 1.2rem;
font-weight: 800;
margin-top: 1rem;
.field--name-field-lieu{
display: flex;
flex-direction: row;
justify-content: flex-start;
}
}
.block-entity-fieldnodefield-sous-titre{
order: 4;
grid-column: 2 /span 7;
margin-top: 1rem;
font-weight: 800;
color: $blue-dark;
@media (max-width: 568px){
grid-column: 2 /span 8;
max-width: 80vw;
}
@media (max-width: 499px){
grid-column: 2 /span 9;
max-width: 80vw;
}
}
.block-entity-fieldnodefield-images{
order: 6;
grid-column: 5 / span 3;
width: 600px;
.field--name-field-images{
@media (max-width: 568px){
width: 80%;
}
}
img{
padding-top: 2rem;
width: 100%;
max-height: 400px;
object-fit: contain;
@media (max-width: 568px){
max-width: 90vw;
}
}
@media (max-width: 900px){
grid-column: 3 /span 5;
}
@media (max-width: 568px){
grid-column: 1 /span 8;
}
blockquote{
font-size: 0.8rem;
text-align: center;
@media (max-width: 810px){
margin-left: 5%;
margin-right: 5%;
font-size: 0.7rem;
}
}
.slick-next{
right: -65px;
}
.slick-prev{
left: -65px;
}
.slick-dots {
> li {
display: inline-block;
}
> li:only-child {
display: none;
}
}
.slick-dotted.slick-slider {
margin-bottom: 0 !important;
}
}
}
}
.layout__region--first{
.block-region-first{
display: flex;
justify-content: flex-end;
position: -webkit-sticky;
position: sticky;
top: 10rem;
.block-entity-fieldnodefield-textes{
display: flex;
justify-content: flex-end;
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;
margin-bottom: 0.8rem;
&:hover{
text-decoration: underline;
}
}
}
}
@media (max-width: 810px){
display: none;
}
}
.layout__region--second{
// flex: 0 1 50%;
width: 50%;
@media (max-width: 900px){
order: 3;
width: 100vw;
}
.block-region-second{
width: 90%;
@media (max-width:900px) {
width: 90%;
margin: auto;
}
.block-entity-fieldnodebody{
p{
margin-top: 0;
}
.field--type-text-with-summary{
background-color: white;
}
}
.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;
margin-top: 2rem;
margin-bottom: 0.8rem;
}
h4{
text-transform: none !important;
img{
width: 100%;
height: auto;
}
}
.field--type-text-long{
padding-right: 2rem;
@media (max-width: 900px) {
padding-right: 0;
}
}
p{
margin-top: 0;
}
a{
color: $black;
text-decoration: underline;
svg{
display: none;
}
}
}
.block-entity-fieldnodebody{
.panel-body{
#outputtext{
overflow-y: visible !important;
}
}
a.ext{
word-wrap:break-word;
}
}
.block-entity-fieldnodefield-partenaires{
.field__label{
font-size: 1.5rem;
font-weight: 1000;
font-family: 'Source Code Pro';
color: $blue-dark;
text-transform: uppercase;
margin-top: 2rem;
margin-bottom: 0.8rem;
}
.field__items{
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
@media (max-width: 568px){
flex-direction: column;
}
.paragraph--type--partenaire{
display: flex;
flex-direction: column;
align-items: center;
// width: 35%;
.field--name-field-lien{
// display: none;
padding-top: 1rem;
}
}
}
}
}
@media (max-width: 900px){
flex: 0 1 80%;
margin: auto;
}
}
.layout__region--third{
@media (max-width: 1005px){
flex: 0 1 100%;
order: 2;
}
.block-region-third{
display: flex;
flex-direction: column;
width: 65%;
@media (max-width: 900px){
margin: auto;
}
.field--name-field-fichiers{
.field__item{
height: fit-content;
width: fit-content;
border: 2px solid $blue-light;
background-color: $white;
margin-bottom: 1rem;
min-height: 4rem;
color: $blue-light;
padding: 1rem;
@media(max-width:900px){
width: auto;
padding-right: 1rem;
}
@media (max-width: 568px){
width: auto;
}
}
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{
.field--name-field-liens{
.field__item{
margin: auto;
width: fit-content;
height: fit-content;
border: 2px solid $blue-light;
min-height: 4rem;
background: $white;
color: $blue-light;
padding: 1rem;
margin-bottom: 1rem;
@media(max-width:900px){
width: auto;
padding-right: 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;
}
svg.ext{
display: none;
}
}
}
}
.block-entity-fieldnodefield-ress{
margin-top: 3rem;
h2{
font-size: 0.8rem;
color: $black;
font-weight: 900;
}
.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;
margin: auto;
}
}
.field--name-field-mots-clefs{
order: 6;
display: flex;
margin-top: 2rem;
flex-direction: row;
flex-wrap: wrap;
.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;
}
}
}
ul.links.inline{
display: none;
}
}
}
}
}
}
}
}