gerillass 1.1.2 → 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 +48 -8
- package/package.json +1 -1
- package/scss/_gerillass-prefix.scss +76 -0
- package/scss/_gerillass.scss +1 -0
- package/scss/library/_columnizer.scss +1 -0
- package/scss/library/_loadify.scss +74 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
_Change is the essence._
|
|
3
3
|
|
|
4
|
-
## 1.
|
|
5
|
-
* Uptade for security vulnerabilities.
|
|
4
|
+
## [1.2.2]
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
* Bugfix for a comment.
|
|
6
|
+
### Changed
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
* Remove all the `gls-` prefixes from the mixin files under the `library` folder and make prefix usage optional (`gls-` prefix still can ben use).
|
|
8
|
+
- Improved Loadify mixin. The `init` argument is now available to initialize the mixin at the root level of stylesheet.
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
### Removed
|
|
11
|
+
|
|
12
|
+
- Removed `.travis.yml` file. Travis CI integration no longer available.
|
|
13
|
+
|
|
14
|
+
## [1.2.1]
|
|
15
|
+
|
|
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
|
@@ -533,6 +533,7 @@
|
|
|
533
533
|
$fill: false;
|
|
534
534
|
display: flex;
|
|
535
535
|
flex-wrap: wrap;
|
|
536
|
+
@include border-box;
|
|
536
537
|
> * {
|
|
537
538
|
@if length($params) == 1 {
|
|
538
539
|
flex: 0 0 calc(100% / #{$columns});
|
|
@@ -796,6 +797,81 @@
|
|
|
796
797
|
|
|
797
798
|
|
|
798
799
|
|
|
800
|
+
@mixin gls-loadify($params...) {
|
|
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.";
|
|
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.";
|
|
850
|
+
}
|
|
851
|
+
} @else if & {
|
|
852
|
+
// SELECTOR LEVEL
|
|
853
|
+
@extend .loadify-static-rules;
|
|
854
|
+
@if length($params) == 0 {
|
|
855
|
+
// NO ARGUMENT PASSED!
|
|
856
|
+
animation-delay: 0.2s;
|
|
857
|
+
animation-duration: 0.5s;
|
|
858
|
+
} @else if length($params) == 1 {
|
|
859
|
+
// ONLY ONE ARGUMENT IS PASSED!
|
|
860
|
+
animation-delay: #{nth($params, 1)};
|
|
861
|
+
animation-duration: 0.5s;
|
|
862
|
+
} @else if length($params) == 2 {
|
|
863
|
+
// TWO ARGUMENTS ARE PASSED!
|
|
864
|
+
animation-delay: #{nth($params, 1)};
|
|
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.";
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
799
875
|
@mixin gls-only($params...) {
|
|
800
876
|
@if length($params) == 0 {
|
|
801
877
|
@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,74 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
@mixin loadify($params...) {
|
|
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
|
+
}
|
|
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.";
|
|
53
|
+
}
|
|
54
|
+
} @else if & {
|
|
55
|
+
// SELECTOR LEVEL
|
|
56
|
+
@extend .loadify-static-rules;
|
|
57
|
+
@if length($params) == 0 {
|
|
58
|
+
// NO ARGUMENT PASSED!
|
|
59
|
+
animation-delay: 0.2s;
|
|
60
|
+
animation-duration: 0.5s;
|
|
61
|
+
} @else if length($params) == 1 {
|
|
62
|
+
// ONLY ONE ARGUMENT IS PASSED!
|
|
63
|
+
animation-delay: #{nth($params, 1)};
|
|
64
|
+
animation-duration: 0.5s;
|
|
65
|
+
} @else if length($params) == 2 {
|
|
66
|
+
// TWO ARGUMENTS ARE PASSED!
|
|
67
|
+
animation-delay: #{nth($params, 1)};
|
|
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.";
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|