@itwin/imodel-components-react 5.0.0-dev.2 → 5.0.0-dev.3
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/lib/cjs/imodel-components-react/color/AlphaSlider.scss +71 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +88 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.scss +62 -0
- package/lib/cjs/imodel-components-react/color/HueSlider.scss +78 -0
- package/lib/cjs/imodel-components-react/color/SaturationPicker.scss +36 -0
- package/lib/cjs/imodel-components-react/color/Swatch.scss +22 -0
- package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +16 -0
- package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +14 -0
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +106 -0
- package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +46 -0
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +50 -0
- package/lib/cjs/imodel-components-react/navigationaids/Cube.scss +19 -0
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +177 -0
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +133 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +53 -0
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +22 -0
- package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +105 -0
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +43 -0
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.scss +38 -0
- package/lib/cjs/imodel-components-react/timeline/Timeline.scss +163 -0
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.scss +48 -0
- package/lib/esm/imodel-components-react/color/AlphaSlider.scss +71 -0
- package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +88 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +62 -0
- package/lib/esm/imodel-components-react/color/HueSlider.scss +78 -0
- package/lib/esm/imodel-components-react/color/SaturationPicker.scss +36 -0
- package/lib/esm/imodel-components-react/color/Swatch.scss +22 -0
- package/lib/esm/imodel-components-react/editors/ColorEditor.scss +16 -0
- package/lib/esm/imodel-components-react/editors/WeightEditor.scss +14 -0
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +106 -0
- package/lib/esm/imodel-components-react/lineweight/Swatch.scss +46 -0
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +50 -0
- package/lib/esm/imodel-components-react/navigationaids/Cube.scss +19 -0
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +177 -0
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +133 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +53 -0
- package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +22 -0
- package/lib/esm/imodel-components-react/timeline/Scrubber.scss +105 -0
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +43 -0
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +38 -0
- package/lib/esm/imodel-components-react/timeline/Timeline.scss +163 -0
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +48 -0
- package/package.json +11 -16
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
.components-alpha-pointer {
|
|
6
|
+
position: absolute;
|
|
7
|
+
width: 1.2rem;
|
|
8
|
+
height: 1.2rem;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
background-color: rgb(248, 248, 248);
|
|
11
|
+
box-shadow: rgba(0, 0, 0, 0.37) 0px 1px 4px 0px;
|
|
12
|
+
|
|
13
|
+
&:focus {
|
|
14
|
+
outline: none;
|
|
15
|
+
border: none;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.components-alpha-container-horizontal {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 1rem;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
|
|
26
|
+
.components-alpha-slider {
|
|
27
|
+
position: relative;
|
|
28
|
+
width: calc(100% - 1.2rem);
|
|
29
|
+
height: 100%;
|
|
30
|
+
background-color: linear-gradient(
|
|
31
|
+
to right,
|
|
32
|
+
rgba(47, 37, 72, 0) 0%,
|
|
33
|
+
rgb(47, 37, 72) 100%
|
|
34
|
+
);
|
|
35
|
+
background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" fill-opacity=".15"><rect x="200" width="200" height="200" /> <rect y="200" width="200" height="200" /></svg>'),
|
|
36
|
+
linear-gradient(to right, rgba(47, 37, 72, 0) 0%, rgb(47, 37, 72) 100%);
|
|
37
|
+
background-size: 2rem 1rem, cover;
|
|
38
|
+
background-repeat: repeat, no-repeat;
|
|
39
|
+
|
|
40
|
+
.components-alpha-pointer {
|
|
41
|
+
transform: translate(-0.6rem, -0.1rem);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.components-alpha-container-vertical {
|
|
47
|
+
width: 1rem;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
height: 100%;
|
|
52
|
+
|
|
53
|
+
.components-alpha-slider {
|
|
54
|
+
position: relative;
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: calc(100% - 1.2rem);
|
|
57
|
+
background-color: linear-gradient(
|
|
58
|
+
to bottom,
|
|
59
|
+
rgba(47, 37, 72, 0) 0%,
|
|
60
|
+
rgb(47, 37, 72) 100%
|
|
61
|
+
);
|
|
62
|
+
background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" fill-opacity=".15"><rect x="200" width="200" height="200" /> <rect y="200" width="200" height="200" /></svg>'),
|
|
63
|
+
linear-gradient(to top, rgba(47, 37, 72, 0) 0%, rgb(47, 37, 72) 100%);
|
|
64
|
+
background-size: 1rem 2rem, cover;
|
|
65
|
+
background-repeat: repeat, no-repeat;
|
|
66
|
+
|
|
67
|
+
.components-alpha-pointer {
|
|
68
|
+
transform: translate(-0.1rem, -0.6rem);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
button.components-colorpicker-button {
|
|
6
|
+
font-family: var(--iui-font-sans);
|
|
7
|
+
font-size: var(--iui-font-size-1);
|
|
8
|
+
color: var(--iui-color-text);
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
border: 1px solid transparent;
|
|
11
|
+
border-radius: var(--iui-border-radius-1);
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
border: none;
|
|
14
|
+
padding: 0;
|
|
15
|
+
|
|
16
|
+
> .components-colorpicker-button-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
align-items: center;
|
|
20
|
+
border-radius: var(--iui-border-radius-1);
|
|
21
|
+
|
|
22
|
+
> .components-colorpicker-button-color-swatch {
|
|
23
|
+
border: 1px solid var(--iui-color-border-foreground);
|
|
24
|
+
border-radius: var(--iui-border-radius-1);
|
|
25
|
+
width: 1.25em;
|
|
26
|
+
height: 1.25em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
> .components-caret {
|
|
30
|
+
margin-left: 0.25em;
|
|
31
|
+
margin-right: 0.25em;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:not(.readonly) {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:disabled {
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
|
|
42
|
+
> .components-colorpicker-button-container {
|
|
43
|
+
> .components-caret {
|
|
44
|
+
color: var(--iui-color-text-disabled);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.round {
|
|
50
|
+
.components-colorpicker-button-container {
|
|
51
|
+
border-bottom-left-radius: 50%;
|
|
52
|
+
border-top-left-radius: 50%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.components-colorpicker-button-color-swatch {
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.components-colorpicker-popup {
|
|
62
|
+
border: 1px solid var(--iui-color-border-foreground);
|
|
63
|
+
border-radius: 6px;
|
|
64
|
+
|
|
65
|
+
.components-colorpicker-popup-container {
|
|
66
|
+
color: var(--iui-color-text);
|
|
67
|
+
background: var(--iui-color-background);
|
|
68
|
+
border-radius: 6px;
|
|
69
|
+
|
|
70
|
+
> .components-colorpicker-popup-colors {
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-gap: 8px;
|
|
73
|
+
padding: 8px;
|
|
74
|
+
|
|
75
|
+
> .components-colorpicker-swatch {
|
|
76
|
+
height: 1.5em;
|
|
77
|
+
width: 1.5em;
|
|
78
|
+
transition: scale 0.2s ease;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
outline: none;
|
|
81
|
+
|
|
82
|
+
&:hover {
|
|
83
|
+
transform: scale(1.15);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
button.components-colorpicker-popup-button {
|
|
7
|
+
font-family: var(--iui-font-sans);
|
|
8
|
+
font-size: var(--iui-font-size-1);
|
|
9
|
+
color: var(--iui-color-text);
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
border-radius: var(--iui-border-radius-1);
|
|
13
|
+
border: none;
|
|
14
|
+
padding: 0;
|
|
15
|
+
|
|
16
|
+
&:not(.readonly) {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> .components-colorpicker-button-container {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
> .components-colorpicker-button-color-swatch {
|
|
26
|
+
border: 1px solid var(--iui-color-border);
|
|
27
|
+
border-radius: var(--iui-border-radius-1);
|
|
28
|
+
width: 1.25em;
|
|
29
|
+
height: 1.25em;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
> .components-caret {
|
|
33
|
+
margin-left: 0.25em;
|
|
34
|
+
margin-right: 0.25em;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:disabled {
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
|
|
41
|
+
> .components-colorpicker-button-container {
|
|
42
|
+
> .components-caret {
|
|
43
|
+
color: var(--iui-color-text-disabled);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.components-colorpicker-popup-panel-padding {
|
|
50
|
+
padding: 3px 6px 6px 6px;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 4px;
|
|
54
|
+
|
|
55
|
+
button.core-dialog-close {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
margin-left: auto;
|
|
58
|
+
background: transparent;
|
|
59
|
+
border: none;
|
|
60
|
+
color: var(--iui-color-text);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
.components-hue-pointer {
|
|
6
|
+
position: absolute;
|
|
7
|
+
width: 1.2em;
|
|
8
|
+
height: 1.2em;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
box-shadow: rgba(0, 0, 0, 0.37) 0px 1px 4px 0px;
|
|
11
|
+
|
|
12
|
+
&:focus {
|
|
13
|
+
outline: none;
|
|
14
|
+
border: none;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.components-hue-container-horizontal {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 0.5em;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
|
|
25
|
+
.components-hue-slider {
|
|
26
|
+
position: relative;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
border-radius: 1em;
|
|
30
|
+
background: linear-gradient(
|
|
31
|
+
to right,
|
|
32
|
+
#f00 0%,
|
|
33
|
+
#ff0 17%,
|
|
34
|
+
#0f0 33%,
|
|
35
|
+
#0ff 50%,
|
|
36
|
+
#00f 67%,
|
|
37
|
+
#f0f 83%,
|
|
38
|
+
#f00 100%
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.components-hue-pointer {
|
|
43
|
+
transform: translate(-0.6em, -0.45em);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
border: 1px solid #fff;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.components-hue-container-vertical {
|
|
50
|
+
width: 0.5em;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
height: 100%;
|
|
55
|
+
|
|
56
|
+
.components-hue-slider {
|
|
57
|
+
position: relative;
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
border-radius: 1em;
|
|
61
|
+
background: linear-gradient(
|
|
62
|
+
to top,
|
|
63
|
+
#f00 0%,
|
|
64
|
+
#ff0 17%,
|
|
65
|
+
#0f0 33%,
|
|
66
|
+
#0ff 50%,
|
|
67
|
+
#00f 67%,
|
|
68
|
+
#f0f 83%,
|
|
69
|
+
#f00 100%
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.components-hue-pointer {
|
|
74
|
+
transform: translate(-0.45em, -0.6em);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
border: 1px solid #fff;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
.components-saturation-container {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
min-width: 100px;
|
|
10
|
+
min-height: 100px;
|
|
11
|
+
|
|
12
|
+
.components-saturation-region {
|
|
13
|
+
position: relative;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
|
|
17
|
+
linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
|
|
18
|
+
background-size: cover, cover;
|
|
19
|
+
overflow: visible;
|
|
20
|
+
|
|
21
|
+
.components-saturation-pointer {
|
|
22
|
+
position: absolute;
|
|
23
|
+
width: 2em;
|
|
24
|
+
height: 2em;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
box-shadow: rgba(0, 0, 0, 0.37) 0px 4px 4px 0px;
|
|
27
|
+
border: 2px solid #fff;
|
|
28
|
+
transform: translate(-1em, -1em);
|
|
29
|
+
|
|
30
|
+
&:focus {
|
|
31
|
+
outline: none;
|
|
32
|
+
border: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
.components-color-swatch {
|
|
7
|
+
font-size: var(--iui-font-size-1);
|
|
8
|
+
height: 1em * 1.2;
|
|
9
|
+
width: 1em * 1.2;
|
|
10
|
+
border-width: 1px;
|
|
11
|
+
border-radius: var(--iui-border-radius-1);
|
|
12
|
+
border-style: solid;
|
|
13
|
+
border-color: var(--iui-color-border-subtle);
|
|
14
|
+
|
|
15
|
+
&.round {
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&[disabled] {
|
|
20
|
+
opacity: 0.2;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
$components-color-editor-item-height: 100%;
|
|
6
|
+
|
|
7
|
+
.components-color-editor {
|
|
8
|
+
font-family: var(--iui-font-sans);
|
|
9
|
+
font-size: var(--iui-font-size-1);
|
|
10
|
+
color: var(--iui-color-text);
|
|
11
|
+
border: none;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
height: $components-color-editor-item-height;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
$components-weight-editor-item-height: 100%;
|
|
6
|
+
|
|
7
|
+
.components-weight-editor {
|
|
8
|
+
font-family: var(--iui-font-sans);
|
|
9
|
+
font-size: var(--iui-font-size-1);
|
|
10
|
+
color: var(--iui-color-text);
|
|
11
|
+
border: none;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
height: $components-weight-editor-item-height;
|
|
14
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@use "~@itwin/core-react/lib/core-react/base/base" as *;
|
|
6
|
+
|
|
7
|
+
.component-quantity-number-input-container {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
position: relative;
|
|
11
|
+
padding: 0;
|
|
12
|
+
margin: 0;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
|
|
15
|
+
.component-quantity-number-input-suffix {
|
|
16
|
+
padding-left: 0.25em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.component-quantity-number-input-value-and-buttons-container {
|
|
20
|
+
position: relative;
|
|
21
|
+
padding: 0;
|
|
22
|
+
margin: 0;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
|
|
25
|
+
input {
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding-right: 1.5em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.component-number-buttons-for-touch {
|
|
31
|
+
input {
|
|
32
|
+
padding-right: 3.5em;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.component-quantity-number-input-buttons-container {
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 0;
|
|
39
|
+
right: 0;
|
|
40
|
+
width: 20px;
|
|
41
|
+
height: 100%;
|
|
42
|
+
@include uicore-centered;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
|
|
45
|
+
.component-quantity-number-input-button {
|
|
46
|
+
font-size: 8px;
|
|
47
|
+
outline: none;
|
|
48
|
+
height: 100%;
|
|
49
|
+
width: 100%;
|
|
50
|
+
@include uicore-centered;
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
color: var(--iui-color-text-accent-hover);
|
|
54
|
+
transition-duration: 150ms;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.component-quantity-number-input-button-up {
|
|
58
|
+
padding-top: 1px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.component-quantity-number-input-button-down {
|
|
62
|
+
padding-top: 1px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.component-number-buttons-for-touch {
|
|
67
|
+
width: 3.5em;
|
|
68
|
+
flex-direction: row-reverse;
|
|
69
|
+
|
|
70
|
+
.component-quantity-number-input-button {
|
|
71
|
+
font-size: 1em;
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
color: unset;
|
|
75
|
+
transition-duration: unset;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.component-quantity-number-input-button-up {
|
|
79
|
+
padding-top: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.component-quantity-number-input-button-down {
|
|
83
|
+
padding-top: 2px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.component-quantity-number-input-disabled {
|
|
91
|
+
.component-quantity-number-input-suffix {
|
|
92
|
+
-webkit-user-select: none;
|
|
93
|
+
user-select: none;
|
|
94
|
+
color: var(--iui-color-text-disabled);
|
|
95
|
+
}
|
|
96
|
+
.component-quantity-number-input-button-up {
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
color: var(--iui-color-text-disabled);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.component-quantity-number-input-button-down {
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
color: var(--iui-color-text-disabled);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
.components-lineweight-swatch {
|
|
6
|
+
font-size: var(--iui-font-size-1);
|
|
7
|
+
color: var(--iui-color-text);
|
|
8
|
+
border: none;
|
|
9
|
+
background: inherit;
|
|
10
|
+
width: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding: 3px 15px 3px 0;
|
|
15
|
+
min-height: 22px;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
// remove inner focus ring that is specific to Firefox.
|
|
19
|
+
&::-moz-focus-inner {
|
|
20
|
+
border: 0px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:focus {
|
|
24
|
+
outline: 1px solid var(--iui-color-background-accent-muted);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[disabled] {
|
|
28
|
+
opacity: 0.2;
|
|
29
|
+
cursor: default;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
> span {
|
|
33
|
+
width: 1.5em;
|
|
34
|
+
text-align: right;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
> div {
|
|
38
|
+
flex: 1;
|
|
39
|
+
background: var(--iui-color-text);
|
|
40
|
+
margin-left: 15px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.components-lineweight-swatch.hide-label > span {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
.components-weightpicker-button {
|
|
6
|
+
color: var(--iui-color-text);
|
|
7
|
+
background: var(--iui-color-background);
|
|
8
|
+
border: 1px solid var(--iui-color-border-foreground);
|
|
9
|
+
border-radius: var(--iui-border-radius-1);
|
|
10
|
+
min-width: 100px;
|
|
11
|
+
|
|
12
|
+
&:not(.readonly):not([disabled]) {
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:active,
|
|
17
|
+
&:focus {
|
|
18
|
+
box-shadow: hsl(var(--iui-color-accent-hsl) / var(--iui-opacity-4)) 0px 0px
|
|
19
|
+
0px 2px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.components-weightpicker-popup {
|
|
24
|
+
&.core-popup {
|
|
25
|
+
background: var(--iui-color-background);
|
|
26
|
+
border: 1px solid var(--iui-color-border-foreground);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.components-weightpicker-popup-container {
|
|
30
|
+
color: var(--iui-color-text);
|
|
31
|
+
background: var(--iui-color-background);
|
|
32
|
+
min-width: 60px;
|
|
33
|
+
padding: 0 4px;
|
|
34
|
+
border-radius: var(--iui-border-radius-1);
|
|
35
|
+
|
|
36
|
+
> ul {
|
|
37
|
+
padding: 4px 0;
|
|
38
|
+
list-style: none;
|
|
39
|
+
margin: 0.25rem 0;
|
|
40
|
+
|
|
41
|
+
> .components-weightpicker-swatch:hover {
|
|
42
|
+
background: var(--iui-color-background-hover);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
> .components-weightpicker-swatch.active {
|
|
46
|
+
background: var(--iui-color-background-accent-muted);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
$cube-width: 128px;
|
|
6
|
+
$cube-side-width: 12px;
|
|
7
|
+
|
|
8
|
+
.components-cube-css3d {
|
|
9
|
+
width: $cube-width;
|
|
10
|
+
height: $cube-width;
|
|
11
|
+
perspective: 300px;
|
|
12
|
+
transform-style: preserve-3d;
|
|
13
|
+
.face {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
position: absolute;
|
|
17
|
+
backface-visibility: inherit;
|
|
18
|
+
}
|
|
19
|
+
}
|