1 | @import url('../../swiper-vars.less');
|
2 |
|
3 | :root {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | }
|
16 | .swiper-pagination {
|
17 | position: absolute;
|
18 | text-align: center;
|
19 | transition: 300ms opacity;
|
20 | transform: translate3d(0, 0, 0);
|
21 | z-index: 10;
|
22 | &.swiper-pagination-hidden {
|
23 | opacity: 0;
|
24 | }
|
25 | }
|
26 |
|
27 | .swiper-pagination-fraction,
|
28 | .swiper-pagination-custom,
|
29 | .swiper-horizontal > .swiper-pagination-bullets,
|
30 | .swiper-pagination-bullets.swiper-pagination-horizontal {
|
31 | bottom: 10px;
|
32 | left: 0;
|
33 | width: 100%;
|
34 | }
|
35 |
|
36 | .swiper-pagination-bullets-dynamic {
|
37 | overflow: hidden;
|
38 | font-size: 0;
|
39 | .swiper-pagination-bullet {
|
40 | transform: scale(0.33);
|
41 | position: relative;
|
42 | }
|
43 | .swiper-pagination-bullet-active {
|
44 | transform: scale(1);
|
45 | }
|
46 | .swiper-pagination-bullet-active-main {
|
47 | transform: scale(1);
|
48 | }
|
49 | .swiper-pagination-bullet-active-prev {
|
50 | transform: scale(0.66);
|
51 | }
|
52 | .swiper-pagination-bullet-active-prev-prev {
|
53 | transform: scale(0.33);
|
54 | }
|
55 | .swiper-pagination-bullet-active-next {
|
56 | transform: scale(0.66);
|
57 | }
|
58 | .swiper-pagination-bullet-active-next-next {
|
59 | transform: scale(0.33);
|
60 | }
|
61 | }
|
62 | .swiper-pagination-bullet {
|
63 | width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
|
64 | height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
|
65 | display: inline-block;
|
66 | border-radius: 50%;
|
67 | background: var(--swiper-pagination-bullet-inactive-color, #000);
|
68 | opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
|
69 | button& {
|
70 | border: none;
|
71 | margin: 0;
|
72 | padding: 0;
|
73 | box-shadow: none;
|
74 | appearance: none;
|
75 | }
|
76 | .swiper-pagination-clickable & {
|
77 | cursor: pointer;
|
78 | }
|
79 |
|
80 | &:only-child {
|
81 | display: none !important;
|
82 | }
|
83 | }
|
84 | .swiper-pagination-bullet-active {
|
85 | opacity: var(--swiper-pagination-bullet-opacity, 1);
|
86 | background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
87 | }
|
88 |
|
89 | .swiper-vertical > .swiper-pagination-bullets,
|
90 | .swiper-pagination-vertical.swiper-pagination-bullets {
|
91 | right: 10px;
|
92 | top: 50%;
|
93 | transform: translate3d(0px, -50%, 0);
|
94 | .swiper-pagination-bullet {
|
95 | margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
|
96 | display: block;
|
97 | }
|
98 | &.swiper-pagination-bullets-dynamic {
|
99 | top: 50%;
|
100 | transform: translateY(-50%);
|
101 | width: 8px;
|
102 | .swiper-pagination-bullet {
|
103 | display: inline-block;
|
104 | transition: 200ms transform, 200ms top;
|
105 | }
|
106 | }
|
107 | }
|
108 | .swiper-horizontal > .swiper-pagination-bullets,
|
109 | .swiper-pagination-horizontal.swiper-pagination-bullets {
|
110 | .swiper-pagination-bullet {
|
111 | margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
|
112 | }
|
113 | &.swiper-pagination-bullets-dynamic {
|
114 | left: 50%;
|
115 | transform: translateX(-50%);
|
116 | white-space: nowrap;
|
117 | .swiper-pagination-bullet {
|
118 | transition: 200ms transform, 200ms left;
|
119 | }
|
120 | }
|
121 | }
|
122 | .swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
123 | transition: 200ms transform, 200ms right;
|
124 | }
|
125 |
|
126 | .swiper-pagination-progressbar {
|
127 | background: rgba(0, 0, 0, 0.25);
|
128 | position: absolute;
|
129 | .swiper-pagination-progressbar-fill {
|
130 | background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
131 | position: absolute;
|
132 | left: 0;
|
133 | top: 0;
|
134 | width: 100%;
|
135 | height: 100%;
|
136 | transform: scale(0);
|
137 | transform-origin: left top;
|
138 | }
|
139 | .swiper-rtl & .swiper-pagination-progressbar-fill {
|
140 | transform-origin: right top;
|
141 | }
|
142 | .swiper-horizontal > &,
|
143 | &.swiper-pagination-horizontal,
|
144 | .swiper-vertical > &.swiper-pagination-progressbar-opposite,
|
145 | &.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
|
146 | width: 100%;
|
147 | height: 4px;
|
148 | left: 0;
|
149 | top: 0;
|
150 | }
|
151 | .swiper-vertical > &,
|
152 | &.swiper-pagination-vertical,
|
153 | .swiper-horizontal > &.swiper-pagination-progressbar-opposite,
|
154 | &.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
|
155 | width: 4px;
|
156 | height: 100%;
|
157 | left: 0;
|
158 | top: 0;
|
159 | }
|
160 | }
|
161 | .swiper-pagination-lock {
|
162 | display: none;
|
163 | }
|