Skip to content

Commit

Permalink
Aligns slides in the center if the number of slides is less than slid…
Browse files Browse the repository at this point in the history
…esToShow
  • Loading branch information
corvus-007 committed Jun 30, 2017
1 parent 3ab76ec commit ef8c742
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slick/slick.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
left: 0;

display: block;
margin-left: auto;
margin-right: auto;
}
.slick-track:before,
.slick-track:after
Expand Down
2 changes: 2 additions & 0 deletions slick/slick.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
left: 0;
top: 0;
display: block;
margin-left: auto;
margin-right: auto;

&:before,
&:after {
Expand Down
2 changes: 2 additions & 0 deletions slick/slick.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
left: 0;
top: 0;
display: block;
margin-left: auto;
margin-right: auto;

&:before,
&:after {
Expand Down

0 comments on commit ef8c742

Please sign in to comment.