Skip to content

Commit 0d3b7f4

Browse files
committed
add border-box in ld-ring box-sizing; separate border-style from border-width in some loader shape; change build script to also build minimized version
1 parent d0f8fe2 commit 0d3b7f4

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/usr/bin/env bash
22
mkdir -p dist
33
./node_modules/.bin/stylus < src/index.styl > dist/loading.css
4+
./node_modules/.bin/stylus --compress < src/index.styl > dist/loading.min.css

dist/loading.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2939,6 +2939,7 @@
29392939
border-width: 0.15em;
29402940
-webkit-background-clip: padding-box;
29412941
border-color: currentColor currentColor currentColor transparent;
2942+
box-sizing: border-box;
29422943
}
29432944
.ld-hourglass:after {
29442945
width: 0;
@@ -2970,3 +2971,4 @@
29702971
.ld-loader {
29712972
background-size: cover;
29722973
}
2974+

dist/loading.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/loading/shape.styl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,26 @@ shapeCls = join(',',list)
4747
width: 0
4848
height: 0
4949
border-radius: 50%
50-
border: .5em solid
50+
border-style: solid
51+
border-width: .5em
5152
-webkit-background-clip: padding-box
5253
border-color: currentColor currentColor currentColor transparent
5354

5455
.ld-ring:after
5556
border-radius: 50%
56-
border: .15em solid
57+
border-style: solid
58+
border-width: .15em
5759
-webkit-background-clip: padding-box
5860
border-color: currentColor currentColor currentColor transparent
61+
box-sizing: border-box
5962

6063
.ld-hourglass:after
6164
width: 0
6265
height: 0
6366
background: none
6467
border-radius: 50%
65-
border: .5em solid
68+
border-style: solid
69+
border-width: .5em
6670
border-color: currentColor transparent currentColor transparent
6771

6872
.ld-cross:after

0 commit comments

Comments
 (0)