File tree Expand file tree Collapse file tree 3 files changed +47
-4
lines changed Expand file tree Collapse file tree 3 files changed +47
-4
lines changed Original file line number Diff line number Diff line change 99 display : none;
1010}
1111
12+ .es-sidebar--border-right {
13+ border-right : 2px solid var (--color-gray-300 );
14+ }
15+
1216@media (max-width : 844px ) {
1317 .es-sidebar-toggle {
1418 position : fixed;
8387 .es-sidebar-close svg path {
8488 fill : currentColor;
8589 }
90+
91+ .es-sidebar--border-right {
92+ border-right : none;
93+ }
8694}
Original file line number Diff line number Diff line change 2424 padding : 0 ;
2525}
2626
27- .es-sidebar--border-right {
28- border-right : 2px solid var (--color-gray-300 );
29- }
30-
3127@media (max-width : 844px ) {
3228 .sidebar-container {
3329 display : block;
Original file line number Diff line number Diff line change @@ -50,3 +50,42 @@ The sidebar component will automatically switch to the mobile mode once your bro
5050 </EsSidebar>
5151</div>
5252```
53+
54+
55+ ### Full Width Left Sidebar Example
56+ ``` handlebars
57+ <div class="sidebar-container sidebar-container--full-width">
58+ <EsSidebar>
59+ My Left Sidebar Content
60+ </EsSidebar>
61+ <div class="example-content">
62+ My Content
63+ </div>
64+ </div>
65+ ```
66+
67+ ### Full Width Right Sidebar Example
68+ ``` handlebars
69+ <div class="sidebar-container sidebar-container--full-width">
70+ <div class="example-content">
71+ My Content
72+ </div>
73+ <EsSidebar>
74+ My Right Sidebar Content
75+ </EsSidebar>
76+ </div>
77+ ```
78+
79+ ### Sidebar Right Border
80+ There is a class, ` es-sidebar--border-right ` , that you can add to your sidebar to give it a right border. This will not show up in mobile.
81+ ``` handlebars
82+ <div class="sidebar-container">
83+ <EsSidebar class="es-sidebar--border-right">
84+ My Left Sidebar Content
85+ </EsSidebar>
86+ <div class="example-content">
87+ My Content
88+ </div>
89+ </div>
90+ ```
91+
You can’t perform that action at this time.
0 commit comments