forked from Happy-Ferret/weh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweh-shf.css
More file actions
47 lines (40 loc) · 969 Bytes
/
weh-shf.css
File metadata and controls
47 lines (40 loc) · 969 Bytes
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
/*
* weh - WebExtensions Helper
*
* @summary workflow and base code for developing WebExtensions browser add-ons
* @author Michel Gutierrez
* @link https://github.com/mi-g/weh
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* SHF = Sticky Header Footer = fixed header at top, footer at bottom with scrollable main content
*/
html, body {
height: 100%;
}
body {
overflow: hidden;
}
.weh-shf, .weh-shf > div, .weh-shf > div > div, .weh-shf > div > div > div,
.weh-shf > div > div > div > div, .weh-shf > div > div > div > div > div {
height: 100%;
display: flex;
flex-direction: column;
}
header {
flex: 0 0 auto;
background-color: #f8f8f8;
}
main {
flex: 1 1 auto;
position: relative;
overflow-y: auto;
height: 100%;
}
footer {
flex: 0 0 auto;
background-color: #f8f8f8;
}