@itwin/itwinui-css 0.44.2 → 0.45.0
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/css/all.css +444 -301
- package/css/carousel.css +97 -0
- package/css/popover.css +12 -0
- package/css/table.css +1 -1
- package/css/tile.css +340 -300
- package/package.json +1 -1
- package/scss/carousel/carousel.scss +119 -0
- package/scss/carousel/classes.scss +15 -0
- package/scss/carousel/index.scss +3 -0
- package/scss/classes.scss +2 -0
- package/scss/index.scss +2 -0
- package/scss/popover/classes.scss +7 -0
- package/scss/popover/index.scss +3 -0
- package/scss/popover/popover.scss +22 -0
- package/scss/table/table.scss +1 -1
- package/scss/tile/classes.scss +28 -0
- package/scss/tile/tile.scss +230 -235
|
@@ -0,0 +1,119 @@
|
|
|
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 '../text/index';
|
|
5
|
+
@import '../button/button';
|
|
6
|
+
|
|
7
|
+
@mixin iui-carousel {
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
@include iui-focus($offset: 4px);
|
|
10
|
+
border-radius: $iui-border-radius;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin iui-carousel-slider {
|
|
14
|
+
display: flex;
|
|
15
|
+
list-style: none;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
19
|
+
transition: transform $iui-speed-slow ease-in-out;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-item {
|
|
23
|
+
width: 100%;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin iui-carousel-navigation {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
height: $iui-baseline * 3;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
@include themed {
|
|
35
|
+
border-top: $iui-xxs solid t(iui-color-background-4);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-dots,
|
|
39
|
+
&-left,
|
|
40
|
+
&-right {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
flex: 1;
|
|
44
|
+
|
|
45
|
+
button[data-pressed='true'] {
|
|
46
|
+
outline-offset: -1px;
|
|
47
|
+
@include themed {
|
|
48
|
+
outline: 1px solid t(iui-color-foreground-primary);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-dots {
|
|
54
|
+
@include iui-reset;
|
|
55
|
+
@include iui-focus;
|
|
56
|
+
border-radius: $iui-border-radius;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
list-style: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-dot {
|
|
64
|
+
@include iui-button-size($size: small);
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
border: none;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
|
|
69
|
+
&:hover::after {
|
|
70
|
+
@include themed {
|
|
71
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-3));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.iui-invisible {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&::after {
|
|
80
|
+
content: '';
|
|
81
|
+
display: block;
|
|
82
|
+
width: $iui-icons-small;
|
|
83
|
+
height: $iui-icons-small;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
transition: background-color $iui-speed-fast ease;
|
|
86
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
87
|
+
transition: background-color $iui-speed-fast $iui-speed-fast ease, transform $iui-speed ease;
|
|
88
|
+
}
|
|
89
|
+
@include themed {
|
|
90
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.iui-first::after {
|
|
95
|
+
transform: scale(0.5);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.iui-second::after {
|
|
99
|
+
transform: scale(0.75);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.iui-invisible::after {
|
|
103
|
+
transform: scale(0);
|
|
104
|
+
@include themed {
|
|
105
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), 0);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.iui-active::after {
|
|
110
|
+
@include themed {
|
|
111
|
+
background-color: t(iui-color-foreground-primary);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-right {
|
|
117
|
+
justify-content: flex-end;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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-carousel {
|
|
6
|
+
@include iui-carousel;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.iui-carousel-slider {
|
|
10
|
+
@include iui-carousel-slider;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.iui-carousel-navigation {
|
|
14
|
+
@include iui-carousel-navigation;
|
|
15
|
+
}
|
package/scss/classes.scss
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@import './blockquote/classes';
|
|
8
8
|
@import './breadcrumbs/classes';
|
|
9
9
|
@import './button/classes';
|
|
10
|
+
@import './carousel/classes';
|
|
10
11
|
@import './code/classes';
|
|
11
12
|
@import './color-picker/classes';
|
|
12
13
|
@import './date-picker/classes';
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
@import './modal/classes';
|
|
25
26
|
@import './non-ideal-state/classes';
|
|
26
27
|
@import './notification-marker/classes';
|
|
28
|
+
@import './popover/classes';
|
|
27
29
|
@import './progress-indicator/classes';
|
|
28
30
|
@import './side-navigation/classes';
|
|
29
31
|
@import './slider/classes';
|
package/scss/index.scss
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@import './blockquote/index';
|
|
7
7
|
@import './breadcrumbs/index';
|
|
8
8
|
@import './button/index';
|
|
9
|
+
@import './carousel/index';
|
|
9
10
|
@import './code/index';
|
|
10
11
|
@import './color-picker/index';
|
|
11
12
|
@import './date-picker/index';
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
@import './modal/index';
|
|
23
24
|
@import './non-ideal-state/index';
|
|
24
25
|
@import './notification-marker/index';
|
|
26
|
+
@import './popover/index';
|
|
25
27
|
@import './progress-indicator/index';
|
|
26
28
|
@import './side-navigation/index';
|
|
27
29
|
@import './slider/index';
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
// tippy.js helper class to hide Popover when it is scrolled out of view
|
|
6
|
+
@mixin iui-popover {
|
|
7
|
+
&[data-reference-hidden] {
|
|
8
|
+
visibility: hidden;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Resets tippy.js default stylings that interfere with our own
|
|
13
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
14
|
+
&.tippy-box {
|
|
15
|
+
all: revert;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
19
|
+
.tippy-content {
|
|
20
|
+
all: revert;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/scss/table/table.scss
CHANGED
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
background-color: t(iui-color-background-1);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
&.iui-zebra-striping
|
|
138
|
+
&.iui-zebra-striping .iui-row:nth-child(even):not(.iui-selected) {
|
|
139
139
|
@include themed {
|
|
140
140
|
background-color: rgba(t(iui-color-foreground-body-rgb), 0.02);
|
|
141
141
|
}
|
package/scss/tile/classes.scss
CHANGED
|
@@ -5,3 +5,31 @@
|
|
|
5
5
|
.iui-tile {
|
|
6
6
|
@include iui-tile;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
.iui-tile-thumbnail-type-indicator {
|
|
10
|
+
@include iui-tile-thumbnail-type-indicator;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.iui-tile-thumbnail-quick-action {
|
|
14
|
+
@include iui-tile-thumbnail-quick-action;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.iui-tile-thumbnail-badge-container {
|
|
18
|
+
@include iui-tile-thumbnail-badge;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.iui-tile-buttons {
|
|
22
|
+
@include iui-tile-buttons;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.iui-tile-thumbnail {
|
|
26
|
+
@include iui-tile-thumbnail;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.iui-tile-thumbnail-picture {
|
|
30
|
+
@include iui-tile-thumbnail-picture;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.iui-tile-content {
|
|
34
|
+
@include iui-tile-content;
|
|
35
|
+
}
|