_main-panel.scss
1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* $main-panel
------------------------------------------*/
$mat-toolbar-height-desktop: 64px !default;
$mat-toolbar-height-mobile-portrait: 56px !default;
$mat-toolbar-height-mobile-landscape: 48px !default;
.app-inner {
position: relative;
width: 100%;
max-width: 100%;
height: calc(100vh - #{$mat-toolbar-height-desktop});
@include flexbox;
@include flex-direction(row);
}
// As per specs, mobile devices will use a different height for toolbars than for desktop.
// The height for mobile landscape devices has been ignored since relying on `@media orientation`
// is causing issues on devices with a soft-keyboard.
// See: https://material.io/guidelines/layout/structure.html#structure-app-bar
@media ($mat-xsmall) {
.app-inner {
height: calc(100vh - #{$mat-toolbar-height-mobile-portrait});
}
}
/* Boxed layout*/
.app.boxed {
overflow: hidden;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 48em) {
.app.boxed {
max-width: 46.88rem;
}
}
@media (min-width: 62rem) {
.app.boxed {
max-width: 60.63rem;
}
}
@media (min-width: 75rem) {
.app.boxed {
max-width: 73.13rem;
}
}
.mat-drawer-content {
height: 100%;
> .ps {
position: relative;
height: 100%;
min-height: 100%;
box-sizing: border-box;
@include flex-direction(column);
@include flexbox;
@include flex(1);
overflow-y: auto;
overflow-x: hidden;
padding: ($gutter/3);
}
> .main-content {
box-sizing: border-box;
@include flex-direction(column);
@include flexbox;
@include flex(1);
> .content-view {
position: relative;
box-sizing: border-box;
padding: $gutter;
@include flex(1 0 auto);
}
}
}
.app-dark .mat-drawer-content {
background-color: rgba(53, 53, 53, 1.00);
}
@include media-breakpoint-up(md) {
.side-panel-opened[dir="rtl"] .mat-drawer-content {
margin-left: 0!important;
margin-right: $sidebar-width!important;
}
}