Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 086b06a

Browse files
committed
style(nav): consistent size between nav and animations
Closes #13
1 parent 690e634 commit 086b06a

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

demo.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
top: 0;
1212

1313
background: black;
14-
width: 250px;
1514
height: 100%;
1615
}
1716
</style>

off-canvas.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ html, body {
77
overflow-x: hidden; }
88

99
.off-canvas__nav {
10+
width: 250px;
1011
-webkit-transform: translate3d(0, 0, 0) translateX(-250px);
1112
-ms-transform: translate3d(0, 0, 0) translateX(-250px);
1213
-moz-transform: translate3d(0, 0, 0) translateX(-250px);

off-canvas.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ html, body
2626
overflow-x: hidden
2727

2828
.off-canvas__nav
29+
width: $off-canvas-size
2930
+vendor-prefix(transform, translate3d(0,0,0) translateX(-$off-canvas-size))
3031
+vendor-prefix(transition, $off-canvas-transition)
3132

0 commit comments

Comments
 (0)