gerillass 1.2.1 → 1.2.2
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 +45 -14
- package/package.json +1 -1
- package/scss/_gerillass-prefix.scss +57 -19
- package/scss/library/_loadify.scss +57 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
_Change is the essence._
|
|
3
3
|
|
|
4
|
-
## 1.2.
|
|
5
|
-
* Add @extend fuctionality to use Loadify mixin for multiple selectors.
|
|
4
|
+
## [1.2.2]
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
* Add Loadify: A new mixin to help page elements render more natural during the time of page loads.
|
|
6
|
+
### Changed
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
* Add box-sizing property to Columnizer mixin.
|
|
8
|
+
- Improved Loadify mixin. The `init` argument is now available to initialize the mixin at the root level of stylesheet.
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
* Uptade for security vulnerabilities.
|
|
10
|
+
### Removed
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
* Bugfix for a comment.
|
|
12
|
+
- Removed `.travis.yml` file. Travis CI integration no longer available.
|
|
18
13
|
|
|
19
|
-
## 1.1
|
|
20
|
-
* Remove all the `gls-` prefixes from the mixin files under the `library` folder and make prefix usage optional (`gls-` prefix still can ben use).
|
|
14
|
+
## [1.2.1]
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- The `extend` directive has been added to use Loadify mixin for multiple selectors.
|
|
19
|
+
|
|
20
|
+
## [1.2.0]
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Added Loadify: A new mixin to help page elements render more natural during the time of page loads.
|
|
25
|
+
|
|
26
|
+
## [1.1.3]
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Added box-sizing property to Columnizer mixin.
|
|
31
|
+
|
|
32
|
+
## [1.1.2]
|
|
33
|
+
|
|
34
|
+
### Updated
|
|
35
|
+
|
|
36
|
+
- Uptade for security vulnerabilities.
|
|
37
|
+
|
|
38
|
+
## [1.1.1]
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- Bugfix for a comment.
|
|
43
|
+
|
|
44
|
+
## [1.1.0]
|
|
45
|
+
|
|
46
|
+
### Removed
|
|
47
|
+
|
|
48
|
+
- Remove all the `gls-` prefixes from the mixin files under the `library` folder and make prefix usage optional (`gls-` prefix still can ben use).
|
|
49
|
+
|
|
50
|
+
## [0.0.1]
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
|
|
54
|
+
- Changelog created!
|
package/package.json
CHANGED
|
@@ -798,37 +798,75 @@
|
|
|
798
798
|
|
|
799
799
|
|
|
800
800
|
@mixin gls-loadify($params...) {
|
|
801
|
-
@if not &
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
801
|
+
@if not & {
|
|
802
|
+
// ROOT LEVEL
|
|
803
|
+
@if length($params) == 0 {
|
|
804
|
+
// NO ARGUMENT PASSED
|
|
805
|
+
@keyframes loadify {
|
|
806
|
+
to {
|
|
807
|
+
opacity: 1;
|
|
808
|
+
visibility: visible;
|
|
809
|
+
backface-visibility: visible;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
.loadify-static-rules {
|
|
813
|
+
opacity: 0;
|
|
814
|
+
visibility: hidden;
|
|
815
|
+
backface-visibility: hidden;
|
|
816
|
+
animation-name: loadify;
|
|
817
|
+
animation-fill-mode: forwards;
|
|
818
|
+
}
|
|
819
|
+
} @else if length($params) == 1 {
|
|
820
|
+
// ONE ARGUMENT PASSED
|
|
821
|
+
@if type-of(nth($params, 1)) == "string" {
|
|
822
|
+
// THE ARGUMENT TYPE IS STRING
|
|
823
|
+
@if nth($params, 1) == "init" {
|
|
824
|
+
// THE ARGUMENT VALUE IS `INIT`
|
|
825
|
+
@keyframes loadify {
|
|
826
|
+
to {
|
|
827
|
+
opacity: 1;
|
|
828
|
+
visibility: visible;
|
|
829
|
+
backface-visibility: visible;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
.loadify-static-rules {
|
|
833
|
+
opacity: 0;
|
|
834
|
+
visibility: hidden;
|
|
835
|
+
backface-visibility: hidden;
|
|
836
|
+
animation-name: loadify;
|
|
837
|
+
animation-fill-mode: forwards;
|
|
838
|
+
}
|
|
839
|
+
} @else {
|
|
840
|
+
// THE ARGUMENT VALUE IS SOMETHING OTHER THAN INIT!
|
|
841
|
+
@error "#{nth($params, 1)} is not a valid argument. Please pass `init` as an argument to initialize the effect or do not pass any argument at all.";
|
|
842
|
+
}
|
|
843
|
+
} @else {
|
|
844
|
+
// THE ARGUMENT TYPE IS NOT STRING!
|
|
845
|
+
@error "#{nth($params, 1)} is not a valid argument. Please pass `init` as an argument to initialize the effect or do not pass any argument at all.";
|
|
807
846
|
}
|
|
847
|
+
} @else if length($params) > 1 {
|
|
848
|
+
// MORE THAN ONE ARGUMENTS PASSED!
|
|
849
|
+
@error "Only one argument is allowed when you call this mixin at the root of your stylesheet! Please pass `init` as an argument to initialize the effect or do not pass any argument at all.";
|
|
808
850
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
backface-visibility: hidden;
|
|
813
|
-
animation-name: loadify;
|
|
814
|
-
animation-fill-mode: forwards;
|
|
815
|
-
}
|
|
816
|
-
} @else if not & and length($params) > 0 {
|
|
817
|
-
@error "PLEASE DO NOT PASS AN ARGUMENT WHEN YOU CALL LOADIFY MIXIN AT THE ROOT OF YOUR STYLESHEET! \A";
|
|
818
|
-
} @else if & and length($params) == 0 or length($params) < 3 {
|
|
819
|
-
@extend .static-rules;
|
|
851
|
+
} @else if & {
|
|
852
|
+
// SELECTOR LEVEL
|
|
853
|
+
@extend .loadify-static-rules;
|
|
820
854
|
@if length($params) == 0 {
|
|
855
|
+
// NO ARGUMENT PASSED!
|
|
821
856
|
animation-delay: 0.2s;
|
|
822
857
|
animation-duration: 0.5s;
|
|
823
858
|
} @else if length($params) == 1 {
|
|
859
|
+
// ONLY ONE ARGUMENT IS PASSED!
|
|
824
860
|
animation-delay: #{nth($params, 1)};
|
|
825
861
|
animation-duration: 0.5s;
|
|
826
862
|
} @else if length($params) == 2 {
|
|
863
|
+
// TWO ARGUMENTS ARE PASSED!
|
|
827
864
|
animation-delay: #{nth($params, 1)};
|
|
828
865
|
animation-duration: #{nth($params, 2)};
|
|
866
|
+
} @else if length($params) > 2 {
|
|
867
|
+
// MORE THAN TWO ARGUMENTS ARE PASSED!
|
|
868
|
+
@error "You cannot pass more than two arguments.";
|
|
829
869
|
}
|
|
830
|
-
} @else if length($params) > 2 {
|
|
831
|
-
@error "NO MORE THAN 2 ARGUMENTS ARE ALLOWED! \A";
|
|
832
870
|
}
|
|
833
871
|
}
|
|
834
872
|
|
|
@@ -1,36 +1,74 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
|
|
3
3
|
@mixin loadify($params...) {
|
|
4
|
-
@if not &
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
@if not & {
|
|
5
|
+
// ROOT LEVEL
|
|
6
|
+
@if length($params) == 0 {
|
|
7
|
+
// NO ARGUMENT PASSED
|
|
8
|
+
@keyframes loadify {
|
|
9
|
+
to {
|
|
10
|
+
opacity: 1;
|
|
11
|
+
visibility: visible;
|
|
12
|
+
backface-visibility: visible;
|
|
13
|
+
}
|
|
10
14
|
}
|
|
15
|
+
.loadify-static-rules {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
visibility: hidden;
|
|
18
|
+
backface-visibility: hidden;
|
|
19
|
+
animation-name: loadify;
|
|
20
|
+
animation-fill-mode: forwards;
|
|
21
|
+
}
|
|
22
|
+
} @else if length($params) == 1 {
|
|
23
|
+
// ONE ARGUMENT PASSED
|
|
24
|
+
@if type-of(nth($params, 1)) == "string" {
|
|
25
|
+
// THE ARGUMENT TYPE IS STRING
|
|
26
|
+
@if nth($params, 1) == "init" {
|
|
27
|
+
// THE ARGUMENT VALUE IS `INIT`
|
|
28
|
+
@keyframes loadify {
|
|
29
|
+
to {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
visibility: visible;
|
|
32
|
+
backface-visibility: visible;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.loadify-static-rules {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
visibility: hidden;
|
|
38
|
+
backface-visibility: hidden;
|
|
39
|
+
animation-name: loadify;
|
|
40
|
+
animation-fill-mode: forwards;
|
|
41
|
+
}
|
|
42
|
+
} @else {
|
|
43
|
+
// THE ARGUMENT VALUE IS SOMETHING OTHER THAN INIT!
|
|
44
|
+
@error "#{nth($params, 1)} is not a valid argument. Please pass `init` as an argument to initialize the effect or do not pass any argument at all.";
|
|
45
|
+
}
|
|
46
|
+
} @else {
|
|
47
|
+
// THE ARGUMENT TYPE IS NOT STRING!
|
|
48
|
+
@error "#{nth($params, 1)} is not a valid argument. Please pass `init` as an argument to initialize the effect or do not pass any argument at all.";
|
|
49
|
+
}
|
|
50
|
+
} @else if length($params) > 1 {
|
|
51
|
+
// MORE THAN ONE ARGUMENTS PASSED!
|
|
52
|
+
@error "Only one argument is allowed when you call this mixin at the root of your stylesheet! Please pass `init` as an argument to initialize the effect or do not pass any argument at all.";
|
|
11
53
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
backface-visibility: hidden;
|
|
16
|
-
animation-name: loadify;
|
|
17
|
-
animation-fill-mode: forwards;
|
|
18
|
-
}
|
|
19
|
-
} @else if not & and length($params) > 0 {
|
|
20
|
-
@error "PLEASE DO NOT PASS AN ARGUMENT WHEN YOU CALL LOADIFY MIXIN AT THE ROOT OF YOUR STYLESHEET! \A";
|
|
21
|
-
} @else if & and length($params) == 0 or length($params) < 3 {
|
|
22
|
-
@extend .static-rules;
|
|
54
|
+
} @else if & {
|
|
55
|
+
// SELECTOR LEVEL
|
|
56
|
+
@extend .loadify-static-rules;
|
|
23
57
|
@if length($params) == 0 {
|
|
58
|
+
// NO ARGUMENT PASSED!
|
|
24
59
|
animation-delay: 0.2s;
|
|
25
60
|
animation-duration: 0.5s;
|
|
26
61
|
} @else if length($params) == 1 {
|
|
62
|
+
// ONLY ONE ARGUMENT IS PASSED!
|
|
27
63
|
animation-delay: #{nth($params, 1)};
|
|
28
64
|
animation-duration: 0.5s;
|
|
29
65
|
} @else if length($params) == 2 {
|
|
66
|
+
// TWO ARGUMENTS ARE PASSED!
|
|
30
67
|
animation-delay: #{nth($params, 1)};
|
|
31
68
|
animation-duration: #{nth($params, 2)};
|
|
69
|
+
} @else if length($params) > 2 {
|
|
70
|
+
// MORE THAN TWO ARGUMENTS ARE PASSED!
|
|
71
|
+
@error "You cannot pass more than two arguments.";
|
|
32
72
|
}
|
|
33
|
-
} @else if length($params) > 2 {
|
|
34
|
-
@error "NO MORE THAN 2 ARGUMENTS ARE ALLOWED! \A";
|
|
35
73
|
}
|
|
36
74
|
}
|