File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 9
9
display : none;
10
10
}
11
11
12
+ .es-sidebar--border-right {
13
+ border-right : 2px solid var (--color-gray-300 );
14
+ }
15
+
12
16
@media (max-width : 844px ) {
13
17
.es-sidebar-toggle {
14
18
position : fixed;
19
+ z-index : 1 ;
15
20
bottom : 30px ;
16
21
right : 30px ;
17
22
43
48
box-sizing : border-box;
44
49
display : none;
45
50
position : fixed;
51
+ z-index : 1 ;
46
52
top : var (--es-sidebar-padding );
47
53
left : var (--es-sidebar-padding );
48
54
height : calc (100% - var (--es-sidebar-padding ) * 2 );
81
87
.es-sidebar-close svg path {
82
88
fill : currentColor;
83
89
}
90
+
91
+ .es-sidebar--border-right {
92
+ border-right : none;
93
+ }
84
94
}
Original file line number Diff line number Diff line change 19
19
grid-column : 2 / span 2 ;
20
20
}
21
21
22
+ .sidebar-container--full-width {
23
+ max-width : 100% ;
24
+ padding : 0 ;
25
+ }
26
+
22
27
@media (max-width : 844px ) {
23
28
.sidebar-container {
24
29
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
50
50
</EsSidebar>
51
51
</div>
52
52
```
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