返回 AiToEarn
DraftDetailDialog.module.scss
根目录 / project / aitoearn-web / src / components / draft-box / components / DraftDetailDialog.module.scss
1 .draftMediaSwiper {
2 :global {
3 .swiper {
4 width: 100% !important;
5 max-width: 100% !important;
6 }
7 .swiper-wrapper {
8 width: 100% !important;
9 }
10 .swiper-slide {
11 width: 100% !important;
12 }
13
14 // 分页器小圆点 - 加阴影增强可见性
15 .swiper-pagination-bullet {
16 background: white;
17 opacity: 0.6;
18 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
19 }
20 .swiper-pagination-bullet-active {
21 opacity: 1;
22 }
23
24 // 左右导航箭头
25 .swiper-button-prev,
26 .swiper-button-next {
27 color: white;
28 background: rgba(0, 0, 0, 0.3);
29 width: 40px;
30 height: 40px;
31 border-radius: 50%;
32
33 &::after {
34 font-size: 16px;
35 font-weight: bold;
36 }
37
38 &:hover {
39 background: rgba(0, 0, 0, 0.5);
40 }
41 }
42
43 // 禁用状态隐藏
44 .swiper-button-disabled {
45 display: none;
46 }
47
48 // 默认隐藏导航元素
49 .swiper-pagination,
50 .swiper-button-prev,
51 .swiper-button-next {
52 opacity: 0;
53 transition: opacity 0.2s ease-in-out;
54 }
55 }
56 }
57
58 // Hover 时显示
59 .swiperVisible :global {
60 .swiper-pagination,
61 .swiper-button-prev,
62 .swiper-button-next {
63 opacity: 1;
64 }
65 }
66
67 // 非 Hover 时隐藏
68 .swiperHidden :global {
69 .swiper-pagination,
70 .swiper-button-prev,
71 .swiper-button-next {
72 opacity: 0;
73 }
74 }
75
75 lines Plain Text