You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,27 @@ Reverse the page orientation with a single class.
78
78
```
79
79
80
80
81
+
### Sidebar overlay instead of push
82
+
83
+
Make the sidebar overlap the viewport content with a single class:
84
+
85
+
```html
86
+
<bodyclass="sidebar-overlay">
87
+
...
88
+
</body>
89
+
```
90
+
91
+
This will keep the content stationary and slide in the sidebar over the side content. It also adds a `box-shadow` based outline to the toggle for contrast against backgrounds, as well as a `box-shadow` on the sidebar for depth.
92
+
93
+
It's also available for a reversed layout when you add both classes:
94
+
95
+
```html
96
+
<bodyclass="layout-reverse sidebar-overlay">
97
+
...
98
+
</body>
99
+
```
100
+
101
+
81
102
## Development
82
103
83
104
Lanyon has two branches, but only one is used for active development.
0 commit comments