Skip to content

Commit 213db5d

Browse files
gtm-nayanbenmccann
andauthored
docs: fix easings example glitch (#9114)
Co-authored-by: Ben McCann <[email protected]>
1 parent bd64f07 commit 213db5d

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

documentation/examples/11-easing/00-easing/App.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
</div>
6969

7070
<style>
71+
:root {
72+
scrollbar-gutter: stable;
73+
}
74+
7175
.easing-vis {
7276
display: flex;
7377
max-height: 95%;

documentation/examples/11-easing/00-easing/Controls.svelte

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,28 +74,31 @@
7474
ul {
7575
list-style: none;
7676
padding: 0;
77-
display: flex;
78-
flex-direction: column;
79-
align-items: flex-start;
77+
display: grid;
78+
grid-template-columns: 1fr;
79+
gap: 3px;
8080
font-size: 18px;
8181
}
8282
8383
li {
84-
padding: 5px 10px;
85-
background: #eee;
86-
border-radius: 2px;
87-
margin: 3px 0;
88-
cursor: pointer;
84+
display: grid;
8985
}
9086
9187
li:hover {
9288
background: #676778;
9389
color: white;
9490
}
9591
96-
.selected {
92+
button {
93+
border: none;
94+
border-radius: 2px;
95+
padding: 2px;
96+
}
97+
98+
.selected > button {
9799
background: #ff3e00;
98100
color: white;
101+
font-weight: bold;
99102
}
100103
101104
h3 {

0 commit comments

Comments
 (0)