-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
142 lines (138 loc) · 2.5 KB
/
styles.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* CSS RESET
============ */
html {
font-size: 18px;
}
body {
color: #161616;
background-color: currentColor;
font-size: 0.625em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
* {
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit;
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
line-height: 1.5;
text-decoration: none;
color: #FFF;
cursor: default;
}
/* STYLING
========== */
h2, h3 {
font-size: 1.6em;
}
.container {
display: none;
max-width: 30rem;
width: 90%;
margin: 10em auto 10em auto;
}
.current-weather {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
text-align: center;
border-bottom: 0.2em solid #aaa;
padding-bottom: 2em;
margin-bottom: 2em;
}
.left {
margin-right: 6em;
}
canvas {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#summary {
margin-top: 0.5em;
font-size: 2em;
text-align: center;
}
#location {
outline: none;
border: none;
background-color: transparent;
cursor: text;
font-size: 3em;
font-weight: 800;
text-align: center;
border-bottom: 0.1em solid #aaa;
margin-bottom: 0.1em;
} #location:hover,
#location:focus {
border-bottom: 0.1em solid #0cf;
}
.right h2 {
font-size: 2em;
font-weight: 400;
}
.temperature {
margin-top: 0.6em;
}
.temperature:hover, .temp:hover {
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
} .temperature:hover .temp, .temp:hover {
color: #0cf;
}
.temp,
#wind,
#humidity {
font-weight: 400;
}
.week-weather {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.day-of-week {
text-align: center;
}
.day-of-week > * + * {
margin-top: 0.4em;
}
.day-of-week canvas {
width: 64px;
height: 64px;
}
@media only screen and (max-width: 575px) {
html {
font-size: 12px;
}
.container {
margin: 5em auto 5em auto;
}
.current-weather canvas {
max-width: 60px;
max-height: 60px;
}
.day-of-week canvas {
width: 30px;
height: 30px;
}
}