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

@@ -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;