modifs pas finies de la carte interactive + clean des scss

This commit is contained in:
Valentin
2024-11-02 04:12:25 +01:00
parent c56dadee02
commit e6d39d0dc3
24 changed files with 943 additions and 642 deletions

View File

@@ -5,17 +5,17 @@
@include beige_gradient();
position: relative;
> h2 {
@include main_title();
margin-top: 5vh;
margin-bottom: 7vh;
background-color: $beige;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@media (min-width: $breakpoint_tablet) {
background-color: unset;
}
margin-top: 5vh;
margin-bottom: 7vh;
background-color: $beige;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@include main_title();
@media (min-width: $breakpoint_tablet) {
background-color: unset;
}
}
.legende {
@@ -26,29 +26,29 @@
.fullpage_content {
> h2 {
@include main_title();
margin-top: 5vh;
margin-bottom: 1rem;
background-color: $beige;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@media (min-width: $breakpoint_tablet) {
background-color: unset;
}
margin-top: 5vh;
margin-bottom: 1rem;
background-color: $beige;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@include main_title();
@media (min-width: $breakpoint_tablet) {
background-color: unset;
}
}
.sous_titre {
@include main_text_content();
font-size: $l_font_size;
padding: 0 $x_margin;
font-size: $l_font_size;
padding: 0 $x_margin;
@include main_text_content();
}
p {
@include main_text_content();
padding: 0 $x_margin;
margin-bottom: 2rem;
padding: 0 $x_margin;
margin-bottom: 2rem;
@include main_text_content();
}
p:first-of-type {
@@ -57,26 +57,26 @@
.liens_fixed > div > div, .file_fixed > div > div {
padding: 0 calc($x_margin / 2);
text-align: right;
margin: 2rem 0;
@include fluo_button();
padding: 0 calc($x_margin / 2);
text-align: right;
margin: 2rem 0;
@include fluo_button();
a {
display: inline-block;
}
@media (min-width: $breakpoint_desktop) {
margin-bottom: 0 !important;
margin: 0;
position: fixed;
left: 75vw;
bottom: 10vh;
> div {
height: 3vh;
}
a {
display: inline-block;
}
@media (min-width: $breakpoint_desktop) {
margin-bottom: 0 !important;
margin: 0;
position: fixed;
left: 75vw;
bottom: 10vh;
> div {
height: 3vh;
}
a {
max-width: calc(25vw - $x_margin * 2);
}
max-width: calc(25vw - $x_margin * 2);
}
}
}
.file_fixed span:last-of-type {
display: none;
@@ -84,9 +84,9 @@
h3, h4, h5, h6 {
@include sous_titre();
margin-bottom: 1rem;
padding-left: $x_margin;
margin-bottom: 1rem;
padding-left: $x_margin;
@include sous_titre();
}
}

View File

@@ -20,12 +20,12 @@
}
}
}
> div:nth-of-type(2),
> div:nth-of-type(3) {
@include sous_titre();
margin-bottom: 2vh;
align-self: flex-end;
margin-bottom: 2vh;
align-self: flex-end;
@include sous_titre();
}
> div:nth-of-type(3) {
@@ -33,8 +33,8 @@
}
> div:last-of-type {
@include main_text_content();
grid-column: 2 / 4;
grid-column: 2 / 4;
@include main_text_content();
}
@media (min-width: $breakpoint_tablet) {
grid-template-columns: 10vw auto 1fr;
@@ -60,19 +60,19 @@
margin-bottom: 2vh;
article {
> h2 {
margin-bottom: 2vh;
@include sous_titre_alt();
margin-bottom: 2vh;
@include sous_titre_alt();
}
> h2 + div > div {
@include main_text_content();
margin-bottom: 2em;
margin-bottom: 2em;
@include main_text_content();
}
> div:first-of-type {
height: unset;
flex-direction: column;
}
}
}
}
}
}

View File

