@qtoggle/qui 1.20.0-beta.2 → 1.20.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/less/icon-label-view.less +21 -9
- package/package.json +1 -1
- package/pyproject.toml +1 -1
|
@@ -57,38 +57,50 @@ div.qui-icon-label-view {
|
|
|
57
57
|
&.qui-base-button {
|
|
58
58
|
background: @background-color;
|
|
59
59
|
color: @interactive-color;
|
|
60
|
+
transition: color @transition-duration ease,
|
|
61
|
+
opacity @transition-duration ease;
|
|
60
62
|
|
|
61
|
-
/* The pressed shade
|
|
62
|
-
*
|
|
63
|
+
/* The selected fill and the pressed shade are overlays faded by opacity, which the compositor animates without
|
|
64
|
+
* repainting the row. Chrome sometimes shows a background transition's first frame again once it ends. */
|
|
63
65
|
position: relative;
|
|
66
|
+
z-index: 0;
|
|
64
67
|
|
|
65
|
-
|
|
68
|
+
/* Negative z-index keeps both overlays above the row's background but below its content */
|
|
69
|
+
&::before,
|
|
70
|
+
&::after {
|
|
66
71
|
content: '';
|
|
67
72
|
position: absolute;
|
|
68
73
|
top: 0;
|
|
69
74
|
right: 0;
|
|
70
75
|
bottom: 0;
|
|
71
76
|
left: 0;
|
|
72
|
-
background: @background-active-color;
|
|
73
77
|
opacity: 0;
|
|
74
78
|
transition: opacity @transition-duration ease;
|
|
75
79
|
pointer-events: none;
|
|
76
80
|
}
|
|
77
81
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
&::before {
|
|
83
|
+
background: @interactive-color;
|
|
84
|
+
z-index: -2;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&::after {
|
|
88
|
+
background: @background-active-color;
|
|
89
|
+
z-index: -1;
|
|
81
90
|
}
|
|
82
91
|
|
|
83
|
-
&.active::
|
|
92
|
+
&.active::after {
|
|
84
93
|
opacity: 1;
|
|
85
94
|
}
|
|
86
95
|
|
|
87
96
|
&.selected {
|
|
88
|
-
background: @interactive-color;
|
|
89
97
|
color: @background-color;
|
|
90
98
|
|
|
91
99
|
&::before {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&::after {
|
|
92
104
|
background: @interactive-active-color;
|
|
93
105
|
}
|
|
94
106
|
|
package/package.json
CHANGED