-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
147 lines (147 loc) · 2.95 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400&display=swap');
:root {
--color-one: #526172;
--color-one-dark: #2C3E50;
--color-two: #f5f5f5;
}
* {
margin: 0;
padding: 0;
border: 0;
outline: none;
box-sizing: border-box;
font-family: 'Inconsolata', monospace;
}
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
background: var(--color-one);
}
.container {
position: relative;
width: 400px;
background: var(--color-two);
overflow: hidden;
border-radius: 12px;
padding: 20px;
color: var(--color-one);
box-shadow: var(--color-one-dark) 0px 12px 48px,
var(--color-one-dark) 0px 12px 20px;
border: 1px solid rgba(0, 0, 0, 0.08);
}
.search-box {
width: 100%;
display: flex;
align-items: center;
justify-items: center;
justify-content: center;
}
.search-box input {
width: 80%;
height: 30px;
padding: 8px;
font-size: 16px;
color: var(--color-one);
text-transform: capitalize;
background-color: inherit;
border-radius: 30px;
}
.search-box input::placeholder {
padding: 8px;
color: var(--color-one);
text-transform: capitalize;
}
.container i {
font-size: 1.5rem;
}
.search-box button {
width:30px;
height: 30px;
border-radius: 50%;
background: inherit;
cursor: pointer;
color: var(--color-one);
}
.main-info, .error-info{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 16px 0 24px 0;
}
.temp-box {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
padding: 0 24px 24px 24px;
font-size: 12rem;
}
.city {
display: inline !important;
text-transform: capitalize;
font-size: 1.4rem;
line-height: 2rem;
width: 72%;
margin-top:1rem;
text-align: center;
}
.temp-box img{
position: absolute;
z-index: 0;
margin-top: 120px;
margin-right: -200px;
}
.temp-box .c-symbol, .temp-box .f-symbol {
position: absolute;
font-size: 5rem;
margin-top: 16px;
margin-right: -172px;
}
.temp-box .temp-c, .temp-box .temp-f {
z-index: 2;
margin-right: 64px;
}
.main-info .condition {
text-align: center;
font-size: 1.4rem;
font-weight: 500;
padding: 0 20px 16px 20px;
margin-bottom: 16px;
}
.error-info .error {
font-size: 12rem;
}
.extra-info {
display:flex;
justify-content: space-between;
margin-top: 24px;
font-size: 1.5rem;
padding: 0 20px 0 20px;
}
.extra-info .wind , .extra-info .humidity {
display: flex;
width: 50%;
align-items: center;
justify-content: center;
}
.extra-info .humidity {
justify-content: flex-end;
}
.extra-info .wind {
justify-content: flex-start;
}
.extra-info i {
margin-right: 12px;
}
.hidden {
display: none;
}
@media (max-width:400px) {
.container {
width: 90%
}
}