@@ -42,12 +42,12 @@
}
}
div.more-link {
@include fluo_button();
margin-top: 3rem;
margin-bottom: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
@include fluo_button();
@media (min-width: $breakpoint_tablet) {
position: absolute;
left:0;
@@ -69,19 +69,19 @@
// plus sur l'accueil
.home_consultation {
position: relative;
@include beige_gradient();
width: 100%;
padding: 4rem 0;
@include beige_gradient();
h2 {
@include main_title();
margin-bottom: 1.2rem;
@media (min-width: $breakpoint_tablet) {
padding-left: 0 !important;
}
@media (min-width: $breakpoint_desktop) {
margin-left: 12.5vw;
max-width: 50vw;
}
margin-bottom: 1.2rem;
@include main_title();
@media (min-width: $breakpoint_tablet) {
padding-left: 0 !important;
}
@media (min-width: $breakpoint_desktop) {
margin-left: 12.5vw;
max-width: 50vw;
}
}
h2 + div {
h2, h3, h4 {
@@ -121,3 +121,14 @@
padding-right: 12.5vw;
}
}
#sites-map-container {
#popup {
h3 {
@include sous_titre();
}
p {
@include main_text_content();
}
}
}

View File

@@ -108,8 +108,8 @@
grid-template-rows: repeat(6, auto);
background-color: white;
> p, > a, > div, > a > h2 {
@include main_text_content();
padding: 0.2rem 0;
padding: 0.2rem 0;
@include main_text_content();
}
> a:not(.author, .offre-title, [title="Voir le profil utilisateur."]) {
grid-column: 1;
@@ -182,25 +182,25 @@
}
}
> .views-exposed-form {
@include main_text_content();
display: flex;
margin-left: $x_margin;
> div {
width: auto;
> select {
@include main_text_content();
font-size: 0.8rem;
}
display: flex;
margin-left: $x_margin;
@include main_text_content();
> div {
width: auto;
> select {
font-size: 0.8rem;
@include main_text_content();
}
}
> div:last-of-type {
margin-left: 1rem;
> input {
@include main_text_content();
font-size: 0.8rem;
background-color: $teal;
color: white;
cursor: pointer;
border: none;
font-size: 0.8rem;
background-color: $teal;
color: white;
cursor: pointer;
border: none;
@include main_text_content();
}
}
}
@@ -226,9 +226,9 @@
}
}
> h2 {
@include main_title();
margin-bottom: 3vh;
width: auto;
margin-bottom: 3vh;
width: auto;
@include main_title();
}
> .offre-content {
> div {

View File

@@ -30,13 +30,13 @@
}
}
}
> div:nth-of-type(2) {
@include main_text_content();
margin-bottom: 2rem;
padding-left: $x_margin;
}
> div:last-of-type {
grid-column: 1 / 3;
width: 100%;
@@ -49,4 +49,4 @@
}
}
}
}
}

View File

@@ -6,10 +6,6 @@
}
} */
body {
overflow-x: hidden;
}
.layout-container {
margin: 0 !important;
}
@@ -25,3 +21,8 @@ em {
#block-erabletheme-titredepage {
display: none;
}
// debug
/* * {
border: solid 1px red !important;
} */

View File

