Skip to content

Commit

Permalink
[TASK] add possibility to edit slider controls color (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
myroslav321 authored and mesosa committed Nov 1, 2017
1 parent 97e7083 commit d4fcfe8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Resources/Private/Templates/ContentElements/Slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ <h2 class="img-slider__caption-header">{image.referenceProperties.title}</h2>
<f:comment><!-- If there are more than one image --></f:comment>
<f:if condition="{slides->f:count()} > 1">
<f:comment><!-- Add Pagination --></f:comment>
<div class="js__img-slider__pagination img-slider__pagination swiper-pagination swiper-pagination-white img-slider__pagination"></div>
<div class="js__img-slider__pagination img-slider__pagination swiper-pagination"></div>
<f:comment><!-- Navigation --></f:comment>
<div class="js__img-slider__btn-next img-slider__btn-next swiper-button-next swiper-button-white"></div>
<div class="js__img-slider__btn-prev img-slider__btn-prev swiper-button-prev swiper-button-white"></div>
<div class="js__img-slider__btn-next img-slider__btn-next swiper-button-next"></div>
<div class="js__img-slider__btn-prev img-slider__btn-prev swiper-button-prev"></div>
</f:if>
</div>
</f:if>
Expand Down
28 changes: 26 additions & 2 deletions felayout_t3kit/dev/styles/main/contentElements/slider.less
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@
display: none;
}

.img-slider__pagination .swiper-pagination-bullet {
background: @carousel-control-color;
}

@media (min-width: @screen-sm-min) {
.img-slider__caption {
padding: 30px 50px;
Expand All @@ -100,12 +104,32 @@
text-align: center;
}

.img-slider__btn-next {
.img-slider__btn-next,
.img-slider__btn-prev {
display: block;
background-image: none;
width: auto;
margin-top: 0;
transform: translateY(-50%);

&:before {
.icons();

color: @carousel-control-color;
font-size: @carousel-control-font-size;
}
}

.img-slider__btn-next {
&:before {
content: '\e675';
}
}

.img-slider__btn-prev {
display: block;
&:before {
content: '\e672';
}
}

.img-slider {
Expand Down

0 comments on commit d4fcfe8

Please sign in to comment.