-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
70 lines (60 loc) · 894 Bytes
/
style.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
html, body {
height: 100%;
margin: 0;
padding: 0;
}
header {
position: fixed;
width: 100%;
height: 50px;
background: red;
z-index: 99999;
}
/*
* Header height: 50px;
* Footer height: 50px;
* Sidebar width: 200px;
*/
.sidebar {
width: 200px;
position: fixed;
left: 0;
top: 0;
background: yellow;
height: 100%;
padding-top: 50px;
z-index: 999;
}
.wrapper {
box-sizing: border-box;
padding-top: 50px;
padding-left: 200px;
position: relative;
width: 100%;
min-height: 100%;
}
.content {
padding-bottom: 50px;
}
footer {
bottom: 0;
position: absolute;
height: 50px;
width: 100%;
background: green;
box-sizing: border-box;
margin-left: 200px;
padding-left: 200px;
left: -200px;
}
@media (max-width: 1200px) {
.sidebar {
display: none;
}
.wrapper {
padding-left: 0;
}
footer {
padding-left: 0;
}
}