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+
15.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 );
39 margin : auto;
410 max-width : var (--container-width );
511 padding : var (--spacing-6 ) var (--grid-margin );
612}
713
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+
822@media (max-width : 768px ) {
923 .sidebar-container {
1024 display : block;
1125 padding : var (--spacing-4 ) var (--grid-margin );
1226 }
1327}
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) {
5151 } ) ;
5252 assert . dom ( '.sidebar-container .es-sidebar' ) . hasStyle ( {
5353 width : '256px' ,
54- margin : '0px 0px 0px 32px ' ,
54+ margin : '0px' ,
5555 } ) ;
5656
5757 await render ( hbs `
@@ -63,7 +63,7 @@ module('Integration | Component | es-sidebar', function (hooks) {
6363
6464 assert . dom ( '.sidebar-container .es-sidebar' ) . hasStyle ( {
6565 width : '256px' ,
66- margin : '0px 32px 0px 0px ' ,
66+ margin : '0px' ,
6767 } ) ;
6868 assert . dom ( '[data-test-content-right]' ) . hasStyle ( {
6969 width : '684px' ,
You can’t perform that action at this time.
0 commit comments