@itwin/itwinui-css 0.63.1 → 1.0.0-dev.2
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/README.md +1 -4
- package/css/alert.css +291 -173
- package/css/all.css +4355 -6315
- package/css/anchor.css +3 -7
- package/css/avatar.css +226 -0
- package/css/backdrop.css +6 -4
- package/css/badge.css +8 -8
- package/css/blockquote.css +6 -9
- package/css/breadcrumbs.css +94 -156
- package/css/button.css +258 -365
- package/css/carousel.css +20 -26
- package/css/checkbox.css +152 -0
- package/css/code.css +14 -23
- package/css/color-picker.css +36 -77
- package/css/date-picker.css +59 -147
- package/css/dialog.css +25 -29
- package/css/expandable-block.css +36 -80
- package/css/fieldset.css +7 -12
- package/css/file-upload.css +15 -44
- package/css/footer.css +11 -19
- package/css/global.css +49 -671
- package/css/header.css +324 -408
- package/css/information-panel.css +39 -47
- package/css/input.css +170 -0
- package/css/keyboard.css +6 -10
- package/css/location-marker.css +32 -29
- package/css/menu.css +41 -43
- package/css/non-ideal-state.css +12 -12
- package/css/progress-indicator.css +37 -127
- package/css/radio-tile.css +70 -88
- package/css/radio.css +159 -0
- package/css/select.css +239 -0
- package/css/side-navigation.css +33 -57
- package/css/skip-to-content.css +11 -14
- package/css/slider.css +35 -67
- package/css/stepper.css +141 -0
- package/css/surface.css +2 -3
- package/css/table.css +362 -431
- package/css/tabs.css +58 -93
- package/css/tag.css +27 -46
- package/css/text.css +24 -26
- package/css/tile.css +200 -293
- package/css/time-picker.css +16 -26
- package/css/{toast-notification.css → toast.css} +50 -90
- package/css/toggle-switch.css +33 -80
- package/css/tooltip.css +6 -9
- package/css/tree.css +25 -49
- package/css/utils.css +683 -0
- package/css/workflow-diagram.css +67 -0
- package/package.json +7 -10
- package/css/icon.css +0 -177
- package/css/inputs.css +0 -1339
- package/css/notification-marker.css +0 -293
- package/css/popover.css +0 -14
- package/css/reset-global-styles.css +0 -50
- package/css/user-icon.css +0 -246
- package/css/wizard.css +0 -190
- package/scss/alert/alert.scss +0 -83
- package/scss/alert/classes.scss +0 -13
- package/scss/alert/index.scss +0 -3
- package/scss/anchor/anchor.scss +0 -3
- package/scss/anchor/classes.scss +0 -11
- package/scss/anchor/index.scss +0 -3
- package/scss/backdrop/backdrop.scss +0 -27
- package/scss/backdrop/classes.scss +0 -7
- package/scss/backdrop/index.scss +0 -3
- package/scss/badge/badge.scss +0 -32
- package/scss/badge/classes.scss +0 -7
- package/scss/badge/index.scss +0 -3
- package/scss/blockquote/blockquote.scss +0 -31
- package/scss/blockquote/classes.scss +0 -7
- package/scss/blockquote/index.scss +0 -3
- package/scss/breadcrumbs/breadcrumbs.scss +0 -124
- package/scss/breadcrumbs/classes.scss +0 -31
- package/scss/breadcrumbs/index.scss +0 -3
- package/scss/button/borderless.scss +0 -48
- package/scss/button/button-group.scss +0 -110
- package/scss/button/button-icon.scss +0 -12
- package/scss/button/button.scss +0 -97
- package/scss/button/classes.scss +0 -70
- package/scss/button/cta.scss +0 -31
- package/scss/button/default.scss +0 -59
- package/scss/button/disabled.scss +0 -13
- package/scss/button/high-visibility.scss +0 -31
- package/scss/button/idea.scss +0 -10
- package/scss/button/index.scss +0 -12
- package/scss/button/split-menu.scss +0 -66
- package/scss/carousel/carousel.scss +0 -124
- package/scss/carousel/classes.scss +0 -15
- package/scss/carousel/index.scss +0 -3
- package/scss/classes.scss +0 -48
- package/scss/code/classes.scss +0 -11
- package/scss/code/code.scss +0 -18
- package/scss/code/codeblock.scss +0 -74
- package/scss/code/index.scss +0 -4
- package/scss/color-picker/classes.scss +0 -43
- package/scss/color-picker/color-picker.scss +0 -274
- package/scss/color-picker/index.scss +0 -3
- package/scss/date-picker/classes.scss +0 -47
- package/scss/date-picker/date-picker.scss +0 -280
- package/scss/date-picker/index.scss +0 -3
- package/scss/dialog/classes.scss +0 -48
- package/scss/dialog/dialog.scss +0 -185
- package/scss/dialog/index.scss +0 -3
- package/scss/expandable-block/block.scss +0 -193
- package/scss/expandable-block/classes.scss +0 -7
- package/scss/expandable-block/index.scss +0 -3
- package/scss/fieldset/classes.scss +0 -7
- package/scss/fieldset/fieldset.scss +0 -35
- package/scss/fieldset/index.scss +0 -3
- package/scss/file-upload/classes.scss +0 -7
- package/scss/file-upload/file-upload.scss +0 -90
- package/scss/file-upload/index.scss +0 -3
- package/scss/footer/classes.scss +0 -23
- package/scss/footer/footer.scss +0 -62
- package/scss/footer/index.scss +0 -3
- package/scss/header/classes.scss +0 -11
- package/scss/header/header.scss +0 -443
- package/scss/header/index.scss +0 -3
- package/scss/icon/classes.scss +0 -27
- package/scss/icon/index.scss +0 -4
- package/scss/icon/mixins.scss +0 -78
- package/scss/icon/variables.scss +0 -14
- package/scss/index.scss +0 -46
- package/scss/information-panel/classes.scss +0 -27
- package/scss/information-panel/index.scss +0 -3
- package/scss/information-panel/information-panel.scss +0 -233
- package/scss/inputs/checkbox-radio.scss +0 -73
- package/scss/inputs/checkbox.scss +0 -106
- package/scss/inputs/classes.scss +0 -87
- package/scss/inputs/index.scss +0 -10
- package/scss/inputs/input-with-icon.scss +0 -36
- package/scss/inputs/input.scss +0 -80
- package/scss/inputs/labeled-inputs.scss +0 -382
- package/scss/inputs/radio.scss +0 -18
- package/scss/inputs/select.scss +0 -132
- package/scss/inputs/textarea.scss +0 -14
- package/scss/keyboard/classes.scss +0 -7
- package/scss/keyboard/index.scss +0 -3
- package/scss/keyboard/keyboard.scss +0 -33
- package/scss/location-marker/classes.scss +0 -15
- package/scss/location-marker/data-rich.scss +0 -58
- package/scss/location-marker/default.scss +0 -21
- package/scss/location-marker/index.scss +0 -6
- package/scss/location-marker/location-marker.scss +0 -13
- package/scss/location-marker/me.scss +0 -36
- package/scss/menu/classes.scss +0 -21
- package/scss/menu/index.scss +0 -3
- package/scss/menu/menu.scss +0 -205
- package/scss/non-ideal-state/classes.scss +0 -7
- package/scss/non-ideal-state/index.scss +0 -3
- package/scss/non-ideal-state/non-ideal-state.scss +0 -55
- package/scss/notification-marker/classes.scss +0 -9
- package/scss/notification-marker/index.scss +0 -3
- package/scss/notification-marker/notification-marker.scss +0 -63
- package/scss/popover/classes.scss +0 -7
- package/scss/popover/index.scss +0 -3
- package/scss/popover/popover.scss +0 -22
- package/scss/progress-indicator/classes.scss +0 -35
- package/scss/progress-indicator/index.scss +0 -5
- package/scss/progress-indicator/linear.scss +0 -126
- package/scss/progress-indicator/overlay.scss +0 -57
- package/scss/progress-indicator/radial.scss +0 -243
- package/scss/radio-tile/classes.scss +0 -31
- package/scss/radio-tile/index.scss +0 -3
- package/scss/radio-tile/radio-tile.scss +0 -209
- package/scss/reset-global-styles.scss +0 -33
- package/scss/side-navigation/classes.scss +0 -15
- package/scss/side-navigation/index.scss +0 -3
- package/scss/side-navigation/side-navigation.scss +0 -210
- package/scss/skip-to-content/classes.scss +0 -7
- package/scss/skip-to-content/index.scss +0 -3
- package/scss/skip-to-content/skip-to-content.scss +0 -41
- package/scss/slider/classes.scss +0 -40
- package/scss/slider/index.scss +0 -3
- package/scss/slider/slider.scss +0 -256
- package/scss/style/anchor.scss +0 -82
- package/scss/style/baseline.scss +0 -4
- package/scss/style/color.scss +0 -39
- package/scss/style/elevation.scss +0 -11
- package/scss/style/global.scss +0 -70
- package/scss/style/index.scss +0 -11
- package/scss/style/mixins.scss +0 -188
- package/scss/style/ripple.scss +0 -18
- package/scss/style/space.scss +0 -11
- package/scss/style/speed.scss +0 -8
- package/scss/style/theme.scss +0 -482
- package/scss/style/typography.scss +0 -54
- package/scss/style/variables.scss +0 -21
- package/scss/surface/classes.scss +0 -7
- package/scss/surface/index.scss +0 -3
- package/scss/surface/surface.scss +0 -18
- package/scss/table/classes.scss +0 -63
- package/scss/table/column-filter.scss +0 -37
- package/scss/table/condensed.scss +0 -15
- package/scss/table/extra-condensed.scss +0 -19
- package/scss/table/index.scss +0 -7
- package/scss/table/paginator.scss +0 -87
- package/scss/table/table.scss +0 -558
- package/scss/table/variables.scss +0 -10
- package/scss/tabs/borderless.scss +0 -71
- package/scss/tabs/classes.scss +0 -44
- package/scss/tabs/default.scss +0 -110
- package/scss/tabs/index.scss +0 -6
- package/scss/tabs/pill.scss +0 -48
- package/scss/tabs/tabs.scss +0 -220
- package/scss/tag/classes.scss +0 -29
- package/scss/tag/index.scss +0 -3
- package/scss/tag/tag.scss +0 -99
- package/scss/text/classes.scss +0 -40
- package/scss/text/index.scss +0 -5
- package/scss/text/mixins.scss +0 -42
- package/scss/text/muted.scss +0 -9
- package/scss/text/skeleton.scss +0 -46
- package/scss/tile/classes.scss +0 -51
- package/scss/tile/index.scss +0 -3
- package/scss/tile/tile.scss +0 -370
- package/scss/time-picker/classes.scss +0 -16
- package/scss/time-picker/index.scss +0 -3
- package/scss/time-picker/time-picker.scss +0 -72
- package/scss/toast-notification/categories.scss +0 -26
- package/scss/toast-notification/classes.scss +0 -98
- package/scss/toast-notification/index.scss +0 -4
- package/scss/toast-notification/toast.scss +0 -79
- package/scss/toggle-switch/classes.scss +0 -11
- package/scss/toggle-switch/index.scss +0 -3
- package/scss/toggle-switch/toggle-switch.scss +0 -222
- package/scss/tooltip/classes.scss +0 -24
- package/scss/tooltip/index.scss +0 -3
- package/scss/tooltip/tooltip.scss +0 -41
- package/scss/tree/classes.scss +0 -19
- package/scss/tree/index.scss +0 -3
- package/scss/tree/tree.scss +0 -138
- package/scss/user-icon/classes.scss +0 -27
- package/scss/user-icon/index.scss +0 -4
- package/scss/user-icon/sizes.scss +0 -22
- package/scss/user-icon/user-icon.scss +0 -250
- package/scss/variables.scss +0 -3
- package/scss/wizard/classes.scss +0 -27
- package/scss/wizard/index.scss +0 -5
- package/scss/wizard/long.scss +0 -19
- package/scss/wizard/wizard.scss +0 -160
- package/scss/wizard/workflow.scss +0 -43
- package/src/index.scss +0 -46
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import './index';
|
|
4
|
-
|
|
5
|
-
@mixin iui-bottom-placement {
|
|
6
|
-
bottom: 0;
|
|
7
|
-
|
|
8
|
-
.iui-toast {
|
|
9
|
-
margin: $iui-baseline $iui-m 0 $iui-m;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.iui-toast-wrapper {
|
|
14
|
-
pointer-events: none;
|
|
15
|
-
position: fixed;
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
z-index: 99999;
|
|
21
|
-
|
|
22
|
-
@media screen and (max-width: 400px) {
|
|
23
|
-
width: calc(100vw - 36px);
|
|
24
|
-
margin-top: $iui-baseline;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@media screen and (min-width: 401px) {
|
|
28
|
-
min-width: 400px;
|
|
29
|
-
max-width: 640px;
|
|
30
|
-
margin: $iui-line-height 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
34
|
-
.iui-toast-all {
|
|
35
|
-
transition: all 240ms cubic-bezier(0, 0, 0.2, 1);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.iui-placement-top {
|
|
40
|
-
margin-left: auto;
|
|
41
|
-
margin-right: auto;
|
|
42
|
-
left: 0;
|
|
43
|
-
top: 0;
|
|
44
|
-
right: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.iui-placement-top-start {
|
|
48
|
-
left: 0;
|
|
49
|
-
top: 0;
|
|
50
|
-
align-items: flex-start;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.iui-placement-top-end {
|
|
54
|
-
right: 0;
|
|
55
|
-
top: 0;
|
|
56
|
-
align-items: flex-end;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.iui-placement-bottom {
|
|
60
|
-
@include iui-bottom-placement;
|
|
61
|
-
margin-left: auto;
|
|
62
|
-
margin-right: auto;
|
|
63
|
-
left: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.iui-placement-bottom-start {
|
|
68
|
-
@include iui-bottom-placement;
|
|
69
|
-
left: 0;
|
|
70
|
-
align-items: flex-start;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.iui-placement-bottom-end {
|
|
74
|
-
@include iui-bottom-placement;
|
|
75
|
-
right: 0;
|
|
76
|
-
align-items: flex-end;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.iui-toast {
|
|
81
|
-
@include iui-toast;
|
|
82
|
-
|
|
83
|
-
&.iui-informational {
|
|
84
|
-
@include iui-toast-category($category: primary);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.iui-positive {
|
|
88
|
-
@include iui-toast-category($category: positive);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.iui-negative {
|
|
92
|
-
@include iui-toast-category($category: negative);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.iui-warning {
|
|
96
|
-
@include iui-toast-category($category: warning);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import '../style/index';
|
|
4
|
-
@import '../anchor/index';
|
|
5
|
-
@import '../icon/index';
|
|
6
|
-
|
|
7
|
-
@mixin iui-toast {
|
|
8
|
-
@include iui-reset;
|
|
9
|
-
display: inline-flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
pointer-events: all;
|
|
13
|
-
margin: 0 $iui-m $iui-baseline $iui-m;
|
|
14
|
-
min-height: $iui-baseline * 4;
|
|
15
|
-
border-radius: $iui-border-radius;
|
|
16
|
-
@include themed {
|
|
17
|
-
background-color: t(iui-color-background-1);
|
|
18
|
-
border: 1px solid t(iui-color-foreground-body);
|
|
19
|
-
box-shadow: 0 0 0 1px rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4)), $iui-elevation-24;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
> .iui-status-area {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-self: stretch;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
width: $iui-l * 2;
|
|
28
|
-
flex-shrink: 0;
|
|
29
|
-
@include themed {
|
|
30
|
-
background-color: t(iui-color-background-5);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
> .iui-icon {
|
|
34
|
-
height: $iui-icons-default;
|
|
35
|
-
width: $iui-icons-default;
|
|
36
|
-
@include themed {
|
|
37
|
-
fill: t(iui-color-foreground-accessory);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
> .iui-message {
|
|
43
|
-
flex-grow: 1;
|
|
44
|
-
font-size: $iui-font-size;
|
|
45
|
-
margin-top: $iui-baseline * 0.5;
|
|
46
|
-
margin-bottom: $iui-baseline * 0.5;
|
|
47
|
-
margin-right: $iui-l;
|
|
48
|
-
margin-left: $iui-m;
|
|
49
|
-
line-height: $iui-line-height;
|
|
50
|
-
font-weight: $iui-font-weight-normal;
|
|
51
|
-
font-style: normal;
|
|
52
|
-
@include themed {
|
|
53
|
-
color: t(iui-text-color);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&-anchor {
|
|
58
|
-
@include iui-anchor-underline('on-initial');
|
|
59
|
-
border-radius: $iui-border-radius;
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
font-size: $iui-font-size-small;
|
|
62
|
-
margin-right: $iui-m;
|
|
63
|
-
user-select: none;
|
|
64
|
-
white-space: nowrap;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
> .iui-button {
|
|
68
|
-
margin-right: $iui-s;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@media screen and (max-width: 400px) {
|
|
72
|
-
width: calc(100vw - 36px);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@media screen and (min-width: 401px) {
|
|
76
|
-
min-width: 400px;
|
|
77
|
-
max-width: 640px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import './index';
|
|
4
|
-
|
|
5
|
-
.iui-toggle-switch-wrapper {
|
|
6
|
-
@include iui-toggle-switch-wrapper;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.iui-toggle-switch {
|
|
10
|
-
@include iui-toggle-switch;
|
|
11
|
-
}
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import '../style/index';
|
|
4
|
-
|
|
5
|
-
@mixin iui-toggle-switch-wrapper {
|
|
6
|
-
@include iui-reset;
|
|
7
|
-
display: grid;
|
|
8
|
-
grid-template-areas: 'toggle';
|
|
9
|
-
align-items: center;
|
|
10
|
-
gap: $iui-s;
|
|
11
|
-
font-size: $iui-font-size;
|
|
12
|
-
width: fit-content;
|
|
13
|
-
user-select: none;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
isolation: isolate;
|
|
16
|
-
@include themed {
|
|
17
|
-
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
> * + * {
|
|
21
|
-
margin-left: $iui-s;
|
|
22
|
-
@supports (gap: $iui-s) {
|
|
23
|
-
margin-left: 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Disabled
|
|
28
|
-
&.iui-disabled {
|
|
29
|
-
cursor: not-allowed;
|
|
30
|
-
@include themed {
|
|
31
|
-
color: t(iui-text-color-muted);
|
|
32
|
-
}
|
|
33
|
-
@media (forced-colors: active) {
|
|
34
|
-
color: GrayText;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// For labels on the left
|
|
39
|
-
&.iui-label-on-left {
|
|
40
|
-
grid-template-areas: 'label toggle';
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// For labels on the right
|
|
44
|
-
&.iui-label-on-right {
|
|
45
|
-
grid-template-areas: 'toggle label';
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@mixin iui-toggle-switch {
|
|
50
|
-
$iui-toggle-switch-handle-size: $iui-icons-default;
|
|
51
|
-
$iui-toggle-switch-handle-offset: $iui-component-offset;
|
|
52
|
-
$iui-toggle-switch-border-thickness: 1px;
|
|
53
|
-
|
|
54
|
-
@include iui-reset;
|
|
55
|
-
@include iui-focus($thickness: $iui-toggle-switch-border-thickness, $offset: $iui-toggle-switch-border-thickness);
|
|
56
|
-
grid-area: toggle;
|
|
57
|
-
display: flex;
|
|
58
|
-
position: relative;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
|
|
61
|
-
// #region IE solution
|
|
62
|
-
width: $iui-toggle-switch-handle-size;
|
|
63
|
-
height: $iui-toggle-switch-handle-size;
|
|
64
|
-
@supports (appearance: none) {
|
|
65
|
-
appearance: none;
|
|
66
|
-
width: ($iui-toggle-switch-handle-size + ($iui-toggle-switch-handle-offset * 2)) * 2;
|
|
67
|
-
height: auto;
|
|
68
|
-
border-radius: $iui-border-radius-round;
|
|
69
|
-
box-sizing: border-box;
|
|
70
|
-
transition: background-color $iui-speed-fast ease-out, border-color $iui-speed-fast ease-out;
|
|
71
|
-
background-color: var(--iui-color-background-1);
|
|
72
|
-
border: $iui-toggle-switch-border-thickness solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
|
|
73
|
-
}
|
|
74
|
-
// #endregion IE solution
|
|
75
|
-
|
|
76
|
-
&-label {
|
|
77
|
-
grid-area: label;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&::after {
|
|
81
|
-
content: '';
|
|
82
|
-
height: $iui-toggle-switch-handle-size;
|
|
83
|
-
width: $iui-toggle-switch-handle-size;
|
|
84
|
-
margin: $iui-toggle-switch-handle-offset;
|
|
85
|
-
aspect-ratio: 1 / 1;
|
|
86
|
-
border-radius: 50%;
|
|
87
|
-
transition: background-color $iui-speed-fast ease-out, opacity $iui-speed-fast ease-out;
|
|
88
|
-
z-index: 2;
|
|
89
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
90
|
-
transition: transform $iui-speed-fast ease-out, background-color $iui-speed-fast ease-out,
|
|
91
|
-
opacity $iui-speed-fast ease-out;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// #region Unchecked toggle switch
|
|
96
|
-
background-color: var(--iui-color-background-1);
|
|
97
|
-
border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
|
|
98
|
-
@media (forced-colors: active) {
|
|
99
|
-
border-color: CanvasText;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&::after {
|
|
103
|
-
background-color: var(--iui-color-foreground-body);
|
|
104
|
-
opacity: var(--iui-opacity-2);
|
|
105
|
-
@media (forced-colors: active) {
|
|
106
|
-
background-color: CanvasText;
|
|
107
|
-
opacity: 1;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&:hover {
|
|
112
|
-
border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
|
|
113
|
-
@media (forced-colors: active) {
|
|
114
|
-
border-color: CanvasText;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@include focus-visible {
|
|
119
|
-
border-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
|
|
120
|
-
}
|
|
121
|
-
// #endregion Unchecked toggle switch
|
|
122
|
-
|
|
123
|
-
// #region Checked toggle switch
|
|
124
|
-
&:checked {
|
|
125
|
-
background-color: var(--iui-color-background-primary);
|
|
126
|
-
border-color: var(--iui-color-background-primary);
|
|
127
|
-
@media (forced-colors: active) {
|
|
128
|
-
background-color: Highlight;
|
|
129
|
-
border-color: Highlight;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&::after {
|
|
133
|
-
transform: translateX($iui-toggle-switch-handle-size + $iui-toggle-switch-handle-offset);
|
|
134
|
-
background-color: var(--iui-color-foreground-accessory);
|
|
135
|
-
opacity: var(--iui-opacity-2);
|
|
136
|
-
@media (forced-colors: active) {
|
|
137
|
-
background-color: HighlightText;
|
|
138
|
-
opacity: 1;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
~ .iui-toggle-switch-icon {
|
|
143
|
-
opacity: var(--iui-opacity-1);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
// #endregion Checked toggle switch
|
|
147
|
-
|
|
148
|
-
// #region Focused or hovered toggle switch
|
|
149
|
-
&:hover::after {
|
|
150
|
-
opacity: var(--iui-opacity-1);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@include focus-visible {
|
|
154
|
-
&::after {
|
|
155
|
-
opacity: var(--iui-opacity-1);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
// #endregion Focused or hovered toggle switch
|
|
159
|
-
|
|
160
|
-
// #region Disabled toggle switch
|
|
161
|
-
&:disabled {
|
|
162
|
-
cursor: not-allowed;
|
|
163
|
-
background-color: var(--iui-color-background-disabled);
|
|
164
|
-
border-color: var(--iui-color-background-disabled);
|
|
165
|
-
@media (forced-colors: active) {
|
|
166
|
-
border-color: GrayText;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&::after {
|
|
170
|
-
background-color: var(--iui-color-foreground-body);
|
|
171
|
-
opacity: var(--iui-opacity-5);
|
|
172
|
-
|
|
173
|
-
@media (forced-colors: active) {
|
|
174
|
-
background-color: GrayText;
|
|
175
|
-
opacity: 0.75;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
~ .iui-toggle-switch-icon {
|
|
180
|
-
opacity: 0;
|
|
181
|
-
fill: var(--iui-icons-color-actionable);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&:checked {
|
|
185
|
-
@media (forced-colors: active) {
|
|
186
|
-
background-color: GrayText;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&::after {
|
|
190
|
-
@media (forced-colors: active) {
|
|
191
|
-
background-color: Canvas;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
~ .iui-toggle-switch-icon {
|
|
196
|
-
opacity: var(--iui-opacity-5);
|
|
197
|
-
@media (forced-colors: active) {
|
|
198
|
-
fill: Canvas;
|
|
199
|
-
opacity: 0.75;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
// #endregion Disabled toggle switch
|
|
205
|
-
|
|
206
|
-
&-icon {
|
|
207
|
-
opacity: 0;
|
|
208
|
-
grid-area: toggle;
|
|
209
|
-
width: $iui-toggle-switch-handle-size * 0.75;
|
|
210
|
-
height: $iui-toggle-switch-handle-size * 0.75;
|
|
211
|
-
padding: $iui-toggle-switch-handle-size * 0.125;
|
|
212
|
-
margin: $iui-toggle-switch-handle-offset + $iui-toggle-switch-border-thickness;
|
|
213
|
-
display: flex;
|
|
214
|
-
z-index: 1;
|
|
215
|
-
transition: opacity $iui-speed-fast ease-out;
|
|
216
|
-
pointer-events: none;
|
|
217
|
-
fill: var(--iui-color-foreground-accessory);
|
|
218
|
-
@media (forced-colors: active) {
|
|
219
|
-
fill: HighlightText;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import './index';
|
|
4
|
-
|
|
5
|
-
// Statics version of hidden/visible animation handling
|
|
6
|
-
.iui-tooltip-container {
|
|
7
|
-
width: fit-content;
|
|
8
|
-
height: fit-content;
|
|
9
|
-
position: relative;
|
|
10
|
-
|
|
11
|
-
> .iui-tooltip {
|
|
12
|
-
@include iui-tooltip-hidden;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
> .iui-tooltip.iui-tooltip-visible,
|
|
16
|
-
&:hover > .iui-tooltip {
|
|
17
|
-
@include iui-tooltip-visible;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Styling tooltip only
|
|
22
|
-
.iui-tooltip {
|
|
23
|
-
@include iui-tooltip;
|
|
24
|
-
}
|
package/scss/tooltip/index.scss
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import '../style/index';
|
|
4
|
-
|
|
5
|
-
@mixin iui-tooltip {
|
|
6
|
-
@include iui-reset;
|
|
7
|
-
display: block;
|
|
8
|
-
text-align: center;
|
|
9
|
-
border-radius: $iui-border-radius;
|
|
10
|
-
font-size: $iui-font-size-small;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
max-width: 400px;
|
|
13
|
-
width: max-content;
|
|
14
|
-
overflow-wrap: break-word;
|
|
15
|
-
box-sizing: content-box;
|
|
16
|
-
padding: round($iui-baseline * 0.33) $iui-s;
|
|
17
|
-
z-index: 999;
|
|
18
|
-
box-shadow: $iui-elevation-8;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
@include themed {
|
|
21
|
-
background-color: rgba(0, 0, 0, t(iui-opacity-3));
|
|
22
|
-
color: t(iui-color-foreground-accessory);
|
|
23
|
-
border: 1px solid rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin iui-tooltip-hidden {
|
|
28
|
-
position: absolute;
|
|
29
|
-
visibility: hidden;
|
|
30
|
-
user-select: none;
|
|
31
|
-
opacity: 0;
|
|
32
|
-
/// Following this guide for animation on exit hover: https://greywyvern.com/?post=337
|
|
33
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
34
|
-
transition: visibility $iui-speed-instant linear $iui-speed-fast, opacity $iui-speed-fast ease-out;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@mixin iui-tooltip-visible {
|
|
39
|
-
visibility: visible;
|
|
40
|
-
opacity: 1;
|
|
41
|
-
}
|
package/scss/tree/classes.scss
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import './index';
|
|
4
|
-
|
|
5
|
-
.iui-tree {
|
|
6
|
-
@include iui-tree;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.iui-sub-tree {
|
|
10
|
-
@include iui-sub-tree;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.iui-tree-item {
|
|
14
|
-
@include iui-tree-item;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.iui-tree-node {
|
|
18
|
-
@include iui-tree-node;
|
|
19
|
-
}
|
package/scss/tree/index.scss
DELETED
package/scss/tree/tree.scss
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import '../style/index';
|
|
4
|
-
@import '../icon/index';
|
|
5
|
-
|
|
6
|
-
$iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
7
|
-
$iui-expander-inline-padding: $iui-component-offset + $iui-xxs + 1px; // margin + padding + border
|
|
8
|
-
$iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding * 2); // icon width + inline padding on both sides
|
|
9
|
-
|
|
10
|
-
@mixin iui-tree {
|
|
11
|
-
@include iui-reset;
|
|
12
|
-
list-style: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin iui-sub-tree {
|
|
16
|
-
@include iui-reset;
|
|
17
|
-
list-style: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin iui-tree-item {
|
|
21
|
-
@include focus-visible {
|
|
22
|
-
outline: none;
|
|
23
|
-
|
|
24
|
-
> .iui-tree-node {
|
|
25
|
-
outline: 1px solid var(--iui-color-foreground-primary);
|
|
26
|
-
outline-offset: -1px;
|
|
27
|
-
|
|
28
|
-
&.iui-active {
|
|
29
|
-
outline: 2px solid var(--iui-color-foreground-primary);
|
|
30
|
-
outline-offset: -2px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin iui-tree-node {
|
|
37
|
-
display: flex;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
padding: 0 $iui-s;
|
|
40
|
-
align-items: center;
|
|
41
|
-
|
|
42
|
-
&-checkbox {
|
|
43
|
-
margin-right: $iui-s;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&-content {
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
box-sizing: border-box;
|
|
50
|
-
min-height: $iui-baseline * 3;
|
|
51
|
-
margin-left: calc(#{$iui-expander-button-width} * (var(--level, 0)));
|
|
52
|
-
overflow: hidden;
|
|
53
|
-
padding-left: $iui-xxs;
|
|
54
|
-
|
|
55
|
-
&-icon {
|
|
56
|
-
@include iui-icons-default;
|
|
57
|
-
margin: 0 $iui-expander-inline-padding;
|
|
58
|
-
flex-shrink: 0;
|
|
59
|
-
|
|
60
|
-
&:first-child {
|
|
61
|
-
margin-left: $iui-expander-button-width + $iui-expander-inline-padding;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-expander-icon {
|
|
66
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
67
|
-
transition: transform $iui-speed-fast ease-out;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&-expanded {
|
|
71
|
-
transform: rotate(90deg);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&-label {
|
|
76
|
-
min-width: 0;
|
|
77
|
-
padding-left: $iui-expander-inline-padding;
|
|
78
|
-
|
|
79
|
-
&:first-child {
|
|
80
|
-
margin-left: $iui-expander-button-width;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&-title,
|
|
85
|
-
&-caption {
|
|
86
|
-
white-space: nowrap;
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
text-overflow: ellipsis;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&-title {
|
|
92
|
-
font-size: $iui-font-size;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&-caption {
|
|
96
|
-
font-size: $iui-font-size-small;
|
|
97
|
-
@include themed {
|
|
98
|
-
color: t(iui-text-color-muted);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&:hover {
|
|
104
|
-
@include themed {
|
|
105
|
-
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.iui-tree-node-content-caption {
|
|
109
|
-
@include themed {
|
|
110
|
-
color: t(iui-color-foreground-body);
|
|
111
|
-
}
|
|
112
|
-
transition: color $iui-speed-fast ease;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&.iui-active {
|
|
117
|
-
@include themed {
|
|
118
|
-
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5));
|
|
119
|
-
outline: $iui-active-outline;
|
|
120
|
-
outline-offset: -1px;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.iui-disabled {
|
|
125
|
-
cursor: not-allowed;
|
|
126
|
-
outline: none;
|
|
127
|
-
background-color: transparent;
|
|
128
|
-
@include themed {
|
|
129
|
-
color: t(iui-text-color-placeholder);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.iui-tree-node-content-caption {
|
|
133
|
-
@include themed {
|
|
134
|
-
color: t(iui-text-color-placeholder);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
-
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
-
@import './index';
|
|
4
|
-
|
|
5
|
-
.iui-user-icon {
|
|
6
|
-
@include iui-user-icon;
|
|
7
|
-
|
|
8
|
-
&#{&} {
|
|
9
|
-
@include iui-user-icon-size;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.iui-small {
|
|
13
|
-
@include iui-user-icon-size($size: $iui-icons-large, $font-size: $iui-font-size-small);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.iui-large {
|
|
17
|
-
@include iui-user-icon-size($size: $iui-icons-xxl, $font-size: $iui-font-size-subheading);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.iui-x-large {
|
|
21
|
-
@include iui-user-icon-size($size: $iui-icons-3xl, $font-size: $iui-font-size-title);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.iui-user-icon-list {
|
|
26
|
-
@include iui-user-icon-list;
|
|
27
|
-
}
|