-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
90 lines (72 loc) · 1.51 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
body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-image: url(./andrew-coelho-aL7SA1ASVdQ-unsplash.jpg);
}
.container {
text-align: center;
}
.weather-card {
background:rgba(255,255,255,.5);
border-radius:5px;
border-radius: 20px;
padding: 20px;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out;
width: 450px;
}
.weather-card:hover {
transform: scale(1.05);
}
#city-input {
padding: 15px;
margin: 10px 0;
width: 70%;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
#city-input:focus {
outline: none;
border-color: #2196F3;
}
#city-input::placeholder {
color: #aaa;
}
#city-input-btn {
padding: 15px;
background-color: #3cc747;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
#city-input-btn:hover {
background-color: #526753;
}
#weather-info {
display: none;
}
#temperature {
font-size: 2rem;
font-weight: bold;
margin: 8px 0;
}
#description {
font-size: 2rem;
margin-bottom: 10px;
}
#wind-speed {
font-size: 1rem;
}
#date {
font-size: 1rem;
}
#city-name{
font-size: 3.5rem;
}