@@ -9,58 +9,58 @@ $title_size: 2.3rem;
/* MIXINS */
@mixin main_title() {
font-family: "Barlow Condensed", sans-serif;
font-size: $l_font_size;
padding: 0 $x_margin;
margin-top: 1rem;
color: $teal;
text-transform: uppercase;
a {
color: $teal;
}
@media (min-width: $breakpoint_tablet) {
font-size: $title_size;
}
font-family: "Barlow Condensed", sans-serif;
font-size: $l_font_size;
padding: 0 $x_margin;
margin-top: 1rem;
color: $teal;
text-transform: uppercase;
a {
color: $teal;
}
@media (min-width: $breakpoint_tablet) {
font-size: $title_size;
}
}
@mixin main_text_content() {
font-family: "Marianne", sans-serif;
font-size: $main_font_size;
line-height: 1.4;
font-family: "Marianne", sans-serif;
font-size: $main_font_size;
line-height: 1.4;
}
@mixin sous_titre() {
font-family: "Marianne", sans-serif;
font-size: $m_font_size;
color: $teal;
font-weight: 800;
@media (min-width: $breakpoint_tablet) {
font-size: $l_font_size;
}
font-family: "Marianne", sans-serif;
font-size: $m_font_size;
color: $teal;
font-weight: 800;
@media (min-width: $breakpoint_tablet) {
font-size: $l_font_size;
}
}
@mixin sous_titre_alt() {
font-family: "Barlow", sans-serif;
color: black;
font-size: $xl_font_size;
font-family: "Barlow", sans-serif;
color: black;
font-size: $xl_font_size;
}
@mixin fluo_button() {
a {
text-align: center;
color: black;
font-family: "Marianne", sans-serif;
font-weight: 800;
font-size: $m_font_size;
background-color: white;
border: solid 2px $fluo_green;
padding: 9px 18px;
transition: background-color 0.3s ease;
svg {
display: none;
}
}
a:hover {
background-color: $fluo_green;
a {
text-align: center;
color: black;
font-family: "Marianne", sans-serif;
font-weight: 800;
font-size: $m_font_size;
background-color: white;
border: solid 2px $fluo_green;
padding: 9px 18px;
transition: background-color 0.3s ease;
svg {
display: none;
}
}
a:hover {
background-color: $fluo_green;
}
}

View File

@@ -54,8 +54,8 @@
}
h3, h4, h5, h6 {
@include sous_titre();
margin-bottom: 1rem;
margin-bottom: 1rem;
@include sous_titre();
}
.liens_fixed > div > div:nth-of-type(2), .file_fixed > div > div > div {
@@ -83,4 +83,4 @@
.file_fixed span:last-of-type {
display: none;
}
}
}

View File

@@ -48,8 +48,8 @@
}
h2 {
@include main_title();
margin-bottom: 0.5rem;
margin-bottom: 0.5rem;
@include main_title();
}
}

View File

