drupal-erable/web/themes/erabletheme/scss/_projets.scss

471 lines
11 KiB
SCSS
Raw Normal View History

2024-11-06 16:59:14 +01:00
.layout-content .fullpage.projets {
2024-11-05 01:44:18 +01:00
padding-top: 5vh;
> .intro_map {
@media (min-width: $breakpoint_desktop) {
display: flex;
flex-direction: row;
}
> header {
//margin-right: 5vw;
2024-11-05 01:44:18 +01:00
padding: 0 3vw;
@include main_text_content();
@media (min-width: $breakpoint_desktop) {
max-width: 55vw;
}
2024-11-05 01:44:18 +01:00
h1, h2, h3,
h4, h5, h6 {
padding: 0 !important;
margin: 0 !important;
@include sous_titre_alt();
}
> h2 {
margin-bottom: 5vh !important;
padding-bottom: 3.5vh !important;
border-bottom: 1px solid $teal;
@include main_title();
@media (min-width: $breakpoint_desktop) {
width: 100%;
}
}
p {
margin-bottom: 1rem;
}
2024-11-05 01:44:18 +01:00
}
.projets_intro {
display: none;
}
#sites-map-container {
width: 70%;
padding: 0 !important;
padding-bottom: 5vh !important;
2024-11-05 01:44:18 +01:00
@media screen and (min-width: $breakpoint_tablet) {
width: 50%;
}
@media (min-width: $breakpoint_desktop) {
//margin-right: 8vw !important;
margin: 0 2vw;
margin-right: 3vw;
margin-top: 5vh;
padding-bottom: 0;
//width: 85%;
2024-11-05 01:44:18 +01:00
}
#popup {
h3 {
@include sous_titre();
}
p {
@include main_text_content();
}
}
}
}
> .projets_list {
display: grid;
margin: 3vh $x_margin;
margin-top: 8vh;
grid-template-columns: 1fr;
gap: 2rem;
@media (min-width: $breakpoint_tablet) {
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: $breakpoint_desktop) {
grid-template-columns: repeat(3, 1fr);
}
> h3 {
display: none;
}
> .views-row{
display: grid;
grid-template-columns: 0.5fr 1fr;
grid-template-rows: repeat(4, auto);
grid-column-gap: 1rem;
2024-11-05 01:44:18 +01:00
> .views-field-field-diaporama {
grid-column: 1;
grid-row: 1/3;
2024-11-06 02:46:29 +01:00
align-self: start;
overflow: hidden;
height: 100%;
2024-11-05 01:44:18 +01:00
> .field-content {
display: block;
width: 100%;
height: auto;
//height: 100%;
2024-11-05 01:44:18 +01:00
> a {
aspect-ratio: 1/1;
2024-11-05 01:44:18 +01:00
width: 100%;
height: auto;
2024-11-05 01:44:18 +01:00
display: flex;
align-items: start;
2024-11-05 01:44:18 +01:00
justify-content: center;
mask-image: url('/themes/erabletheme/assets/shapes/shape_1.svg');
mask-repeat: no-repeat;
mask-size: 100% auto;
mask-position: center;
2024-11-05 01:44:18 +01:00
img {
width: auto;
height: 100%;
//object-fit: cover;
2024-11-05 01:44:18 +01:00
}
}
}
}
> .views-field-title {
grid-column: 2;
grid-row: 1;
margin-bottom: 1rem;
//margin-left: -1rem;
2024-11-05 01:44:18 +01:00
a {
color: $teal;
}
@include sous_titre();
}
> .views-field-field-sous-titre {
grid-column: 2;
grid-row: 2;
font-size: 1.1rem !important;
margin-bottom: 1rem;
line-height: 1.3;
font-size: $m_font_size !important;
2024-11-05 01:44:18 +01:00
a {
color: black;
}
@include sous_titre_alt();
}
> .views-field-field-localisation-textuel {
grid-column: 1/3;
2024-11-05 01:44:18 +01:00
grid-row: 3;
margin-bottom: 1rem;
padding-left: 1.2rem;
padding-top: 0.3rem;
//margin-left: -0.5rem;
2024-11-05 01:44:18 +01:00
@include main_text_content();
a {
color: black;
}
}
> .views-field-field-th {
grid-column: 1/3;
2024-11-05 01:44:18 +01:00
grid-row: 4;
padding-left: 1rem;
2024-11-05 01:44:18 +01:00
ul {
li {
display: inline-block;
font-size: 0.8rem !important;
background-color: #d3f0ea;
margin: 0.2rem;
transition: background-color 0.3s ease;
@include main_text_content();
&:hover {
background-color: #8ec2b8;
}
a {
display: block;
color: black;
padding: 0.2rem 0.4rem;
}
}
}
}
}
}
}
2024-11-05 23:30:16 +01:00
.fullpage.projet_full {
2024-11-06 16:59:14 +01:00
// overflow-x: hidden; // enlever quand on ajoute le menu des projets à gauche
2024-11-06 02:46:29 +01:00
.retour_projets {
padding-top: 3vh;
padding-left: $x_margin;
@include main_text_content();
a {
font-size: $sm_font_size;
font-weight: 800;
color: $teal;
}
}
.sous_titre > div > div {
@include sous_titre_alt();
}
.localisation {
margin-left: $x_margin;
margin-top: 2rem;
@include main_text_content();
}
.thematiques {
margin-top: 1rem;
margin-left: $x_margin;
> div > div {
> div {
display: inline-block;
font-size: 0.8rem !important;
background-color: #d3f0ea;
margin: 0.2rem;
transition: background-color 0.3s ease;
@include main_text_content();
&:hover {
background-color: #8ec2b8;
}
a {
display: block;
color: black;
padding: 0.2rem 0.4rem;
}
}
}
}
.intro {
> div > div:first-of-type {
display: none;
}
}
2024-11-06 02:46:29 +01:00
.diapo {
margin-top: 3rem;
margin-left: calc($x_margin * 3);
margin-right: calc($x_margin * 3);
@media screen and (min-width: $breakpoint_tablet) {
margin-left: $x_margin;
margin-right: $x_margin;
}
img {
width: 100%;
height: auto;
}
.image-field-caption {
p {
margin: 0;
padding: 0;
margin-top: 0.5rem;
font-size: 0.8rem;
opacity: 0.7;
}
}
.slick-arrow {
width: 1.2rem;
height: 1.2rem;
border-radius: 1.5rem;
background-color: $teal !important;
transition: background-color 0.3s ease;
&:hover {
background-color: white !important;
&::before {
color: $teal;
}
}
&::before {
opacity: 1 !important;
color: white;
font-weight: bold;
font-family: 'Marianne', sans-serif;
display: block;
font-size: $sm_font_size !important;
}
}
.slick-prev {
left: -2rem;
}
.slick-next {
right: -2rem;
}
}
.text-content {
.intertitre {
margin-left: $x_margin;
@include sous_titre();
}
.paragraph {
margin-bottom: 3rem;
> div > div > p {
margin: 1.2rem 0 !important;
}
}
}
.chiffre-clefs {
> div > div {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-column-gap: 2rem;
grid-row-gap: 2rem;
width: auto;
margin: 4rem $x_margin;
.paragraph {
> div:first-of-type {
font-size: 2rem !important;
@include sous_titre();
}
p {
margin: 0;
padding: 0;
margin-top: 0.5rem;
color: $teal;
}
}
}
}
.carte {
width: auto;
margin: 0 $x_margin;
margin-top: 4rem;
2024-11-06 02:46:29 +01:00
.leaflet-pane {
path {
stroke: $fluo_green;
stroke-width: 2;
fill: $fluo_green;
fill-opacity: 0.2;
}
}
#leaflet-popup {
position: fixed;
padding: 0.3rem 0.8rem;
background-color: white;
font-size: $sm_font_size !important;
opacity: 0;
transition: opacity 0.3s ease;
@include main_text_content();
}
}
.libelles-carte {
display: none;
}
.legende-carte {
> div > div:first-of-type {
display: none;
}
p {
margin-top: 1rem !important;
font-size: 0.8rem !important;
opacity: 0.7;
}
2024-11-06 02:46:29 +01:00
}
.chronologie {
display: none;
}
.equipe {
margin-top: 4rem;
2024-11-06 02:46:29 +01:00
> div {
> div:first-of-type {
margin-left: $x_margin;
margin-bottom: 2rem;
@include sous_titre_alt();
}
> div:nth-of-type(2) {
> div {
> div {
padding-left: $x_margin;
padding-right: $x_margin;
margin: 1rem 0;
margin-bottom: 3rem !important;
> div:first-of-type {
margin-bottom: 2rem;
@include sous_titre();
}
> div:nth-of-type(2) {
> div {
display: grid;
grid-template-columns: 1fr;
grid-row-gap: 2rem;
grid-column-gap: 1.5rem;
2024-11-06 02:46:29 +01:00
width: 75%;
@media screen and (min-width: $breakpoint_tablet) {
grid-template-columns: repeat(3, 1fr);
2024-11-06 02:46:29 +01:00
width: unset;
}
> div {
margin-bottom: 1.5rem;
@media screen and (min-width: $breakpoint_tablet) {
margin-bottom: 0;
}
> .paragraph {
margin: 0 !important;
padding: 0 !important;
display: grid;
grid-template-columns: auto 1fr;
grid-column-gap: 0;
flex-direction: column;
> .portrait {
display: none;
2024-11-06 02:46:29 +01:00
}
> .nom {
2024-11-06 02:46:29 +01:00
grid-column: 2;
grid-row: 2;
margin: 0;
padding: 0;
color: black;
font-size: $m_font_size;
> div {
padding-left: 0.2rem !important;
}
2024-11-06 02:46:29 +01:00
}
> .prenom {
2024-11-06 02:46:29 +01:00
grid-column: 1;
grid-row: 2;
margin: 0;
padding: 0;
color: black;
font-size: $m_font_size;
2024-11-06 02:46:29 +01:00
}
> .texte {
2024-11-06 02:46:29 +01:00
margin-top: 0.5rem;
grid-column: 1 / span 2;
grid-row: 3;
p {
font-size: $m_font_size;
margin: 0 !important;
padding: 0 !important;
2024-11-06 02:46:29 +01:00
}
}
}
}
}
}
}
}
}
}
}
.liens,
.file_fixed {
2024-11-06 16:59:14 +01:00
> div > div {
margin: 0 !important;
> div {
padding: 1rem 0;
}
2024-11-06 02:46:29 +01:00
}
}
}
.taxonomy_page {
> .fullpage_content {
> div:last-of-type {
display: grid !important;
grid-template-columns: 0.5fr 1fr;
grid-template-rows: repeat(3, auto);
> .diapo {
grid-column: 1;
grid-row: 2/4;
margin: 0 !important;
margin-left: $x_margin !important;
}
> .sous_titre {
grid-column: 1/3;
grid-row: 1;
margin-bottom: 2rem;
}
> .localisation {
grid-column: 2;
grid-row: 2;
margin-top: 0 !important;
}
> .thematiques {
grid-column: 2;
grid-row: 3;
}
}
}
}
// in taxonomy pages
.feed-icon {
display: none;
}