Skip to content

Commit

Permalink
chore: remove unused CSS rules
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Dec 14, 2022
1 parent ec36aea commit 7697a83
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions src/core/core.less
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ swiper-slide {
}
.swiper-3d {
perspective: 1200px;
.swiper-wrapper,
.swiper-slide,
swiper-slide,
.swiper-slide-shadow,
Expand Down Expand Up @@ -119,7 +118,6 @@ swiper-slide {
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
}

/* CSS Mode */
.swiper-css-mode,
:host(.swiper-css-mode) {
Expand Down
7 changes: 1 addition & 6 deletions src/modules/pagination/pagination.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
opacity: 0;
}
.swiper-pagination-disabled > &,
:host(.swiper-pagination-disabled) &,
&.swiper-pagination-disabled {
display: none !important;
}
Expand All @@ -30,7 +29,6 @@
.swiper-pagination-fraction,
.swiper-pagination-custom,
.swiper-horizontal > .swiper-pagination-bullets,
:host(.swiper-horizontal) .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
bottom: 10px;
left: 0;
Expand Down Expand Up @@ -77,8 +75,7 @@
box-shadow: none;
appearance: none;
}
.swiper-pagination-clickable &,
:host(.swiper-pagination-clickable) & {
.swiper-pagination-clickable & {
cursor: pointer;
}

Expand All @@ -92,7 +89,6 @@
}

.swiper-vertical > .swiper-pagination-bullets,
:host(.swiper-vertical) .swiper-pagination-bullets,
.swiper-pagination-vertical.swiper-pagination-bullets {
right: 10px;
top: 50%;
Expand All @@ -112,7 +108,6 @@
}
}
.swiper-horizontal > .swiper-pagination-bullets,
:host(.swiper-horizontal) > .swiper-pagination-bullets,
.swiper-pagination-horizontal.swiper-pagination-bullets {
.swiper-pagination-bullet {
margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
Expand Down
3 changes: 0 additions & 3 deletions src/modules/scrollbar/scrollbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
-ms-touch-action: none;
background: rgba(0, 0, 0, 0.1);
.swiper-scrollbar-disabled > &,
:host(.swiper-scrollbar-disabled) &,
&.swiper-scrollbar-disabled {
display: none !important;
}
.swiper-horizontal > &,
:host(.swiper-horizontal) &,
&.swiper-scrollbar-horizontal {
position: absolute;
left: 1%;
Expand All @@ -20,7 +18,6 @@
width: 98%;
}
.swiper-vertical > &,
:host(.swiper-vertical) &,
&.swiper-scrollbar-vertical {
position: absolute;
right: 3px;
Expand Down

0 comments on commit 7697a83

Please sign in to comment.