-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
93 lines (83 loc) · 1.7 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
/*p {*/
/* font-size: 18px;*/
:root {
--background-color: #8B5CF6;
--search-box: #C4B5FD;
--search-icon: #C4B5FD;
}
/*}*/
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: var(--search-box);
font-family: 'Open Sans', sans-serif;
background-image: url('https://source.unsplash.com/1600x900/?nature,water');
}
.card {
background: var(--background-color);
padding: 1.8em;
border-radius: 32px;
color: white;
margin: 2vh;
width: 100%;
max-width: 425px;
margin: 2em;
}
button:hover {
background: var(--search-icon);
}
button {
/* border-radius: -71px; */
border: none;
border-radius: 50%;
/* margin: 0em; */
margin: 0.5em;
height: 46px;
color: white;
width: 46px;
background: var(--background-color);
outline: none;
cursor: pointer;
transition: 0.2s ease-in-out;
}
input.search {
display: flex;
align-items: center;
justify-content: center;
}
input.search-box {
border-radius: 24px;
border: none;
color: black;
font-family: inherit;
font-size: 120%;
background: var(--search-box);
outline-color: var(--background-color);
padding: 0.5em 1em;
}
h1.temp {
margin: 0;
margin-bottom: 0.3em;
}
.flex {
display: flex;
align-items: center;
}
.description {
text-transform: capitalize;
margin-left: 10px;
}
/* .weather.loading {
visibility: hidden;
position: relative;
max-height: 20px;
} */
.weather.loading:after {
visibility: visible;
top: 0;
content: "Loading...";
color: white;
position: absolute;
}