@steroidsjs/bootstrap 3.0.0-beta.85 → 3.0.0-beta.87
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/content/Accordion/AccordionItemView.scss +24 -14
- package/content/Alert/AlertView.scss +20 -17
- package/content/Avatar/AvatarView.scss +12 -10
- package/content/Badge/BadgeView.scss +21 -19
- package/content/Calendar/CalendarView.scss +27 -37
- package/content/Calendar/CaptionElement.scss +14 -11
- package/content/Card/CardView.scss +11 -9
- package/content/Detail/DetailView.scss +13 -11
- package/content/DropDown/DropDownView.scss +4 -2
- package/content/Menu/MenuItemView.scss +7 -3
- package/content/Menu/MenuView.scss +16 -13
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +36 -33
- package/form/Button/ButtonView.scss +28 -26
- package/form/CheckboxField/CheckboxFieldView.scss +29 -27
- package/form/DateField/DateFieldView.scss +11 -7
- package/form/DateRangeField/DateRangeFieldView.scss +21 -7
- package/form/DateTimeField/DateTimeFieldView.scss +11 -8
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +15 -10
- package/form/DropDownField/DropDownFieldView.scss +75 -73
- package/form/DropDownFieldItem/DropDownFieldItemView.scss +13 -11
- package/form/FieldLayout/FieldLayoutView.scss +27 -25
- package/form/FieldList/FieldListItemView.scss +3 -1
- package/form/FieldList/FieldListView.scss +11 -8
- package/form/FieldSet/FieldSetView.scss +4 -1
- package/form/FileField/FileFieldItemView.scss +21 -17
- package/form/FileField/FileFieldView.scss +3 -1
- package/form/ImageField/ImageFieldView.scss +2 -2
- package/form/InputField/InputFieldView.scss +33 -31
- package/form/NumberField/NumberFieldView.scss +23 -21
- package/form/PasswordField/PasswordFieldView.scss +22 -20
- package/form/RadioField/RadioFieldView.scss +26 -24
- package/form/RateField/RateFieldView.scss +19 -16
- package/form/SliderField/SliderFieldView.scss +17 -15
- package/form/SwitcherField/SwitcherFieldView.scss +30 -26
- package/form/TextField/TextFieldView.scss +24 -21
- package/form/TimeField/TimeFieldView.scss +11 -8
- package/form/TimeField/TimePanelView.scss +13 -10
- package/form/TimeRangeField/TimeRangeFieldView.scss +14 -10
- package/index.scss +90 -89
- package/layout/Header/HeaderView.scss +15 -13
- package/layout/Loader/LoaderView.scss +5 -2
- package/layout/ProgressBar/CircleProgressBarView.scss +9 -7
- package/layout/ProgressBar/LineProgressBarView.scss +10 -8
- package/layout/Sidebar/FooterIcons/FooterIcons.scss +1 -1
- package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +7 -7
- package/layout/Sidebar/SidebarUser/SidebarUser.scss +5 -5
- package/layout/Sidebar/SidebarView.scss +9 -7
- package/layout/Skeleton/SkeletonView.scss +7 -5
- package/layout/Tooltip/TooltipView.scss +2 -1
- package/list/Empty/EmptyView.scss +2 -1
- package/list/FlexGrid/FlexGridView.scss +6 -3
- package/list/Grid/GridView.scss +15 -13
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +9 -7
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +12 -12
- package/list/List/ListView.scss +3 -1
- package/list/Pagination/PaginationButtonView.scss +15 -13
- package/list/Steps/StepItemView.scss +13 -12
- package/list/Steps/StepsView.scss +3 -1
- package/modal/Modal/ModalView.scss +19 -17
- package/nav/Breadcrubms/BreadcrumbsView.scss +5 -5
- package/nav/ButtonGroup/ButtonGroupView.scss +8 -5
- package/nav/Nav/NavBarView.scss +7 -4
- package/nav/Nav/NavIconView.scss +6 -4
- package/nav/Nav/NavTabsView.scss +11 -8
- package/nav/Tree/TreeView.scss +7 -5
- package/package.json +1 -1
- package/scss/animations/index.scss +1 -1
- package/scss/mixins/button.scss +31 -28
- package/scss/mixins/customMixins.scss +2 -1
- package/scss/mixins/date.scss +55 -41
- package/scss/mixins/index.scss +6 -6
- package/scss/mixins/typography.scss +23 -20
- package/scss/variables/common/colors.scss +4 -2
- package/scss/variables/common/typography.scss +22 -19
- package/scss/variables/components/calendar.scss +8 -5
- package/scss/variables/components/input.scss +3 -1
- package/scss/variables/components/ratefield.scss +3 -1
- package/scss/variables/index.scss +10 -11
- package/typography/Text/TextView.scss +7 -4
- package/typography/Title/TitleView.scss +7 -4
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--radio-hover-color: #651fff;
|
|
3
5
|
}
|
|
@@ -14,11 +16,11 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
14
16
|
|
|
15
17
|
$root: &;
|
|
16
18
|
|
|
17
|
-
font-family:
|
|
18
|
-
color:
|
|
19
|
+
font-family: variables.$font-family-nunito;
|
|
20
|
+
color: variables.$text-color;
|
|
19
21
|
line-height: 24px;
|
|
20
22
|
font-weight: 400;
|
|
21
|
-
font-size:
|
|
23
|
+
font-size: variables.$font-size-sm;
|
|
22
24
|
|
|
23
25
|
&__ellipse {
|
|
24
26
|
position: absolute;
|
|
@@ -28,8 +30,8 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
28
30
|
display: inline-block;
|
|
29
31
|
width: 12px;
|
|
30
32
|
height: 12px;
|
|
31
|
-
background-color:
|
|
32
|
-
border-radius:
|
|
33
|
+
background-color: variables.$primary;
|
|
34
|
+
border-radius: variables.$radius-circle;
|
|
33
35
|
opacity: 0;
|
|
34
36
|
pointer-events: none;
|
|
35
37
|
}
|
|
@@ -58,8 +60,8 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
58
60
|
display: inline-block;
|
|
59
61
|
width: 24px;
|
|
60
62
|
height: 24px;
|
|
61
|
-
border-radius:
|
|
62
|
-
border: 1px solid
|
|
63
|
+
border-radius: variables.$radius-circle;
|
|
64
|
+
border: 1px solid variables.$element-border-color;
|
|
63
65
|
margin-right: 8px;
|
|
64
66
|
cursor: pointer;
|
|
65
67
|
|
|
@@ -75,8 +77,8 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
75
77
|
position: absolute;
|
|
76
78
|
top: 0;
|
|
77
79
|
left: 0;
|
|
78
|
-
border: 4px solid
|
|
79
|
-
border-radius:
|
|
80
|
+
border: 4px solid variables.$primary-light;
|
|
81
|
+
border-radius: variables.$radius-circle;
|
|
80
82
|
pointer-events: none;
|
|
81
83
|
opacity: 0;
|
|
82
84
|
|
|
@@ -86,11 +88,11 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
&__input:not(:disabled):not(:checked):hover + &__label::before {
|
|
89
|
-
border-color:
|
|
91
|
+
border-color: variables.$element-border-color-hover;
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
&__input:not(:disabled):not(:checked):active + &__label::before {
|
|
93
|
-
border-color:
|
|
95
|
+
border-color: variables.$primary;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
&__input:not(:disabled):focus + &__label::after {
|
|
@@ -102,14 +104,14 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
&__input:checked + &__label::before {
|
|
105
|
-
border: 1px solid
|
|
107
|
+
border: 1px solid variables.$primary;
|
|
106
108
|
}
|
|
107
109
|
&__input:checked + &__label &__ellipse {
|
|
108
110
|
opacity: 1;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
&__input:not(:disabled):checked:hover + &__label::before {
|
|
112
|
-
border-color:
|
|
114
|
+
border-color: variables.$primary-dark;
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
&__input:not(:disabled):checked:hover + &__label &__ellipse {
|
|
@@ -118,21 +120,21 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
&__input:not(:disabled):checked:active + &__label::before {
|
|
121
|
-
border-color:
|
|
123
|
+
border-color: variables.$primary-light;
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
&__input:not(:disabled):checked:active + &__label &__ellipse {
|
|
125
127
|
opacity: 1;
|
|
126
|
-
background-color:
|
|
128
|
+
background-color: variables.$primary-light;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
&__input:disabled + &__label {
|
|
130
132
|
cursor: not-allowed;
|
|
131
|
-
color:
|
|
133
|
+
color: variables.$element-placeholder-color;
|
|
132
134
|
|
|
133
135
|
&::before {
|
|
134
136
|
cursor: not-allowed;
|
|
135
|
-
background-color:
|
|
137
|
+
background-color: variables.$element-background-color-disabled;
|
|
136
138
|
}
|
|
137
139
|
}
|
|
138
140
|
|
|
@@ -140,19 +142,19 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
140
142
|
cursor: not-allowed;
|
|
141
143
|
|
|
142
144
|
background-color: transparent;
|
|
143
|
-
border-color:
|
|
145
|
+
border-color: variables.$element-background-color-disabled;
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
&__input:disabled:checked + &__label &__ellipse {
|
|
147
|
-
background-color:
|
|
149
|
+
background-color: variables.$element-background-color-disabled;
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
&_hasError {
|
|
151
153
|
#{$root}__input:not(:disabled):not(:checked) + #{$root}__label {
|
|
152
|
-
color:
|
|
154
|
+
color: variables.$danger;
|
|
153
155
|
|
|
154
156
|
&::before {
|
|
155
|
-
border-color:
|
|
157
|
+
border-color: variables.$danger;
|
|
156
158
|
}
|
|
157
159
|
}
|
|
158
160
|
}
|
|
@@ -160,7 +162,7 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
160
162
|
&_size {
|
|
161
163
|
&_lg {
|
|
162
164
|
#{$root}__label {
|
|
163
|
-
font-size:
|
|
165
|
+
font-size: variables.$font-size-lg;
|
|
164
166
|
line-height: 24px;
|
|
165
167
|
|
|
166
168
|
&::before {
|
|
@@ -177,7 +179,7 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
177
179
|
|
|
178
180
|
&_md {
|
|
179
181
|
#{$root}__label {
|
|
180
|
-
font-size:
|
|
182
|
+
font-size: variables.$font-size-base;
|
|
181
183
|
line-height: 22px;
|
|
182
184
|
|
|
183
185
|
&::before {
|
|
@@ -201,7 +203,7 @@ $radio-hover-color: var(--radio-hover-color);
|
|
|
201
203
|
|
|
202
204
|
&_sm {
|
|
203
205
|
#{$root}__label {
|
|
204
|
-
font-size:
|
|
206
|
+
font-size: variables.$font-size-sm;
|
|
205
207
|
line-height: 18px;
|
|
206
208
|
|
|
207
209
|
&::before {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../scss/variables";
|
|
3
|
+
|
|
1
4
|
$ratefield-sizes: () !default;
|
|
2
|
-
$ratefield-sizes: map
|
|
5
|
+
$ratefield-sizes: map.merge(
|
|
3
6
|
(
|
|
4
7
|
"sm": (
|
|
5
8
|
"size": 18px,
|
|
@@ -17,7 +20,7 @@ $ratefield-sizes: map-merge(
|
|
|
17
20
|
"size": 24px,
|
|
18
21
|
"badge-gap": 16px,
|
|
19
22
|
"badge-paddings": 4px 8px,
|
|
20
|
-
"badge-radius":
|
|
23
|
+
"badge-radius": variables.$radius-small,
|
|
21
24
|
),
|
|
22
25
|
),
|
|
23
26
|
$ratefield-sizes
|
|
@@ -53,7 +56,7 @@ $ratefield-sizes: map-merge(
|
|
|
53
56
|
|
|
54
57
|
#{$root}__rate-icon {
|
|
55
58
|
path {
|
|
56
|
-
fill:
|
|
59
|
+
fill: variables.$primary;
|
|
57
60
|
}
|
|
58
61
|
}
|
|
59
62
|
}
|
|
@@ -75,17 +78,17 @@ $ratefield-sizes: map-merge(
|
|
|
75
78
|
&__rate-icon {
|
|
76
79
|
&.IconView svg {
|
|
77
80
|
path {
|
|
78
|
-
fill:
|
|
81
|
+
fill: variables.$gray;
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
&__badge {
|
|
84
87
|
display: block;
|
|
85
|
-
background-color:
|
|
86
|
-
color:
|
|
87
|
-
font-size:
|
|
88
|
-
line-height:
|
|
88
|
+
background-color: variables.$primary;
|
|
89
|
+
color: variables.$white;
|
|
90
|
+
font-size: variables.$font-size-xs;
|
|
91
|
+
line-height: variables.$line-height-xs;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
&_size {
|
|
@@ -93,21 +96,21 @@ $ratefield-sizes: map-merge(
|
|
|
93
96
|
&_#{$size} {
|
|
94
97
|
#{$root}__rate-icon {
|
|
95
98
|
&.IconView svg {
|
|
96
|
-
width: map
|
|
97
|
-
height: map
|
|
99
|
+
width: map.get($sizeMap, size);
|
|
100
|
+
height: map.get($sizeMap, size);
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
#{$root}__rate-value-first,
|
|
102
105
|
#{$root}__rate-value-second {
|
|
103
|
-
width: map
|
|
104
|
-
height: map
|
|
106
|
+
width: map.get($sizeMap, size);
|
|
107
|
+
height: map.get($sizeMap, size);
|
|
105
108
|
}
|
|
106
109
|
|
|
107
110
|
#{$root}__badge {
|
|
108
|
-
margin-left: map
|
|
109
|
-
padding: map
|
|
110
|
-
border-radius: map
|
|
111
|
+
margin-left: map.get($sizeMap, badge-gap);
|
|
112
|
+
padding: map.get($sizeMap, badge-paddings);
|
|
113
|
+
border-radius: map.get($sizeMap, badge-radius);
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
116
|
}
|
|
@@ -122,7 +125,7 @@ $ratefield-sizes: map-merge(
|
|
|
122
125
|
#{$root}__rate-icon {
|
|
123
126
|
&.IconView svg {
|
|
124
127
|
path {
|
|
125
|
-
fill:
|
|
128
|
+
fill: variables.$light-gray;
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
131
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--slider-background: #dbe2e6;
|
|
3
5
|
--slider-handle-border-color: rgba(0, 0, 0, 0.1);
|
|
@@ -42,7 +44,7 @@ $slider-dot-active-border-color: var(--slider-dot-active-border-color);
|
|
|
42
44
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
43
45
|
}
|
|
44
46
|
.rc-slider-rail {
|
|
45
|
-
background-color:
|
|
47
|
+
background-color: variables.$primary;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
.rc-slider * {
|
|
@@ -54,7 +56,7 @@ $slider-dot-active-border-color: var(--slider-dot-active-border-color);
|
|
|
54
56
|
left: 0;
|
|
55
57
|
height: 8px;
|
|
56
58
|
border-radius: 6px;
|
|
57
|
-
background-color:
|
|
59
|
+
background-color: variables.$primary;
|
|
58
60
|
z-index: 1;
|
|
59
61
|
}
|
|
60
62
|
.rc-slider-handle {
|
|
@@ -65,7 +67,7 @@ $slider-dot-active-border-color: var(--slider-dot-active-border-color);
|
|
|
65
67
|
height: 24px;
|
|
66
68
|
cursor: pointer;
|
|
67
69
|
border-radius: 50%;
|
|
68
|
-
background-color:
|
|
70
|
+
background-color: variables.$primary;
|
|
69
71
|
z-index: 2;
|
|
70
72
|
outline: none;
|
|
71
73
|
|
|
@@ -81,7 +83,7 @@ $slider-dot-active-border-color: var(--slider-dot-active-border-color);
|
|
|
81
83
|
left: 0;
|
|
82
84
|
right: 0;
|
|
83
85
|
bottom: 0;
|
|
84
|
-
border: 4px solid
|
|
86
|
+
border: 4px solid variables.$primary-light;
|
|
85
87
|
transform: translate(-4px, -4px);
|
|
86
88
|
border-radius: 50%;
|
|
87
89
|
pointer-events: none;
|
|
@@ -94,7 +96,7 @@ $slider-dot-active-border-color: var(--slider-dot-active-border-color);
|
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
&:active {
|
|
97
|
-
background-color:
|
|
99
|
+
background-color: variables.$primary-dark;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
.rc-slider-mark {
|
|
@@ -103,8 +105,8 @@ $slider-dot-active-border-color: var(--slider-dot-active-border-color);
|
|
|
103
105
|
top: 20px;
|
|
104
106
|
left: 0;
|
|
105
107
|
width: 100%;
|
|
106
|
-
font-size:
|
|
107
|
-
line-height:
|
|
108
|
+
font-size: variables.$font-size-xs;
|
|
109
|
+
line-height: variables.$line-height-xs;
|
|
108
110
|
z-index: 3;
|
|
109
111
|
}
|
|
110
112
|
.rc-slider-mark-text {
|
|
@@ -114,9 +116,9 @@ $slider-dot-active-border-color: var(--slider-dot-active-border-color);
|
|
|
114
116
|
vertical-align: middle;
|
|
115
117
|
text-align: center;
|
|
116
118
|
cursor: pointer;
|
|
117
|
-
background-color:
|
|
118
|
-
color:
|
|
119
|
-
border: 1px solid
|
|
119
|
+
background-color: variables.$element-background-color;
|
|
120
|
+
color: variables.$text-color;
|
|
121
|
+
border: 1px solid variables.$element-border-color;
|
|
120
122
|
border-radius: 21px;
|
|
121
123
|
}
|
|
122
124
|
.rc-slider-step {
|
|
@@ -331,13 +333,13 @@ $slider-dot-active-border-color: var(--slider-dot-active-border-color);
|
|
|
331
333
|
}
|
|
332
334
|
.rc-slider-tooltip-inner {
|
|
333
335
|
padding: 8px;
|
|
334
|
-
font-size:
|
|
335
|
-
line-height:
|
|
336
|
-
color:
|
|
337
|
-
border: 1px solid
|
|
336
|
+
font-size: variables.$font-size-lg;
|
|
337
|
+
line-height: variables.$line-height-base;
|
|
338
|
+
color: variables.$text-color;
|
|
339
|
+
border: 1px solid variables.$gray;
|
|
338
340
|
text-align: center;
|
|
339
341
|
text-decoration: none;
|
|
340
|
-
background-color:
|
|
342
|
+
background-color: variables.$element-background-color;
|
|
341
343
|
border-radius: 21px;
|
|
342
344
|
}
|
|
343
345
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../scss/variables";
|
|
3
|
+
|
|
1
4
|
:root {
|
|
2
5
|
--switcher-dot-disabled-color: #dbe2e6;
|
|
3
6
|
--switcher-slider-disabled-color: #f1f5f7;
|
|
@@ -13,6 +16,7 @@ $switcher-slider-disabled-color: var(--switcher-slider-disabled-color);
|
|
|
13
16
|
|
|
14
17
|
$background-color-transition-timing: 150ms;
|
|
15
18
|
|
|
19
|
+
|
|
16
20
|
.SwitcherFieldView {
|
|
17
21
|
$root: &;
|
|
18
22
|
display: flex;
|
|
@@ -28,7 +32,7 @@ $background-color-transition-timing: 150ms;
|
|
|
28
32
|
cursor: pointer;
|
|
29
33
|
|
|
30
34
|
$sizes: () !default;
|
|
31
|
-
$sizes: map
|
|
35
|
+
$sizes: map.merge(
|
|
32
36
|
(
|
|
33
37
|
"lg": (
|
|
34
38
|
"width": 40px,
|
|
@@ -36,8 +40,8 @@ $background-color-transition-timing: 150ms;
|
|
|
36
40
|
"dotSize": 18px,
|
|
37
41
|
"dotTranslateDefault": translateY(-50%) translateX(4px),
|
|
38
42
|
"dotTranslateActive": translateY(-50%) translateX(16px),
|
|
39
|
-
"font-size":
|
|
40
|
-
"line-height":
|
|
43
|
+
"font-size": variables.$font-size-lg,
|
|
44
|
+
"line-height": variables.$line-height-lg,
|
|
41
45
|
),
|
|
42
46
|
"md": (
|
|
43
47
|
"width": 34px,
|
|
@@ -45,8 +49,8 @@ $background-color-transition-timing: 150ms;
|
|
|
45
49
|
"dotSize": 14px,
|
|
46
50
|
"dotTranslateDefault": translateY(-50%) translateX(3px),
|
|
47
51
|
"dotTranslateActive": translateY(-50%) translateX(15px),
|
|
48
|
-
"font-size":
|
|
49
|
-
"line-height":
|
|
52
|
+
"font-size": variables.$font-size-base,
|
|
53
|
+
"line-height": variables.$line-height-base,
|
|
50
54
|
),
|
|
51
55
|
"sm": (
|
|
52
56
|
"width": 28px,
|
|
@@ -54,8 +58,8 @@ $background-color-transition-timing: 150ms;
|
|
|
54
58
|
"dotSize": 12px,
|
|
55
59
|
"dotTranslateDefault": translateY(-50%) translateX(2px),
|
|
56
60
|
"dotTranslateActive": translateY(-50%) translateX(12px),
|
|
57
|
-
"font-size":
|
|
58
|
-
"line-height":
|
|
61
|
+
"font-size": variables.$font-size-sm,
|
|
62
|
+
"line-height": variables.$line-height-sm,
|
|
59
63
|
),
|
|
60
64
|
),
|
|
61
65
|
$sizes
|
|
@@ -65,25 +69,25 @@ $background-color-transition-timing: 150ms;
|
|
|
65
69
|
@each $size, $sizeMap in $sizes {
|
|
66
70
|
&_#{$size} {
|
|
67
71
|
#{$root}__slider {
|
|
68
|
-
width: map
|
|
69
|
-
height: map
|
|
72
|
+
width: map.get($sizeMap, width);
|
|
73
|
+
height: map.get($sizeMap, height);
|
|
70
74
|
|
|
71
75
|
&::before {
|
|
72
|
-
width: map
|
|
73
|
-
height: map
|
|
74
|
-
transform: map
|
|
76
|
+
width: map.get($sizeMap, dotSize);
|
|
77
|
+
height: map.get($sizeMap, dotSize);
|
|
78
|
+
transform: map.get($sizeMap, dotTranslateDefault);
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
#{$root}__input:checked + #{$root}__slider {
|
|
79
83
|
&::before {
|
|
80
|
-
transform: map
|
|
84
|
+
transform: map.get($sizeMap, dotTranslateActive);
|
|
81
85
|
}
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
#{$root}__label {
|
|
85
|
-
font-size: map
|
|
86
|
-
line-height: map
|
|
89
|
+
font-size: map.get($sizeMap, font-size);
|
|
90
|
+
line-height: map.get($sizeMap, line-height);
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
93
|
}
|
|
@@ -101,26 +105,26 @@ $background-color-transition-timing: 150ms;
|
|
|
101
105
|
bottom: 0;
|
|
102
106
|
|
|
103
107
|
&:checked + #{$root}__slider {
|
|
104
|
-
background-color:
|
|
108
|
+
background-color: variables.$primary;
|
|
105
109
|
border-color: transparent;
|
|
106
110
|
|
|
107
111
|
&::before {
|
|
108
|
-
background-color:
|
|
112
|
+
background-color: variables.$white;
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
&::after {
|
|
112
|
-
border-color:
|
|
116
|
+
border-color: variables.$primary-light;
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
&:hover:not(:checked):not(:disabled) + #{$root}__slider {
|
|
117
121
|
&::before {
|
|
118
|
-
background-color:
|
|
122
|
+
background-color: variables.$gray-dark;
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
&:checked:hover + #{$root}__slider {
|
|
123
|
-
background-color:
|
|
127
|
+
background-color: variables.$primary-dark;
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
&:focus:not(:active) + #{$root}__slider {
|
|
@@ -134,7 +138,7 @@ $background-color-transition-timing: 150ms;
|
|
|
134
138
|
}
|
|
135
139
|
|
|
136
140
|
&:disabled ~ #{$root}__label {
|
|
137
|
-
color:
|
|
141
|
+
color: variables.$gray;
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
&:disabled + #{$root}__slider {
|
|
@@ -151,7 +155,7 @@ $background-color-transition-timing: 150ms;
|
|
|
151
155
|
height: 100%;
|
|
152
156
|
position: relative;
|
|
153
157
|
display: inline-block;
|
|
154
|
-
border: 1px solid
|
|
158
|
+
border: 1px solid variables.$gray;
|
|
155
159
|
border-radius: 200px;
|
|
156
160
|
transition: background-color $background-color-transition-timing ease-in-out;
|
|
157
161
|
|
|
@@ -166,7 +170,7 @@ $background-color-transition-timing: 150ms;
|
|
|
166
170
|
height: calc(100% + 2px);
|
|
167
171
|
width: calc(100% + 2px);
|
|
168
172
|
border-radius: inherit;
|
|
169
|
-
border: 4px solid
|
|
173
|
+
border: 4px solid variables.$gray;
|
|
170
174
|
transform: translateX(-5px) translateY(-5px);
|
|
171
175
|
opacity: 0;
|
|
172
176
|
pointer-events: none;
|
|
@@ -177,13 +181,13 @@ $background-color-transition-timing: 150ms;
|
|
|
177
181
|
content: "";
|
|
178
182
|
display: inline-block;
|
|
179
183
|
top: 50%;
|
|
180
|
-
border-radius:
|
|
181
|
-
background-color:
|
|
184
|
+
border-radius: variables.$radius-circle;
|
|
185
|
+
background-color: variables.$gray;
|
|
182
186
|
transition: transform 100ms ease-in-out, background-color $background-color-transition-timing ease-in-out;
|
|
183
187
|
}
|
|
184
188
|
}
|
|
185
189
|
|
|
186
190
|
&__label {
|
|
187
|
-
color:
|
|
191
|
+
color: variables.$text-color;
|
|
188
192
|
}
|
|
189
193
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--text-field-disabled-clear-color: #e5e9eb;
|
|
3
5
|
--text-field-active-clear-color: #323232;
|
|
4
6
|
--text-field-background-color: #ffffff;
|
|
5
|
-
--text-field-border-color:
|
|
7
|
+
--text-field-border-color:
|
|
8
|
+
;
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
html[data-theme="dark"] {
|
|
@@ -19,11 +22,11 @@ $text-field-active-clear-color: var(--text-field-active-clear-color);
|
|
|
19
22
|
$root: &;
|
|
20
23
|
|
|
21
24
|
position: relative;
|
|
22
|
-
font-family:
|
|
25
|
+
font-family: variables.$font-family-nunito;
|
|
23
26
|
|
|
24
27
|
&_hasErrors {
|
|
25
28
|
#{$root}__textarea {
|
|
26
|
-
border-color:
|
|
29
|
+
border-color: variables.$danger;
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
|
|
@@ -41,7 +44,7 @@ $text-field-active-clear-color: var(--text-field-active-clear-color);
|
|
|
41
44
|
|
|
42
45
|
svg {
|
|
43
46
|
path {
|
|
44
|
-
stroke:
|
|
47
|
+
stroke: variables.$element-background-color-disabled;
|
|
45
48
|
stroke-width: 1.5px;
|
|
46
49
|
}
|
|
47
50
|
}
|
|
@@ -57,43 +60,43 @@ $text-field-active-clear-color: var(--text-field-active-clear-color);
|
|
|
57
60
|
min-height: 80px;
|
|
58
61
|
height: 80px;
|
|
59
62
|
|
|
60
|
-
border-radius:
|
|
61
|
-
background-color:
|
|
63
|
+
border-radius: variables.$radius-small;
|
|
64
|
+
background-color: variables.$element-field-background-color;
|
|
62
65
|
|
|
63
66
|
padding: 5px 40px 8px 8px;
|
|
64
67
|
|
|
65
|
-
font-size:
|
|
68
|
+
font-size: variables.$font-size-sm;
|
|
66
69
|
font-weight: 400;
|
|
67
70
|
line-height: 24px;
|
|
68
71
|
z-index: 2;
|
|
69
72
|
outline: none;
|
|
70
|
-
color:
|
|
71
|
-
border: 1px solid
|
|
73
|
+
color: variables.$text-color;
|
|
74
|
+
border: 1px solid variables.$element-border-color;
|
|
72
75
|
|
|
73
76
|
&::placeholder {
|
|
74
|
-
color:
|
|
77
|
+
color: variables.$element-placeholder-color;
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
&:hover {
|
|
78
|
-
border-color:
|
|
81
|
+
border-color: variables.$element-border-color-hover;
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
&:focus {
|
|
82
|
-
border: 4px solid
|
|
85
|
+
border: 4px solid variables.$primary-light;
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
&:active {
|
|
86
|
-
border: 1px solid
|
|
89
|
+
border: 1px solid variables.$primary;
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
&:disabled {
|
|
90
|
-
background-color:
|
|
93
|
+
background-color: variables.$element-background-color-disabled;
|
|
91
94
|
border: none;
|
|
92
95
|
resize: none;
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
&:disabled::placeholder {
|
|
96
|
-
color:
|
|
99
|
+
color: variables.$element-placeholder-color-disabled;
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
&:disabled + #{$root}__clear {
|
|
@@ -114,8 +117,8 @@ $text-field-active-clear-color: var(--text-field-active-clear-color);
|
|
|
114
117
|
#{$root}__textarea {
|
|
115
118
|
height: 130px;
|
|
116
119
|
min-height: 130px;
|
|
117
|
-
border-radius:
|
|
118
|
-
font-size:
|
|
120
|
+
border-radius: variables.$radius-large;
|
|
121
|
+
font-size: variables.$font-size-lg;
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
|
|
@@ -123,16 +126,16 @@ $text-field-active-clear-color: var(--text-field-active-clear-color);
|
|
|
123
126
|
#{$root}__textarea {
|
|
124
127
|
height: 100px;
|
|
125
128
|
min-height: 100px;
|
|
126
|
-
border-radius:
|
|
127
|
-
font-size:
|
|
129
|
+
border-radius: variables.$radius-large;
|
|
130
|
+
font-size: variables.$font-size-base;
|
|
128
131
|
}
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
&_sm {
|
|
132
135
|
#{$root}__textarea {
|
|
133
136
|
height: 80px;
|
|
134
|
-
border-radius:
|
|
135
|
-
font-size:
|
|
137
|
+
border-radius: variables.$radius-small;
|
|
138
|
+
font-size: variables.$font-size-sm;
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
141
|
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
|
|
1
4
|
.TimeFieldView {
|
|
2
5
|
$root: &;
|
|
3
6
|
position: relative;
|
|
4
7
|
|
|
5
|
-
@include date-default-input();
|
|
8
|
+
@include mixins.date-default-input();
|
|
6
9
|
|
|
7
|
-
@include date-default-body();
|
|
10
|
+
@include mixins.date-default-body();
|
|
8
11
|
|
|
9
|
-
@include icon-container($root);
|
|
12
|
+
@include mixins.icon-container($root);
|
|
10
13
|
|
|
11
|
-
@include date-default-sizes($root);
|
|
14
|
+
@include mixins.date-default-sizes($root);
|
|
12
15
|
|
|
13
|
-
@include date-default-effects($root);
|
|
16
|
+
@include mixins.date-default-effects($root);
|
|
14
17
|
|
|
15
18
|
&__dropdown {
|
|
16
|
-
background:
|
|
19
|
+
background: variables.$element-background-color;
|
|
17
20
|
|
|
18
|
-
@include calendar-border();
|
|
21
|
+
@include mixins.calendar-border();
|
|
19
22
|
}
|
|
20
23
|
|
|
21
|
-
@include date-time-panel($root);
|
|
24
|
+
@include mixins.date-time-panel($root);
|
|
22
25
|
|
|
23
26
|
&__panel-container {
|
|
24
27
|
|