Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2e3cb0a

Browse files
authored
Replace a Sass variable with a CSS custom property - hover-transition (#10786)
1 parent 74d3018 commit 2e3cb0a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

res/css/_animations.pcss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ limitations under the License.
3434
transition: opacity 300ms ease;
3535
}
3636

37+
:root {
38+
--hover-transition: 0.08s cubic-bezier(0.46, 0.03, 0.52, 0.96); /* quadratic */
39+
}
40+
3741
@keyframes mx--anim-pulse {
3842
0% {
3943
opacity: 1;

res/css/_common.pcss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ limitations under the License.
2323
@import "./_spacing.pcss";
2424
@import url("maplibre-gl/dist/maplibre-gl.css");
2525

26-
$hover-transition: 0.08s cubic-bezier(0.46, 0.03, 0.52, 0.96); /* quadratic */
27-
2826
:root {
2927
font-size: 10px;
3028

res/css/views/settings/_AvatarSetting.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ limitations under the License.
2222
position: relative;
2323

2424
.mx_AvatarSetting_hover {
25-
transition: opacity $hover-transition;
25+
transition: opacity var(--hover-transition);
2626

2727
/* position to place the hover bg over the entire thing */
2828
position: absolute;

0 commit comments

Comments
 (0)