Skip to content

Commit 6ae3cae

Browse files
committed
Support navigation depth > 5
1 parent efca00e commit 6ae3cae

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

app/styles/nav-stack.scss

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,8 @@ $easing: cubic-bezier(.23, 1, .32, 1);
4646
box-sizing: border-box;
4747
overflow:hidden;
4848

49-
&-0 {
50-
left: 0;
51-
}
52-
&-1 {
53-
left: 20%;
54-
}
55-
&-2 {
56-
left: 40%;
57-
}
58-
&-3 {
59-
left: 60%;
60-
}
61-
&-4 {
62-
left: 80%;
49+
@for $i from 0 through 100 {
50+
&-#{$i} { left: 20% * $i; }
6351
}
6452
}
6553

0 commit comments

Comments
 (0)