@qsxy/element-plus-react 1.0.0-next.12 → 1.0.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Dialog/Dialog.js +5 -6
- package/dist/Dialog/DialogContext.d.ts +1 -1
- package/dist/Dialog/DialogContext.js +1 -1
- package/dist/Drawer/Drawer.d.ts +2 -5
- package/dist/Drawer/Drawer.js +98 -35
- package/dist/Drawer/DrawerBody.js +6 -12
- package/dist/Drawer/DrawerContext.d.ts +1 -13
- package/dist/Drawer/DrawerContext.js +1 -11
- package/dist/Drawer/DrawerHeader.js +5 -18
- package/dist/Drawer/typings.d.ts +31 -10
- package/dist/InputNumber/InputNumber.d.ts +2 -2
- package/dist/InputNumber/InputNumber.js +3 -3
- package/dist/Loading/Loading.d.ts +7 -2
- package/dist/Loading/Loading.js +108 -57
- package/dist/Loading/typings.d.ts +7 -1
- package/dist/Message/Main.d.ts +0 -7
- package/dist/Message/Main.js +0 -7
- package/dist/Message/Message.d.ts +2 -2
- package/dist/Message/Message.js +4 -3
- package/dist/Message/index.d.ts +0 -8
- package/dist/Message/index.js +5 -9
- package/dist/MessageBox/MessageBox.js +2 -1
- package/dist/MessageBox/index.d.ts +5 -5
- package/dist/MessageBox/index.js +1 -0
- package/dist/Notification/Main.d.ts +0 -7
- package/dist/Notification/Main.js +0 -7
- package/dist/Popover/Popover.d.ts +3 -2
- package/dist/Popover/Popover.js +10 -5
- package/dist/Popover/typings.d.ts +0 -1
- package/dist/Skeleton/PlaceholderGraph.d.ts +1 -1
- package/dist/Skeleton/PlaceholderGraph.js +3 -3
- package/dist/Skeleton/PlaceholderGrid.d.ts +1 -1
- package/dist/Skeleton/PlaceholderGrid.js +3 -3
- package/dist/Skeleton/PlaceholderParagraph.d.ts +2 -2
- package/dist/Skeleton/PlaceholderParagraph.js +13 -8
- package/dist/Skeleton/Skeleton.d.ts +2 -9
- package/dist/Skeleton/Skeleton.js +94 -7
- package/dist/Skeleton/SkeletonContext.d.ts +17 -0
- package/dist/Skeleton/SkeletonContext.js +5 -0
- package/dist/Skeleton/SkeletonItem.d.ts +4 -0
- package/dist/Skeleton/SkeletonItem.js +47 -0
- package/dist/Skeleton/index.d.ts +2 -3
- package/dist/Skeleton/index.js +2 -1
- package/dist/Skeleton/typings.d.ts +29 -0
- package/dist/Skeleton/typings.js +1 -0
- package/dist/Table/Table.d.ts +0 -1
- package/dist/Table/Table.js +1 -1
- package/dist/Table/hooks/useSelection.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/Tooltip.js +6 -6
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/drawer/index.scss +61 -65
- package/theme-chalk/message/index.scss +11 -3
- package/theme-chalk/placeholder/index.scss +22 -37
- package/dist/theme-chalk/avatar/index.scss +0 -50
- package/dist/theme-chalk/badge/index.scss +0 -63
- package/dist/theme-chalk/breadcrumb/index.scss +0 -65
- package/dist/theme-chalk/build.scss +0 -2
- package/dist/theme-chalk/button/_mixins.scss +0 -317
- package/dist/theme-chalk/button/button-group.scss +0 -83
- package/dist/theme-chalk/button/button.scss +0 -382
- package/dist/theme-chalk/button/index.scss +0 -2
- package/dist/theme-chalk/calendar/date-picker.scss +0 -112
- package/dist/theme-chalk/calendar/date-range-picker.scss +0 -139
- package/dist/theme-chalk/calendar/date-table.scss +0 -156
- package/dist/theme-chalk/calendar/index.scss +0 -6
- package/dist/theme-chalk/calendar/month-table.scss +0 -92
- package/dist/theme-chalk/calendar/picker-panel.scss +0 -136
- package/dist/theme-chalk/calendar/year-table.scss +0 -107
- package/dist/theme-chalk/card/index.scss +0 -44
- package/dist/theme-chalk/carousel/index.scss +0 -237
- package/dist/theme-chalk/cascader/cascader-panel.scss +0 -184
- package/dist/theme-chalk/cascader/cascader.scss +0 -239
- package/dist/theme-chalk/cascader/index.scss +0 -2
- package/dist/theme-chalk/checkbox/index.scss +0 -255
- package/dist/theme-chalk/checkbox-button/index.scss +0 -117
- package/dist/theme-chalk/checkbox-group/index.scss +0 -33
- package/dist/theme-chalk/col/_mixins.scss +0 -62
- package/dist/theme-chalk/col/index.scss +0 -50
- package/dist/theme-chalk/collapse/index.scss +0 -84
- package/dist/theme-chalk/color-picker/index.scss +0 -340
- package/dist/theme-chalk/common/_var.scss +0 -6
- package/dist/theme-chalk/common/index.d.ts +0 -1
- package/dist/theme-chalk/common/index.js +0 -1
- package/dist/theme-chalk/common/index.scss +0 -222
- package/dist/theme-chalk/date-picker/index.scss +0 -253
- package/dist/theme-chalk/date-time-picker/index.scss +0 -3
- package/dist/theme-chalk/date-time-picker/time-picker.scss +0 -83
- package/dist/theme-chalk/date-time-picker/time-range-picker.scss +0 -32
- package/dist/theme-chalk/descriptions/descriptions-item.scss +0 -66
- package/dist/theme-chalk/descriptions/descriptions.scss +0 -160
- package/dist/theme-chalk/descriptions/index.scss +0 -2
- package/dist/theme-chalk/dev.scss +0 -2
- package/dist/theme-chalk/dialog/index.scss +0 -190
- package/dist/theme-chalk/display.scss +0 -46
- package/dist/theme-chalk/divider/index.scss +0 -51
- package/dist/theme-chalk/doc.scss +0 -2
- package/dist/theme-chalk/drawer/index.scss +0 -250
- package/dist/theme-chalk/dropdown/index.scss +0 -147
- package/dist/theme-chalk/empty/index.scss +0 -69
- package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
- package/dist/theme-chalk/form/index.scss +0 -378
- package/dist/theme-chalk/icon/fonts.scss +0 -9
- package/dist/theme-chalk/icon/index.scss +0 -44
- package/dist/theme-chalk/icon/scss/_animated.scss +0 -205
- package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +0 -20
- package/dist/theme-chalk/icon/scss/_core.scss +0 -33
- package/dist/theme-chalk/icon/scss/_duotone-icons.scss +0 -12
- package/dist/theme-chalk/icon/scss/_fixed-width.scss +0 -7
- package/dist/theme-chalk/icon/scss/_functions.scss +0 -57
- package/dist/theme-chalk/icon/scss/_icons.scss +0 -11
- package/dist/theme-chalk/icon/scss/_list.scss +0 -20
- package/dist/theme-chalk/icon/scss/_mixins.scss +0 -102
- package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +0 -31
- package/dist/theme-chalk/icon/scss/_screen-reader.scss +0 -14
- package/dist/theme-chalk/icon/scss/_shims.scss +0 -2606
- package/dist/theme-chalk/icon/scss/_sizing.scss +0 -16
- package/dist/theme-chalk/icon/scss/_stacked.scss +0 -32
- package/dist/theme-chalk/icon/scss/_variables.scss +0 -9189
- package/dist/theme-chalk/icon/scss/brands.scss +0 -27
- package/dist/theme-chalk/icon/scss/duotone.scss +0 -72
- package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -13
- package/dist/theme-chalk/icon/scss/index.scss +0 -15
- package/dist/theme-chalk/icon/scss/light.scss +0 -21
- package/dist/theme-chalk/icon/scss/regular.scss +0 -21
- package/dist/theme-chalk/icon/scss/solid.scss +0 -21
- package/dist/theme-chalk/icon/scss/thin.scss +0 -21
- package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -3
- package/dist/theme-chalk/index.scss +0 -67
- package/dist/theme-chalk/input/_mixins.scss +0 -16
- package/dist/theme-chalk/input/index.scss +0 -3
- package/dist/theme-chalk/input/input-range.scss +0 -208
- package/dist/theme-chalk/input/input.scss +0 -577
- package/dist/theme-chalk/input-number/index.scss +0 -172
- package/dist/theme-chalk/link/index.scss +0 -99
- package/dist/theme-chalk/loading/index.scss +0 -94
- package/dist/theme-chalk/message/index.scss +0 -169
- package/dist/theme-chalk/message-box/index.scss +0 -184
- package/dist/theme-chalk/notification/index.scss +0 -155
- package/dist/theme-chalk/pagination/index.scss +0 -515
- package/dist/theme-chalk/placeholder/index.scss +0 -135
- package/dist/theme-chalk/popconfirm/index.scss +0 -35
- package/dist/theme-chalk/popover/index.scss +0 -54
- package/dist/theme-chalk/popper/index.scss +0 -86
- package/dist/theme-chalk/progress/index.scss +0 -155
- package/dist/theme-chalk/radio/index.scss +0 -2
- package/dist/theme-chalk/radio/radio-button.scss +0 -128
- package/dist/theme-chalk/radio/radio.scss +0 -171
- package/dist/theme-chalk/radio-group/index.scss +0 -31
- package/dist/theme-chalk/row/index.scss +0 -30
- package/dist/theme-chalk/scrollbar/index.scss +0 -103
- package/dist/theme-chalk/select/index.scss +0 -244
- package/dist/theme-chalk/select/option-group.scss +0 -54
- package/dist/theme-chalk/select/option.scss +0 -63
- package/dist/theme-chalk/select/select-dropdown.scss +0 -57
- package/dist/theme-chalk/switch/index.scss +0 -273
- package/dist/theme-chalk/table/index.scss +0 -714
- package/dist/theme-chalk/tabs/index.scss +0 -620
- package/dist/theme-chalk/tag/index.scss +0 -360
- package/dist/theme-chalk/time-line/_timeline-item.scss +0 -90
- package/dist/theme-chalk/time-line/_timeline.scss +0 -50
- package/dist/theme-chalk/time-line/index.scss +0 -2
- package/dist/theme-chalk/time-picker/index.scss +0 -109
- package/dist/theme-chalk/tooltip/index.scss +0 -13
- package/dist/theme-chalk/transfer/index.scss +0 -247
- package/dist/theme-chalk/transition/index.scss +0 -756
- package/dist/theme-chalk/tree/_directory.scss +0 -73
- package/dist/theme-chalk/tree/_tree.scss +0 -401
- package/dist/theme-chalk/tree/index.scss +0 -2
- package/dist/theme-chalk/tree-select/index.scss +0 -25
- package/dist/theme-chalk/upload/index.scss +0 -631
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@use '../../Common/styles/mixins/mixins' as *;
|
|
4
|
-
@use '../../Common/styles/common/var' as *;
|
|
5
|
-
|
|
6
|
-
@include b(select-dropdown) {
|
|
7
|
-
z-index: calc(#{getCssVar('index-top')} + 1);
|
|
8
|
-
border-radius: getCssVar('border-radius-base');
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
|
|
11
|
-
.#{$namespace}-scrollbar.is-empty .#{$namespace}-select-dropdown__list {
|
|
12
|
-
padding: 0;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@include b(select-dropdown__loading) {
|
|
17
|
-
padding: map.get($select-dropdown, 'empty-padding');
|
|
18
|
-
margin: 0;
|
|
19
|
-
text-align: center;
|
|
20
|
-
color: map.get($select-dropdown, 'empty-color');
|
|
21
|
-
font-size: getCssVar('select-font-size');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@include b(select-dropdown__empty) {
|
|
25
|
-
padding: map.get($select-dropdown, 'empty-padding');
|
|
26
|
-
margin: 0;
|
|
27
|
-
text-align: center;
|
|
28
|
-
color: map.get($select-dropdown, 'empty-color');
|
|
29
|
-
font-size: getCssVar('select-font-size');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@include b(select-dropdown__wrap) {
|
|
33
|
-
max-height: map.get($select-dropdown, 'max-height');
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@include b(select-dropdown__list) {
|
|
37
|
-
list-style: none;
|
|
38
|
-
padding: map.get($select-dropdown, 'padding');
|
|
39
|
-
margin: 0;
|
|
40
|
-
box-sizing: border-box;
|
|
41
|
-
|
|
42
|
-
&.#{$namespace}-vl__window {
|
|
43
|
-
// for select-v2
|
|
44
|
-
margin: map.get($select-dropdown, 'padding');
|
|
45
|
-
padding: 0;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@include b(select-dropdown__header) {
|
|
50
|
-
padding: map.get($select-dropdown, 'header-padding');
|
|
51
|
-
border-bottom: map.get($select-dropdown, 'border');
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@include b(select-dropdown__footer) {
|
|
55
|
-
padding: map.get($select-dropdown, 'footer-padding');
|
|
56
|
-
border-top: map.get($select-dropdown, 'border');
|
|
57
|
-
}
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
@use '../common/var';
|
|
2
|
-
|
|
3
|
-
@use 'sass:map';
|
|
4
|
-
|
|
5
|
-
$switch-height: () !default;
|
|
6
|
-
$switch-height: map.merge(
|
|
7
|
-
(
|
|
8
|
-
'large': var(--#{$namespace}-component-size-large),
|
|
9
|
-
'default': 32px,
|
|
10
|
-
'small': var(--#{$namespace}-component-size-small),
|
|
11
|
-
),
|
|
12
|
-
$switch-height
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
$switch-font-size: () !default;
|
|
16
|
-
$switch-font-size: map.merge(
|
|
17
|
-
(
|
|
18
|
-
'large': 14px,
|
|
19
|
-
'default': 14px,
|
|
20
|
-
'small': 12px,
|
|
21
|
-
),
|
|
22
|
-
$switch-font-size
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
$switch-core-border-radius: () !default;
|
|
26
|
-
$switch-core-border-radius: map.merge(
|
|
27
|
-
(
|
|
28
|
-
'large': 12px,
|
|
29
|
-
'default': 10px,
|
|
30
|
-
'small': 8px,
|
|
31
|
-
),
|
|
32
|
-
$switch-core-border-radius
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
$switch-core-width: () !default;
|
|
36
|
-
$switch-core-width: map.merge(
|
|
37
|
-
(
|
|
38
|
-
'large': 50px,
|
|
39
|
-
'default': 40px,
|
|
40
|
-
'small': 30px,
|
|
41
|
-
),
|
|
42
|
-
$switch-core-width
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
$switch-core-height: () !default;
|
|
46
|
-
$switch-core-height: map.merge(
|
|
47
|
-
(
|
|
48
|
-
'large': 24px,
|
|
49
|
-
'default': 20px,
|
|
50
|
-
'small': 16px,
|
|
51
|
-
),
|
|
52
|
-
$switch-core-height
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
$switch-button-size: () !default;
|
|
56
|
-
$switch-button-size: map.merge(
|
|
57
|
-
(
|
|
58
|
-
'large': 20px,
|
|
59
|
-
'default': 16px,
|
|
60
|
-
'small': 12px,
|
|
61
|
-
),
|
|
62
|
-
$switch-button-size
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
$switch-content-padding: () !default;
|
|
66
|
-
$switch-content-padding: map.merge(
|
|
67
|
-
(
|
|
68
|
-
'large': 6px,
|
|
69
|
-
'default': 4px,
|
|
70
|
-
'small': 2px,
|
|
71
|
-
),
|
|
72
|
-
$switch-content-padding
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
.#{$namespace}-switch {
|
|
76
|
-
--#{$namespace}-switch-on-color: var(--#{$namespace}-color-primary);
|
|
77
|
-
--#{$namespace}-switch-off-color: var(--#{$namespace}-border-color);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.#{$namespace}-switch {
|
|
81
|
-
display: inline-flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
position: relative;
|
|
84
|
-
font-size: 14px;
|
|
85
|
-
line-height: 20px;
|
|
86
|
-
height: 32px;
|
|
87
|
-
vertical-align: middle;
|
|
88
|
-
|
|
89
|
-
&.is-disabled {
|
|
90
|
-
.#{$namespace}-switch__core,
|
|
91
|
-
.#{$namespace}-switch__label {
|
|
92
|
-
cursor: not-allowed;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.#{$namespace}-switch__label {
|
|
97
|
-
transition: 0.2s;
|
|
98
|
-
height: 20px;
|
|
99
|
-
display: inline-block;
|
|
100
|
-
font-size: 14px;
|
|
101
|
-
font-weight: 500;
|
|
102
|
-
cursor: pointer;
|
|
103
|
-
vertical-align: middle;
|
|
104
|
-
color: var(--#{$namespace}-text-color-primary);
|
|
105
|
-
|
|
106
|
-
&.is-active {
|
|
107
|
-
color: var(--#{$namespace}-color-primary);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&.#{$namespace}-switch__label--left {
|
|
111
|
-
margin-right: 10px;
|
|
112
|
-
}
|
|
113
|
-
&.#{$namespace}-switch__label--right {
|
|
114
|
-
margin-left: 10px;
|
|
115
|
-
}
|
|
116
|
-
& * {
|
|
117
|
-
line-height: 1;
|
|
118
|
-
font-size: 14px;
|
|
119
|
-
display: inline-block;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.#{$namespace}-switch__input {
|
|
124
|
-
position: absolute;
|
|
125
|
-
width: 0;
|
|
126
|
-
height: 0;
|
|
127
|
-
opacity: 0;
|
|
128
|
-
margin: 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.#{$namespace}-switch__core {
|
|
132
|
-
display: inline-flex;
|
|
133
|
-
align-items: center;
|
|
134
|
-
position: relative;
|
|
135
|
-
min-width: 40px;
|
|
136
|
-
height: 20px;
|
|
137
|
-
border: 1px solid var(--#{$namespace}-switch-border-color, var(--#{$namespace}-switch-off-color));
|
|
138
|
-
outline: none;
|
|
139
|
-
border-radius: 10px;
|
|
140
|
-
box-sizing: border-box;
|
|
141
|
-
background: var(--#{$namespace}-switch-off-color);
|
|
142
|
-
cursor: pointer;
|
|
143
|
-
transition: border-color 0.3s, background-color 0.3s;
|
|
144
|
-
|
|
145
|
-
.#{$namespace}-switch__inner {
|
|
146
|
-
transition: all 0.3s;
|
|
147
|
-
height: 16px;
|
|
148
|
-
display: flex;
|
|
149
|
-
justify-content: center;
|
|
150
|
-
align-items: center;
|
|
151
|
-
overflow: hidden;
|
|
152
|
-
padding: 0 4px 0 18px;
|
|
153
|
-
|
|
154
|
-
.is-text,
|
|
155
|
-
.is-icon {
|
|
156
|
-
font-size: 12px;
|
|
157
|
-
color: #ffffff;
|
|
158
|
-
user-select: none;
|
|
159
|
-
overflow: hidden;
|
|
160
|
-
text-overflow: ellipsis;
|
|
161
|
-
white-space: nowrap;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.is-show {
|
|
165
|
-
opacity: 1;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.is-hide {
|
|
169
|
-
opacity: 0;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.#{$namespace}-switch__action {
|
|
174
|
-
position: absolute;
|
|
175
|
-
top: 1px;
|
|
176
|
-
left: 1px;
|
|
177
|
-
border-radius: 100%;
|
|
178
|
-
transition: all 0.3s;
|
|
179
|
-
width: 16px;
|
|
180
|
-
height: 16px;
|
|
181
|
-
background-color: var(--#{$namespace}-color-white);
|
|
182
|
-
display: flex;
|
|
183
|
-
justify-content: center;
|
|
184
|
-
align-items: center;
|
|
185
|
-
color: var(--#{$namespace}-switch-off-color);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&.is-checked {
|
|
190
|
-
.#{$namespace}-switch__core {
|
|
191
|
-
border-color: var(--#{$namespace}-switch-border-color, var(--#{$namespace}-switch-on-color));
|
|
192
|
-
background: var(--#{$namespace}-switch-on-color);
|
|
193
|
-
|
|
194
|
-
.#{$namespace}-switch__inner {
|
|
195
|
-
padding: 0 18px 0 4px;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.#{$namespace}-switch__action {
|
|
199
|
-
left: calc(100% - 17px);
|
|
200
|
-
color: var(--#{$namespace}-switch-on-color);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
&.is-disabled {
|
|
206
|
-
opacity: 0.6;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&.#{$namespace}-switch--wide {
|
|
210
|
-
.#{$namespace}-switch__label {
|
|
211
|
-
&.#{$namespace}-switch__label--left {
|
|
212
|
-
span {
|
|
213
|
-
left: 10px;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
&.#{$namespace}-switch__label--right {
|
|
217
|
-
span {
|
|
218
|
-
right: 10px;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
& .label-fade-enter-from,
|
|
225
|
-
& .label-fade-leave-active {
|
|
226
|
-
opacity: 0;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
@each $size in (large, small) {
|
|
231
|
-
.#{$namespace}-switch--#{$size} {
|
|
232
|
-
font-size: map.get($switch-font-size, $size);
|
|
233
|
-
line-height: map.get($switch-core-height, $size);
|
|
234
|
-
height: map.get($switch-height, $size);
|
|
235
|
-
|
|
236
|
-
.#{$namespace}-switch__label {
|
|
237
|
-
height: map.get($switch-core-height, $size);
|
|
238
|
-
font-size: map.get($switch-font-size, $size);
|
|
239
|
-
|
|
240
|
-
& * {
|
|
241
|
-
font-size: map.get($switch-font-size, $size);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.#{$namespace}-switch__core {
|
|
246
|
-
min-width: map.get($switch-core-width, $size);
|
|
247
|
-
height: map.get($switch-core-height, $size);
|
|
248
|
-
border-radius: map.get($switch-core-border-radius, $size);
|
|
249
|
-
|
|
250
|
-
.#{$namespace}-switch__inner {
|
|
251
|
-
height: map.get($switch-button-size, $size);
|
|
252
|
-
padding: 0 #{map.get($switch-content-padding, $size)} 0 calc(#{map.get($switch-button-size, $size)} + 2px);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.#{$namespace}-switch__action {
|
|
256
|
-
width: map.get($switch-button-size, $size);
|
|
257
|
-
height: map.get($switch-button-size, $size);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
&.is-checked {
|
|
262
|
-
.#{$namespace}-switch__core {
|
|
263
|
-
.#{$namespace}-switch__action {
|
|
264
|
-
left: calc(100% - #{map.get($switch-button-size, $size) + 1px});
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.#{$namespace}-switch__inner {
|
|
268
|
-
padding: 0 calc(#{map.get($switch-button-size, $size)} + 2px) 0 #{map.get($switch-content-padding, $size)};
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|