gerillass 1.1.0 → 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 CHANGED
@@ -1,6 +1,18 @@
1
1
  # Changelog
2
2
  _Change is the essence._
3
3
 
4
+ ## 1.2.0
5
+ * Add Loadify: A new mixin to help page elements render more natural during the time of page loads.
6
+
7
+ ## 1.1.3
8
+ * Add box-sizing property to Columnizer mixin.
9
+
10
+ ## 1.1.2
11
+ * Uptade for security vulnerabilities.
12
+
13
+ ## 1.1.1
14
+ * Bugfix for a comment.
15
+
4
16
  ## 1.1.0
5
17
  * Remove all the `gls-` prefixes from the mixin files under the `library` folder and make prefix usage optional (`gls-` prefix still can ben use).
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
@@ -132,15 +133,15 @@ So, feel free to use any tool to support that. My suggestion is Autoprefixer. If
132
133
 
133
134
  ## Experimenting
134
135
 
135
- Experimentation with Gerillass is easy. You can [download the Gerillass library](https://github.com/selfishprimate/gerillass/archive/master.zip), include it in your project, or use [Gulpazan](https://github.com/selfishprimate/gulpazan). Gulpazan is a Gulp based workflow, and it comes with Gerillass and all the packages and configurations that you'll need to work with Sass. [Learn how you can install Gulpazan](https://github.com/selfishprimate/gulpazan).
136
+ Experimentation with Gerillass is easy: If you're processing Sass files on your computer already, [download the Gerillass Sass library](https://github.com/selfishprimate/gerillass/archive/master.zip), include it in your project, and start using it. If not, use [Gerillass Play](https://github.com/selfishprimate/gerillass-play)! Gerillass Play is a Gulp based playground, built for you to get started with [Sass](https://sass-lang.com/) and [Gerillass](https://gerillass.com/) quickly.
136
137
 
137
- **Important Note**: Don't forget that you must have [Node.js](https://nodejs.org/en/) and [Gulp](https://gulpjs.com/docs/en/getting-started/quick-start) installed globally on your machine.
138
+ **Important Note**: Don't forget that you must have [Node.js](https://nodejs.org/en/) and [Gulp CLI](https://gulpjs.com/docs/en/getting-started/quick-start) installed on your machine to work with Gerillass Play.
138
139
 
139
140
  ## Testing
140
141
 
141
142
  Gerillass comes with a unit-testing module named [True](https://github.com/oddbird/true), which makes Sass unit tests possible (endless thanks to the [OddBird Team](https://github.com/oddbird)).
142
143
 
143
- You can find two test examples under the test folder, take your time, examine the codes, and then write your unit tests. After that, run the following command to see if the tests pass.
144
+ You can find two test examples under the `test` folder, take your time, examine the codes, and then write your unit tests. After that, run the following command to see if the tests pass.
144
145
 
145
146
  npm test
146
147
 
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "author": "Halil İbrahim Çakıroğlu",
7
7
  "main": "scss/_gerillass.scss",
8
8
  "license": "Apache-2.0",
9
- "version": "1.1.0",
9
+ "version": "1.2.0",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "https://github.com/selfishprimate/gerillass"
@@ -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,30 @@
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
+ }
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
+
799
824
  @mixin gls-only($params...) {
800
825
  @if length($params) == 0 {
801
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'.";
@@ -63,6 +63,7 @@
63
63
  @import "library/font-face";
64
64
  @import "library/hide";
65
65
  @import "library/linear-gradient";
66
+ @import "library/loadify";
66
67
  @import "library/only";
67
68
  @import "library/placeholder-shown";
68
69
  @import "library/placeholder";
@@ -89,6 +90,6 @@
89
90
  @import "library/text-stroke";
90
91
  @import "library/triangle";
91
92
 
92
- /* Import prefixed version of Gerillass */
93
+ // Import prefixed version of Gerillass
93
94
  @import "gerillass-prefix";
94
95
 
@@ -6,6 +6,7 @@
6
6
  $fill: false;
7
7
  display: flex;
8
8
  flex-wrap: wrap;
9
+ @include border-box;
9
10
  > * {
10
11
  @if length($params) == 1 {
11
12
  flex: 0 0 calc(100% / #{$columns});
@@ -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
+ }
package/gulpfile.js DELETED
@@ -1,34 +0,0 @@
1
- const { series, src, dest } = require("gulp");
2
- const concat = require("gulp-concat");
3
- const replace = require("gulp-replace");
4
- const header = require("gulp-header");
5
-
6
- function gather_mixins(done) {
7
- return src(["scss/library/**/*.scss"])
8
- .pipe(concat("_gerillass-prefix.scss"))
9
- .pipe(dest("scss"));
10
- done();
11
- }
12
-
13
- function del_charset(done) {
14
- return src("scss/_gerillass-prefix.scss")
15
- .pipe(replace('@charset "UTF-8";', ''))
16
- .pipe(dest("scss"));
17
- done();
18
- }
19
-
20
- function add_charset(done) {
21
- return src("scss/_gerillass-prefix.scss")
22
- .pipe(header('@charset "UTF-8";'))
23
- .pipe(dest("scss"));
24
- done();
25
- }
26
-
27
- function add_prefix(done) {
28
- return src("scss/_gerillass-prefix.scss")
29
- .pipe(replace('@mixin ', "@mixin gls-"))
30
- .pipe(dest("scss"));
31
- done();
32
- }
33
-
34
- exports.start = series(gather_mixins, del_charset, add_charset, add_prefix);