Files
drupal-reha/web/themes/custom/reha/scss/pages/_les-sites-pilotes.scss
T
2025-10-07 12:15:28 +02:00

291 lines
11 KiB
SCSS

.page-sitespilotes{
.views-element-container{
// padding-bottom: 8rem;
}
h1{
width: 80%;
margin: auto;
font-weight: 1000;
}
.view-display-id-page_1{
width: 80%;
margin: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
@media (max-width:1200px){
justify-content: flex-start;
}
article{
padding-bottom: 0.7rem;
}
.views-row{
width: 28%;
padding: 1rem;
@media (max-width:1200px){
width: 40%;
}
@media (max-width:810px){
width: 100%;
}
&:hover{
transform: scale(1.05);
transition: 0.3s transform ease, 0.3s box-shadow ease;
}
.node-type-site{
background-color: white;
.entete_site{
display: flex;
flex-direction: column;
.image-site{
order: 1;
.field--name-field-image{
max-width: 100%;
img{
width: 100%;
object-fit: cover;
// height: fit-content;
max-height: 200px;
}
}
}
.infos-content-site{
background-color: $white-button;
order: 2;
display: flex;
flex-direction: column;
padding-left: 1rem;
padding-right: 1rem;
padding-top: 0.5rem;
h1{display: none;}
h2{
order: 2;
margin: 0;
font-size: 1.4rem;
font-weight: 900;
line-height: 1;
padding-bottom: 0.8rem;
}
.first-row{
order: 1;
display:flex;
flex-direction: row;
align-items: end;
padding-bottom: 0.5rem;
.field--name-field-numero-site {
order: 1;
text-transform: uppercase;
font-size: 0.8rem;
display: inline-flex;
&::after{
content: '|';
padding-left: 1rem;
padding-right: 1rem;
}
}
.field--name-field-adresse-site{
order: 3;
font-size: 0.9rem;
.field__item{
display: flex;
}
.address{
margin: 0;
display: inline-flex;
.postal-code{
order: 2;
}
.locality{
order: 1;
text-transform: capitalize;
margin-right: 0.5rem;
}
.country{
display: none;
}
}
}
}
.field--name-field-architecte{
order: 4;
font-size: 1rem;
.field__items{
display: flex;
flex-direction: row;
flex-wrap: wrap;
.field__item{
display: inline;
&::after{
content:',';
padding-right: 0.5rem;
}
}
}
.field__item:last-of-type::after {
content: '';
}
}
ul.links{
order: 5;
text-transform: uppercase;
padding: 0;
margin: 0;
border: none;
padding-bottom: 1rem;
padding-top: 3rem;
display: inline-flex;
&::after{
content:url("../../dist/images/noun-arrow-1569918-black.svg");
padding-left: 0.5rem;
}
}
}
}
}
}
footer{
background-color: transparent;
text-transform: none !important;
z-index: 100;
p{
font-size: 2rem;
padding-left: 1rem;
font-weight: 1000;
}
.view-display-id-block_2{
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
.views-row{
width: 28%;
padding: 1rem;
&:hover{
transform: none;
}
@media (max-width:810px){
width: 100%;
}
.node-type-site{
margin: auto;
display: flex;
flex-direction: column;
width: 100%;
background-color: transparent;
.infos-content-site{
background-color: transparent;
order: 2;
display: flex;
flex-direction: column;
padding-left: 1rem;
padding-right: 1rem;;
padding-right: 1rem;
h2{
order: 2;
margin: 0;
font-size: 1.4rem;
font-weight: 900;
line-height: 1;
a{
cursor: default !important;
pointer-events: none;
}
}
.first-row{
order: 1;
display:flex;
flex-direction: row;
align-items: center;
padding-bottom: 0.5rem;
.field--name-field-lettre-de-site {
order: 1;
text-transform: uppercase;
font-size: 0.8rem;
font-weight: 400;
display: flex;
align-items: center;
&::before{
content:'SITE';
padding-right: 0.5rem;
}
&::after{
content: '|';
padding-left: 1rem;
padding-right: 1rem;
}
}
.field--name-field-adresse-site{
order: 3;
p.address{
padding-left: 0;
margin: 0;
display: inline-flex;
font-size: 0.9rem;
font-weight: 500!important;
.postal-code{
order: 2;
}
.locality{
order: 1;
text-transform: capitalize;
margin-right: 0.5rem;
}
.country{
display: none;
}
}
}
}
.field--name-field-architecte{
order: 4;
text-transform: capitalize;
font-weight: 400;
font-size: 1rem;
}
ul.links{
order: 5;
text-transform: uppercase;
padding: 0;
margin: 0;
border: none;
padding-bottom: 2rem;
padding-top: 0.9rem;
display: inline-flex;
&::after{
content:url("../../dist/images/noun-arrow-1569918-black.svg");
padding-left: 0.5rem;
}
}
}
}
}
}
}
}
}
.block-page-title-block{
padding-left: 1rem;
h1{
font-weight: 1000;
}
}