-
Notifications
You must be signed in to change notification settings - Fork 173
/
Copy path_layouts_application-panels.scss
66 lines (54 loc) · 1.38 KB
/
_layouts_application-panels.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
@mixin vf-l-application-panels {
.p-panel {
background: $colors--theme--background-default;
color: $colors--theme--text-default;
max-width: 100%;
min-height: 100%; // make sure it fills whole container even when has little content
}
.p-panel__header {
@extend %vf-grid-container-padding;
display: flex;
}
.p-panel__header.is-sticky {
background: $colors--theme--background-default;
position: sticky;
top: 0;
z-index: 5;
}
.p-panel__content {
@extend %section-padding--shallow;
overflow: hidden;
}
.p-panel__logo {
align-items: center;
display: flex;
margin-bottom: 1.25rem;
// to center the logo inside the collapsed side navigation we have to move it a bit to the left
// so its position is aligned with the icons of side navigation
margin-left: -0.25rem; // (LOGO_SIZE - ICON_SIZE) / 2 = (1.5rem - 1rem) / 2 = 0.25rem
margin-top: 1.25rem;
.p-panel__logo-icon {
height: 1.5rem;
}
.p-panel__logo-name {
height: 1rem;
margin-left: 0.5rem;
}
}
.p-panel__title {
@extend %vf-heading-4;
margin: 0;
padding-bottom: $sp-medium;
padding-top: $sp-medium;
}
.p-panel__controls {
margin-left: auto;
padding-top: $spv--large;
}
.p-panel__toggle {
cursor: pointer;
display: block;
margin-bottom: 1.25rem;
margin-top: 0.25rem;
}
}