Skip to content

Commit 0898c1a

Browse files
committed
Fix the lint validation and add the task in the default gulp
1 parent 066a3c8 commit 0898c1a

File tree

7 files changed

+391
-38
lines changed

7 files changed

+391
-38
lines changed

dist/css-loader.css

Lines changed: 335 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gulp.task('serve', ['sass'], function() {
1212
open: false
1313
});
1414

15-
gulp.watch(['src/*.sass', 'src/**/*.sass'], ['sass']);
15+
gulp.watch(['src/*.sass', 'src/**/*.sass'], ['lint', 'sass']);
1616
gulp.watch('examples/*.html').on('change', browserSync.reload);
1717
});
1818

src/general/_utils.sass

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@
1414
width: 100%
1515
font-size: $font-size-loader
1616

17-
// Default text
17+
// Default text
1818
&[data-text = '']
1919
&:before
2020
content: 'Loading'
2121
22-
// Passing text as attribute
22+
// Passing text as attribute
2323
&:not([data-text = ''])
2424
&:before
2525
content: attr(data-text)
2626
27-
// Blink animation
28-
// ==========================================================================
27+
// Blink animation
2928
&[blink]
3029
&:before
3130
animation: blink 1s linear infinite alternate

src/loaders/_loader-ball.sass

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
&[shadow]:before
1919
box-shadow: -5px -5px 10px 0 $loader-ball--shadow inset
20-
20+
2121
&:after
2222
content: ''
2323
position: absolute
24-
background-color: rgba(0,0,0,.3)
24+
background-color: rgba(0, 0, 0, .3)
2525
border-radius: 50%
2626
width: 45px
2727
height: 20px
@@ -32,23 +32,29 @@
3232
animation: shadow 1s infinite alternate ease-out both
3333

3434
@keyframes shadow
35-
0%,
35+
0%
36+
background-color: rgba(0, 0, 0, 0)
37+
transform: scale(0)
38+
3639
40%
37-
background-color: rgba(0,0,0,0)
40+
background-color: rgba(0, 0, 0, 0)
3841
transform: scale(0)
3942

40-
95%,
43+
95%
44+
background-color: rgba(0, 0, 0, .75)
45+
transform: scale(1)
46+
4147
100%
42-
background-color: rgba(0,0,0, .75)
48+
background-color: rgba(0, 0, 0, .75)
4349
transform: scale(1)
4450

4551
@keyframes kick
4652
0%
4753
transform: translateY(-80px) scaleX(.95)
48-
54+
4955
90%
5056
border-radius: 50%
51-
57+
5258
100%
5359
transform: translateY(0) scaleX(1)
5460
border-radius: 50% 50% 20% 20%

src/loaders/_loader-clock.sass

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// ==========================================================================
33
44
.loader-clock
5-
5+
66
&:before
77
content: ''
88
position: fixed
@@ -13,12 +13,10 @@
1313
border-radius: 50%
1414
overflow: hidden
1515
margin: -60px 0 0 -60px
16-
background: linear-gradient(to bottom, transparent 50%, $loader-clock--color-bg 50%),
17-
linear-gradient(90deg, transparent 55px, $loader-clock--color 55px, $loader-clock--color 65px, transparent 65px),
18-
linear-gradient(to bottom, $loader-clock--color-bg 50%, $loader-clock--color-bg 50%)
16+
background: linear-gradient(to bottom, transparent 50%, $loader-clock--color-bg 50%), linear-gradient(90deg, transparent 55px, $loader-clock--color 55px, $loader-clock--color 65px, transparent 65px), linear-gradient(to bottom, $loader-clock--color-bg 50%, $loader-clock--color-bg 50%)
1917
box-shadow: 0 0 0 10px $loader-clock--color-bg inset, 0 0 0 5px $loader-clock--color-border, 0 0 0 10px lighten($loader-clock--color-border, 15%)
2018
animation: rotation infinite 2s linear
21-
19+
2220
&:after
2321
content: ''
2422
position: fixed
@@ -29,8 +27,6 @@
2927
margin: -20px 0 0 -15px
3028
border-radius: 20px 0 0 20px
3129
overflow: hidden
32-
background: radial-gradient(circle at 14px 20px, darken($loader-clock--color, 10%) 10px, transparent 10px),
33-
radial-gradient(circle at 14px 20px, darken($loader-clock--color, 20%) 14px, transparent 14px),
34-
linear-gradient(180deg, transparent 15px, $loader-clock--color 15px, $loader-clock--color 25px, transparent 25px)
30+
background: radial-gradient(circle at 14px 20px, darken($loader-clock--color, 10%) 10px, transparent 10px), radial-gradient(circle at 14px 20px, darken($loader-clock--color, 20%) 14px, transparent 14px), linear-gradient(180deg, transparent 15px, $loader-clock--color 15px, $loader-clock--color 25px, transparent 25px)
3531
animation: rotation infinite 24s linear
3632
transform-origin: 15px center

src/loaders/_loader-smartphone.sass

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,48 @@
1919
border: solid 5px $loader-smartphone--color
2020
border-radius: 10px
2121
box-shadow: 0 5px 0 0 $loader-smartphone--color inset
22-
background: radial-gradient(circle at 50% 90%, rgba(0, 0, 0, .5) 6px, transparent 6px), linear-gradient(to top, $loader-smartphone--color 22px, transparent 22px), linear-gradient(to top, rgba(0, 0, 0,.5) 22px, rgba(0, 0, 0, .5) 100%)
22+
background: radial-gradient(circle at 50% 90%, rgba(0, 0, 0, .5) 6px, transparent 6px), linear-gradient(to top, $loader-smartphone--color 22px, transparent 22px), linear-gradient(to top, rgba(0, 0, 0, .5) 22px, rgba(0, 0, 0, .5) 100%)
2323
animation: shake 2s cubic-bezier(.36, .07, .19, .97) both infinite
2424

2525
&[data-screen = '']
2626
&:after
2727
content: 'Loading'
2828

29-
// Passing text as attribute
29+
// Passing text as attribute
3030
&:not([data-screen = ''])
3131
&:after
3232
content: attr(data-screen)
3333
3434
@keyframes shake
35-
5%,
36-
15%,
37-
25%,
38-
35%,
39-
45%,
40-
55%
41-
transform: translate3d(-1px, 0, 0);
42-
43-
10%,
44-
20%,
45-
30%,
46-
40%,
35+
5%
36+
transform: translate3d(-1px, 0, 0)
37+
38+
10%
39+
transform: translate3d(1px, 0, 0)
40+
41+
15%
42+
transform: translate3d(-1px, 0, 0)
43+
44+
20%
45+
transform: translate3d(1px, 0, 0)
46+
47+
25%
48+
transform: translate3d(-1px, 0, 0)
49+
50+
30%
51+
transform: translate3d(1px, 0, 0)
52+
53+
35%
54+
transform: translate3d(-1px, 0, 0)
55+
56+
40%
57+
transform: translate3d(1px, 0, 0)
58+
59+
45%
60+
transform: translate3d(-1px, 0, 0)
61+
4762
50%
48-
transform: translate3d(1px, 0, 0);
63+
transform: translate3d(1px, 0, 0)
64+
65+
55%
66+
transform: translate3d(-1px, 0, 0)

src/loaders/_loader.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
&:after
2525
border-right-color: transparent
2626

27-
// Inverse
27+
// Inverse
2828
&[inverse]
2929
&:after
3030
animation-direction: reverse

0 commit comments

Comments
 (0)