@@ -1,115 +1,121 @@
.slick-container {
.carousel_container {
@media screen and (min-width: $breakpoint_tablet) {
width: 100%;
margin-bottom: 5rem;
@media screen and (min-width: $breakpoint_tablet) {
width: 200vw;
transform: translateX(-50vw);
}
div.views-row {
padding: 0 3vw;
@media screen and (min-width: $breakpoint_tablet) {
padding: 0 6vw;
}
> article {
width: 100%;
> div:first-of-type { // container du lien image
overflow-y: hidden;
padding: 0 !important;
display: flex;
align-items: center;
> div {
width: 100%;
> a {
max-width: 100%;
img {
width: 100%;
height: auto;
}
}
}
}
@media (min-width: $breakpoint_tablet) {
.preview_meta {
margin-left: 0;
margin-right: 0;
}
h2, .preview_sous_titre {
padding-left: 0;
padding-right: 0;
}
}
overflow-x: hidden;
}
.slick-container {
width: 100%;
margin-bottom: 5rem;
@media screen and (min-width: $breakpoint_tablet) {
width: 200vw;
transform: translateX(-50vw);
}
}
.slick-arrow {
width: 1.5rem;
height: 1.5rem;
border-radius: 1.5rem;
background-color: $teal !important;
transition: background-color 0.3s ease;
top: unset !important;
bottom: calc(-25px - 4rem);
@media (min-width: $breakpoint_tablet) {
width: 2rem;
height: 2rem;
bottom: calc(-25px - 6rem);
}
&:hover {
background-color: white !important;
&::before {
color: $teal;
div.views-row {
padding: 0 3vw;
@media screen and (min-width: $breakpoint_tablet) {
padding: 0 6vw;
}
> article {
width: 100%;
> div:first-of-type { // container du lien image
overflow-y: hidden;
padding: 0 !important;
display: flex;
align-items: center;
> div {
width: 100%;
> a {
max-width: 100%;
img {
width: 100%;
height: auto;
}
}
}
}
}
&::before {
opacity: 1 !important;
color: white;
font-weight: bold;
font-family: 'Marianne', sans-serif;
display: block;
font-size: $sm_font_size !important;
@media (min-width: $breakpoint_tablet) {
font-size: $l_font_size !important;
.preview_meta {
margin-left: 0;
margin-right: 0;
}
h2, .preview_sous_titre {
padding-left: 0;
padding-right: 0;
}
}
}
}
.slick-prev {
left: 20vw;
@media (min-width: $breakpoint_desktop) {
left: calc(50vw + 35vw);
}
}
.slick-next {
right: 20vw;
@media (min-width: $breakpoint_desktop) {
right: calc(50vw + 35vw);
}
}
> div > div > div:first-of-type {
z-index: 2;
position: relative;
margin-bottom: 4rem;
@media (min-width: $breakpoint_tablet) {
margin-bottom: 6rem;
}
}
#carousel_dots {
z-index: 1;
position: relative;
margin-top: -15px;
ul {
position: relative;
bottom: 0;
li.slick-active button::before{
.slick-arrow {
width: 1.5rem;
height: 1.5rem;
border-radius: 1.5rem;
background-color: $teal !important;
transition: background-color 0.3s ease;
top: unset !important;
bottom: calc(-25px - 4rem);
@media (min-width: $breakpoint_tablet) {
width: 2rem;
height: 2rem;
bottom: calc(-25px - 6rem);
}
&:hover {
background-color: white !important;
&::before {
color: $teal;
}
}
li button::before{
color: rgba(0.9, 0.9, 0.9, 1);
&::before {
opacity: 1 !important;
color: white;
font-weight: bold;
font-family: 'Marianne', sans-serif;
display: block;
font-size: $sm_font_size !important;
@media (min-width: $breakpoint_tablet) {
font-size: $l_font_size !important;
}
}
}
}
footer {
@include fluo_button();
text-align: center;
margin-top: 4rem;
.slick-prev {
left: 20vw;
@media (min-width: $breakpoint_tablet) {
left: calc(50vw + 35vw);
}
}
.slick-next {
right: 20vw;
@media (min-width: $breakpoint_tablet) {
right: calc(50vw + 35vw);
}
}
> div > div > div:first-of-type {
z-index: 2;
position: relative;
margin-bottom: 4rem;
}
@media (min-width: $breakpoint_tablet) {
margin-bottom: 6rem;
}
}
#carousel_dots {
z-index: 1;
position: relative;
margin-top: -15px;
ul {
position: relative;
bottom: 0;
li.slick-active button::before{
color: $teal;
}
li button::before{
color: rgba(0.9, 0.9, 0.9, 1);
}
}
}
footer {
@include fluo_button();
text-align: center;
margin-top: 4rem;
margin-bottom: 4rem;
}
}
}

View File

@@ -1,8 +1,7 @@
.layout-container > footer {
width: 100vw;
width: 100%;
background-color: white;
z-index: 99;
box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
margin-top: 50px;
padding: 0 $x_margin;
#footer_middle {
@@ -69,35 +68,39 @@
width: auto;
}
}
#footer_right {
width: 30%;
#block-erabletheme-socialmedialinks-2 ul {
display: flex;
justify-content: space-between;
li a {
span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
color: white;
background-color: $teal;
}
svg.ext {
display: none;
}
display: flex;
justify-content: space-between;
li {
a {
span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
color: white;
background-color: $teal;
}
svg.ext {
display: none;
}
}
&:last-of-type {
margin-left: 25px;
}
}
}
@media (min-width: $breakpoint_tablet) {
width: 25vw;
padding-left: 15vw;
padding-right: $x_margin;
width: auto;
margin-right: 25px;
}
}
}
@media (min-width: $breakpoint_tablet) {
display: flex;
@@ -106,4 +109,4 @@
@media (min-width: $breakpoint_tablet) {
padding: 0;
}
}
}

View File

@@ -262,7 +262,7 @@ body.toolbar-fixed header[role="banner"] {
}
#block-erabletheme-navigationprincipale {
background: linear-gradient(to bottom, white, transparent);
width: 100vw;
width: 100%;
display: none;
position: absolute;
padding-top: 1rem;