redesign blocks présentation et slider actus sur l'intro
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
.slick-container {
|
||||
@include beige_gradient();
|
||||
width: 100vw;
|
||||
border-bottom: solid 2px $teal;
|
||||
div.views-row article {
|
||||
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
|
||||
width: 100%;
|
||||
height: 30vh !important;
|
||||
overflow-y: hidden;
|
||||
padding: 0 !important;
|
||||
display: flex;
|
||||
@@ -21,9 +27,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
height: 50vh !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: $breakpoint_tablet) {
|
||||
.preview_meta {
|
||||
@@ -33,48 +36,75 @@
|
||||
h2, .preview_sous_titre {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.slick-arrow {
|
||||
display: none !important;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
border-radius: 1.5rem;
|
||||
border: solid 1px $teal;
|
||||
top: unset;
|
||||
bottom: 5%;
|
||||
background-color: rgba(255, 255, 255, 0.4) !important;
|
||||
background-color: $teal !important;
|
||||
transition: background-color 0.3s ease;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
transform: translateY(-5rem);
|
||||
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;
|
||||
}
|
||||
}
|
||||
&::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;
|
||||
}
|
||||
}
|
||||
}
|
||||
.slick-arrow:hover {
|
||||
background-color: rgba(255, 255, 255, 0.8) !important;
|
||||
.slick-prev {
|
||||
left: 20vw;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
left: calc(50vw + 35vw);
|
||||
}
|
||||
}
|
||||
.slick-arrow::before {
|
||||
color: $teal;
|
||||
font-family: 'Marianne', sans-serif;
|
||||
display: block;
|
||||
padding-bottom: 3px;
|
||||
.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 {
|
||||
position: relative;
|
||||
margin-top: -15px;
|
||||
ul {
|
||||
position: relative;
|
||||
bottom: 0;
|
||||
li.slick-active button::before{
|
||||
color: $fluo_green;
|
||||
}
|
||||
li button::before{
|
||||
color: rgba(0.9, 0.9, 0.9, 1);
|
||||
}
|
||||
}
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
margin-top: 4vh;
|
||||
}
|
||||
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();
|
||||
@@ -82,16 +112,4 @@
|
||||
margin-top: 4rem;
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
@media (min-width: $breakpoint_tablet) {
|
||||
padding: 0 12.5vw;
|
||||
.slick-prev, .slick-next {
|
||||
display: block !important;
|
||||
}
|
||||
.slick-prev {
|
||||
left: -5rem;
|
||||
}
|
||||
.slick-next {
|
||||
right: -5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user