-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
107 lines (95 loc) · 1.93 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
/* Global styles */
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Open Sans', sans-serif;
background: #222;
background-image: url('https://wallpapers.com/wallpapers/perfect-weather-with-gradient-sky-ym0nn79vhoqg34v3.html');
background-size: cover;
background-position: center;
}
/* Card container styling */
.card {
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 2em;
border-radius: 15px;
width: 100%;
max-width: 450px;
margin: 1em;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(10px);
}
/* Search input and button styling */
.search {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5em;
}
button {
margin: 0.9em;
border-radius: 50%;
border: none;
height: 44px;
width: 44px;
outline: none;
background: rgba(124, 124, 124, 0.17);
color: white;
cursor: pointer;
transition: 0.3s ease-in-out;
}
button:hover {
background-color: rgba(124, 124, 124, 0.42);
}
/* Input search bar styling */
input.search-bar {
border: none;
outline: none;
padding: 0.5em 1.2em;
margin-right: 10px;
border-radius: 25px;
background: rgba(124, 124, 124, 0.17);
color: white;
font-family: inherit;
font-size: 110%;
width: calc(100% - 100px);
transition: 0.3s ease-in-out;
}
input.search-bar:focus {
background: rgba(124, 124, 124, 0.42);
}
/* Temperature and description styling */
h1.temp {
margin: 0;
font-size: 2em;
margin-bottom: 0.4em;
}
.description {
text-transform: capitalize;
margin-left: 8px;
font-size: 1.2em;
color: #ccc;
}
.flex {
display: flex;
align-items: center;
}
/* Loading state for weather */
.weather.loading {
visibility: hidden;
max-height: 20px;
position: relative;
}
.weather.loading::after {
visibility: visible;
content: "Loading...";
color: #fff;
position: absolute;
top: 0;
left: 20px;
font-size: 1.2em;
}