Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Theme
Commits
ef5ca57d
Commit
ef5ca57d
authored
2 years ago
by
Arnaud Levy
Browse files
Options
Downloads
Patches
Plain Diff
carrousel enhancement (not perfect yet)
parent
144115c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assets/sass/_theme/blocks/gallery.sass
+15
-15
15 additions, 15 deletions
assets/sass/_theme/blocks/gallery.sass
with
15 additions
and
15 deletions
assets/sass/_theme/blocks/gallery.sass
+
15
−
15
View file @
ef5ca57d
...
...
@@ -12,9 +12,10 @@
display
:
block
margin-bottom
:
$spacing0
>
a
transition
:
opacity
.3s
ease
transition
:
filter
.3s
ease
&
:hover
opacity
:
.7
// if low opacity means not selected, selected needs to be darker
filter
:
brightness
(
95%
)
img
height
:
auto
...
...
@@ -22,14 +23,11 @@
figcaption
position
:
relative
@include
media-breakpoint-up
(
md
)
align-items
:
baseline
display
:
flex
justify-content
:
space-between
p
margin-bottom
:
0
.credit
@extend
.small
*
@extend
.meta
&
--grid
.gallery
...
...
@@ -46,9 +44,10 @@
content
:
' '
//
This
is
used
to
allow
align
baseline
without
figcaption
&
--carousel
background
:
$block-gallery-carousel-background
padding-bottom
:
$grid-gutter
padding-top
:
$grid-gutter
@include
in-page-without-sidebar
background
:
$block-gallery-carousel-background
.block-gallery
+
&
,
.block-pages--cards
+
&
margin-top
:
0
...
...
@@ -62,6 +61,10 @@
flex-direction
:
column
&
__track
margin-right
:
-calc
(
#{
$grid-gutter-sm
}
/
2
)
.splide__slide
transition
:
opacity
.3s
ease
&
[
aria-hidden
=
true
]
opacity
:
0
.2
@include
media-breakpoint-up
(
md
)
margin-right
:
-calc
(
#{
$grid-gutter
}
/
2
)
&
__slide
...
...
@@ -72,7 +75,7 @@
img
max-width
:
100%
figure
margin-right
:
$grid-gutter
margin-right
:
calc
(
#{
$grid-gutter
}
/
2
)
picture
img
max-height
:
70vh
...
...
@@ -82,19 +85,16 @@
@include
media-breakpoint-up
(
md
)
picture
img
max-
height
:
70vh
height
:
70vh
width
:
auto
height
:
auto
max-width
:
50vw
max-width
:
none
@include
in-page-without-sidebar
height
:
70vh
max-width
:
none
figcaption
display
:
flex
justify-content
:
space-between
&
__arrows
margin-left
:
-1
3
px
margin-left
:
-1
8
px
order
:
2
@media
(
min-height
:
800px
)
padding-top
:
px2rem
(
40
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment