Skip to content

Commit 264603c

Browse files
committed
feat: move to SVG icons for navigation
fixes #6652 fixes #4990
1 parent 7b90c93 commit 264603c

File tree

14 files changed

+54
-214
lines changed

14 files changed

+54
-214
lines changed

scripts/icon-font/blank.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

scripts/icon-font/generate.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

scripts/icon-font/generate_font.py

Lines changed: 0 additions & 117 deletions
This file was deleted.

scripts/icon-font/sfnt2woff

-69.5 KB
Binary file not shown.

scripts/utils/get-element-styles.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,11 @@ export const getSplittedCSS = (content) => {
2121
const cssStylesSlideZoom = (content.split(`/* Zoom container styles start */`)[1] || '').split(
2222
`/* Zoom container styles end */`,
2323
)[0];
24-
const navigationFontStyles = (content.split('/* Navigation font start */')[1] || '').split(
25-
'/* Navigation font end */',
26-
)[0];
2724
content = content
2825
.replace(cssStylesSlideCore, '')
2926
.replace(cssStylesSlideCube, '')
3027
.replace(cssStylesSlideFlip, '')
31-
.replace(navigationFontStyles, '')
3228
.replace(cssStylesSlideZoom, '');
33-
if (content.includes(`/* FONT_END */`)) {
34-
content = content.split('/* FONT_END */')[1];
35-
}
3629

3730
return {
3831
slides: [

src/icons/font/swiper-icons.ttf

-3 KB
Binary file not shown.

src/icons/font/swiper-icons.woff

-1.59 KB
Binary file not shown.

src/icons/font/swiper-icons.woff2

-932 Bytes
Binary file not shown.

src/icons/svg/next.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/icons/svg/prev.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)