-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
138 lines (124 loc) · 3.02 KB
/
Copy pathstyle.css
File metadata and controls
138 lines (124 loc) · 3.02 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
:root {
--primary-color: #007bff;
--accent-color: #6f42c1;
--background-start: #e0f7fa;
--background-end: #d1c4e9;
--card-background: #ffffff;
--text-dark: #212529;
--text-muted: #6c757d;
--border-light: #ced4da;
}
body {
font-family: 'Poppins', sans-serif;
text-align: center;
background: linear-gradient(135deg, var(--background-start) 0%, var(--background-end) 100%);
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
margin: 0;
overflow-x: hidden;
overflow-y: auto;
}
.weather-app {
background: var(--card-background);
padding: 35px;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 5px rgba(255, 255, 255, 0.5);
width: 90%;
max-width: 500px;
text-align: center;
color: var(--text-dark);
margin-top: 40px;
margin-bottom: 40px;
box-sizing: border-box;
}
.app-title {
color: var(--text-dark);
font-weight: 700;
font-size: 32px;
margin-bottom: 25px;
text-align: center;
color: var(--accent-color);
}
.search-box {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 30px;
width: 100%;
}
.search-box .input-button {
padding: 0 18px;
border: 1px solid var(--border-light);
border-radius: 8px 0 0 8px;
font-size: 16px;
flex-grow: 1;
margin-right: 0;
outline: none;
transition: border-color 0.3s, box-shadow 0.3s;
min-width: 0;
height: 45px;
line-height: 45px;
box-sizing: border-box;
}
.search-box .input-button:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.search-box button {
padding: 0 20px;
border: none;
border-radius: 0 8px 8px 0;
background: linear-gradient(45deg, var(--primary-color), #0056b3);
color: white;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s, transform 0.1s;
height: 45px;
line-height: 45px;
box-sizing: border-box;
}
.search-box button:hover {
background: linear-gradient(45deg, #0056b3, #003d80);
transform: translateY(-1px);
}
.current-time {
color: var(--accent-color);
font-weight: 600;
}
.city-name {
color: var(--text-dark);
font-size: 24px;
font-weight: 700;
margin: 0 0 20px 0;
box-sizing: border-box;
padding: 0 5px;
white-space: normal;
word-wrap: break-word;
}
.temperature {
color: var(--primary-color);
font-size: 36px;
font-weight: 300;
margin: 10px 0;
}
.main-condition {
font-size: 22px;
margin-right: 5px;
font-weight: 500;
}
.weather-description {
font-size: 18px;
margin-bottom: 20px;
}
@media only screen and (max-width: 489px) {
.search-box .input-button {
font-size: 14px;
}
.search-box button {
padding: 0 6px;
font-size: 14px;
}
}