gerillass 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/scss/_gerillass-prefix.scss +24 -0
- package/scss/_gerillass.scss +1 -0
- package/scss/library/_loadify.scss +33 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -797,6 +797,30 @@
|
|
|
797
797
|
|
|
798
798
|
|
|
799
799
|
|
|
800
|
+
@mixin gls-loadify($params...) {
|
|
801
|
+
@if not & and length($params) == 0 {
|
|
802
|
+
@keyframes loadify {
|
|
803
|
+
to {
|
|
804
|
+
opacity: 1;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
} @else if not & and length($params) > 0 {
|
|
808
|
+
@warn "PLEASE DO NOT PASS AN ARGUMENT WHEN YOU CALL THE MIXIN AT THE ROOT OF YOUR STYLESHEET! \A";
|
|
809
|
+
} @else if & and length($params) == 0 {
|
|
810
|
+
@warn "PLEASE PASS AN ARGUMENT TO SPECIFY HOW MANY SECONDS OR MILLISECONDS THE ELEMENTS WILL BE DELAYED! \A \A .element { \A @incude loadify(0.2s); \A } \A ";
|
|
811
|
+
} @else if length($params) > 0 and length($params) < 3 {
|
|
812
|
+
opacity: 0;
|
|
813
|
+
animation-name: loadify;
|
|
814
|
+
animation-fill-mode: forwards;
|
|
815
|
+
animation-delay: nth($params, 1);
|
|
816
|
+
animation-duration: if(length($params) == 2, #{nth($params, 2)}, 0.5s);
|
|
817
|
+
} @else if length($params) > 2 {
|
|
818
|
+
@error "NO MORE THAN 2 ARGUMENTS ARE ALLOWED! \A";
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
800
824
|
@mixin gls-only($params...) {
|
|
801
825
|
@if length($params) == 0 {
|
|
802
826
|
@error "Please pass an argument. The argument must be either a negative or positive number or list of numbers. Or pass one of the following predefined string values: 'first', 'last', 'odd', 'even'.";
|
package/scss/_gerillass.scss
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
@mixin loadify($params...) {
|
|
4
|
+
@if not & and length($params) == 0 {
|
|
5
|
+
@keyframes loadify {
|
|
6
|
+
to {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
visibility: visible;
|
|
9
|
+
backface-visibility: visible;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
} @else if not & and length($params) > 0 {
|
|
13
|
+
@error "PLEASE DO NOT PASS AN ARGUMENT WHEN YOU CALL LOADIFY MIXIN AT THE ROOT OF YOUR STYLESHEET! \A";
|
|
14
|
+
} @else if & and length($params) == 0 or length($params) < 3 {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
visibility: hidden;
|
|
17
|
+
backface-visibility: hidden;
|
|
18
|
+
animation-name: loadify;
|
|
19
|
+
animation-fill-mode: forwards;
|
|
20
|
+
@if length($params) == 0 {
|
|
21
|
+
animation-delay: 0.2s;
|
|
22
|
+
animation-duration: 0.5s;
|
|
23
|
+
} @else if length($params) == 1 {
|
|
24
|
+
animation-delay: #{nth($params, 1)};
|
|
25
|
+
animation-duration: 0.5s;
|
|
26
|
+
} @else if length($params) == 2 {
|
|
27
|
+
animation-delay: #{nth($params, 1)};
|
|
28
|
+
animation-duration: #{nth($params, 2)};
|
|
29
|
+
}
|
|
30
|
+
} @else if length($params) > 2 {
|
|
31
|
+
@error "NO MORE THAN 2 ARGUMENTS ARE ALLOWED! \A";
|
|
32
|
+
}
|
|
33
|
+
}
|