Skip to content

Commit

Permalink
fix slider for safari,
Browse files Browse the repository at this point in the history
let the slider start at 0
  • Loading branch information
vellip committed Nov 11, 2016
1 parent 8cf069e commit 2d6f4ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion euth_wagtail/assets/js/euth_wagtail.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ $(document).ready(function () {
nav: true,
margin: 20,
stagePadding: 30,
startPosition: 1,
navText: ['<i class="fa fa-chevron-left"></i>', '<i class="fa fa-chevron-right"></i>'],
responsive: {
0: {
Expand Down
1 change: 1 addition & 0 deletions euth_wagtail/assets/scss/components/_carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@
}

.home-carousel {
overflow-x: hidden;
@include rem(padding, 20px 0 30px);
}
6 changes: 4 additions & 2 deletions home/templates/home/home_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
<div class="container">
<h2 class="h3">{% trans 'Latest projects on OPIN' %}</h2>
</div>
<div class="container home-carousel">
{% include "euth_projects/includes/project_carousel.html" with projects=page.featured_projects %}
<div class="home-carousel">
<div class="container">
{% include "euth_projects/includes/project_carousel.html" with projects=page.featured_projects %}
</div>
</div>
{% endif %}
<section class="page-body">
Expand Down

0 comments on commit 2d6f4ce

Please sign in to comment.