We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534c384 commit e01b816Copy full SHA for e01b816
src/fields/fieldSwitch.vue
@@ -3,7 +3,6 @@
3
input(type="checkbox", v-model="value", :disabled="disabled")
4
span.label(:data-on="schema.textOn || 'On'", :data-off="schema.textOff || 'Off'")
5
span.handle
6
- span {{ this | json}}
7
</template>
8
9
<script>
@@ -16,11 +15,13 @@
16
15
17
<style lang="sass" scoped>
18
+ $width: 120px;
19
+
20
label {
21
position: relative;
22
display: block;
23
vertical-align: top;
- width: 100px;
24
+ width: $width;
25
height: 30px;
26
padding: 3px;
27
margin: 0 10px 10px 0;
@@ -105,7 +106,7 @@
105
106
box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
107
}
108
input:checked ~ .handle {
- left: 74px;
109
+ left: $width - 26px;
110
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
111
112
0 commit comments