-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
854 lines (706 loc) · 16.1 KB
/
Copy pathstyle.css
File metadata and controls
854 lines (706 loc) · 16.1 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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
:root {
--main-color: #5353c9c3;
--primary-color: #eef2f7;
--second-color: #000000;
--p-m-g: 15px;
--border-w: 100vh;
--header-h: 100px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
list-style: none;
border: none;
outline: none;
}
a {
text-decoration: none;
color: inherit;
font: inherit;
}
html {
scroll-behavior: smooth;
}
body {
min-height: 100vh;
color: var(--second-color);
}
.header {
position: fixed;
width: 100%;
height: var(--header-h);
padding: 0 5%;
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--p-m-g);
color: var(--primary-color);
background-color: transparent;
z-index: 99;
transition: 0.5s;
}
.header.active {
background-color: var(--main-color);
}
.top-left-text {
margin-right: auto;
animation: --mov-left 1s ease-in-out;
}
.top-left-text a {
color: var(--main-color);
text-transform: capitalize;
}
.header.active .top-left-text a {
color: #fff;
}
@keyframes --mov-left {
from {
opacity: 0;
transform: translateX(-200px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.nav {
display: flex;
}
.nav a {
position: relative;
padding: 0 var(--p-m-g);
font-size: 18px;
opacity: 0;
animation: --mov-right 1s ease-in-out forwards;
animation-delay: calc(var(--delay)*0.05s);
}
.nav a:hover::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 100%;
height: 2px;
background-color: var(--primary-color);
}
.header i {
font-size: 24px;
cursor: pointer;
padding: 0 var(--p-m-g);
opacity: 0;
animation: --mov-right 1s 0.5s ease-in-out forwards;
animation-delay: calc(var(--delay)*0.05s);
}
.ham {
display: none;
}
@keyframes --mov-right {
from {
opacity: 0;
transform: translateX(100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.section {
position: relative;
display: flex;
flex-direction: column;
gap: var(--p-m-g);
justify-content: center;
height: 100vh;
width: 100%;
padding: 0 5%;
z-index: 2;
line-height: 1.5;
}
.section .cont {
max-width: 600px;
}
.home .sub-title,
.home .desc {
opacity: 0;
animation: --mov-left 1s 0.5s ease-in-out forwards;
animation-delay: calc(var(--delay)*0.05s);
width: 51%;
font-size: 20px;
font-weight: 700;
}
/* 更改 */
/* .sub-title {
position: absolute;
top: 550px;
} */
.home .title {
text-transform: capitalize;
font-size: 20px;
font-weight: 600;
}
.home {
padding: 8px 100px;
width: max-content;
background-color: var(--main-color);
color: var(--primary-color);
border-radius: var(--p-m-g);
text-transform: capitalize;
font-size: 18px;
cursor: pointer;
border: 1px solid var(--main-color);
}
.home :hover {
background-color: transparent;
color: var(--main-color);
}
.btn {
margin: 0;
padding: 0;
box-sizing: border-box;
position: relative;
width: 10rem;
/* 缩小宽度 */
height: 4rem;
border: 1px solid var(--main-color);
/* 使用主色调作为边框颜色 */
background-color: var(--primary-color);
/* 使用主背景色作为按钮背景颜色 */
color: var(--second-color);
/* 使用主文字颜色作为按钮文字颜色 */
font-weight: 600;
font-size: 20px;
text-transform: uppercase;
opacity: 0;
animation: left-in 0.5s ease-in-out 0.6s forwards;
overflow: hidden;
cursor: pointer;
transition: 1s;
border-radius: 20px;
}
.btn::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 130%;
height: 100%;
background-color: #5353c9c3;
/* 使用主色调作为伪元素背景颜色 */
transform-origin: right bottom;
transform: translateX(-100%) skew(30deg);
transition: 1s;
z-index: -1;
}
.btn:hover {
color: #ffffffc3;
font-size: 35px;
transition: 1s;
/* 悬停时文字颜色变为主背景色 */
border-radius: 200px;
}
.btn:hover::before {
transform: translateX(0%) skew(30deg);
}
@keyframes left-in {
0% {
transform: translateX(-100%);
opacity: 0;
}
100% {
transform: translateX(0%);
opacity: 1;
}
}
.link {
display: flex;
gap: var(--p-m-g);
margin: var(--p-m-g) 0;
}
.link .icon {
display: flex;
justify-content: center;
align-items: center;
width: 70px;
height: 70px;
border: 1px solid var(--main-color);
color: var(--main-color);
border-radius: 50%;
/* font-size: 200px; */
opacity: 0;
animation: --mov-right 1s 0.5s ease-in-out forwards;
animation-delay: calc(var(--delay)*0.05s);
cursor: pointer;
transition: 0.5s;
}
.iconfont {
font-size: 28px;
}
.link .icon:hover {
transform: scale(2);
background-color: var(--main-color);
color: var(--primary-color);
}
.bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: var(--border-w);
opacity: 0;
animation: --mov-right 1s 0.5s ease-in-out forwards;
animation-delay: calc(var(--delay)*0.05s);
pointer-events: none;
background-color: #ffffff00;
background-size: 390%;
background-image: url(./img/头像.jpg);
}
/* .bgc img{
filter: blur(30px);
} */
/* .overlay {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
background-color: #9d9d9df3;
filter: blur(300px);
border-radius: 0 50% 50% 0;
} */
.overlay {
position: absolute;
right: 0;
top: 0;
width: 0;
height: 0;
border: calc(var(--border-w)/2) solid #5353c9c3;
border-left-color: transparent;
}
.overlay {
filter: blur(6px);
}
#work,
#picture,
#about,
#sharlin {
height: 100vh;
}
@media screen and (max-width: 768px) {
.header {
color: #000;
}
.header.active {
color: #fff;
}
.top-left-text a {
color: #000;
}
.ham {
display: block;
}
.nav {
position: fixed;
top: 0;
right: -100%;
flex-direction: column;
width: 35vw;
height: 100vh;
gap: var(--p-m-g);
padding: var(--header-h) var(--p-m-g);
font-size: 15px;
background-color: var(--second-color);
transition: 0.5s;
z-index: 1;
}
.nav .close {
display: block;
position: absolute;
top: var(--p-m-g);
right: var(--p-m-g);
}
.nav.active {
right: 0;
}
.bg {
display: none;
}
}
/* 头像css */
.wrapt {
position: relative;
animation: --mov-left 1s ease-in-out forwards;
top: -45px;
}
.tbg {
width: calc(150px);
height: calc(150px);
}
.tbg-avatar {
position: relative;
bottom: 20px;
width: 100%;
height: 100%;
background-image: url(./img/头像.jpg);
background-position: center;
background-size: cover;
border-radius: 50%;
cursor: pointer;
}
.tbg-avatar::before {
content: '';
position: absolute;
inset: -5px;
background-image: linear-gradient(rgb(255, 255, 255), #3e77e8, #9d2fc5);
border-radius: 50%;
animation: roll 5s linear infinite;
z-index: -1;
}
.tbg-avatar::after {
content: '这里,desheng liu与你分享点滴~';
position: absolute;
bottom: calc(15px * -4);
/* -60px */
width: max-content;
font-size: calc(19px * 2);
/* 30px */
text-transform: capitalize;
color: transparent;
font-family: 'greatvibes';
font-weight: 900;
background-image: linear-gradient(to right, rgb(255, 255, 255), #3333e1, #ac34cd);
background-clip: text;
background-size: 200% auto;
background-position: 0 0;
transition: background-position 0.5s;
}
.tbg-avatar:hover::after {
background-position: 100% 0;
}
.bg-avatar:hover::after {
background-position: 100% 0;
}
@keyframes roll {
to {
transform: rotate(360deg);
}
}
/* 个人信息 */
.section.info {
background-color: rgba(244, 244, 244, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px;
background-image: url(./img/夕阳.jpg);
background-size: cover;
background-position: center;
}
.section.info h2 {
font-size: 30px;
color: var(--main-color);
margin-bottom: 15px;
}
.section.info p {
font-size: 16px;
line-height: 1.5;
color: #fff;
text-align: center;
}
.section.info table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
border-spacing: 0;
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
}
.section.info table tr:nth-child(even) {
background-color: rgba(230, 230, 230, 0);
}
.section.info table tr:nth-child(odd) {
background-color: rgba(250, 250, 250, 0.186);
}
.section.info table th {
background-color: #5656fc68;
color: rgb(255, 255, 255);
padding: 12px 10px;
text-align: left;
font-weight: normal;
}
.section.info table td {
padding: 10px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
text-align: left;
color: #fff;
}
/* 针对picture section的样式 */
.section.picture {
background-color: rgba(232, 232, 232, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.caption {
font-size: 20px;
}
.section.picture h2 {
font-size: 32px;
color: var(--main-color);
margin-bottom: 15px;
}
.section.picture p {
font-size: 22px;
line-height: 1.5;
color: var(--second-color);
text-align: center;
}
/* 相册 */
/* 轮播图整体容器样式 */
.gallery-slider {
position: relative;
width: 100%;
max-width: 800px;
margin: 0 auto;
overflow: hidden;
}
/* 图片滑动的 wrapper 样式 */
.slider-wrapper {
display: flex;
transition: transform 0.5s;
}
/* 每张幻灯片(图片)的样式 */
.slide {
flex: 0 0 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.slide img {
width: 100%;
height: auto;
border-radius: 30px;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}
.slide.caption {
padding: 10px;
text-align: center;
font-size: 14px;
color: var(--second-color);
}
/* 左右切换按钮样式 */
.prev-button,
.next-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: var(--main-color);
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
font-size: 16px;
z-index: 1;
opacity: 0.8;
transition: background-color 0.3s ease, opacity 0.3s ease;
}
.prev-button:hover,
.next-button:hover {
background-color: var(--main-color);
opacity: 1;
}
.prev-button {
left: 10px;
}
.next-button {
right: 10px;
}
/* 小圆点指示器样式 */
.indicator-container {
display: flex;
justify-content: center;
margin-top: 10px;
}
.indicator {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #ccc;
margin: 0 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.indicator.active {
background-color: var(--main-color);
}
/* 分享链接部分css */
/* 链接列表整体样式 */
.section.sharlin {
background-image: url(./img/森林.jpg);
background-size: cover;
}
.link-list {
list-style: none;
margin-top: 20px;
padding: 60px;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
gap: 20px;
}
/* 单个链接项样式 */
.link-item {
width: 200px;
height: 150px;
font-size: 20px;
font-weight: 600;
line-height: 125px;
background-color: #7465be75;
border-radius: 20px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
position: relative;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.link-item:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 5px;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease;
z-index: -1;
}
.link-item:hover {
background-color: rgba(200, 200, 200, 0.5);
transform: translateY(-3px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.link-item:hover:before {
background-color: #33475654;
}
/* 链接图标样式 */
.link-item.link-icon {
width: 40px;
height: 40px;
margin-top: 10px;
display: flex;
justify-content: center;
align-items: center;
color: var(--main-color);
font-size: 20px;
transition: color 0.3s ease, transform 0.3s ease;
/* 增加图标缩放过渡效果 */
}
.link-item:hover.link-icon {
color: #3e77e8;
transform: scale(1.1);
/* 悬停时图标稍微放大一点 */
}
/* 链接标题样式 */
.link-item.link-title {
padding: 10px;
text-align: center;
font-size: 14px;
color: var(--second-color);
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
transition: color 0.3s ease;
}
.link-item:hover.link-title {
color: #3e77e8;
}
.link-item a {
text-decoration: none;
display: flex;
flex-direction: column;
align-items: center;
padding: 10px 0;
}
.link-item a:hover {
text-decoration: none;
}
/* 标题样式 */
.sharlin-title {
font-size: 28px;
color: var(--main-color);
text-align: center;
margin-bottom: 10px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
position: relative;
}
.sharlin-title::after {
content: "";
position: absolute;
bottom: -5px;
/* 下划线距离文字底部的距离 */
left: 50%;
transform: translateX(-50%);
width: 0;
/* 初始宽度为0,用于过渡效果展示 */
height: 2px;
background-color: var(--main-color);
/* 下划线颜色与标题颜色一致 */
transition: width 0.3s ease;
/* 过渡效果控制下划线宽度变化 */
}
/* 副标题样式 */
.sharlin-subtitle {
font-size: 21px;
color: var(--second-color);
text-align: center;
margin-bottom: 20px;
transition: all 0.3s ease;
}
/* 鼠标悬停在整个链接分享区域时,标题和副标题的样式变化 */
.section.sharlin:hover.sharlin-title {
color: #3e77e8;
/* 悬停时标题颜色改变,与链接项交互颜色协调 */
text-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
/* 悬停时阴影加深,增强视觉效果 */
}
.section.sharlin:hover.sharlin-title::after {
width: 50%;
/* 悬停时下划线宽度变为标题宽度的50%,形成装饰效果 */
}
.section.sharlin:hover.sharlin-subtitle {
color: var(--main-color);
/* 悬停时副标题颜色改变,与标题和链接项形成呼应 */
}
/* 高亮 */
.nav a.active {
color: #d89be9;
font-size: 25px;
font-weight: 900;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
transition: all 0.3s ease;
top: -7px;
}
.return-teampage {
position: relative;
top: -35px;
left: 150px;
font-size: 22px;
}