@cycjimmy/sass-lib 1.0.3 → 1.1.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/README.md CHANGED
@@ -1,9 +1,6 @@
1
1
  # sass-lib
2
-
3
- [![NPM version][npm-image]][npm-url]
4
- [![npm download][download-image]][download-url]
5
2
  [![libraries dependency status][libraries-status-image]][libraries-status-url]
6
- [![libraries sourcerank][libraries-sourcerank-image]][libraries-status-url]
3
+ [![libraries sourcerank][libraries-sourcerank-image]][libraries-sourcerank-url]
7
4
  [![Release date][release-date-image]][release-url]
8
5
  [![semantic-release][semantic-image]][semantic-url]
9
6
  [![npm license][license-image]][download-url]
@@ -11,6 +8,9 @@
11
8
  Personal collection of sass.
12
9
 
13
10
  ## Install
11
+ [![NPM version][npm-image]][npm-url]
12
+ [![npm download][download-image]][download-url]
13
+
14
14
  ```shell
15
15
  # via npm
16
16
  $ npm install @cycjimmy/sass-lib --save
@@ -34,6 +34,7 @@ $ yarn add @cycjimmy/sass-lib
34
34
  [libraries-status-image]: https://img.shields.io/librariesio/release/npm/@cycjimmy/sass-lib
35
35
  [libraries-sourcerank-image]: https://img.shields.io/librariesio/sourcerank/npm/@cycjimmy/sass-lib
36
36
  [libraries-status-url]: https://libraries.io/github/cycjimmy/sass-lib
37
+ [libraries-sourcerank-url]: https://libraries.io/npm/@cycjimmy%2Fsass-lib
37
38
 
38
39
  [release-date-image]: https://img.shields.io/github/release-date/cycjimmy/sass-lib
39
40
  [release-url]: https://github.com/cycjimmy/sass-lib/releases
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
  /**
10
- * calc vw
10
+ * designPx2VW
11
11
  * $designDrawingLength
12
12
  * $designDrawingWidth
13
13
  *
@@ -19,3 +19,24 @@
19
19
  @function designPx2VW($designDrawingLength:0, $designDrawingWidth:750) {
20
20
  @return strip-units($designDrawingLength) / strip-units($designDrawingWidth) * 100vw;
21
21
  }
22
+
23
+ /**
24
+ * designPx2Px
25
+ * $designDrawingLength
26
+ * $designDrawingWidth
27
+ *
28
+ * Usage:
29
+ * @function calcPX($designDrawingLength:0) {
30
+ * @return call(
31
+ * get_function("designPx2Px"),
32
+ * $designDrawingLength,
33
+ * $designDrawingWidth,
34
+ * $pcRootWidth,
35
+ * );
36
+ * }
37
+ */
38
+ @function designPx2Px($designDrawingLength:0, $designDrawingWidth:750, $pcRootWidth:500) {
39
+ @return round(strip-units($designDrawingLength)
40
+ / strip-units($designDrawingWidth)
41
+ * strip-units($pcRootWidth)) * 1px;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cycjimmy/sass-lib",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Personal collection of sass.",
5
5
  "main": "index.scss",
6
6
  "repository": {
@@ -27,6 +27,6 @@
27
27
  "access": "public"
28
28
  },
29
29
  "devDependencies": {
30
- "@cycjimmy/config-lib": "^1.4.0"
30
+ "@cycjimmy/config-lib": "^2.0.0"
31
31
  }
32
32
  }