Layout.module.scss
1.23 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
@import '../../styles/app';
.root {
height: 100%;
position: relative;
left: 0;
transition: left $sidebar-transition-time ease-in-out;
&.chatOpen {
left: -($chat-sidebar-width-open);
@include media-breakpoint-down(md) {
left: -($chat-sidebar-width-open + 25px);
}
}
}
.wrap {
position: relative;
min-height: 100vh;
display: flex;
margin-left: 50px;
flex-direction: column;
left: $sidebar-width-open - $sidebar-width-closed;
right: 0;
transition: left $sidebar-transition-time ease-in-out;
@media (max-width: breakpoint-max(sm)) {
margin-left: 0;
left: $sidebar-width-open;
}
}
.sidebarClose div.wrap {
left: 0;
}
.sidebarStatic .wrap {
transition: none;
left: 0;
margin-left: $sidebar-width-open;
}
.content {
position: relative;
flex-grow: 1;
// 20px for footer height
padding: $content-padding $content-padding ($content-padding + 20px);
background-color: $body-bg;
@media (max-width: breakpoint-max(sm)) {
padding: 20px 15px;
}
// hammers disallows text selection, allowing it for large screens
@media (min-width: breakpoint-min(sm)) {
user-select: auto !important;
}
}
.contentFooter {
position: absolute;
bottom: 15px;
color: $text-muted;
}