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