-
Notifications
You must be signed in to change notification settings - Fork 180
/
content-layout.css
108 lines (86 loc) · 1.77 KB
/
content-layout.css
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@import "../global/variables.css";
@value extra-small-screen-media, small-screen-media from "../global/global.css";
@value sidebarWidth: calc(var(--ring-unit) * 30);
.contentLayout {
position: relative;
display: flex;
flex-flow: row nowrap;
}
.contentLayoutContent {
align-self: flex-start;
flex-grow: 2;
width: 100%; /* without this hack IE11 render contentLayoutContent wider than its container */
margin: 0 calc(var(--ring-unit) * 4);
}
.sidebarContainer {
min-width: sidebarWidth;
max-width: sidebarWidth;
}
.sidebarContainerRight {
order: 1;
}
.sidebar {
overflow: auto;
box-sizing: border-box;
min-width: sidebarWidth;
max-width: sidebarWidth;
height: 100%;
padding-right: calc(var(--ring-unit) * 2);
padding-left: calc(var(--ring-unit) * 4);
}
.sidebarRight {
padding-right: calc(var(--ring-unit) * 4);
padding-left: calc(var(--ring-unit) * 2);
}
.sidebarFixedTop {
top: 0;
bottom: 0;
&.sidebarFixedTop {
position: fixed;
}
}
.sidebarFixedBottom.sidebarFixedBottom {
position: absolute;
top: auto;
bottom: 0;
}
.bottomMarker {
position: absolute;
bottom: 0;
}
.contentLayoutResponsive {
@media extra-small-screen-media, small-screen-media {
& .contentLayoutContent {
margin: 0 16px;
}
& .sidebar {
position: absolute;
top: 0;
bottom: 0;
left: 0;
box-sizing: content-box;
padding: 0 16px;
}
& .sidebarFixedTop {
position: fixed;
}
& .sidebarFixedBottom {
top: auto;
}
& .sidebarRight {
right: 0;
left: auto;
}
& .sidebarContainer {
min-width: 0;
max-width: 0;
}
}
@media extra-small-screen-media {
& .sidebar {
width: 80%;
min-width: 0;
max-width: none;
}
}
}