template pages projets

This commit is contained in:
Valentin
2024-11-06 02:46:29 +01:00
parent 5c4f8fd464
commit e6e9e9f7ac
20 changed files with 1362 additions and 59 deletions

View File

@@ -42,7 +42,8 @@
}
.liens_fixed > div > div, .file_fixed > div > div {
.liens_fixed > div > div, .file_fixed > div > div,
.liens > div > div, .file_fixed > div > div {
padding: 0 calc($x_margin / 2);
text-align: right;
margin: 2rem 0;
@@ -53,8 +54,8 @@
@media (min-width: $breakpoint_desktop) {
margin-bottom: 0 !important;
margin: 0;
position: fixed;
left: 75vw;
//position: fixed; -> dans le js direct
//left: 75vw;
bottom: 10vh;
> div {
height: 3vh;
@@ -93,8 +94,8 @@
&.large-container {
@media (min-width: $breakpoint_tablet) {
width: auto;
margin-left: $x_margin;
margin-right: $x_margin;
margin-left: calc($x_margin * 2.5);
margin-right: calc($x_margin * 2.5);
}
}
}

View File

@@ -70,7 +70,7 @@
> .views-field-field-diaporama {
grid-column: 1;
grid-row: 1/5;
align-self: center;
align-self: start;
> .field-content {
width: 8rem;
height: 8rem;
@@ -150,5 +150,245 @@
}
.fullpage.projet_full {
background-color: blue;
overflow-x: hidden; // enlever quand on ajoute le menu des projets à gauche
.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;
}
}
}
}
.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: 4rem $x_margin;
.leaflet-pane {
path {
stroke: $fluo_green;
stroke-width: 2;
fill: $fluo_green;
fill-opacity: 0.2;
}
}
}
.chronologie {
display: none;
}
.equipe {
> 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: 1rem;
grid-column-gap: 4rem;
width: 75%;
@media screen and (min-width: $breakpoint_tablet) {
grid-template-columns: repeat(2, 1fr);
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;
> div:first-of-type {
grid-column: 1 / span 2;
grid-row: 1;
margin: 0;
padding: 0;
display: block;
width: 5rem;
height: 5rem;
margin-bottom: 0.75rem;
> div {
width: 5rem;
height: 5rem;
> img {
width: 5rem;
height: auto;
}
}
}
> div:nth-of-type(2) {
grid-column: 2;
grid-row: 2;
margin: 0;
padding: 0;
margin-left: 0.3rem;
}
> div:nth-of-type(3) {
grid-column: 1;
grid-row: 2;
margin: 0;
padding: 0;
}
> div:nth-of-type(4) {
margin-top: 0.5rem;
grid-column: 1 / span 2;
grid-row: 3;
p {
margin: 0;
padding: 0;
}
}
}
}
}
}
}
}
}
}
}
.liens,
.file_fixed {
> div > div > div {
padding: 1rem 0;
}
}
}
#block-erabletheme-views-block-projets-block-1 {
display: none;
}

View File

@@ -10,7 +10,7 @@ $title_size: 2.3rem;
@mixin main_title() {
font-family: "Barlow Condensed", sans-serif;
font-size: $l_font_size;
font-size: $xl_font_size;
padding: 0 $x_margin;
margin-top: 1rem;
color: $teal;
@@ -42,7 +42,10 @@ $title_size: 2.3rem;
@mixin sous_titre_alt() {
font-family: "Barlow", sans-serif;
color: black;
font-size: $xl_font_size;
font-size: $l_font_size;
@media (min-width: $breakpoint_tablet) {
font-size: $xl_font_size;
}
}
@mixin fluo_button() {