Skip to content

Commit e80277a

Browse files
committed
style(globe): center play button on slider and gradient earth story title
1 parent 32ac230 commit e80277a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

docs/css/style.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ button {
13871387

13881388
.range-slider-container {
13891389
display: flex;
1390-
align-items: center;
1390+
align-items: flex-end;
13911391
gap: 8px;
13921392
width: 100%;
13931393
}
@@ -1414,6 +1414,10 @@ button {
14141414
flex-shrink: 0;
14151415
width: 32px;
14161416
height: 32px;
1417+
/* Bottom-aligned to the wrapper, then nudged down so the button's centre
1418+
lines up with the slider track centre (track centre sits 12px above the
1419+
slider's bottom; half the 32px button is 16px). */
1420+
margin-bottom: -4px;
14171421
padding: 0;
14181422
background: rgba(151, 174, 196, 0.15);
14191423
border: 1px solid rgba(151, 174, 196, 0.4);
@@ -1873,7 +1877,10 @@ button {
18731877
font-weight: 400;
18741878
line-height: 1;
18751879
letter-spacing: 0;
1876-
color: var(--text);
1880+
background: var(--gradient-primary);
1881+
-webkit-background-clip: text;
1882+
background-clip: text;
1883+
color: transparent;
18771884
text-transform: uppercase;
18781885
}
18791886

0 commit comments

Comments
 (0)