Skip to content

Commit c4a0ea5

Browse files
authored
Merge pull request #6 from MarcusMann/master
Active the sidebar-mini
2 parents f30a183 + a9cb743 commit c4a0ea5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/en/2.3/development/sidebar.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,29 @@ You can also hide the sidebar by adding the sidebar-gone class in the `<body>` t
4444
<body class="sidebar-gone">
4545
```
4646

47+
### Sidebar Mini
48+
49+
You would of provider a mini sidebar? Add an class `sidebar-mini` on `body` tag.
50+
51+
52+
```html
53+
<body class="sidebar-mini">
54+
```
55+
56+
Open the assets/js/scripts.js file and search function: `toggle_sidebar_mini` will be inside `toggleLayout` change param for true:
57+
58+
```javascript
59+
toggle_sidebar_mini(true)
60+
```
61+
62+
Search for:
63+
64+
```javascript
65+
$("body").removeClass("sidebar-gone sidebar-show");
66+
```
67+
68+
And add after:
69+
70+
```javascript
71+
$("body").addClass("sidebar-mini");
72+
```

0 commit comments

Comments
 (0)