File tree Expand file tree Collapse file tree 2 files changed +17
-22
lines changed
tests/integration/components Expand file tree Collapse file tree 2 files changed +17
-22
lines changed Original file line number Diff line number Diff line change
1
+ : root {
2
+ --sidebar-width : 16rem ;
3
+ }
4
+
1
5
.sidebar-container {
2
- display : flex;
6
+ display : grid;
7
+ grid-gap : 2rem ;
8
+ grid-template-columns : var (--sidebar-width ) minmax (0 , 1fr ) var (--sidebar-width );
3
9
margin : auto;
4
10
max-width : var (--container-width );
5
11
padding : var (--spacing-6 ) var (--grid-margin );
6
12
}
7
13
14
+ .sidebar-container > * : not (.es-sidebar ): not (.es-sidebar-toggle ) {
15
+ grid-column : 1 / span 2 ;
16
+ }
17
+
18
+ .sidebar-container > .es-sidebar + .es-sidebar-toggle + * {
19
+ grid-column : 2 / span 2 ;
20
+ }
21
+
8
22
@media (max-width : 768px ) {
9
23
.sidebar-container {
10
24
display : block;
11
25
padding : var (--spacing-4 ) var (--grid-margin );
12
26
}
13
27
}
14
-
15
- @media (min-width : 769px ) {
16
- .sidebar-container > .es-sidebar {
17
- width : 16rem ;
18
- margin-right : 2rem ;
19
- flex-grow : 0 ;
20
- flex-shrink : 0 ;
21
- }
22
-
23
- .sidebar-container > * : not (.es-sidebar ): not (.es-sidebar-toggle ) {
24
- flex-grow : 1 ;
25
- }
26
-
27
- .sidebar-container > * + .es-sidebar {
28
- order : 999 ;
29
- margin-right : unset;
30
- margin-left : 2rem ;
31
- }
32
- }
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ module('Integration | Component | es-sidebar', function (hooks) {
51
51
} ) ;
52
52
assert . dom ( '.sidebar-container .es-sidebar' ) . hasStyle ( {
53
53
width : '256px' ,
54
- margin : '0px 0px 0px 32px ' ,
54
+ margin : '0px' ,
55
55
} ) ;
56
56
57
57
await render ( hbs `
@@ -63,7 +63,7 @@ module('Integration | Component | es-sidebar', function (hooks) {
63
63
64
64
assert . dom ( '.sidebar-container .es-sidebar' ) . hasStyle ( {
65
65
width : '256px' ,
66
- margin : '0px 32px 0px 0px ' ,
66
+ margin : '0px' ,
67
67
} ) ;
68
68
assert . dom ( '[data-test-content-right]' ) . hasStyle ( {
69
69
width : '684px' ,
You can’t perform that action at this time.
0 commit comments