-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
107 lines (95 loc) · 2.16 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
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap');
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: auto;
flex-direction: column;
background-color: #353a35;
margin: 0;
font-family: 'Josefin Sans', sans-serif;
background-image:url("https://source.unsplash.com/random/1600x900/?weather, rainy,cloudy");
font-size: 120%;
}
.container{
background-color: #282727;
color: white;
padding: 2.5em;
border-radius: 35px;
width: 100%;
max-width: 420px;
margin: 1.5em;
background-image:url("https://source.unsplash.com/random/1600x900/?cloud");
}
.searchbar {
display: flex;
align-items: center;
justify-content: center;
}
.search-bar-input {
display: inline-block;
position: relative;
}
.search-bar-input {
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
outline: none;
margin-bottom: 0;
font-family: inherit;
font-size: 107%;
}
.btn {
display: inline-block;
padding: 8px 16px;
background-color: #397739;
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
margin-top: 2px;
margin-left: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s, transform 0.3s;
display: flex;
align-items: center;
justify-content: center;
}
.btn:hover {
background-color: #a9e9ad;
}
.btn:focus {
outline-color: #8f988f;
}
.btn:active {
background-color: #353a35;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.weather {
margin-top: 10px;
}
.temp{
margin: 0;
margin-bottom: 0.5em;
}
.description{
text-transform: capitalize;
margin-left: 10px;
}
.flex{
display: flex;
align-items: center;
}
.weather.loading{
visibility: hidden;
max-height: 20px;
position: relative;
}
.weather.loading::after{
visibility: visible;
content: "Loading...";
color: white;
position: absolute;
top: 0;
}