File tree 5 files changed +85
-26
lines changed
5 files changed +85
-26
lines changed Original file line number Diff line number Diff line change 64
64
min-width : 375px ;
65
65
}
66
66
67
- .logo {
67
+ & .logo {
68
68
width : auto;
69
69
display : block;
70
70
85
85
}
86
86
}
87
87
}
88
+ & a : hover {
89
+ transition : all 0.3s ease;
90
+ transform : scale (1.5 );
91
+ cursor : pointer;
92
+ }
88
93
89
- .nav-links {
94
+ & .nav-links {
90
95
display : flex;
91
96
justify-content : center;
92
97
align-items : center;
96
101
flex-wrap : wrap;
97
102
}
98
103
99
- li {
104
+ & li {
100
105
font-size : 20px ;
101
106
line-height : 30px ;
102
107
padding-left : 50px ;
114
119
padding-block : 12px ;
115
120
}
116
121
117
- a {
122
+ & a {
118
123
display : flex;
119
124
align-items : center;
120
125
justify-content : center;
121
126
text-decoration : none;
122
127
color : inherit;
123
128
}
129
+ & a : hover {
130
+ transition : all 0.3s ease;
131
+ transform : scale (1.5 );
132
+ cursor : pointer;
133
+ }
124
134
}
125
135
}
126
136
}
167
177
line-height : 30px ;
168
178
margin-right : 48px ;
169
179
}
180
+ & a : hover {
181
+ transition : all 0.3s ease;
182
+ transform : scale (1.5 );
183
+ cursor : pointer;
184
+ }
170
185
}
171
186
}
172
187
173
188
& .icon-search {
174
189
width : 40px ;
175
190
height : 40px ;
176
191
overflow : hidden;
177
- & img {
178
- width : 100% ;
179
- height : 100% ;
180
- display : block;
192
+
193
+ & a {
194
+ & img {
195
+ width : 100% ;
196
+ height : 100% ;
197
+ display : block;
198
+ }
199
+ }
200
+
201
+ & a : hover img {
202
+ transition : all 0.3s ease;
203
+ transform : scale (1.5 );
204
+ cursor : pointer;
181
205
}
182
206
}
183
207
}
225
249
gap : 60px ;
226
250
227
251
& .card {
252
+ width : 100% ;
228
253
display : flex;
229
254
justify-content : space-between;
230
255
gap : 24px ;
256
+ position : relative;
231
257
232
258
@media (max-width : 651px ) {
233
259
flex-direction : column;
342
368
}
343
369
}
344
370
& .more : hover {
345
- animation : bounceScale 0.8s ease; /* 觸發動畫 */
371
+ /* 觸發動畫 */
372
+ animation-name : bounceScale;
373
+ animation-duration : 0.8s ;
374
+ animation-timing-function : ease;
346
375
}
347
376
348
377
@keyframes bounceScale {
349
378
0% {
350
- transform : translateY (0 );
351
- }
352
- 50% {
353
- transform : translateY (-50px ); /* 上移 50 px */
379
+ transform : scale (1 );
354
380
}
355
381
100% {
356
- transform : translateY ( 0 ); /* 落回原地,下移 50 px*/
382
+ transform : scale ( 1.5 );
357
383
}
358
384
}
359
385
/* more END */
Original file line number Diff line number Diff line change 44
44
</ li >
45
45
</ ul >
46
46
< div class ="icon-search ">
47
- < img src ="./img-blog/blog-search.png " alt ="search ">
47
+ < a href =" # " > < img src ="./img-blog/blog-search.png " alt ="search "> </ a >
48
48
</ div >
49
49
</ nav >
50
50
<!-- 頭部導航 END -->
Original file line number Diff line number Diff line change 61
61
min-width : 375px ;
62
62
}
63
63
64
- .logo {
64
+ & .logo {
65
65
width : auto;
66
66
display : block;
67
67
82
82
}
83
83
}
84
84
}
85
+ & a : hover {
86
+ transition : all 0.3s ease;
87
+ transform : scale (1.5 );
88
+ cursor : pointer;
89
+ }
85
90
86
- .nav-links {
91
+ & .nav-links {
87
92
display : flex;
88
93
justify-content : center;
89
94
align-items : center;
93
98
flex-wrap : wrap;
94
99
}
95
100
96
- li {
101
+ & li {
97
102
font-size : 20px ;
98
103
line-height : 30px ;
99
104
padding-left : 50px ;
111
116
padding-block : 12px ;
112
117
}
113
118
114
- a {
119
+ & a {
115
120
display : flex;
116
121
align-items : center;
117
122
justify-content : center;
118
123
text-decoration : none;
119
124
color : inherit;
120
125
}
126
+ & a : hover {
127
+ transition : all 0.3s ease;
128
+ transform : scale (1.5 );
129
+ cursor : pointer;
130
+ }
121
131
}
122
132
}
123
133
}
188
198
line-height : 24px ;
189
199
}
190
200
}
201
+
202
+ & a : hover {
203
+ transition : all 0.3s ease;
204
+ transform : scale (1.3 );
205
+ cursor : pointer;
206
+ }
191
207
}
192
208
}
193
209
200
216
display : none;
201
217
}
202
218
203
- & img {
204
- width : 100% ;
205
- height : 100% ;
206
- display : block;
219
+ & a {
220
+ & img {
221
+ width : 100% ;
222
+ height : 100% ;
223
+ display : block;
224
+ }
225
+ }
226
+ & a : hover img {
227
+ transition : all 0.3s ease;
228
+ transform : scale (1.5 );
229
+ cursor : pointer;
207
230
}
208
231
}
209
232
}
Original file line number Diff line number Diff line change 12
12
<!-- 頂端導航 -->
13
13
< header >
14
14
< nav class ="nav ">
15
- < a href ="# " class ="logo ">
15
+ < a href ="./index.html " class ="logo ">
16
16
< picture >
17
17
<!-- RWD圖 -->
18
18
< source media ="
(min-width: 821px) "
srcset ="
./img-imdex/sec-home/logo-new_工作區域 [email protected] "
>
44
44
</ li >
45
45
</ ul >
46
46
< div class ="icon-search ">
47
- < img src ="./img-blog/blog-search.png " alt ="search ">
47
+ < a href =" # " > < img src ="./img-blog/blog-search.png " alt ="search "> </ a >
48
48
</ div >
49
49
</ div >
50
50
</ nav >
Original file line number Diff line number Diff line change 313
313
& .list {
314
314
width : 100% ;
315
315
height : auto;
316
-
316
+ position : relative;
317
317
& .items {
318
+ position : relative;
318
319
/* max-width: 306px; */
319
320
width : auto;
320
321
& .img-container {
321
322
/* width: 306px; */
322
323
height : 100% ;
323
324
/* 遮蓋圖片超出畫框的範圍 */
324
325
overflow : hidden;
326
+ position : relative;
325
327
& img {
326
328
width : 100% ;
327
329
height : 100% ;
328
330
object-fit : cover;
329
331
/* 修飾圖片底部與畫框之間的白縫隙 */
330
332
display : block;
331
333
}
334
+ /* & img:hover {
335
+ transition: all 0.3s ease;
336
+ border-radius: 50%;
337
+ cursor: pointer;
338
+ } */
332
339
}
340
+
333
341
& .text {
342
+ width : 100% ;
334
343
display : flex;
335
344
justify-content : space-between;
336
345
align-items : center;
347
356
color : # aa0601 ;
348
357
}
349
358
}
359
+
350
360
& .color {
351
361
display : flex;
352
362
You can’t perform that action at this time.
0 commit comments