-
Notifications
You must be signed in to change notification settings - Fork 0
/
responsive.css
91 lines (85 loc) · 1.49 KB
/
responsive.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.content {
display: flex;
flex-wrap: wrap;
}
.header__menu {
display: none;
}
.hero, .top-news, .scores, .weather, .recent-news {
order: 10;
}
@media screen and (max-width: 549px) {
.header__logo {
height: 48px;
margin-right: 0.5em;
}
.header__title {
margin-left: 0;
font-size: 2em;
vertical-align: bottom;
}
.nav {
z-index: 10;
background-color: #fff;
width: 300px;
position: absolute;
/* This trasform moves the drawer off canvas. */
-webkit-transform: translate(-300px, 0);
transform: translate(-300px, 0);
/* Optionally, we animate the drawer. */
transition: transform 0.3s ease;
}
.nav.open {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
.nav__item {
display: list-item;
border-bottom: 1px solid #E0E0E0;
width: 100%;
text-align: left;
}
.header__menu {
display: inline-block;
position: absolute;
right: 0;
padding: 1em;
}
.header__menu svg {
width: 32px;
fill: #E0E0E0;
}
}
@media screen and (min-width: 550px) {
.hero {
order: 0;
width: 60%;
}
.weather {
order: 1;
width: 40%;
}
}
@media screen and (min-width: 700px) {
.hero {
width: 50%;
}
.top-news {
order: 1;
width: 50%;
}
.scores {
order: 2;
width: 60%;
}
.weather {
order: 3;
}
}
@media screen and (min-width: 850px) {
main, .header__inner, .nav, .content {
width: 850px;
margin-left: auto;
margin-right: auto;
}
}