@itwin/itwinui-css 0.57.0 → 0.59.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/css/all.css +388 -230
- package/css/breadcrumbs.css +50 -47
- package/css/dialog.css +201 -0
- package/css/information-panel.css +2 -2
- package/css/side-navigation.css +1 -1
- package/css/table.css +137 -51
- package/package.json +1 -1
- package/scss/breadcrumbs/breadcrumbs.scss +5 -2
- package/scss/breadcrumbs/classes.scss +3 -0
- package/scss/classes.scss +1 -1
- package/scss/dialog/classes.scss +47 -0
- package/scss/dialog/dialog.scss +213 -0
- package/scss/{modal → dialog}/index.scss +1 -1
- package/scss/index.scss +1 -1
- package/scss/information-panel/information-panel.scss +2 -2
- package/scss/side-navigation/side-navigation.scss +2 -2
- package/scss/style/elevation.scss +6 -5
- package/scss/table/classes.scss +16 -0
- package/scss/table/condensed.scss +4 -1
- package/scss/table/extra-condensed.scss +8 -1
- package/scss/table/table.scss +138 -38
- package/css/modal.css +0 -132
- package/scss/modal/classes.scss +0 -15
- package/scss/modal/modal.scss +0 -155
package/scss/modal/modal.scss
DELETED
|
@@ -1,155 +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
|
-
@mixin iui-modal {
|
|
7
|
-
@include iui-reset;
|
|
8
|
-
z-index: 999;
|
|
9
|
-
position: fixed;
|
|
10
|
-
top: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
@include themed {
|
|
15
|
-
background-color: rgba(0, 0, 0, t(iui-opacity-4));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// #region Small Modal Animations for CSS
|
|
19
|
-
visibility: hidden;
|
|
20
|
-
opacity: 0;
|
|
21
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
22
|
-
transition: visibility $iui-speed-instant linear $iui-speed-fast, opacity $iui-speed-fast ease-out;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.iui-modal-visible {
|
|
26
|
-
visibility: visible;
|
|
27
|
-
opacity: 1;
|
|
28
|
-
// remove delay for entry animation so it's instantly visible
|
|
29
|
-
transition-delay: $iui-speed-instant;
|
|
30
|
-
}
|
|
31
|
-
// #endregion Small Modal Animations for CSS
|
|
32
|
-
|
|
33
|
-
> .iui-modal-dialog {
|
|
34
|
-
position: absolute;
|
|
35
|
-
left: 50%;
|
|
36
|
-
top: 33%;
|
|
37
|
-
transform: translate(-50%, -33%);
|
|
38
|
-
z-index: 1000;
|
|
39
|
-
max-width: 50%;
|
|
40
|
-
min-width: 380px;
|
|
41
|
-
max-height: 100vh;
|
|
42
|
-
border-radius: $iui-border-radius;
|
|
43
|
-
box-shadow: $iui-elevation-24;
|
|
44
|
-
padding: $iui-baseline $iui-m;
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
|
|
47
|
-
@include themed {
|
|
48
|
-
background-color: t(iui-color-background-1);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@media screen and (max-width: 400px) {
|
|
52
|
-
max-width: 95%;
|
|
53
|
-
width: 95%;
|
|
54
|
-
min-width: 95%;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.iui-title-bar {
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
margin-bottom: $iui-baseline;
|
|
61
|
-
justify-content: space-between;
|
|
62
|
-
|
|
63
|
-
> .iui-title {
|
|
64
|
-
font-size: $iui-font-size-subheading;
|
|
65
|
-
white-space: nowrap;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
text-overflow: ellipsis;
|
|
68
|
-
line-height: 1.5;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.iui-button-bar {
|
|
73
|
-
margin-top: $iui-baseline;
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: flex-end;
|
|
77
|
-
|
|
78
|
-
> .iui-button:not(:last-child) {
|
|
79
|
-
margin-right: $iui-s;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.iui-modal-content {
|
|
84
|
-
flex-grow: 2;
|
|
85
|
-
margin: 0 -#{$iui-m};
|
|
86
|
-
padding: 0 $iui-m;
|
|
87
|
-
overflow-y: auto;
|
|
88
|
-
overflow-y: overlay;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@mixin iui-modal-full-page {
|
|
94
|
-
$iui-full-page-modal-slide-in-speed: 0.3s;
|
|
95
|
-
$iui-full-page-modal-slide-out-speed: 0.25s;
|
|
96
|
-
|
|
97
|
-
> .iui-modal-dialog {
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
height: 100vh;
|
|
101
|
-
width: 100vw;
|
|
102
|
-
left: 0;
|
|
103
|
-
top: 0;
|
|
104
|
-
transform: none;
|
|
105
|
-
max-width: initial;
|
|
106
|
-
min-width: initial;
|
|
107
|
-
border-radius: 0;
|
|
108
|
-
will-change: transform;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// #region Full Page Modal Animations for CSS
|
|
112
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
113
|
-
transition: visibility $iui-speed-instant linear $iui-speed-slow, opacity $iui-speed ease-out $iui-speed-fast;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
> .iui-modal-dialog {
|
|
117
|
-
transform: translateY(100%);
|
|
118
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
119
|
-
transition: visibility $iui-speed-instant linear $iui-speed, opacity $iui-speed-instant linear $iui-speed,
|
|
120
|
-
transform $iui-full-page-modal-slide-out-speed ease-in;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.iui-modal-visible > .iui-modal-dialog {
|
|
125
|
-
transform: translateY(0);
|
|
126
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
127
|
-
transition: transform $iui-full-page-modal-slide-in-speed ease-out;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
// #endregion Full Page Modal Animations for CSS
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@mixin iui-modal-animation {
|
|
134
|
-
// Full Page Modal Animations for React
|
|
135
|
-
&-enter .iui-modal-full-page .iui-modal-dialog {
|
|
136
|
-
transform: translateY(100%);
|
|
137
|
-
opacity: 0;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&-enter-active .iui-modal-full-page .iui-modal-dialog {
|
|
141
|
-
transform: translateY(0);
|
|
142
|
-
opacity: 1;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Small Modal Animations for React
|
|
146
|
-
&-enter .iui-modal {
|
|
147
|
-
visibility: hidden;
|
|
148
|
-
opacity: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&-enter-active .iui-modal {
|
|
152
|
-
visibility: visible;
|
|
153
|
-
opacity: 1;
|
|
154
|
-
}
|
|
155
|
-
}
|