-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
95 lines (78 loc) · 1.3 KB
/
style.css
File metadata and controls
95 lines (78 loc) · 1.3 KB
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
* {
margin: 0;
padding: 0;
}
body {
color: white;
font-family: sans-serif;
text-align: center;
margin: 40px;
}
/* large */
@media only screen and (min-width: 768px) {
body {
background-color: blue;
font-size: 2em;
}
h1 {
font-size: 2.5em;
margin-bottom: 0.5em;
}
#medium,
#small {
display: none;
}
.col1, .col2, .col3 {
display: inline-block;
}
}
/* medium*/
@media only screen and (max-width: 768px) and (min-width: 301px) {
body {
background-color: green;
font-size: 1.5em;
}
h1 {
font-size: 2.5em;
margin-bottom: 0.5em;
}
p {
margin-bottom: 1em;
}
#large,
#small{
display: none;
}
.col1 {
float: left;
margin: 0;
width: 66.66%;
}
.col2 {
float: left;
margin: 0;
width: 33.33%
}
.col3 {
width: 100%;
}
}
/* small */
@media only screen and (max-width: 300px) {
body {
background-color: red;
font-size: 1em;
}
h1 {
font-size: 3em;
margin-bottom: 0.5em;
}
#large,
#medium {
display: none;
}
.col1, .col2, .col3 {
display: block;
margin-bottom: 1em;
}
}