xpepermint / angular-ui-switch

On/off switch button for AngularJS. DEPRECATED!
278 stars 125 forks source link

Is it possible to make the switch bigger? #8

Open sebastialonso opened 9 years ago

sebastialonso commented 9 years ago

I tried playing with styles as the README said, and I'm getting this

The issue is that the button, the <small> element is not moving accordingly.

.switch {
  width: 100%;
}
.switch small {
}
.switch.checked { 
  width: 100%;
}
.switch.checked small {
}

Should I also re-styled the button or I need to mess with the directive?

rifer commented 8 years ago

That's the width of your container Keep it inside a smaller container or add a

.switch{
   width: 120px;
}