@epam/uui 5.0.1 → 5.1.1
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/assets/styles/buttonLayout.scss +67 -67
- package/assets/styles/controlLayout.scss +28 -28
- package/assets/styles/dnd.scss +9 -9
- package/assets/styles/effects.scss +10 -10
- package/assets/styles/icons.scss +19 -19
- package/assets/styles/index.scss +8 -8
- package/assets/styles/inputs.scss +70 -70
- package/assets/styles/text-size.scss +37 -37
- package/assets/styles/typography.scss +163 -163
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +17 -3
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/DatePickerHeader.d.ts +16 -0
- package/components/datePickers/DatePickerHeader.d.ts.map +1 -0
- package/components/datePickers/RangeDatePicker.d.ts +1 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts +34 -3
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FilterNumericBody.d.ts.map +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts.map +1 -1
- package/components/filters/FilterRangeDatePickerBody.d.ts +3 -2
- package/components/filters/FilterRangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.d.ts.map +1 -1
- package/components/inputs/TextArea.d.ts +1 -2
- package/components/inputs/TextArea.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexCell.d.ts +3 -4
- package/components/layout/FlexItems/FlexCell.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenu.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts +10 -1
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/components/pickers/highlight.d.ts +8 -0
- package/components/pickers/highlight.d.ts.map +1 -0
- package/components/pickers/index.d.ts +1 -0
- package/components/pickers/index.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +2 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts +1 -0
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts +4 -2
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +4 -3
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +1 -1
- package/index.esm.js +1105 -735
- package/index.esm.js.map +1 -1
- package/index.js +1115 -739
- package/index.js.map +1 -1
- package/package.json +6 -8
- package/readme.md +4 -4
- package/stats.html +90 -1447
- package/styles.css +1316 -1299
- package/styles.css.map +1 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
@use './text-size' as *;
|
|
2
|
-
|
|
3
|
-
@mixin button-layout($size, $borderWidth) {
|
|
4
|
-
@include button-horizontal-layout($size, $borderWidth);
|
|
5
|
-
@include button-vertical-layout($size, $borderWidth);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@mixin link-button-layout($size) {
|
|
9
|
-
@include link-button-horizontal-layout($size);
|
|
10
|
-
@include button-vertical-layout($size, 0);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@mixin button-vertical-layout($size, $borderWidth) {
|
|
14
|
-
&:global(.uui-button-box) {
|
|
15
|
-
min-height: $size;
|
|
16
|
-
border-width: $borderWidth;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:global(.uui-caption) {
|
|
20
|
-
@include text-size($size, $borderWidth);
|
|
21
|
-
|
|
22
|
-
@if ($size == 42px or $size == 48px) {
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@mixin button-horizontal-layout($size, $borderWidth) {
|
|
29
|
-
min-width: $size;
|
|
30
|
-
|
|
31
|
-
@if ($size == 18px) {
|
|
32
|
-
@include button-padding(3px, 3px, $borderWidth);
|
|
33
|
-
} @else if ($size == 24px) {
|
|
34
|
-
@include button-padding(6px, 6px, $borderWidth);
|
|
35
|
-
} @else if ($size == 30px) {
|
|
36
|
-
@include button-padding(6px, 6px, $borderWidth);
|
|
37
|
-
} @else if ($size == 36px) {
|
|
38
|
-
@include button-padding(6px, 6px, $borderWidth);
|
|
39
|
-
} @else if ($size == 42px) {
|
|
40
|
-
@include button-padding(12px, 6px, $borderWidth);
|
|
41
|
-
} @else if ($size == 48px) {
|
|
42
|
-
@include button-padding(12px, 6px, $borderWidth);
|
|
43
|
-
} @else {
|
|
44
|
-
@include button-padding(6px, 6px, $borderWidth); }
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@mixin button-padding($controlPadding, $captionPadding, $borderWidth) {
|
|
48
|
-
padding-left: $controlPadding - $borderWidth;
|
|
49
|
-
padding-right: $controlPadding - $borderWidth;
|
|
50
|
-
|
|
51
|
-
:global(.uui-caption) {
|
|
52
|
-
padding-left: $captionPadding;
|
|
53
|
-
padding-right: $captionPadding;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@mixin link-button-horizontal-layout($size) {
|
|
58
|
-
min-width: $size;
|
|
59
|
-
|
|
60
|
-
&:global(.uui-has-left-icon) :global(.uui-caption) {
|
|
61
|
-
padding-left: 6px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&:global(.uui-has-right-icon) :global(.uui-caption) {
|
|
65
|
-
padding-right: 6px;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
@use './text-size' as *;
|
|
2
|
+
|
|
3
|
+
@mixin button-layout($size, $borderWidth) {
|
|
4
|
+
@include button-horizontal-layout($size, $borderWidth);
|
|
5
|
+
@include button-vertical-layout($size, $borderWidth);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@mixin link-button-layout($size) {
|
|
9
|
+
@include link-button-horizontal-layout($size);
|
|
10
|
+
@include button-vertical-layout($size, 0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin button-vertical-layout($size, $borderWidth) {
|
|
14
|
+
&:global(.uui-button-box) {
|
|
15
|
+
min-height: $size;
|
|
16
|
+
border-width: $borderWidth;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:global(.uui-caption) {
|
|
20
|
+
@include text-size($size, $borderWidth);
|
|
21
|
+
|
|
22
|
+
@if ($size == 42px or $size == 48px) {
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin button-horizontal-layout($size, $borderWidth) {
|
|
29
|
+
min-width: $size;
|
|
30
|
+
|
|
31
|
+
@if ($size == 18px) {
|
|
32
|
+
@include button-padding(3px, 3px, $borderWidth);
|
|
33
|
+
} @else if ($size == 24px) {
|
|
34
|
+
@include button-padding(6px, 6px, $borderWidth);
|
|
35
|
+
} @else if ($size == 30px) {
|
|
36
|
+
@include button-padding(6px, 6px, $borderWidth);
|
|
37
|
+
} @else if ($size == 36px) {
|
|
38
|
+
@include button-padding(6px, 6px, $borderWidth);
|
|
39
|
+
} @else if ($size == 42px) {
|
|
40
|
+
@include button-padding(12px, 6px, $borderWidth);
|
|
41
|
+
} @else if ($size == 48px) {
|
|
42
|
+
@include button-padding(12px, 6px, $borderWidth);
|
|
43
|
+
} @else {
|
|
44
|
+
@include button-padding(6px, 6px, $borderWidth); }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin button-padding($controlPadding, $captionPadding, $borderWidth) {
|
|
48
|
+
padding-left: $controlPadding - $borderWidth;
|
|
49
|
+
padding-right: $controlPadding - $borderWidth;
|
|
50
|
+
|
|
51
|
+
:global(.uui-caption) {
|
|
52
|
+
padding-left: $captionPadding;
|
|
53
|
+
padding-right: $captionPadding;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin link-button-horizontal-layout($size) {
|
|
58
|
+
min-width: $size;
|
|
59
|
+
|
|
60
|
+
&:global(.uui-has-left-icon) :global(.uui-caption) {
|
|
61
|
+
padding-left: 6px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:global(.uui-has-right-icon) :global(.uui-caption) {
|
|
65
|
+
padding-right: 6px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
@use 'text-size' as *;
|
|
2
|
-
|
|
3
|
-
@mixin control-vertical-layout($size, $borderWidth) {
|
|
4
|
-
:global(.uui-caption), :global(.uui-input) {
|
|
5
|
-
@include text-size($size, $borderWidth);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&:global(.uui-button-box), &:global(.uui-input-box) {
|
|
9
|
-
min-height: $size;
|
|
10
|
-
border-width: $borderWidth;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin control-box-layout($size, $borderWidth) {
|
|
15
|
-
min-width: $size;
|
|
16
|
-
padding-left: 5px;
|
|
17
|
-
padding-right: 5px;
|
|
18
|
-
|
|
19
|
-
:global(.uui-caption), :global(.uui-input) {
|
|
20
|
-
padding-left: 6px;
|
|
21
|
-
padding-right: 6px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:global(.uui-button-box), &:global(.uui-input-box) {
|
|
25
|
-
min-height: $size;
|
|
26
|
-
border-width: $borderWidth;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
@use 'text-size' as *;
|
|
2
|
+
|
|
3
|
+
@mixin control-vertical-layout($size, $borderWidth) {
|
|
4
|
+
:global(.uui-caption), :global(.uui-input) {
|
|
5
|
+
@include text-size($size, $borderWidth);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:global(.uui-button-box), &:global(.uui-input-box) {
|
|
9
|
+
min-height: $size;
|
|
10
|
+
border-width: $borderWidth;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin control-box-layout($size, $borderWidth) {
|
|
15
|
+
min-width: $size;
|
|
16
|
+
padding-left: 5px;
|
|
17
|
+
padding-right: 5px;
|
|
18
|
+
|
|
19
|
+
:global(.uui-caption), :global(.uui-input) {
|
|
20
|
+
padding-left: 6px;
|
|
21
|
+
padding-right: 6px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:global(.uui-button-box), &:global(.uui-input-box) {
|
|
25
|
+
min-height: $size;
|
|
26
|
+
border-width: $borderWidth;
|
|
27
|
+
}
|
|
28
|
+
}
|
package/assets/styles/dnd.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@mixin dnd-cursor-style {
|
|
2
|
-
&:hover {
|
|
3
|
-
cursor: grab;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
&:active {
|
|
7
|
-
cursor: grabbing;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
@mixin dnd-cursor-style {
|
|
2
|
+
&:hover {
|
|
3
|
+
cursor: grab;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&:active {
|
|
7
|
+
cursor: grabbing;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@mixin panel-shadow() { box-shadow: var(--uui-panel-shadow); }
|
|
2
|
-
|
|
3
|
-
@mixin panel-top-shadow() { box-shadow: inset 0 10px 5px -10px rgba(51, 51, 51, 0.2); }
|
|
4
|
-
|
|
5
|
-
//@mixin button-focus-shadow() { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); } // TODO: design?
|
|
6
|
-
|
|
7
|
-
@mixin dnd-ghost-shadow() { box-shadow: 0 6px 18px 0 rgba(29, 30, 38, 0.05), 0 3px 12px 0 rgba(29, 30, 38, 0.05); }
|
|
8
|
-
|
|
9
|
-
//@mixin control-focus-effect($name) { box-shadow: 0 0 0 2px fade-out($name, 0.6); } // TODO: design?
|
|
10
|
-
@mixin control-focus-effect() { box-shadow: 0 0 0 2px rgba(0, 137 , 204, 0.4); }
|
|
1
|
+
@mixin panel-shadow() { box-shadow: var(--uui-panel-shadow); }
|
|
2
|
+
|
|
3
|
+
@mixin panel-top-shadow() { box-shadow: inset 0 10px 5px -10px rgba(51, 51, 51, 0.2); }
|
|
4
|
+
|
|
5
|
+
//@mixin button-focus-shadow() { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); } // TODO: design?
|
|
6
|
+
|
|
7
|
+
@mixin dnd-ghost-shadow() { box-shadow: 0 6px 18px 0 rgba(29, 30, 38, 0.05), 0 3px 12px 0 rgba(29, 30, 38, 0.05); }
|
|
8
|
+
|
|
9
|
+
//@mixin control-focus-effect($name) { box-shadow: 0 0 0 2px fade-out($name, 0.6); } // TODO: design?
|
|
10
|
+
@mixin control-focus-effect() { box-shadow: 0 0 0 2px rgba(0, 137 , 204, 0.4); }
|
package/assets/styles/icons.scss
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@use 'sass:math';
|
|
2
|
-
|
|
3
|
-
@mixin icon-layout($size) {
|
|
4
|
-
:global(.uui-icon) {
|
|
5
|
-
svg {
|
|
6
|
-
height: math.div($size, 36) * 24;
|
|
7
|
-
max-width: math.div($size, 36) * 24;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin icon-size($size) {
|
|
13
|
-
:global(.uui-icon) {
|
|
14
|
-
svg {
|
|
15
|
-
height: $size;
|
|
16
|
-
max-width: $size;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
@mixin icon-layout($size) {
|
|
4
|
+
:global(.uui-icon) {
|
|
5
|
+
svg {
|
|
6
|
+
height: math.div($size, 36) * 24;
|
|
7
|
+
max-width: math.div($size, 36) * 24;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin icon-size($size) {
|
|
13
|
+
:global(.uui-icon) {
|
|
14
|
+
svg {
|
|
15
|
+
height: $size;
|
|
16
|
+
max-width: $size;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
package/assets/styles/index.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@forward 'buttonLayout';
|
|
2
|
-
@forward 'controlLayout';
|
|
3
|
-
@forward 'effects';
|
|
4
|
-
@forward 'icons';
|
|
5
|
-
@forward 'inputs';
|
|
6
|
-
@forward 'text-size';
|
|
7
|
-
@forward 'typography';
|
|
8
|
-
@forward 'dnd';
|
|
1
|
+
@forward 'buttonLayout';
|
|
2
|
+
@forward 'controlLayout';
|
|
3
|
+
@forward 'effects';
|
|
4
|
+
@forward 'icons';
|
|
5
|
+
@forward 'inputs';
|
|
6
|
+
@forward 'text-size';
|
|
7
|
+
@forward 'typography';
|
|
8
|
+
@forward 'dnd';
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
@mixin disabled-input() {
|
|
2
|
-
&.mode-form {
|
|
3
|
-
@include input-colors(var(--uui-control-bg-disabled), var(--uui-control-text-disabled), var(--uui-control-border-disabled));
|
|
4
|
-
cursor: default;
|
|
5
|
-
pointer-events: none;
|
|
6
|
-
|
|
7
|
-
&:hover, &:active, &:focus {
|
|
8
|
-
@include input-colors(var(--uui-control-bg-disabled), var(--uui-control-text-disabled), var(--uui-control-border-disabled));
|
|
9
|
-
box-shadow: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&::placeholder {
|
|
13
|
-
color: var(--uui-control-placeholder-disabled);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.mode-cell {
|
|
18
|
-
@include input-colors(transparent, var(--uui-control-text-disabled), transparent);
|
|
19
|
-
cursor: default;
|
|
20
|
-
pointer-events: none;
|
|
21
|
-
|
|
22
|
-
&:hover, &:active, &:focus {
|
|
23
|
-
@include input-colors(transparent, var(--uui-control-text-disabled), transparent);
|
|
24
|
-
box-shadow: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&::placeholder {
|
|
28
|
-
color: var(--uui-control-placeholder-disabled);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@mixin readonly-input() {
|
|
34
|
-
&.mode-form {
|
|
35
|
-
background-color: var(--uui-control-bg-readonly);
|
|
36
|
-
border-color: var(--uui-control-border-readonly);
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
border-color: var(--uui-control-border-readonly);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.mode-cell {
|
|
45
|
-
background-color: transparent;
|
|
46
|
-
border-color: transparent;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
|
|
49
|
-
&:hover {
|
|
50
|
-
background-color: transparent;
|
|
51
|
-
border-color: transparent;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@mixin input-colors($bg, $fg, $brd) {
|
|
57
|
-
background-color: $bg;
|
|
58
|
-
color: $fg;
|
|
59
|
-
fill: $fg;
|
|
60
|
-
border-color: $brd;
|
|
61
|
-
|
|
62
|
-
// override more selective selector on input tag in browsers stylesheets
|
|
63
|
-
:global(.uui-input) {
|
|
64
|
-
color: $fg;
|
|
65
|
-
|
|
66
|
-
&::placeholder {
|
|
67
|
-
color: var(--uui-control-placeholder-disabled);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
1
|
+
@mixin disabled-input() {
|
|
2
|
+
&.mode-form {
|
|
3
|
+
@include input-colors(var(--uui-control-bg-disabled), var(--uui-control-text-disabled), var(--uui-control-border-disabled));
|
|
4
|
+
cursor: default;
|
|
5
|
+
pointer-events: none;
|
|
6
|
+
|
|
7
|
+
&:hover, &:active, &:focus {
|
|
8
|
+
@include input-colors(var(--uui-control-bg-disabled), var(--uui-control-text-disabled), var(--uui-control-border-disabled));
|
|
9
|
+
box-shadow: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&::placeholder {
|
|
13
|
+
color: var(--uui-control-placeholder-disabled);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.mode-cell {
|
|
18
|
+
@include input-colors(transparent, var(--uui-control-text-disabled), transparent);
|
|
19
|
+
cursor: default;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
|
|
22
|
+
&:hover, &:active, &:focus {
|
|
23
|
+
@include input-colors(transparent, var(--uui-control-text-disabled), transparent);
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&::placeholder {
|
|
28
|
+
color: var(--uui-control-placeholder-disabled);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin readonly-input() {
|
|
34
|
+
&.mode-form {
|
|
35
|
+
background-color: var(--uui-control-bg-readonly);
|
|
36
|
+
border-color: var(--uui-control-border-readonly);
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
|
|
39
|
+
&:hover {
|
|
40
|
+
border-color: var(--uui-control-border-readonly);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.mode-cell {
|
|
45
|
+
background-color: transparent;
|
|
46
|
+
border-color: transparent;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
border-color: transparent;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@mixin input-colors($bg, $fg, $brd) {
|
|
57
|
+
background-color: $bg;
|
|
58
|
+
color: $fg;
|
|
59
|
+
fill: $fg;
|
|
60
|
+
border-color: $brd;
|
|
61
|
+
|
|
62
|
+
// override more selective selector on input tag in browsers stylesheets
|
|
63
|
+
:global(.uui-input) {
|
|
64
|
+
color: $fg;
|
|
65
|
+
|
|
66
|
+
&::placeholder {
|
|
67
|
+
color: var(--uui-control-placeholder-disabled);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
@function vpadding($size, $border-width) {
|
|
2
|
-
@if ($size == 18px or $size == 24px) {
|
|
3
|
-
@return (3px - $border-width);
|
|
4
|
-
} @else if ($size == 30px) {
|
|
5
|
-
@return (6px - $border-width);
|
|
6
|
-
} @else if ($size == 36px or $size == 42px) {
|
|
7
|
-
@return (9px - $border-width);
|
|
8
|
-
} @else if ($size == 48px) {
|
|
9
|
-
@return (12px - $border-width);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@return (null);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin text-size($size, $border-width: 0) {
|
|
16
|
-
@if ($size == 18px) {
|
|
17
|
-
line-height: 12px;
|
|
18
|
-
font-size: 10px;
|
|
19
|
-
} @else if ($size == 24px) {
|
|
20
|
-
line-height: 18px;
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
} @else if ($size == 30px) {
|
|
23
|
-
line-height: 18px;
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
} @else if ($size == 36px) {
|
|
26
|
-
line-height: 18px;
|
|
27
|
-
font-size: 14px;
|
|
28
|
-
} @else if ($size == 42px) {
|
|
29
|
-
line-height: 24px;
|
|
30
|
-
font-size: 16px;
|
|
31
|
-
} @else if ($size == 48px) {
|
|
32
|
-
line-height: 24px;
|
|
33
|
-
font-size: 16px;
|
|
34
|
-
}
|
|
35
|
-
padding-top: vpadding($size, $border-width);
|
|
36
|
-
padding-bottom: vpadding($size, $border-width);
|
|
37
|
-
}
|
|
1
|
+
@function vpadding($size, $border-width) {
|
|
2
|
+
@if ($size == 18px or $size == 24px) {
|
|
3
|
+
@return (3px - $border-width);
|
|
4
|
+
} @else if ($size == 30px) {
|
|
5
|
+
@return (6px - $border-width);
|
|
6
|
+
} @else if ($size == 36px or $size == 42px) {
|
|
7
|
+
@return (9px - $border-width);
|
|
8
|
+
} @else if ($size == 48px) {
|
|
9
|
+
@return (12px - $border-width);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@return (null);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin text-size($size, $border-width: 0) {
|
|
16
|
+
@if ($size == 18px) {
|
|
17
|
+
line-height: 12px;
|
|
18
|
+
font-size: 10px;
|
|
19
|
+
} @else if ($size == 24px) {
|
|
20
|
+
line-height: 18px;
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
} @else if ($size == 30px) {
|
|
23
|
+
line-height: 18px;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
} @else if ($size == 36px) {
|
|
26
|
+
line-height: 18px;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
} @else if ($size == 42px) {
|
|
29
|
+
line-height: 24px;
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
} @else if ($size == 48px) {
|
|
32
|
+
line-height: 24px;
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
}
|
|
35
|
+
padding-top: vpadding($size, $border-width);
|
|
36
|
+
padding-bottom: vpadding($size, $border-width);
|
|
37
|
+
}
|