-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
151 lines (128 loc) · 2.16 KB
/
styles.css
File metadata and controls
151 lines (128 loc) · 2.16 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
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
148
149
150
151
/* Geral */
* {
padding: 0;
margin: 0;
font-family: "Ubuntu", sans-serif;
}
body {
background: linear-gradient(180deg, rgba(89, 76, 238, 1) 0%, #8dd0f5 100%);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-position: center;
background-size: cover;
}
.hide {
display: none !important;
}
.container {
background-color: #5c54ed;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
padding: 2rem;
color: #fdfdfd;
border-radius: 1rem;
max-width: 400px;
}
/* Form */
.form h3 {
margin-bottom: 1rem;
}
.form-input-container {
display: flex;
}
.form input {
padding: 0.8rem;
border: none;
flex: 1;
border-radius: 4px;
}
.form button {
padding: 0.8rem;
min-width: 50px;
margin-left: 8px;
background-color: #8dd0f5;
color: #fff;
border: none;
cursor: pointer;
border-radius: 4px;
}
/* Clima */
#weather-data,
#error-message,
#loader,
#suggestions {
border-top: 1px solid #fff;
margin-top: 1.5rem;
padding-top: 1.5rem;
text-align: center;
}
#weather-data h2 {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 0.6rem;
}
#weather-data h2 i {
font-size: 1rem;
}
#weather-data span {
margin: 0.6rem;
}
#temperature {
font-size: 4rem;
}
#country {
height: 15px;
}
#description-container {
display: flex;
justify-content: center;
align-items: center;
margin: 0.6rem 0;
}
#description {
text-transform: capitalize;
font-weight: bold;
}
#details-container {
display: flex;
justify-content: center;
align-items: center;
}
#details-container #umidity {
border-right: 1px solid #fff;
margin: 0.6rem;
padding: 0.6rem;
}
/* Loader */
#loader i {
animation: rotate 1.5s linear infinite;
}
@keyframes rotate {
to {
transform: rotate(360deg);
}
}
/* Sugestões */
#suggestions {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
#suggestions button {
min-width: 150px;
margin: 0.8rem;
padding: 0.6rem 0.9rem;
border-radius: 10rem;
border: none;
background-color: #8dd0f5;
color: #fff;
cursor: pointer;
font-weight: bold;
opacity: 0.8;
transition: 0.4s;
}
#suggestions button:hover {
opacity: 1;
}