Skip to content

Commit

Permalink
Small changes to fieldSwitch to allow easier customization of the w…
Browse files Browse the repository at this point in the history
…idth of the switch.
  • Loading branch information
Lionel Bijaoui committed Aug 9, 2016
1 parent e864d10 commit 5a4769e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fields/fieldSwitch.vue
Expand Up @@ -128,7 +128,8 @@ $field-switch-width: 120px;
box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
}
input:checked ~ .handle {
left: $width - 26px;
left: $field-switch-width - 32px;
left: calc(100% - 32px);
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}
Expand Down

0 comments on commit 5a4769e

Please sign in to comment.