Skip to content

Commit

Permalink
Add dynamic class to help styling of the noUiSlider field
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bijaoui committed Sep 22, 2016
1 parent b48c7f1 commit 2ce1938
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/fields/fieldNoUiSlider.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="jade">
div.slider(:disabled="disabled")
<template>
<div class="slider" :disabled="disabled" :class="{ 'contain-pips': typeof schema.noUiSliderOptions.pips !== 'undefined', 'contain-tooltip': schema.noUiSliderOptions.tooltips }"></div>
</template>

<script>
Expand Down Expand Up @@ -91,7 +91,16 @@
.field-wrap {
display: block;
}
.contain-pips {
margin-bottom: 30px;
}
.contain-tooltip {
margin-top: 30px;
}
.noUi-vertical {
height: 200px;
margin: 10px 0;
}
}
</style>

0 comments on commit 2ce1938

Please sign in to comment.