-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
126 lines (109 loc) · 1.94 KB
/
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
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
/* * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
*/
body {
font-family: "Poppins", sans-serif;
background-image: url("weatherimg.jpg");
background-size: cover;
background-position: top center;
color: white;
}
.app-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.3),
rgba(0, 0, 0, 0.6)
);
}
header {
display: flex;
justify-content: center;
align-items: center;
padding: 50px 15px 15px;
}
header .search-box {
width: 100%;
max-width: 280px;
padding: 10px 15px;
border: none;
outline: none;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 16px 0 16px 0;
border-bottom: 3px solid #df8e00;
color: #313131;
font-size: 20px;
font-weight: 300px;
transition: 0.2s ease-out;
}
header .search-box:focus {
background-color: rgba(255, 255, 255, 0.9);
}
main {
flex: 1 1 100%;
padding: 25px 25px 50px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.location .city {
font-size: 32px;
font-weight: 500;
margin-bottom: 5px;
}
.location .date {
font-size: 16px;
}
.current .temp {
font-size: 102px;
font-weight: 900;
margin: 10px 0;
text-shadow: 2px 10px rgba(0, 0, 0, 0.6);
}
img {
margin-top: 20px;
}
.current #units {
font-weight: 300;
font-size: 102px;
margin: 10px 0;
text-shadow: 2px 10px rgba(0, 0, 0, 0.6);
}
.current .weather {
font-size: 32px;
font-weight: 700;
font-style: italic;
margin-bottom: 15px;
text-shadow: 0px 3px rgba(0, 0, 0, 0.4);
}
.current .weather::first-letter {
text-transform: capitalize;
}
.current-button {
background-color: #df8e00;
border: none;
}
.current-button:hover {
color: black;
background: white;
}
small {
margin: 0 auto;
font-size: 20px;
}
.weather-units {
margin-bottom: 15px;
}
#units a:hover {
text-decoration: none;
cursor: default;
}
.col-2 {
margin: 35px;
}