Commit | Line | Data |
---|---|---|
8a0b323e AE |
1 | html.disableScrolling { |
2 | overflow: hidden !important; | |
3 | ||
4 | body { | |
5 | overflow: hidden !important; | |
6 | ||
7 | @include screen-md-down { | |
8 | position: fixed !important; | |
9 | } | |
10 | } | |
11 | } | |
12 | ||
b8eab696 | 13 | html, body { |
b8eab696 | 14 | height: 100%; |
826d165f | 15 | |
5908f54f AE |
16 | @include wcfLineHeight; |
17 | @include wcfFontDefault; | |
b8eab696 AE |
18 | } |
19 | ||
20 | body { | |
0b6161c6 MW |
21 | background-color: $wcfContentBackground; |
22 | color: $wcfContentText; | |
b3ac08d1 | 23 | font-family: $wcfFontFamily; |
b8eab696 | 24 | position: relative; |
8a0b323e | 25 | width: 100%; |
b8eab696 | 26 | word-wrap: break-word; |
b8eab696 AE |
27 | } |
28 | ||
29 | a { | |
0b6161c6 | 30 | color: $wcfContentLink; |
b8eab696 | 31 | cursor: pointer; |
487db634 | 32 | text-decoration: none; |
b8eab696 | 33 | |
487db634 | 34 | &:hover { |
0b6161c6 | 35 | color: $wcfContentLinkActive; |
b8eab696 AE |
36 | text-decoration: none; |
37 | } | |
38 | } | |
39 | ||
0b6161c6 | 40 | .pageContainer { |
b8eab696 AE |
41 | display: flex; |
42 | height: 100%; | |
43 | flex-direction: column; | |
44 | } | |
45 | ||
46 | /* COLUMN LAYOUT */ | |
fd94097c MW |
47 | .pageHeaderContainer, |
48 | .boxesHeaderBoxes, | |
49 | .pageNavigation, | |
50 | .pageFooter, | |
51 | .boxesTop, | |
52 | .boxesBottom, | |
53 | .boxesFooterBoxes { | |
f2b50825 | 54 | flex: 0 0 auto; |
b8eab696 AE |
55 | } |
56 | ||
57 | .main { | |
f2b50825 | 58 | flex: 1 0 auto; |
e5359fe5 | 59 | |
9d029724 | 60 | @include screen-md-down { |
fd94097c | 61 | padding: 40px 0; |
3860d44f | 62 | width: 100%; |
e5359fe5 | 63 | } |
b8eab696 | 64 | |
9d029724 AE |
65 | @include screen-lg { |
66 | padding: 60px 0; | |
67 | } | |
b8eab696 AE |
68 | } |
69 | ||
431e4cb4 | 70 | /* use flex-box to enforce a proper side-by-side layout on desktop */ |
fd94097c | 71 | @include screen-lg { |
431e4cb4 AE |
72 | .main > div { |
73 | display: flex; | |
b8eab696 | 74 | } |
5c448cc2 | 75 | |
431e4cb4 AE |
76 | .content { |
77 | flex: 1 1 auto; | |
5c448cc2 AE |
78 | |
79 | // sidebar follows | |
80 | &:not(:last-child) { | |
431e4cb4 AE |
81 | flex-basis: calc(100% - 340px); |
82 | max-width: calc(100% - 340px); // IE fix | |
83 | } | |
84 | ||
85 | & + .sidebar { | |
86 | margin-left: 30px; | |
87 | } | |
88 | } | |
89 | ||
90 | .sidebar { | |
91 | flex: 0 0 310px; | |
66dba3c5 | 92 | overflow: hidden; |
431e4cb4 AE |
93 | |
94 | &:first-child { | |
95 | margin-right: 30px; | |
96 | } | |
97 | ||
98 | & + .content { | |
99 | flex-basis: calc(100% - 340px); | |
100 | max-width: calc(100% - 340px); // IE fix | |
101 | ||
102 | // sidebar follows | |
103 | &:not(:last-child) { | |
104 | flex-basis: calc(100% - 680px); | |
105 | max-width: calc(100% - 680px); // IE fix | |
106 | } | |
5c448cc2 AE |
107 | } |
108 | } | |
b8eab696 AE |
109 | } |
110 | ||
63e2f52f AE |
111 | /* mobile arranges the sidebar and content vertically: |
112 | ||
113 | <leftSidebar> <content> <rightSidebar> | |
114 | ||
115 | becomes: | |
116 | ||
117 | <leftSidebar> | |
118 | <content> | |
119 | <rightSidebar> | |
120 | */ | |
fd94097c | 121 | @include screen-md-down { |
63e2f52f AE |
122 | .sidebar { |
123 | margin: 0 -10px; | |
124 | } | |
125 | ||
126 | .sidebar + .content, | |
127 | .content + .sidebar { | |
128 | // gap between sidebars and content | |
129 | margin-top: 30px; | |
130 | } | |
131 | } | |
132 |