-
Notifications
You must be signed in to change notification settings - Fork 592
/
_layout.scss
85 lines (74 loc) · 1.38 KB
/
_layout.scss
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
html,
body,
#app,
.pf-v5-c-drawer {
height: 100%;
}
#app,
#content {
display: flex;
flex-basis: 100%;
flex-direction: column;
height: 100%;
}
#content-scrollable {
overflow: auto;
height: 100%;
}
.co-m-page__body {
display: flex;
flex: 1 0 auto;
flex-direction: column;
}
.co-m-app__content {
display: flex;
flex: 1 0 auto;
flex-direction: column;
height: 100%; // doesn't work on safari without height
}
.co-m-app__content > .pf-v5-c-page {
height: 0;
flex: 1;
}
.co-p-has-sidebar {
position: relative;
display: flex;
flex: 1;
height: 100%;
&__body {
flex: 2;
}
&__close-button {
font-size: 21px !important;
line-height: 1 !important;
padding: 0 !important;
}
&__sidebar {
position: relative;
@media (min-width: $screen-md-min) {
flex: 1 0 auto;
overflow-y: auto;
}
&--bordered {
@media (max-width: $screen-sm-max) {
border-top: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--BorderColor--100);
}
@media (min-width: $screen-md-min) {
border-left: var(--pf-v5-global--BorderWidth--sm) solid
var(--pf-v5-global--BorderColor--100);
}
}
}
&__sidebar-body {
position: absolute;
width: 100%;
&:focus {
outline: 0;
}
}
&__sidebar-heading {
@include co-break-word;
margin-bottom: 20px;
margin-top: 0;
}
}