8000 feat(switch): add $switch-margin-bottom to switch · atinc/ngx-tethys@b3f3018 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit b3f3018

Browse files
committed
feat(switch): add $switch-margin-bottom to switch
#265585
1 parent 96bad51 commit b3f3018

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/styles/variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ $switch-sm-width: 36px !default;
428428
$switch-sm-height: 20px !default;
429429
$switch-xs-width: 24px !default;
430430
$switch-xs-height: 16px !default;
431+
$switch-margin-bottom: 0 !default;
431432
//Transfer
432433
$transfer-width: 600px !default;
433434
$transfer-list-header-padding: 10px 0 !default;

src/switch/styles/switch.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.thy-switch {
2+
margin-bottom: $switch-margin-bottom;
23
box-sizing: content-box;
34
@include thy-switch($switch-width, $switch-height, 2);
45
}
56

67
.thy-switch-disabled {
78
cursor: not-allowed;
8-
opacity: .5;
9+
opacity: 0.5;
910
}
1011

1112
.thy-switch-pill {
@@ -21,10 +22,16 @@
2122
}
2223
}
2324

24-
$switch-theme: (( "primary": $primary, "info": $gray-400, "warning": $warning, "danger": $danger))!default;
25-
@each $color,
26-
$value in $switch-theme {
25+
$switch-theme: (
26+
(
27+
'primary': $primary,
28+
'info': $gray-400,
29+
'warning': $warning,
30+
'danger': $danger
31+
)
32+
) !default;
33+
@each $color, $value in $switch-theme {
2734
.thy-switch-#{$color} {
2835
@include thy-switch-variant($value);
2936
}
30-
}
37+
}

0 commit comments

Comments
 (0)
0