@steroidsjs/bootstrap 3.0.0-beta.84 → 3.0.0-beta.86
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 +2 -2
- 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" as vars;
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--detail-background-color-value: $white;
|
|
3
5
|
--detail-background-color-label: var(--additional-light-blue);
|
|
@@ -12,7 +14,7 @@ $detail-background-color-value: var(--detail-background-color-value);
|
|
|
12
14
|
$detail-background-color-label: var(--detail-background-color-label);
|
|
13
15
|
|
|
14
16
|
.DetailView {
|
|
15
|
-
font-family:
|
|
17
|
+
font-family: vars.$font-family-nunito;
|
|
16
18
|
|
|
17
19
|
&__header {
|
|
18
20
|
display: flex;
|
|
@@ -22,10 +24,10 @@ $detail-background-color-label: var(--detail-background-color-label);
|
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
&__title {
|
|
25
|
-
color:
|
|
27
|
+
color: vars.$black-30;
|
|
26
28
|
font-size: 56px;
|
|
27
29
|
line-height: 56px;
|
|
28
|
-
font-weight:
|
|
30
|
+
font-weight: vars.$font-weight-lg;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
&__controls {
|
|
@@ -35,7 +37,7 @@ $detail-background-color-label: var(--detail-background-color-label);
|
|
|
35
37
|
&__table-container {
|
|
36
38
|
display: flex;
|
|
37
39
|
border-radius: 10px;
|
|
38
|
-
border: 1px solid
|
|
40
|
+
border: 1px solid vars.$gray;
|
|
39
41
|
overflow: hidden;
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -49,33 +51,33 @@ $detail-background-color-label: var(--detail-background-color-label);
|
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
&__row:not(:last-child) {
|
|
52
|
-
border-bottom: 1px solid
|
|
54
|
+
border-bottom: 1px solid vars.$gray;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
&__label,
|
|
56
58
|
&__value {
|
|
57
59
|
&:not(:last-child) {
|
|
58
|
-
border-right: 1px solid
|
|
60
|
+
border-right: 1px solid vars.$gray;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
padding: 12px;
|
|
62
64
|
|
|
63
|
-
font-weight:
|
|
64
|
-
font-size:
|
|
65
|
+
font-weight: vars.$font-weight-md;
|
|
66
|
+
font-size: vars.$font-size-sm;
|
|
65
67
|
line-height: 18px;
|
|
66
|
-
color:
|
|
68
|
+
color: vars.$text-color;
|
|
67
69
|
background-color: $detail-background-color-value;
|
|
68
70
|
text-align: start;
|
|
69
71
|
|
|
70
72
|
&_size_md {
|
|
71
73
|
padding: 16px 12px;
|
|
72
|
-
font-size:
|
|
74
|
+
font-size: vars.$font-size-base;
|
|
73
75
|
line-height: 22px;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
&_size_lg {
|
|
77
79
|
padding: 18px 12px;
|
|
78
|
-
font-size:
|
|
80
|
+
font-size: vars.$font-size-lg;
|
|
79
81
|
line-height: 24px;
|
|
80
82
|
}
|
|
81
83
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../scss/variables" as vars;
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--dropdown-background: #fff;
|
|
3
5
|
--dropdown-border: #dbe2e6;
|
|
@@ -111,7 +113,7 @@ $gap: 12px;
|
|
|
111
113
|
|
|
112
114
|
z-index: 1000;
|
|
113
115
|
position: absolute;
|
|
114
|
-
color:
|
|
116
|
+
color: vars.$text-color;
|
|
115
117
|
|
|
116
118
|
transform: translate(0, 0);
|
|
117
119
|
opacity: 0;
|
|
@@ -120,7 +122,7 @@ $gap: 12px;
|
|
|
120
122
|
z-index: 4;
|
|
121
123
|
min-width: 200px;
|
|
122
124
|
padding: 12px;
|
|
123
|
-
border-radius:
|
|
125
|
+
border-radius: vars.$radius-large;
|
|
124
126
|
background-color: $dropdown-background;
|
|
125
127
|
border: 1px solid $dropdown-border;
|
|
126
128
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../scss/variables" as vars;
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--color-menu-item: #323232;
|
|
3
5
|
--color-border: rgba(0, 0, 0, 0.1);
|
|
@@ -8,6 +10,8 @@
|
|
|
8
10
|
--color-border: rgba(255, 255, 255, 0.1);
|
|
9
11
|
}
|
|
10
12
|
|
|
13
|
+
$icon-size: 20px;
|
|
14
|
+
|
|
11
15
|
$color-menu-item: var(--color-menu-item);
|
|
12
16
|
$color-border: var(--color-border);
|
|
13
17
|
|
|
@@ -28,8 +32,8 @@
|
|
|
28
32
|
|
|
29
33
|
&__label {
|
|
30
34
|
color: $color-menu-item;
|
|
31
|
-
font-size:
|
|
32
|
-
line-height:
|
|
35
|
+
font-size: vars.$font-size-xs;
|
|
36
|
+
line-height: vars.$line-height-xs;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
&__icon {
|
|
@@ -54,7 +58,7 @@
|
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
&:hover {
|
|
57
|
-
background-color:
|
|
61
|
+
background-color: vars.$gray;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
&_hasBorder{
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
@use "../../scss/variables" as vars;
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--color-icon: #323232;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html[data-theme="dark"] {
|
|
6
8
|
--color-icon: #ffffff;
|
|
7
|
-
|
|
9
|
+
}
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
$color-icon: var(--color-icon);
|
|
10
12
|
|
|
11
13
|
.MenuView {
|
|
12
14
|
width: 248px;
|
|
13
15
|
padding: 0;
|
|
14
16
|
border: none;
|
|
15
17
|
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
16
|
-
|
|
17
|
-
&::before,
|
|
18
|
+
|
|
19
|
+
&::before,
|
|
20
|
+
&::after {
|
|
18
21
|
content: none;
|
|
19
22
|
}
|
|
20
23
|
|
|
@@ -25,19 +28,19 @@
|
|
|
25
28
|
|
|
26
29
|
&__icon {
|
|
27
30
|
display: inline-flex;
|
|
28
|
-
|
|
31
|
+
|
|
29
32
|
svg {
|
|
30
33
|
stroke: $color-icon;
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
34
|
+
width: vars.$icon-size-lg;
|
|
35
|
+
height: vars.$icon-size-lg;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
svg rect {
|
|
36
|
-
|
|
39
|
+
fill: $color-icon;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
svg > * {
|
|
40
|
-
stroke:inherit;
|
|
43
|
+
stroke: inherit;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
}
|
|
46
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../../scss/variables" as vars;
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
|
|
1
4
|
:root {
|
|
2
5
|
--autocomplete-hover-color: #f1f5f7;
|
|
3
6
|
--autocomplete-selected-color: #dbe2e6;
|
|
@@ -21,9 +24,9 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
21
24
|
|
|
22
25
|
&__input {
|
|
23
26
|
width: 100%;
|
|
24
|
-
border: 1px solid
|
|
25
|
-
background-color:
|
|
26
|
-
color:
|
|
27
|
+
border: 1px solid vars.$element-border-color;
|
|
28
|
+
background-color: vars.$element-field-background-color;
|
|
29
|
+
color: vars.$text-color;
|
|
27
30
|
transition: border-color 150ms ease-in-out;
|
|
28
31
|
font-size: inherit;
|
|
29
32
|
line-height: inherit;
|
|
@@ -31,7 +34,7 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
31
34
|
|
|
32
35
|
&_opened {
|
|
33
36
|
#{$root}__input {
|
|
34
|
-
border-color:
|
|
37
|
+
border-color: vars.$primary;
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -42,26 +45,26 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
42
45
|
position: absolute;
|
|
43
46
|
z-index: 9999;
|
|
44
47
|
margin-top: 8px;
|
|
45
|
-
border-radius:
|
|
46
|
-
background-color:
|
|
47
|
-
border: 1px solid
|
|
48
|
+
border-radius: vars.$radius-large;
|
|
49
|
+
background-color: vars.$element-background-color;
|
|
50
|
+
border: 1px solid vars.$element-border-color;
|
|
48
51
|
overflow: hidden;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
&__list {
|
|
52
55
|
display: flex;
|
|
53
56
|
flex-flow: column nowrap;
|
|
54
|
-
@include scrollWrapper(240px, 0,
|
|
57
|
+
@include mixins.scrollWrapper(240px, 0, vars.$scroll-thumb-color, vars.$scroll-track-color);
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
&__item {
|
|
58
61
|
width: 100%;
|
|
59
|
-
background-color:
|
|
62
|
+
background-color: vars.$element-background-color;
|
|
60
63
|
outline: none;
|
|
61
64
|
border: none;
|
|
62
65
|
text-align: left;
|
|
63
66
|
|
|
64
|
-
color:
|
|
67
|
+
color: vars.$text-color;
|
|
65
68
|
cursor: pointer;
|
|
66
69
|
|
|
67
70
|
font-size: inherit;
|
|
@@ -102,13 +105,13 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
&__category {
|
|
105
|
-
background-color:
|
|
108
|
+
background-color: vars.$element-background-color;
|
|
106
109
|
width: 100%;
|
|
107
110
|
|
|
108
111
|
&__label {
|
|
109
112
|
display: block;
|
|
110
113
|
padding: 12px 8px;
|
|
111
|
-
color:
|
|
114
|
+
color: vars.$element-placeholder-color;
|
|
112
115
|
}
|
|
113
116
|
&__content {
|
|
114
117
|
width: 100%;
|
|
@@ -120,23 +123,23 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
120
123
|
}
|
|
121
124
|
|
|
122
125
|
&__nothing {
|
|
123
|
-
color:
|
|
126
|
+
color: vars.$element-placeholder-color;
|
|
124
127
|
width: 100%;
|
|
125
128
|
margin-bottom: 48px;
|
|
126
129
|
padding: 8px 12px;
|
|
127
|
-
font-size:
|
|
128
|
-
line-height:
|
|
130
|
+
font-size: vars.$font-size-xs;
|
|
131
|
+
line-height: vars.$line-height-xs;
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
&_size {
|
|
132
135
|
&_lg {
|
|
133
|
-
font-size:
|
|
134
|
-
line-height:
|
|
136
|
+
font-size: vars.$font-size-lg;
|
|
137
|
+
line-height: vars.$line-height-lg;
|
|
135
138
|
|
|
136
139
|
#{$root}__input {
|
|
137
140
|
padding: 16px 8px;
|
|
138
|
-
height:
|
|
139
|
-
border-radius:
|
|
141
|
+
height: vars.$input-height-lg;
|
|
142
|
+
border-radius: vars.$radius-large;
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
#{$root}__item {
|
|
@@ -150,20 +153,20 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
150
153
|
|
|
151
154
|
|
|
152
155
|
&__label {
|
|
153
|
-
font-size:
|
|
154
|
-
line-height:
|
|
156
|
+
font-size: vars.$font-size-base;
|
|
157
|
+
line-height: vars.$line-height-base;
|
|
155
158
|
}
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
161
|
|
|
159
162
|
&_md {
|
|
160
|
-
font-size:
|
|
161
|
-
line-height:
|
|
163
|
+
font-size: vars.$font-size-base;
|
|
164
|
+
line-height: vars.$line-height-lg;
|
|
162
165
|
|
|
163
166
|
#{$root}__input {
|
|
164
167
|
padding: 11px 8px;
|
|
165
|
-
height:
|
|
166
|
-
border-radius:
|
|
168
|
+
height: vars.$input-height-md;
|
|
169
|
+
border-radius: vars.$radius-large;
|
|
167
170
|
}
|
|
168
171
|
|
|
169
172
|
#{$root}__item {
|
|
@@ -176,20 +179,20 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
&__label {
|
|
179
|
-
font-size:
|
|
180
|
-
line-height:
|
|
182
|
+
font-size: vars.$font-size-sm;
|
|
183
|
+
line-height: vars.$line-height-sm;
|
|
181
184
|
}
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
&_sm {
|
|
186
|
-
font-size:
|
|
187
|
-
line-height:
|
|
189
|
+
font-size: vars.$font-size-sm;
|
|
190
|
+
line-height: vars.$line-height-lg;
|
|
188
191
|
|
|
189
192
|
#{$root}__input {
|
|
190
193
|
padding: 5px 8px;
|
|
191
|
-
height:
|
|
192
|
-
border-radius:
|
|
194
|
+
height: vars.$input-height-sm;
|
|
195
|
+
border-radius: vars.$radius-small;
|
|
193
196
|
}
|
|
194
197
|
|
|
195
198
|
#{$root}__item {
|
|
@@ -202,8 +205,8 @@ $autocomplete-icon-color: var(--autocomplete-icon-color);
|
|
|
202
205
|
}
|
|
203
206
|
|
|
204
207
|
&__label {
|
|
205
|
-
font-size:
|
|
206
|
-
line-height:
|
|
208
|
+
font-size: vars.$font-size-xs;
|
|
209
|
+
line-height: vars.$line-height-xs;
|
|
207
210
|
}
|
|
208
211
|
}
|
|
209
212
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../../scss/variables" as vars;
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
|
|
1
4
|
$btn-font-weight-sm: 400;
|
|
2
5
|
$btn-font-weight-lg: 800;
|
|
3
6
|
$btn-line-height: 24px;
|
|
@@ -7,7 +10,7 @@ $btn-letter-spacing: 0.1em;
|
|
|
7
10
|
$root: &;
|
|
8
11
|
|
|
9
12
|
transition-property: color, background-color, border-color, box-shadow;
|
|
10
|
-
transition-duration:
|
|
13
|
+
transition-duration: vars.$transition-duration;
|
|
11
14
|
transition-timing-function: ease-in-out;
|
|
12
15
|
|
|
13
16
|
display: flex;
|
|
@@ -18,7 +21,7 @@ $btn-letter-spacing: 0.1em;
|
|
|
18
21
|
|
|
19
22
|
&_button {
|
|
20
23
|
position: relative;
|
|
21
|
-
border-radius:
|
|
24
|
+
border-radius: vars.$radius-small;
|
|
22
25
|
user-select: none;
|
|
23
26
|
border: 3px solid transparent;
|
|
24
27
|
|
|
@@ -27,22 +30,21 @@ $btn-letter-spacing: 0.1em;
|
|
|
27
30
|
justify-content: center;
|
|
28
31
|
align-items: center;
|
|
29
32
|
|
|
30
|
-
font-family: $font-family-nunito;
|
|
31
33
|
font-weight: $btn-font-weight-sm;
|
|
32
|
-
font-size:
|
|
34
|
+
font-size: vars.$font-size-sm;
|
|
33
35
|
line-height: $btn-line-height;
|
|
34
36
|
outline: none;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
@each $colorName, $colorMap in
|
|
39
|
+
@each $colorName, $colorMap in vars.$color-themes {
|
|
38
40
|
&_color_#{$colorName} {
|
|
39
|
-
@include button-theme($colorMap, $colorName, $root);
|
|
41
|
+
@include mixins.button-theme($colorMap, $colorName, $root);
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
@each $colorName, $colorMap in
|
|
45
|
+
@each $colorName, $colorMap in vars.$color-themes {
|
|
44
46
|
&_outline_#{$colorName} {
|
|
45
|
-
@include button-outline-theme($colorMap, $colorName, $root);
|
|
47
|
+
@include mixins.button-outline-theme($colorMap, $colorName, $root);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -80,18 +82,18 @@ $btn-letter-spacing: 0.1em;
|
|
|
80
82
|
&_size {
|
|
81
83
|
&_sm {
|
|
82
84
|
height: 34px;
|
|
83
|
-
font-size:
|
|
84
|
-
border-radius:
|
|
85
|
+
font-size: vars.$font-size-sm;
|
|
86
|
+
border-radius: vars.$radius-small;
|
|
85
87
|
}
|
|
86
88
|
&_md {
|
|
87
89
|
height: 46px;
|
|
88
|
-
font-size:
|
|
89
|
-
border-radius:
|
|
90
|
+
font-size: vars.$font-size-base;
|
|
91
|
+
border-radius: vars.$radius-large;
|
|
90
92
|
}
|
|
91
93
|
&_lg {
|
|
92
94
|
height: 56px;
|
|
93
|
-
font-size:
|
|
94
|
-
border-radius:
|
|
95
|
+
font-size: vars.$font-size-lg;
|
|
96
|
+
border-radius: vars.$radius-large;
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
|
|
@@ -116,12 +118,12 @@ $btn-letter-spacing: 0.1em;
|
|
|
116
118
|
align-items: center;
|
|
117
119
|
|
|
118
120
|
#{$root}__text {
|
|
119
|
-
color:
|
|
121
|
+
color: vars.$link-color;
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
&:hover {
|
|
123
125
|
#{$root}__text {
|
|
124
|
-
color:
|
|
126
|
+
color: vars.$link-color-hover;
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
}
|
|
@@ -138,8 +140,8 @@ $btn-letter-spacing: 0.1em;
|
|
|
138
140
|
&_failed {
|
|
139
141
|
&,
|
|
140
142
|
&:hover {
|
|
141
|
-
border-color:
|
|
142
|
-
box-shadow: 0 0 1rem rgba(
|
|
143
|
+
border-color: vars.$danger;
|
|
144
|
+
box-shadow: 0 0 1rem rgba(vars.$danger, 0.2);
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
|
|
@@ -158,18 +160,18 @@ $btn-letter-spacing: 0.1em;
|
|
|
158
160
|
position: relative;
|
|
159
161
|
top: -1px;
|
|
160
162
|
margin-left: 4px;
|
|
161
|
-
border-radius:
|
|
162
|
-
font-size:
|
|
163
|
+
border-radius: vars.$radius-small;
|
|
164
|
+
font-size: vars.$font-size-xs;
|
|
163
165
|
line-height: 16px;
|
|
164
166
|
padding: 3px 5px;
|
|
165
167
|
|
|
166
168
|
$badge-types: (
|
|
167
|
-
"primary":
|
|
168
|
-
"secondary":
|
|
169
|
-
"success":
|
|
170
|
-
"danger":
|
|
171
|
-
"warning":
|
|
172
|
-
"info":
|
|
169
|
+
"primary": vars.$primary,
|
|
170
|
+
"secondary": vars.$secondary,
|
|
171
|
+
"success": vars.$success,
|
|
172
|
+
"danger": vars.$danger,
|
|
173
|
+
"warning": vars.$warning,
|
|
174
|
+
"info": vars.$info,
|
|
173
175
|
);
|
|
174
176
|
|
|
175
177
|
@each $type, $color in $badge-types {
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
@use "../../scss/variables" as vars;
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--disabled-text-color: rgba(0, 0, 0, 0.3);
|
|
3
|
-
|
|
5
|
+
}
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
html[data-theme="dark"] {
|
|
6
8
|
--disabled-text-color: rgba(255, 255, 255, 0.3);
|
|
7
|
-
|
|
9
|
+
}
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
$disabled-text-color: var(--disabled-text-color);
|
|
10
12
|
|
|
11
13
|
.CheckboxFieldView {
|
|
12
14
|
$root: &;
|
|
13
15
|
|
|
14
16
|
display: inline-flex;
|
|
15
17
|
|
|
16
|
-
font-family:
|
|
18
|
+
font-family: vars.$font-family-nunito;
|
|
17
19
|
|
|
18
20
|
&__input + &__label {
|
|
19
21
|
display: inline-flex;
|
|
@@ -34,8 +36,8 @@
|
|
|
34
36
|
flex-shrink: 0;
|
|
35
37
|
flex-grow: 0;
|
|
36
38
|
|
|
37
|
-
border: 1px solid
|
|
38
|
-
border-radius:
|
|
39
|
+
border: 1px solid vars.$gray;
|
|
40
|
+
border-radius: vars.$radius-small;
|
|
39
41
|
|
|
40
42
|
background-repeat: no-repeat;
|
|
41
43
|
background-position: center center;
|
|
@@ -56,15 +58,15 @@
|
|
|
56
58
|
transition: opacity 150ms ease-in-out;
|
|
57
59
|
opacity: 0;
|
|
58
60
|
|
|
59
|
-
border-radius:
|
|
60
|
-
border: 4px solid
|
|
61
|
+
border-radius: vars.$radius-large;
|
|
62
|
+
border: 4px solid vars.$primary-light;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
&-text {
|
|
64
66
|
margin-left: 8px;
|
|
65
|
-
color:
|
|
66
|
-
font-size:
|
|
67
|
-
font-weight:
|
|
67
|
+
color: vars.$text-color;
|
|
68
|
+
font-size: vars.$font-size-sm;
|
|
69
|
+
font-weight: vars.$font-weight-md;
|
|
68
70
|
transform: translateY(1px);
|
|
69
71
|
}
|
|
70
72
|
}
|
|
@@ -81,7 +83,7 @@
|
|
|
81
83
|
|
|
82
84
|
//ACTIVE
|
|
83
85
|
&:not(:disabled):not(:checked):active + #{$root}__label::before {
|
|
84
|
-
border-color:
|
|
86
|
+
border-color: vars.$primary;
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
&:active:checked + #{$root}__label::after {
|
|
@@ -89,7 +91,7 @@
|
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
&:checked:active + #{$root}__label::before {
|
|
92
|
-
background-color:
|
|
94
|
+
background-color: vars.$primary-light;
|
|
93
95
|
border-color: transparent;
|
|
94
96
|
}
|
|
95
97
|
|
|
@@ -100,8 +102,8 @@
|
|
|
100
102
|
|
|
101
103
|
//CHECKED
|
|
102
104
|
&:checked + #{$root}__label::before {
|
|
103
|
-
border-color:
|
|
104
|
-
background-color:
|
|
105
|
+
border-color: vars.$primary;
|
|
106
|
+
background-color: vars.$primary;
|
|
105
107
|
background-image: url("data:image/svg+xml,%3Csvg width='11' height='8' viewBox='0 0 11 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.20898 1L3.70898 7L1.20898 4.27273' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
106
108
|
}
|
|
107
109
|
|
|
@@ -113,13 +115,13 @@
|
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
&::before {
|
|
116
|
-
background:
|
|
118
|
+
background: vars.$element-background-color-disabled;
|
|
117
119
|
border: none;
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
&:disabled:checked #{$root}__label::before {
|
|
122
|
-
background-color:
|
|
124
|
+
background-color: vars.$element-background-color-disabled;
|
|
123
125
|
border-color: none;
|
|
124
126
|
background-image: url("data:image/svg+xml,%3Csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.8584 1.48401L4.3584 7.48401L1.8584 4.75674' stroke='black' stroke-opacity='0.1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
125
127
|
}
|
|
@@ -131,17 +133,17 @@
|
|
|
131
133
|
&::before {
|
|
132
134
|
width: 24px;
|
|
133
135
|
height: 24px;
|
|
134
|
-
border-radius:
|
|
136
|
+
border-radius: vars.$radius-small;
|
|
135
137
|
}
|
|
136
138
|
&::after {
|
|
137
139
|
width: 26px;
|
|
138
140
|
height: 26px;
|
|
139
|
-
border-radius:
|
|
141
|
+
border-radius: vars.$radius-large;
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
&-text {
|
|
143
145
|
margin-left: 12px;
|
|
144
|
-
font-size:
|
|
146
|
+
font-size: vars.$font-size-lg;
|
|
145
147
|
line-height: 24px;
|
|
146
148
|
}
|
|
147
149
|
}
|
|
@@ -158,13 +160,13 @@
|
|
|
158
160
|
&::after {
|
|
159
161
|
width: 22px;
|
|
160
162
|
height: 22px;
|
|
161
|
-
border-radius:
|
|
163
|
+
border-radius: vars.$radius-medium;
|
|
162
164
|
transform: translate(-13.5%, -13.5%);
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
&-text {
|
|
166
168
|
margin-left: 8px;
|
|
167
|
-
font-size:
|
|
169
|
+
font-size: vars.$font-size-base;
|
|
168
170
|
line-height: 22px;
|
|
169
171
|
}
|
|
170
172
|
}
|
|
@@ -181,13 +183,13 @@
|
|
|
181
183
|
&::after {
|
|
182
184
|
width: 18px;
|
|
183
185
|
height: 18px;
|
|
184
|
-
border-radius:
|
|
186
|
+
border-radius: vars.$radius-medium;
|
|
185
187
|
transform: translate(-15.5%, -15.5%);
|
|
186
188
|
}
|
|
187
189
|
|
|
188
190
|
&-text {
|
|
189
191
|
margin-left: 8px;
|
|
190
|
-
font-size:
|
|
192
|
+
font-size: vars.$font-size-sm;
|
|
191
193
|
line-height: 18px;
|
|
192
194
|
}
|
|
193
195
|
}
|
|
@@ -196,10 +198,10 @@
|
|
|
196
198
|
}
|
|
197
199
|
.has-errors label {
|
|
198
200
|
&::before {
|
|
199
|
-
border-color:
|
|
201
|
+
border-color: vars.$danger;
|
|
200
202
|
}
|
|
201
203
|
|
|
202
204
|
span {
|
|
203
|
-
color:
|
|
205
|
+
color: vars.$danger;
|
|
204
206
|
}
|
|
205
207
|
}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
+
@use "../../scss/variables" as vars;
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
|
|
4
|
+
|
|
1
5
|
.DateFieldView {
|
|
2
6
|
$root: &;
|
|
3
7
|
position: relative;
|
|
4
8
|
|
|
5
|
-
@include date-default-input();
|
|
9
|
+
@include mixins.date-default-input();
|
|
6
10
|
|
|
7
|
-
@include date-default-body();
|
|
11
|
+
@include mixins.date-default-body();
|
|
8
12
|
|
|
9
|
-
@include icon-container($root);
|
|
13
|
+
@include mixins.icon-container($root);
|
|
10
14
|
|
|
11
|
-
@include date-default-sizes($root);
|
|
15
|
+
@include mixins.date-default-sizes($root);
|
|
12
16
|
|
|
13
|
-
@include date-default-effects($root);
|
|
17
|
+
@include mixins.date-default-effects($root);
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
|
|
17
21
|
&__dropdown {
|
|
18
|
-
background:
|
|
22
|
+
background: vars.$element-background-color;
|
|
19
23
|
|
|
20
|
-
@include calendar-border();
|
|
24
|
+
@include mixins.calendar-border();
|
|
21
25
|
}
|
|
22
26
|
}
|