Skip to content

Commit 68b29c4

Browse files
Merge pull request #2382 from rhamilto/mobile-vert-nav-transition
Automatic merge from submit-queue. Only transition vertical nav at mobile on show As a follow on to #2381, it feels better to me if the vertical nav at mobile only transitions on show. This way the vertical nav goes away immediately on clicking a nav item rather than lingering around as it transitions off the screen.
2 parents d912700 + a7c53d1 commit 68b29c4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/styles/_vertical-nav.less

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
display: none;
1212
}
1313
.has-project-bar & {
14-
transition: width .1s ease-in-out, left .1s ease-in-out;
14+
transition: width .1s ease-in-out;
1515
top: (@navbar-os-header-height-mobile + @project-bar-height-mobile);
1616
@media(min-width: @screen-sm-min) {
1717
display: block;
@@ -99,6 +99,7 @@
9999
&.show-mobile-nav {
100100
box-shadow: 2px 0 3px rgba(3,3,3,.15);
101101
left: 0;
102+
transition: left .1s ease-in-out;
102103
}
103104
.nav-pf-secondary-nav {
104105
background: @nav-pf-vertical-active-bg-color;

dist/styles/main.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)