Skip to content

Commit

Permalink
Update JS settings and improve button rendering by add a class attrib…
Browse files Browse the repository at this point in the history
…ute for all slides
  • Loading branch information
Sebastian Buckpesch committed Oct 17, 2017
1 parent 2f36043 commit 8627ca1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<img class="reference-screen-mobile" data-lazy="{{screens.mobile}}" alt="{{#title}}{{title}}{{/title}}">
{{/screens.mobile}}
</div>
<div class="reference-quote text-center">
<div class="reference-quote text-center hidden-xs-down">
<blockquote>
{{#title}}<h3>{{title}}</h3>{{/title}}
<p class="quote">" {{quote}} "</p>
Expand Down Expand Up @@ -55,6 +55,7 @@
jQuery(document).ready(function () {
jQuery('.o-references-slider .reference-slider').slick({
accessibility: false,
adaptiveHeight: true,
arrows: true,
asNavFor: '.references-slider-logo-slider',
cssEase: 'ease',
Expand All @@ -76,6 +77,7 @@
});
jQuery('.references-slider-logo-slider').slick({
accessibility: false,
adaptiveHeight: true,
arrows: false,
asNavFor: '.reference-slider',
centerMode: false,
Expand Down
8 changes: 2 additions & 6 deletions source/_patterns/02-organisms/slider/references-slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

.slick-prev,
.slick-next {
z-index: 999;
z-index: 9999;
position: absolute;
display: block;
height: auto;
Expand Down Expand Up @@ -198,8 +198,6 @@

.reference-slider {

height: $reference-height;

.slick-prev, .slick-next {
// position arrows in the middle of relevant image
top: 300px; // half of mobile image height
Expand All @@ -216,7 +214,6 @@
width: 100%;
overflow: hidden;
@media (min-width: map_get($grid-breakpoints, 'lg')) {
height: $reference-height;
width: 100% - percentage($reference-quote-width);
float: right;
}
Expand Down Expand Up @@ -249,7 +246,6 @@
display: table;
overflow: hidden;
@media (min-width: map_get($grid-breakpoints, 'lg')) {
height: $reference-height;
width: percentage($reference-quote-width);
float: left;
}
Expand Down Expand Up @@ -331,7 +327,7 @@
//display: table; // center vertical-alignment of client logos - doesn't work though
.references-slider-logo {
padding: 1rem;
height: 90px;
max-height: 90px;
//display: table-cell;
//vertical-align: middle;
text-align: center;
Expand Down

0 comments on commit 8627ca1

Please sign in to comment.