Skip to content

Commit

Permalink
Fix/expand not smoothly (#41)
Browse files Browse the repository at this point in the history
* Add visiblility transtion on navtext

* Build doc

* preserving trailing semicolons
  • Loading branch information
roth1002 authored Nov 6, 2019
1 parent 09e3083 commit 9117472
Show file tree
Hide file tree
Showing 8 changed files with 734 additions and 267 deletions.
33 changes: 25 additions & 8 deletions dist/react-sidenav.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/react-sidenav.min.css

Large diffs are not rendered by default.

951 changes: 698 additions & 253 deletions docs/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
</head>
<body>
<div id="container"></div>
<script type="text/javascript" src="bundle.js?f19157b84f0a6034d46d"></script></body>
<script type="text/javascript" src="bundle.js?042afdb679b36b041cf3"></script></body>
</html>
4 changes: 3 additions & 1 deletion src/sidenav-expanded.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

.sidenav-nav > .sidenav-navitem {
.navicon + .navtext {
display: inline-block;
visibility: visible;
opacity: 1;
transition: opacity .2s linear;
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/sidenav-navitem.styl
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
}

> .navitem .navicon + .navtext {
display: none;
width: 0;
visibility: hidden;
opacity: 0;
transition: visibility 0s .2s, opacity .2s linear;
}
}
2 changes: 1 addition & 1 deletion src/sidenav.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
z-index: 1006;
min-width: 64px;
background: #db3d44;
transition: min-width .15s;
transition: min-width .2s;
}

0 comments on commit 9117472

Please sign in to comment.