drupal-erable/web/themes/erabletheme/scss/partials/_carousel.scss

135 lines
3.6 KiB
SCSS
Raw Normal View History

.slick-container {
@include beige_gradient();
width: 100vw;
border-bottom: solid 2px $teal;
div.views-row article {
width: 100%;
2023-12-13 15:08:55 +01:00
> div:first-of-type { // container du lien image
width: 100%;
height: 30vh !important;
overflow-y: hidden;
2023-12-13 15:08:55 +01:00
padding: 0 !important;
> 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;
justify-content: flex-start;
flex-direction: column;
> div:last-of-type {
padding-top: 0.5rem;
}
}
h2, .preview_sous_titre {
padding-left: 0;
padding-right: 0;
}
}
@media (min-width: $breakpoint_desktop) {
display: flex;
align-items: flex-end;
border-bottom: solid 1px $teal;
> div:first-of-type {
width: calc(50% + 6.25vw);
}
> div:last-of-type {
width: calc(50% - 6.25vw);
padding-bottom: 4rem;
> div, > h2 {
padding-left: $x_margin;
}
> div:first-of-type {
padding-top: 3rem;
}
> div:last-of-type {
margin-top: 0.5rem;
}
}
}
}
.slick-arrow {
display: none !important;
width: 2rem;
height: 2rem;
border-radius: 1.5rem;
border: solid 1px $teal;
top: unset;
bottom: 5%;
background-color: rgba(255, 255, 255, 0.4) !important;
transition: background-color 0.3s ease;
}
.slick-arrow:hover {
background-color: rgba(255, 255, 255, 0.8) !important;
}
.slick-arrow::before {
color: $teal;
font-family: 'Marianne', sans-serif;
display: block;
padding-bottom: 3px;
}
#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: 8vh;
margin-left: 12.5vw;
}
}
footer {
@include fluo_button();
text-align: center;
margin-top: 4rem;
margin-bottom: 4rem;
@media (min-width: $breakpoint_desktop) {
margin-top: -2vh;
position: absolute;
right: 12.5vw;
}
}
@media (min-width: $breakpoint_tablet) {
padding: 0 12.5vw;
.slick-prev, .slick-next {
display: block !important;
}
.slick-prev {
left: -5rem;
}
.slick-next {
right: -5rem;
}
}
@media (min-width: $breakpoint_desktop) {
padding: 0;
padding-right: 12.5vw;
padding-bottom: 10vh;
.slick-prev, .slick-next {
bottom: 20%;
}
.slick-prev {
display: none !important;
}
.slick-next {
display: block !important;
}
}
}