Skip to content
Snippets Groups Projects
Commit ef5ca57d authored by Arnaud Levy's avatar Arnaud Levy
Browse files

carrousel enhancement (not perfect yet)

parent 144115c7
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,10 @@ ...@@ -12,9 +12,10 @@
display: block display: block
margin-bottom: $spacing0 margin-bottom: $spacing0
> a > a
transition: opacity .3s ease transition: filter .3s ease
&:hover &:hover
opacity: .7 // if low opacity means not selected, selected needs to be darker
filter: brightness(95%)
img img
height: auto height: auto
...@@ -22,14 +23,11 @@ ...@@ -22,14 +23,11 @@
figcaption figcaption
position: relative position: relative
@include media-breakpoint-up(md)
align-items: baseline
display: flex
justify-content: space-between
p p
margin-bottom: 0 margin-bottom: 0
.credit .credit
@extend .small *
@extend .meta
&--grid &--grid
.gallery .gallery
...@@ -46,9 +44,10 @@ ...@@ -46,9 +44,10 @@
content: ' ' // This is used to allow align baseline without figcaption content: ' ' // This is used to allow align baseline without figcaption
&--carousel &--carousel
background: $block-gallery-carousel-background
padding-bottom: $grid-gutter padding-bottom: $grid-gutter
padding-top: $grid-gutter padding-top: $grid-gutter
@include in-page-without-sidebar
background: $block-gallery-carousel-background
.block-gallery + &, .block-gallery + &,
.block-pages--cards + & .block-pages--cards + &
margin-top: 0 margin-top: 0
...@@ -62,6 +61,10 @@ ...@@ -62,6 +61,10 @@
flex-direction: column flex-direction: column
&__track &__track
margin-right: -calc(#{$grid-gutter-sm} / 2) margin-right: -calc(#{$grid-gutter-sm} / 2)
.splide__slide
transition: opacity .3s ease
&[aria-hidden=true]
opacity: 0.2
@include media-breakpoint-up(md) @include media-breakpoint-up(md)
margin-right: -calc(#{$grid-gutter} / 2) margin-right: -calc(#{$grid-gutter} / 2)
&__slide &__slide
...@@ -72,7 +75,7 @@ ...@@ -72,7 +75,7 @@
img img
max-width: 100% max-width: 100%
figure figure
margin-right: $grid-gutter margin-right: calc(#{$grid-gutter} / 2)
picture picture
img img
max-height: 70vh max-height: 70vh
...@@ -82,19 +85,16 @@ ...@@ -82,19 +85,16 @@
@include media-breakpoint-up(md) @include media-breakpoint-up(md)
picture picture
img img
max-height: 70vh height: 70vh
width: auto width: auto
height: auto height: auto
max-width: 50vw max-width: none
@include in-page-without-sidebar @include in-page-without-sidebar
height: 70vh height: 70vh
max-width: none max-width: none
figcaption
display: flex
justify-content: space-between
&__arrows &__arrows
margin-left: -13px margin-left: -18px
order: 2 order: 2
@media (min-height: 800px) @media (min-height: 800px)
padding-top: px2rem(40) padding-top: px2rem(40)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment