@itwin/itwinui-css 0.40.0 → 0.42.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 +386 -211
- package/css/breadcrumbs.css +11 -6
- package/css/button.css +195 -148
- package/css/header.css +16 -14
- package/css/inputs.css +12 -12
- package/css/table.css +31 -21
- package/css/tile.css +14 -9
- package/css/tree.css +107 -0
- package/css/user-icon.css +3 -1
- package/package.json +1 -1
- package/scss/button/borderless.scss +13 -6
- package/scss/button/button-group.scss +59 -46
- package/scss/button/cta.scss +15 -8
- package/scss/button/default.scss +16 -9
- package/scss/button/high-visibility.scss +15 -8
- package/scss/button/split-menu.scss +34 -20
- package/scss/classes.scss +1 -0
- package/scss/header/header.scss +16 -8
- package/scss/index.scss +1 -0
- package/scss/inputs/classes.scss +2 -2
- package/scss/inputs/labeled-inputs.scss +3 -3
- package/scss/table/paginator.scss +33 -21
- package/scss/table/table.scss +10 -6
- package/scss/tree/classes.scss +15 -0
- package/scss/tree/index.scss +3 -0
- package/scss/tree/tree.scss +137 -0
- package/scss/user-icon/user-icon.scss +3 -0
package/css/table.css
CHANGED
|
@@ -12,9 +12,6 @@
|
|
|
12
12
|
flex-direction:column; }
|
|
13
13
|
.iui-table *{
|
|
14
14
|
box-sizing:border-box; }
|
|
15
|
-
.iui-table.iui-zebra-striping > .iui-table-body > .iui-row:nth-child(even):not(.iui-selected){
|
|
16
|
-
background:rgba(0, 0, 0, 0.02);
|
|
17
|
-
background:rgba(var(--iui-color-foreground-body-rgb), 0.02); }
|
|
18
15
|
.iui-table .iui-cell-end-icon,
|
|
19
16
|
.iui-table .iui-cell-start-icon{
|
|
20
17
|
flex-shrink:0;
|
|
@@ -129,6 +126,9 @@
|
|
|
129
126
|
scroll-snap-type:y mandatory; }
|
|
130
127
|
.iui-table-body.iui-scroll-snapping .iui-row{
|
|
131
128
|
scroll-snap-align:start; }
|
|
129
|
+
.iui-table-body.iui-zebra-striping > .iui-row:nth-child(even):not(.iui-selected){
|
|
130
|
+
background-color:rgba(0, 0, 0, 0.02);
|
|
131
|
+
background-color:rgba(var(--iui-color-foreground-body-rgb), 0.02); }
|
|
132
132
|
.iui-table-body .iui-row{
|
|
133
133
|
display:flex;
|
|
134
134
|
border:solid 1px transparent;
|
|
@@ -304,6 +304,8 @@
|
|
|
304
304
|
justify-content:center;
|
|
305
305
|
align-items:center;
|
|
306
306
|
flex-basis:48px; }
|
|
307
|
+
.iui-cell:not(.iui-slot):last-child{
|
|
308
|
+
padding-right:16px; }
|
|
307
309
|
.iui-cell.iui-positive{
|
|
308
310
|
background-color:rgba(83, 162, 26, 0.1);
|
|
309
311
|
background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6)); }
|
|
@@ -346,7 +348,7 @@
|
|
|
346
348
|
border:none;
|
|
347
349
|
vertical-align:baseline;
|
|
348
350
|
display:flex;
|
|
349
|
-
justify-content:space-
|
|
351
|
+
justify-content:space-between;
|
|
350
352
|
align-items:center;
|
|
351
353
|
min-height:55px;
|
|
352
354
|
padding:0 16px;
|
|
@@ -371,25 +373,33 @@
|
|
|
371
373
|
color:var(--iui-text-color); }
|
|
372
374
|
.iui-paginator > .iui-center .iui-button-group{
|
|
373
375
|
margin:0 8px; }
|
|
374
|
-
.iui-paginator > .iui-center .iui-button-group >
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
.iui-paginator > .iui-center .iui-button-group > .iui-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
376
|
+
.iui-paginator > .iui-center .iui-button-group > *{
|
|
377
|
+
margin-right:0; }
|
|
378
|
+
.iui-paginator > .iui-center .iui-button-group > * > .iui-button,
|
|
379
|
+
.iui-paginator > .iui-center .iui-button-group > * > .iui-ellipsis{
|
|
380
|
+
width:38px; }
|
|
381
|
+
.iui-paginator > .iui-center .iui-button-group > * > .iui-button.iui-small,
|
|
382
|
+
.iui-paginator > .iui-center .iui-button-group > * > .iui-ellipsis.iui-small{
|
|
383
|
+
width:27px; }
|
|
384
|
+
.iui-paginator > .iui-center .iui-button-group > * > .iui-button{
|
|
385
|
+
transition:none; }
|
|
386
|
+
.iui-paginator > .iui-center .iui-button-group > * > .iui-ellipsis{
|
|
387
|
+
display:flex;
|
|
388
|
+
justify-content:center;
|
|
389
|
+
align-items:center;
|
|
390
|
+
color:rgba(0, 0, 0, 0.4);
|
|
391
|
+
color:var(--iui-text-color-muted); }
|
|
392
|
+
.iui-paginator > .iui-center .iui-button-group > * > .iui-active::after{
|
|
393
|
+
top:auto;
|
|
394
|
+
bottom:2px; }
|
|
391
395
|
.iui-paginator > .iui-right{
|
|
392
396
|
justify-content:flex-end; }
|
|
397
|
+
.iui-paginator-page-size-label{
|
|
398
|
+
color:rgba(0, 0, 0, 0.4);
|
|
399
|
+
color:var(--iui-text-color-muted);
|
|
400
|
+
white-space:nowrap;
|
|
401
|
+
overflow:hidden;
|
|
402
|
+
text-overflow:ellipsis; }
|
|
393
403
|
|
|
394
404
|
.iui-column-filter{
|
|
395
405
|
margin:0;
|
package/css/tile.css
CHANGED
|
@@ -47,21 +47,26 @@
|
|
|
47
47
|
.iui-tile .iui-thumbnail > .iui-quick-action > .iui-button-icon:only-child{
|
|
48
48
|
margin-left:3px;
|
|
49
49
|
margin-right:3px; }
|
|
50
|
-
.iui-tile .iui-thumbnail > .iui-type-indicator:
|
|
51
|
-
.iui-tile .iui-thumbnail > .iui-quick-action:hover,
|
|
50
|
+
.iui-tile .iui-thumbnail > .iui-type-indicator:focus,
|
|
52
51
|
.iui-tile .iui-thumbnail > .iui-quick-action:focus{
|
|
53
52
|
background-color:rgba(0, 0, 0, 0.1);
|
|
54
53
|
border-color:transparent;
|
|
55
54
|
background-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
|
|
56
55
|
border-color:transparent; }
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
.iui-tile .iui-thumbnail > .iui-type-indicator:focus:where(:not(:focus-visible)),
|
|
57
|
+
.iui-tile .iui-thumbnail > .iui-quick-action:focus:where(:not(:focus-visible)){
|
|
58
|
+
border-color:transparent;
|
|
59
|
+
background-color:transparent; }
|
|
60
|
+
.iui-tile .iui-thumbnail > .iui-type-indicator:focus:where(:not(:focus-visible)) > .iui-button-icon:only-child,
|
|
61
|
+
.iui-tile .iui-thumbnail > .iui-quick-action:focus:where(:not(:focus-visible)) > .iui-button-icon:only-child{
|
|
62
|
+
margin-left:3px;
|
|
63
|
+
margin-right:3px; }
|
|
64
|
+
.iui-tile .iui-thumbnail > .iui-type-indicator:hover,
|
|
65
|
+
.iui-tile .iui-thumbnail > .iui-quick-action:hover{
|
|
66
|
+
background-color:rgba(0, 0, 0, 0.1);
|
|
59
67
|
border-color:transparent;
|
|
60
|
-
background-color:
|
|
61
|
-
|
|
62
|
-
.iui-tile .iui-thumbnail > .iui-quick-action:focus:not(:focus-visible) > .iui-button-icon:only-child{
|
|
63
|
-
margin-left:3px;
|
|
64
|
-
margin-right:3px; }
|
|
68
|
+
background-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
|
|
69
|
+
border-color:transparent; }
|
|
65
70
|
.iui-tile .iui-thumbnail > .iui-type-indicator.iui-active,
|
|
66
71
|
.iui-tile .iui-thumbnail > .iui-quick-action.iui-active{
|
|
67
72
|
background-color:rgba(0, 139, 225, 0.1);
|
package/css/tree.css
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
.iui-tree{
|
|
6
|
+
margin:0;
|
|
7
|
+
padding:0;
|
|
8
|
+
border:none;
|
|
9
|
+
vertical-align:baseline;
|
|
10
|
+
list-style:none; }
|
|
11
|
+
|
|
12
|
+
.iui-sub-tree{
|
|
13
|
+
margin:0;
|
|
14
|
+
padding:0;
|
|
15
|
+
border:none;
|
|
16
|
+
vertical-align:baseline;
|
|
17
|
+
list-style:none; }
|
|
18
|
+
|
|
19
|
+
.iui-tree-node{
|
|
20
|
+
display:flex;
|
|
21
|
+
cursor:pointer;
|
|
22
|
+
padding:0 8px; }
|
|
23
|
+
.iui-tree-node-checkbox{
|
|
24
|
+
margin-right:8px; }
|
|
25
|
+
.iui-tree-node-content{
|
|
26
|
+
display:flex;
|
|
27
|
+
align-items:center;
|
|
28
|
+
box-sizing:border-box;
|
|
29
|
+
min-height:33px;
|
|
30
|
+
margin-left:calc(28px * (var(--level, 0)));
|
|
31
|
+
overflow:hidden;
|
|
32
|
+
padding-left:2px; }
|
|
33
|
+
.iui-tree-node-content-icon{
|
|
34
|
+
fill:rgba(0, 0, 0, 0.4);
|
|
35
|
+
fill:var(--iui-icons-color);
|
|
36
|
+
display:inline-flex;
|
|
37
|
+
width:16px;
|
|
38
|
+
height:16px;
|
|
39
|
+
padding:0 6px;
|
|
40
|
+
flex-shrink:0; }
|
|
41
|
+
.iui-tree-node-content-icon.iui-informational{
|
|
42
|
+
fill:#008BE1;
|
|
43
|
+
fill:var(--iui-icons-color-primary); }
|
|
44
|
+
.iui-tree-node-content-icon.iui-positive{
|
|
45
|
+
fill:#53A21A;
|
|
46
|
+
fill:var(--iui-icons-color-positive); }
|
|
47
|
+
.iui-tree-node-content-icon.iui-warning{
|
|
48
|
+
fill:#F18B12;
|
|
49
|
+
fill:var(--iui-icons-color-warning); }
|
|
50
|
+
.iui-tree-node-content-icon.iui-negative{
|
|
51
|
+
fill:#D30A0A;
|
|
52
|
+
fill:var(--iui-icons-color-negative); }
|
|
53
|
+
.iui-tree-node-content-icon:first-child{
|
|
54
|
+
margin-left:28px; }
|
|
55
|
+
@media (prefers-reduced-motion: no-preference){
|
|
56
|
+
.iui-tree-node-content-expander-icon{
|
|
57
|
+
transition:transform 0.2s ease-out; } }
|
|
58
|
+
.iui-tree-node-content-expander-icon-expanded{
|
|
59
|
+
transform:rotate(90deg); }
|
|
60
|
+
.iui-tree-node-content-label{
|
|
61
|
+
min-width:0;
|
|
62
|
+
padding-left:6px; }
|
|
63
|
+
.iui-tree-node-content-label:first-child{
|
|
64
|
+
margin-left:28px; }
|
|
65
|
+
.iui-tree-node-content-title, .iui-tree-node-content-caption{
|
|
66
|
+
white-space:nowrap;
|
|
67
|
+
overflow:hidden;
|
|
68
|
+
text-overflow:ellipsis; }
|
|
69
|
+
.iui-tree-node-content-title{
|
|
70
|
+
font-size:14px; }
|
|
71
|
+
.iui-tree-node-content-caption{
|
|
72
|
+
font-size:12px;
|
|
73
|
+
color:rgba(0, 0, 0, 0.4);
|
|
74
|
+
color:var(--iui-text-color-muted); }
|
|
75
|
+
.iui-tree-node:focus{
|
|
76
|
+
outline:thin solid rgba(0, 139, 225, 0.4);
|
|
77
|
+
outline-offset:-1px;
|
|
78
|
+
outline:thin solid rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-4));
|
|
79
|
+
outline-offset:-1px; }
|
|
80
|
+
.iui-tree-node:focus:not(:focus-visible){
|
|
81
|
+
outline-offset:-2px; }
|
|
82
|
+
.iui-tree-node:hover{
|
|
83
|
+
background-color:rgba(0, 139, 225, 0.1);
|
|
84
|
+
background-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6)); }
|
|
85
|
+
.iui-tree-node:hover .iui-tree-node-content-caption{
|
|
86
|
+
color:#000;
|
|
87
|
+
color:var(--iui-color-foreground-body);
|
|
88
|
+
transition:color 0.2s ease; }
|
|
89
|
+
.iui-tree-node.iui-active{
|
|
90
|
+
background-color:rgba(0, 139, 225, 0.2);
|
|
91
|
+
outline:thin solid var(--iui-color-foreground-primary);
|
|
92
|
+
outline-offset:-1px;
|
|
93
|
+
background-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
|
|
94
|
+
outline:thin solid var(--iui-color-foreground-primary);
|
|
95
|
+
outline-offset:-1px; }
|
|
96
|
+
.iui-tree-node.iui-active:focus{
|
|
97
|
+
outline-width:2px;
|
|
98
|
+
outline-offset:-2px; }
|
|
99
|
+
.iui-tree-node.iui-disabled{
|
|
100
|
+
cursor:not-allowed;
|
|
101
|
+
outline:none;
|
|
102
|
+
background-color:transparent;
|
|
103
|
+
color:rgba(0, 0, 0, 0.2);
|
|
104
|
+
color:var(--iui-text-color-placeholder); }
|
|
105
|
+
.iui-tree-node.iui-disabled .iui-tree-node-content-caption{
|
|
106
|
+
color:rgba(0, 0, 0, 0.2);
|
|
107
|
+
color:var(--iui-text-color-placeholder); }
|
package/css/user-icon.css
CHANGED
package/package.json
CHANGED
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
@include iui-button-borderless-base;
|
|
10
10
|
@include iui-button-size(medium, borderless);
|
|
11
11
|
|
|
12
|
-
&:hover,
|
|
13
12
|
&:focus {
|
|
14
|
-
@include
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
@include iui-button-borderless-hover-focus;
|
|
14
|
+
|
|
15
|
+
&:where(:not(:focus-visible)) {
|
|
16
|
+
@include iui-button-borderless-base;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
&:
|
|
21
|
-
@include iui-button-borderless-
|
|
20
|
+
&:hover {
|
|
21
|
+
@include iui-button-borderless-hover-focus;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.iui-active {
|
|
@@ -46,6 +46,13 @@
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
@mixin iui-button-borderless-hover-focus {
|
|
50
|
+
@include themed {
|
|
51
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
|
|
52
|
+
border-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
@mixin iui-button-borderless-base {
|
|
50
57
|
border-color: transparent;
|
|
51
58
|
background-color: transparent;
|
|
@@ -5,72 +5,85 @@
|
|
|
5
5
|
@mixin iui-button-group {
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
align-items: center;
|
|
8
|
+
isolation: isolate;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
&:not(.iui-borderless) {
|
|
11
|
-
border-radius: 0;
|
|
12
|
-
}
|
|
10
|
+
$childSelector: 'input, button'; // target nested inputs and buttons
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
border-bottom-left-radius: $iui-border-radius;
|
|
17
|
-
}
|
|
12
|
+
> * {
|
|
13
|
+
display: flex;
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
#{$childSelector} {
|
|
16
|
+
&:hover {
|
|
17
|
+
z-index: 1;
|
|
18
|
+
}
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
20
|
+
&:focus {
|
|
21
|
+
z-index: 2;
|
|
27
22
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
&:where(:not(:focus-visible):not(:hover)) {
|
|
24
|
+
z-index: revert;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:disabled {
|
|
29
|
+
z-index: -1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Adds stripe above active button
|
|
33
|
+
&.iui-active {
|
|
34
|
+
&::after {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
height: $iui-xxs;
|
|
38
|
+
opacity: 1;
|
|
39
|
+
top: $iui-xxs;
|
|
40
|
+
left: $iui-xxs;
|
|
41
|
+
width: calc(100% - #{$iui-xs});
|
|
32
42
|
@include themed {
|
|
33
|
-
|
|
43
|
+
background-color: t(iui-color-foreground-primary);
|
|
34
44
|
}
|
|
35
45
|
}
|
|
36
46
|
|
|
37
|
-
&:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
&:disabled {
|
|
48
|
+
&::after {
|
|
49
|
+
@include themed {
|
|
50
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
|
|
51
|
+
}
|
|
42
52
|
}
|
|
43
53
|
}
|
|
44
54
|
}
|
|
45
55
|
|
|
46
|
-
//
|
|
47
|
-
&:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
// Reset border radius only for non-borderless items
|
|
57
|
+
&:not(.iui-borderless) {
|
|
58
|
+
border-radius: 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Add rounded corners to first and last items
|
|
63
|
+
&:first-child {
|
|
64
|
+
#{$childSelector}:not(.iui-borderless) {
|
|
65
|
+
border-top-left-radius: $iui-border-radius;
|
|
66
|
+
border-bottom-left-radius: $iui-border-radius;
|
|
51
67
|
}
|
|
52
68
|
}
|
|
53
|
-
}
|
|
54
69
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
position: absolute;
|
|
60
|
-
height: $iui-xxs;
|
|
61
|
-
opacity: 1;
|
|
62
|
-
top: $iui-xxs;
|
|
63
|
-
left: $iui-xxs;
|
|
64
|
-
width: calc(100% - #{$iui-xs});
|
|
65
|
-
@include themed {
|
|
66
|
-
background-color: t(iui-color-foreground-primary);
|
|
70
|
+
&:last-child {
|
|
71
|
+
#{$childSelector}:not(.iui-borderless) {
|
|
72
|
+
border-top-right-radius: $iui-border-radius;
|
|
73
|
+
border-bottom-right-radius: $iui-border-radius;
|
|
67
74
|
}
|
|
68
75
|
}
|
|
69
76
|
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
// Use negative margin to make adjacent borders overlap
|
|
78
|
+
&:not(:last-child) {
|
|
79
|
+
margin-right: -1px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Add slight border between disabled items
|
|
83
|
+
&:not(:first-child) {
|
|
84
|
+
.iui-default:disabled {
|
|
72
85
|
@include themed {
|
|
73
|
-
|
|
86
|
+
border-left-color: t(iui-color-background-4);
|
|
74
87
|
}
|
|
75
88
|
}
|
|
76
89
|
}
|
package/scss/button/cta.scss
CHANGED
|
@@ -8,18 +8,17 @@
|
|
|
8
8
|
@mixin iui-button-cta {
|
|
9
9
|
@include iui-button-cta-base;
|
|
10
10
|
|
|
11
|
-
&:hover,
|
|
12
|
-
&:active,
|
|
13
11
|
&:focus {
|
|
14
|
-
@include
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
@include iui-button-cta-hover-focus;
|
|
13
|
+
|
|
14
|
+
&:where(:not(:focus-visible)) {
|
|
15
|
+
@include iui-button-cta-base;
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
&:
|
|
22
|
-
|
|
19
|
+
&:hover,
|
|
20
|
+
&:active {
|
|
21
|
+
@include iui-button-cta-hover-focus;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
&[disabled],
|
|
@@ -28,6 +27,14 @@
|
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
|
|
30
|
+
@mixin iui-button-cta-hover-focus {
|
|
31
|
+
@include themed {
|
|
32
|
+
background-color: t(iui-color-background-positive-overlay);
|
|
33
|
+
border-color: t(iui-color-background-positive-overlay);
|
|
34
|
+
color: t(iui-color-foreground-accessory);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
@mixin iui-button-cta-base {
|
|
32
39
|
@include themed {
|
|
33
40
|
background-color: t(iui-color-background-positive);
|
package/scss/button/default.scss
CHANGED
|
@@ -9,19 +9,17 @@
|
|
|
9
9
|
@mixin iui-button-default {
|
|
10
10
|
@include iui-button-default-base;
|
|
11
11
|
|
|
12
|
-
&:hover,
|
|
13
|
-
&:active,
|
|
14
12
|
&:focus {
|
|
15
|
-
@include
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
@include iui-button-default-hover-focus;
|
|
14
|
+
|
|
15
|
+
&:where(:not(:focus-visible)) {
|
|
16
|
+
@include iui-button-default-base;
|
|
19
17
|
}
|
|
20
|
-
@include iui-notification-marker-hover;
|
|
21
18
|
}
|
|
22
19
|
|
|
23
|
-
&:
|
|
24
|
-
|
|
20
|
+
&:hover,
|
|
21
|
+
&:active {
|
|
22
|
+
@include iui-button-default-hover-focus;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
&.iui-dropdown {
|
|
@@ -54,6 +52,15 @@
|
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
|
|
55
|
+
@mixin iui-button-default-hover-focus {
|
|
56
|
+
@include themed {
|
|
57
|
+
background-color: t(iui-color-background-1-overlay);
|
|
58
|
+
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
59
|
+
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
60
|
+
}
|
|
61
|
+
@include iui-notification-marker-hover;
|
|
62
|
+
}
|
|
63
|
+
|
|
57
64
|
@mixin iui-button-default-base {
|
|
58
65
|
@include themed {
|
|
59
66
|
background-color: t(iui-color-background-1);
|
|
@@ -8,18 +8,17 @@
|
|
|
8
8
|
@mixin iui-button-high-visibility {
|
|
9
9
|
@include iui-button-high-visibility-base;
|
|
10
10
|
|
|
11
|
-
&:hover,
|
|
12
|
-
&:active,
|
|
13
11
|
&:focus {
|
|
14
|
-
@include
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
@include iui-button-high-visibility-hover-focus;
|
|
13
|
+
|
|
14
|
+
&:where(:not(:focus-visible)) {
|
|
15
|
+
@include iui-button-high-visibility-base;
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
&:
|
|
22
|
-
|
|
19
|
+
&:hover,
|
|
20
|
+
&:active {
|
|
21
|
+
@include iui-button-high-visibility-hover-focus;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
&[disabled],
|
|
@@ -28,6 +27,14 @@
|
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
|
|
30
|
+
@mixin iui-button-high-visibility-hover-focus {
|
|
31
|
+
@include themed {
|
|
32
|
+
background-color: t(iui-color-background-primary-overlay);
|
|
33
|
+
border-color: t(iui-color-background-primary-overlay);
|
|
34
|
+
color: t(iui-color-foreground-accessory);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
@mixin iui-button-high-visibility-base {
|
|
32
39
|
@include themed {
|
|
33
40
|
background-color: t(iui-color-background-primary);
|
|
@@ -11,31 +11,45 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
> * {
|
|
15
|
+
&:first-child {
|
|
16
|
+
> .iui-borderless:hover {
|
|
17
|
+
background-color: transparent;
|
|
18
|
+
}
|
|
17
19
|
}
|
|
18
|
-
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
// Sizes
|
|
22
|
+
&:last-child {
|
|
23
|
+
> .iui-button {
|
|
24
|
+
padding: $iui-xs;
|
|
25
|
+
}
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
> .iui-small {
|
|
28
|
+
padding: $iui-xxs;
|
|
29
|
+
}
|
|
28
30
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
> .iui-large {
|
|
32
|
+
padding: $iui-s;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
// Border between buttons for high-visibility and cta
|
|
37
|
+
&:first-child {
|
|
38
|
+
> .iui-high-visibility,
|
|
39
|
+
> .iui-cta {
|
|
40
|
+
@include themed {
|
|
41
|
+
border-right-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:last-child {
|
|
47
|
+
> .iui-high-visibility,
|
|
48
|
+
> .iui-cta {
|
|
49
|
+
@include themed {
|
|
50
|
+
border-left-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
39
53
|
}
|
|
40
54
|
}
|
|
41
55
|
|
package/scss/classes.scss
CHANGED
package/scss/header/header.scss
CHANGED
|
@@ -314,9 +314,13 @@
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
@mixin iui-header-split-button {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
317
|
+
&,
|
|
318
|
+
> * {
|
|
319
|
+
height: 100%;
|
|
320
|
+
display: flex;
|
|
321
|
+
overflow: hidden;
|
|
322
|
+
}
|
|
323
|
+
|
|
320
324
|
max-width: 25vw;
|
|
321
325
|
|
|
322
326
|
.iui-button {
|
|
@@ -324,8 +328,10 @@
|
|
|
324
328
|
padding: 0 $iui-xs;
|
|
325
329
|
}
|
|
326
330
|
|
|
327
|
-
|
|
328
|
-
|
|
331
|
+
> *:first-child {
|
|
332
|
+
.iui-button {
|
|
333
|
+
padding-left: $iui-sm;
|
|
334
|
+
}
|
|
329
335
|
}
|
|
330
336
|
|
|
331
337
|
&.iui-active {
|
|
@@ -343,8 +349,10 @@
|
|
|
343
349
|
display: none;
|
|
344
350
|
}
|
|
345
351
|
}
|
|
352
|
+
}
|
|
346
353
|
|
|
347
|
-
|
|
354
|
+
> *:last-child {
|
|
355
|
+
> .iui-button:hover {
|
|
348
356
|
@include themed {
|
|
349
357
|
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
350
358
|
}
|
|
@@ -415,13 +423,13 @@
|
|
|
415
423
|
box-shadow: 0 $iui-xxs 0 0 rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
416
424
|
}
|
|
417
425
|
|
|
418
|
-
.iui-label {
|
|
426
|
+
.iui-button-label {
|
|
419
427
|
@include themed {
|
|
420
428
|
color: t(iui-icons-color-actionable-disabled);
|
|
421
429
|
}
|
|
422
430
|
}
|
|
423
431
|
|
|
424
|
-
.iui-icon,
|
|
432
|
+
.iui-button-icon,
|
|
425
433
|
svg {
|
|
426
434
|
@include themed {
|
|
427
435
|
fill: t(iui-icons-color-actionable-disabled);
|