Browse Source

Change default arrow size and path.

NaotoshiFujita 5 năm trước cách đây
mục cha
commit
14ad4c1074

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/css/splide.min.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/css/themes/splide-default.min.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/js/splide.min.js


BIN
dist/js/splide.min.js.gz


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@splidejs/splide",
-  "version": "1.0.16",
+  "version": "1.0.17",
   "description": "Splide is a lightweight and powerful slider without any dependencies.",
   "author": "Naotoshi Fujita",
   "license": "MIT",

+ 3 - 3
src/assets/svg/arrow.svg

@@ -1,4 +1,4 @@
-<svg id="svg4265" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" height="20" width="20" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <text id="text3719" style="word-spacing:0px;letter-spacing:0px" xml:space="preserve" font-size="40px" line-height="125%" y="1.8054396" x="-16.2097" font-family="&apos;Helvetica Neue LT Pro&apos;" fill="#000000"><tspan id="tspan3721" y="1.8054396" x="-16.2097" font-family="&apos;Helvetica Neue LT Pro&apos;"/></text>
- <path id="rect3732-3-0-0-3" style="paint-order:markers fill stroke" d="m7.61 0.807-2.12 2.12 7.11 7.07-7.11 7.1 2.12 2.1 7.09-7.1 2.1-2.1-2.1-2.12-7.09-7.07z"/>
+<svg id="svg4265" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" height="40" width="40" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <text id="text3719" style="word-spacing:0px;letter-spacing:0px" xml:space="preserve" font-size="40px" line-height="125%" y="21.805439" x="-16.2097" font-family="&apos;Helvetica Neue LT Pro&apos;" fill="#000000"><tspan id="tspan3721" y="21.805439" x="-16.2097" font-family="&apos;Helvetica Neue LT Pro&apos;"/></text>
+ <path id="rect3732-3-0-0-3" style="paint-order:markers fill stroke" d="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"/>
 </svg>

+ 2 - 2
src/js/components/arrows/path.js

@@ -17,11 +17,11 @@ export const XML_NAME_SPACE = 'http://www.w3.org/2000/svg';
  *
  * @type {number}
  */
-export const PATH = 'm7.61 0.807-2.12 2.12 7.11 7.07-7.11 7.1 2.12 2.1 7.09-7.1 2.1-2.1-2.1-2.12-7.09-7.07z';
+export const PATH = 'm15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z';
 
 /**
  * SVG width and height.
  *
  * @type {number}
  */
-export const SIZE = 20;
+export const SIZE = 40;

+ 1 - 1
src/sass/themes/default/foundation/_variables.scss

@@ -2,7 +2,7 @@
 $arrow-button-size: 2em !default;
 
 // Arrow SVG size.
-$arrow-size: 1.1em !default;
+$arrow-size: 1.2em !default;
 
 // Dots indicator size.
 $dot-size: 8px !default;

+ 1 - 0
src/sass/themes/default/object/objects/_arrow.scss

@@ -17,6 +17,7 @@
 
     svg {
       width: $arrow-size;
+      height: $arrow-size;
     }
 
     &:hover {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác