6
6
}
7
7
}
8
8
9
- // stylelint-disable selector-type-no-unknown, no-duplicate-selectors, selector-no-qualifying-type
9
+ // stylelint-disable selector-type-no-unknown, no-duplicate-selectors, selector-no-qualifying-type, selector-max-combinators
10
10
// app-dashboard and app-root are Angular2+ selectors. You can add here your own selectors if you need.
11
11
.app ,
12
12
app-dashboard ,
@@ -167,7 +167,6 @@ html[dir="rtl"] {
167
167
//
168
168
// Aside Menu
169
169
//
170
-
171
170
.aside-menu-fixed {
172
171
.aside-menu {
173
172
position : fixed ;
@@ -239,11 +238,12 @@ html[dir="rtl"] {
239
238
@include media-breakpoint-up ($breakpoint ) {
240
239
$infix : breakpoint-infix ($breakpoint , $grid-breakpoints );
241
240
html :not ([dir = " rtl" ]) {
242
- .sidebar#{$infix } -show {
241
+ .sidebar#{$infix } -show ,
242
+ .sidebar-show {
243
243
.sidebar {
244
244
margin-left : 0 ;
245
245
}
246
- @if media- breakpoint-up ( sm ) {
246
+ @if $ breakpoint != " xs " {
247
247
& .sidebar-fixed {
248
248
.main ,
249
249
.app-footer {
@@ -258,7 +258,7 @@ html[dir="rtl"] {
258
258
& .sidebar-minimized {
259
259
.main ,
260
260
.app-footer {
261
- margin-left : $ sidebar-minimized-width ;
261
+ margin-left : if ( $breakpoint != " lg " and $breakpoint != " xl " , $ sidebar-width , $sidebar- minimized-width) ;
262
262
}
263
263
}
264
264
}
@@ -280,11 +280,12 @@ html[dir="rtl"] {
280
280
}
281
281
}
282
282
283
+ .aside-menu-show ,
283
284
.aside-menu#{$infix } -show {
284
285
.aside-menu {
285
286
margin-right : 0 ;
286
287
}
287
- @if media- breakpoint-up ( sm ) {
288
+ @if $ breakpoint != " xs " {
288
289
& .aside-menu-fixed {
289
290
.main ,
290
291
.app-footer {
@@ -301,11 +302,12 @@ html[dir="rtl"] {
301
302
}
302
303
303
304
html [dir = " rtl" ] {
304
- .sidebar#{$infix } -show {
305
+ .sidebar#{$infix } -show ,
306
+ .sidebar-show {
305
307
.sidebar {
306
308
margin-right : 0 ;
307
309
}
308
- @if media- breakpoint-up ( sm ) {
310
+ @if $ breakpoint != " xs " {
309
311
& .sidebar-fixed {
310
312
.main ,
311
313
.app-footer {
@@ -320,7 +322,7 @@ html[dir="rtl"] {
320
322
& .sidebar-minimized {
321
323
.main ,
322
324
.app-footer {
323
- margin-right : $ sidebar-minimized-width ;
325
+ margin-right : if ( $breakpoint != " lg " and $breakpoint != " xl " , $ sidebar-width , $sidebar- minimized-width) ;
324
326
}
325
327
}
326
328
}
@@ -342,11 +344,12 @@ html[dir="rtl"] {
342
344
}
343
345
}
344
346
347
+ .aside-menu-show ,
345
348
.aside-menu#{$infix } -show {
346
349
.aside-menu {
347
350
margin-left : 0 ;
348
351
}
349
- @if media- breakpoint-up ( sm ) {
352
+ @if $ breakpoint != " xs " {
350
353
& .aside-menu-fixed {
351
354
.main ,
352
355
.app-footer {
@@ -361,26 +364,29 @@ html[dir="rtl"] {
361
364
}
362
365
}
363
366
}
367
+
364
368
.sidebar#{$infix } -show ,
365
369
.aside-menu#{$infix } -show {
366
370
@keyframes opacity {
367
371
0% { opacity : 0 ; }
368
372
100% { opacity : 1 ; }
369
373
}
370
374
371
- @include media-breakpoint-down (xs) {
372
- .main {
373
- position : relative ;
374
- & ::before {
375
- position : absolute ;
376
- top : 0 ;
377
- left : 0 ;
378
- z-index : $zindex-sticky - 2 ;
379
- width : 100% ;
380
- height : 100% ;
381
- content : " " ;
382
- background : rgba (0 , 0 , 0 , .7 );
383
- animation : opacity $layout-transition-speed ;
375
+ @if $breakpoint == " xs" {
376
+ @include media-breakpoint-down (xs) {
377
+ .main {
378
+ position : relative ;
379
+ & ::before {
380
+ position : absolute ;
381
+ top : 0 ;
382
+ left : 0 ;
383
+ z-index : $zindex-sticky - 2 ;
384
+ width : 100% ;
385
+ height : 100% ;
386
+ content : " " ;
387
+ background : rgba (0 , 0 , 0 , .7 );
388
+ animation : opacity $layout-transition-speed ;
389
+ }
384
390
}
385
391
}
386
392
}
@@ -426,7 +432,6 @@ html[dir="rtl"] {
426
432
//
427
433
// Mobile layout
428
434
//
429
-
430
435
@include media-breakpoint-down (md) {
431
436
.app-header {
432
437
position : fixed ;
0 commit comments