Skip to content

Commit 1fd86f5

Browse files
follettoseear
authored andcommitted
Fix: Theme CSS animation now comes from bottom (#5533)
Fixes #5526.
1 parent 95356cf commit 1fd86f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

client/components/theme/style.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ $theme-info-height: 54px;
8585

8686
color: $gray;
8787
text-transform: uppercase;
88-
text-align: center;
8988
font-size: 11px;
9089
font-weight: 600;
9190

9291
background: transparentize($white, 0.9);
9392

9493
span {
94+
position: absolute;
95+
left: 50%;
96+
transform: translate( -50%, 0 ); // center (using translate to allow animation)
9597
padding: 6px 9px;
9698

9799
color: $gray-dark;
@@ -104,8 +106,7 @@ $theme-info-height: 54px;
104106

105107
@keyframes theme__active-focus-label {
106108
0% {
107-
position: absolute;
108-
transform: translate3d( 0, 10px, 0);
109+
transform: translate3d( -50%, 10px, 0);
109110
}
110111
}
111112

0 commit comments

Comments
 (0)