Skip to content

Commit

Permalink
Snappier transition for mobile collapsible menu/sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
solarkraft committed Oct 22, 2021
1 parent 9d0c9dc commit 8a6645a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/css/doku.css
Original file line number Diff line number Diff line change
Expand Up @@ -25220,4 +25220,8 @@ a :active, a :focus, a .active {
width: 2rem;
}

html .collapsing {
transition: height 0.4s cubic-bezier(0.25, 0, 0, 1);
}

/*# sourceMappingURL=doku.css.map */
2 changes: 1 addition & 1 deletion assets/css/doku.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions assets/css/doku.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1127,4 +1127,9 @@ a {
height: 2rem;
width: 2rem;
}
}

// Snappier transition for collapsible sidebar (narrow view)
html .collapsing {
transition: height 0.4s cubic-bezier( 0.25, 0, 0, 1);
}
2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class="nav-link-inner--text"><?php tpl_link(wl(), $conf['title'], 'accesskey="h"
$buffer = ob_get_clean();
?>

<!-- left sidebar -->
<!-- left sidebar, which can become a collapsible page menu on narrow screens -->
<div class="col-12 col-md-3 col-xl-2 ct-sidebar">
<nav class="collapse ct-links" id="ct-docs-nav">
<?php if ($showSidebar): ?>
Expand Down

0 comments on commit 8a6645a

Please sign in to comment.