gerillass 1.1.1 → 1.2.1
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 +12 -0
- package/README.md +1 -0
- package/package.json +1 -1
- package/scss/_gerillass-prefix.scss +38 -0
- package/scss/_gerillass.scss +1 -0
- package/scss/library/_columnizer.scss +1 -0
- package/scss/library/_loadify.scss +36 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
_Change is the essence._
|
|
3
3
|
|
|
4
|
+
## 1.2.1
|
|
5
|
+
* Add @extend fuctionality to use Loadify mixin for multiple selectors.
|
|
6
|
+
|
|
7
|
+
## 1.2.0
|
|
8
|
+
* Add Loadify: A new mixin to help page elements render more natural during the time of page loads.
|
|
9
|
+
|
|
10
|
+
## 1.1.3
|
|
11
|
+
* Add box-sizing property to Columnizer mixin.
|
|
12
|
+
|
|
13
|
+
## 1.1.2
|
|
14
|
+
* Uptade for security vulnerabilities.
|
|
15
|
+
|
|
4
16
|
## 1.1.1
|
|
5
17
|
* Bugfix for a comment.
|
|
6
18
|
|
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ Hope you’ll enjoy using it!
|
|
|
16
16
|
|
|
17
17
|
- [Gerillass Website](https://gerillass.com)
|
|
18
18
|
- [Gerillass Documentation](https://docs.gerillass.com)
|
|
19
|
+
- [Gerillass Blog](https://medium.com/gerillass)
|
|
19
20
|
- [Twitter](https://twitter.com/gerillass)
|
|
20
21
|
|
|
21
22
|
## Table of Contents
|
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,43 @@
|
|
|
796
797
|
|
|
797
798
|
|
|
798
799
|
|
|
800
|
+
@mixin gls-loadify($params...) {
|
|
801
|
+
@if not & and length($params) == 0 {
|
|
802
|
+
@keyframes loadify {
|
|
803
|
+
to {
|
|
804
|
+
opacity: 1;
|
|
805
|
+
visibility: visible;
|
|
806
|
+
backface-visibility: visible;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
.static-rules {
|
|
810
|
+
opacity: 0;
|
|
811
|
+
visibility: hidden;
|
|
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;
|
|
820
|
+
@if length($params) == 0 {
|
|
821
|
+
animation-delay: 0.2s;
|
|
822
|
+
animation-duration: 0.5s;
|
|
823
|
+
} @else if length($params) == 1 {
|
|
824
|
+
animation-delay: #{nth($params, 1)};
|
|
825
|
+
animation-duration: 0.5s;
|
|
826
|
+
} @else if length($params) == 2 {
|
|
827
|
+
animation-delay: #{nth($params, 1)};
|
|
828
|
+
animation-duration: #{nth($params, 2)};
|
|
829
|
+
}
|
|
830
|
+
} @else if length($params) > 2 {
|
|
831
|
+
@error "NO MORE THAN 2 ARGUMENTS ARE ALLOWED! \A";
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
799
837
|
@mixin gls-only($params...) {
|
|
800
838
|
@if length($params) == 0 {
|
|
801
839
|
@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,36 @@
|
|
|
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
|
+
.static-rules {
|
|
13
|
+
opacity: 0;
|
|
14
|
+
visibility: hidden;
|
|
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;
|
|
23
|
+
@if length($params) == 0 {
|
|
24
|
+
animation-delay: 0.2s;
|
|
25
|
+
animation-duration: 0.5s;
|
|
26
|
+
} @else if length($params) == 1 {
|
|
27
|
+
animation-delay: #{nth($params, 1)};
|
|
28
|
+
animation-duration: 0.5s;
|
|
29
|
+
} @else if length($params) == 2 {
|
|
30
|
+
animation-delay: #{nth($params, 1)};
|
|
31
|
+
animation-duration: #{nth($params, 2)};
|
|
32
|
+
}
|
|
33
|
+
} @else if length($params) > 2 {
|
|
34
|
+
@error "NO MORE THAN 2 ARGUMENTS ARE ALLOWED! \A";
|
|
35
|
+
}
|
|
36
|
+
}
|