-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout3.css
62 lines (54 loc) · 878 Bytes
/
layout3.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
*,*::before,*::after{
margin:0;
padding:0;
box-sizing: border-box;
}
.main{
min-height:calc(100vh - 100px);
display: flex;
}
body{
min-height:100vh;
}
.sidebar{
min-width:300px;
background-color: lightgray;
display:flex;
transition:ease all 10s;
}
.footer{
background-color: skyblue;
min-height:200px;
}
.content{
flex-grow:1;
display:flex;
}
.inner-text{
font-weight:700 ;
font-size:20px;
margin:auto;
}
header{
height:100px;
background-color: #aaa;
display:flex;
}
/* @media only screen and (max-width:992px){
.main{
flex-direction: column-reverse;
}
.sidebar{
height:150px;
position:fixed;
width:100%;
bottom:0;
}
} */
@media only screen and (max-width:700px){
.sidebar{
position: fixed;
height:calc(100vh - 100px);
display:none;
}
}