-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
245 lines (214 loc) · 4.58 KB
/
main.css
File metadata and controls
245 lines (214 loc) · 4.58 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'montserrat', sans-serif;
background-image: url('bg.jpg');
background-size: cover;
background-position: top center;
}
.app-wrap {
display: flex;
flex-direction: column;
min-height: 100vh;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}
header {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 50px 15px 0;
}
header input {
width: 100%;
max-width: 280px;
padding: 10px 15px;
border: none;
outline: none;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 0px 16px 0px 16px;
border-bottom: 3px solid gray;
color: #313131;
font-size: 20px;
font-weight: 300;
transition: 0.2s ease-out;
}
header input:focus {
background-color: rgba(255, 255, 255, 0.6);
}
main {
flex: 1 1 100%;
padding: 25px 25px 50px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.location .city {
color: #fff;
font-size: 32px;
font-weight: 500;
margin-bottom: 5px;
}
.location .date {
color: #fff;
font-size: 16px;
}
.current .temp {
color: #fff;
font-size: 102px;
font-weight: 900;
margin: 30px 0px;
text-shadow: 2px 10px rgba(0, 0, 0, 0.6);
}
.current .temp span {
font-weight: 500;
}
.current .weather {
color: #fff;
font-size: 32px;
font-weight: 700;
font-style: italic;
margin-bottom: 15px;
text-shadow: 0px 3px rgba(0, 0, 0, 0.4);
}
.current .hi-low {
color: #fff;
font-size: 24px;
font-weight: 500;
text-shadow: 0px 4px rgba(0, 0, 0, 0.4);
}
/*//////////////////////////////////////////////////////////////////*/
#getLocationBtn {
width: 300px;
height: 50px;
font-size: 18px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 25px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
transition: background-color 0.3s ease;
}
#getLocationBtn:hover{
background-color: #45a049;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
/* //////////////////////////////////////////////////////////////////////// */
.navigation {
display: flex;
list-style: none;
}
.navigation li {
margin-right: 10px;
}
.navigation li:last-child {
margin-right: 0;
}
/*////////////////////////////////////////////////////////////////////*/
.top-bar {
position: absolute;
top: 0;
left: 0;
width: 100%;
background-color: white;
padding: 10px;
}
.top-menu {
list-style: none;
display: flex;
justify-content: center;
}
.top-menu li {
margin-right: 20px;
}
.top-menu li:last-child {
margin-right: 0;
}
.top-menu a {
text-decoration: none;
color: #313131;
font-weight: 600;
font-size: 16px;
}
.top-menu a:hover {
color: #ff0000; /* 将颜色替换为你想要的悬停颜色 */
}
/*/////////////////////////////////////////////////////////////*/
.translucent-area {
background-color: rgba(255, 255, 255, 0.5); /* 设置背景颜色和透明度 */
padding: 40px; /* 可根据需要调整内边距 */
margin-top: 20px; /* 调整顶部间距 */
text-align: left;
}
/*/////////////////////////////////////////////////////////////*/
.content-wrapper {
display: flex;
justify-content: space-between;
}
.current,.translucent-area {
flex: 1; /* 平均分配剩余空间 */
}
/*/////////////////////////////////////////////////////////////*/
input[type="checkbox"]:checked + span{
color:#666;
text-decoration:line-through 3px solid #555 ;
}
/*/////////////////////////////////////////////////////////////*/
.checkbox-container {
font-size: 18px;
line-height: 24px;
}
.checkbox-container input[type="checkbox"] {
transform: scale(1.5); /* Increase the scale as needed */
margin-right: 8px; /* Adjust the spacing between the checkbox and label */
}
.custom-checkbox {
transform: scale(1.5);
margin-right: 8px;
}
meter{
width:200px;
}
/*/////////////////////////////////////////////////////////////*/
hr {
display: block;
unicode-bidi: isolate;
margin-block-start: 0.5em;
margin-block-end: 0.5em;
margin-inline-start: auto;
margin-inline-end: auto;
overflow: hidden;
border-style: inset;
border-width: 5px;
width: 100%;
}
/*///////////////////////////////////////////////////////////*/
.city,
.date {
position: relative;
display: inline-block;
transition: color 0.3s, text-shadow 0.3s;
}
.city::before,
.date::before {
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
color: #ffffff;
opacity: 0;
transition: opacity 0.3s;
}
.city:hover,
.date:hover {
color: #ff0000;
text-shadow: 0 0 5px #ff0000;
}
.city:hover::before,
.date:hover::before {
opacity: 1;
}