mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Expanded clickable area for toggle
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
.toggle {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin: -$toggle-hit-area-expansion;
|
||||
padding: $toggle-hit-area-expansion;
|
||||
|
||||
&.dragging {
|
||||
.handle {
|
||||
@@ -43,8 +45,8 @@
|
||||
.toggle .handle {
|
||||
@include transition($toggle-transition-duration ease-in-out);
|
||||
position: absolute;
|
||||
top: $toggle-border-width;
|
||||
left: $toggle-border-width;
|
||||
top: $toggle-border-width + $toggle-hit-area-expansion;
|
||||
left: $toggle-border-width + $toggle-hit-area-expansion;
|
||||
display: block;
|
||||
width: $toggle-handle-width;
|
||||
height: $toggle-handle-height;
|
||||
|
||||
@@ -433,6 +433,8 @@ $toggle-handle-on-bg-color: $toggle-handle-off-bg-color !default;
|
||||
|
||||
$toggle-transition-duration: .2s !default;
|
||||
|
||||
$toggle-hit-area-expansion: 5px;
|
||||
|
||||
|
||||
// Checkbox
|
||||
// -------------------------------
|
||||
|
||||
Reference in New Issue
Block a user