@nu-art/ts-styles 0.203.83 → 0.203.85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/ts-styles",
3
- "version": "0.203.83",
3
+ "version": "0.203.85",
4
4
  "author": "nu-art",
5
5
  "description": "Styles by Cipher",
6
6
  "main": "dist/index.js",
@@ -13,7 +13,7 @@
13
13
  "linkDirectory": true
14
14
  },
15
15
  "dependencies": {
16
- "@nu-art/ts-common": "0.203.83",
16
+ "@nu-art/ts-common": "0.203.85",
17
17
  "react": "^18.2.0"
18
18
  },
19
19
  "devDependencies": {
package/styles/index.scss CHANGED
@@ -1,3 +1,4 @@
1
+ @forward "mixin";
1
2
  @forward "colors";
2
3
  @forward "palette";
3
4
  @forward "scroll-bar";
@@ -0,0 +1,33 @@
1
+ @mixin grid-borders($axisCount, $direction:'row') {
2
+ @if $direction == 'column' {
3
+ //Setting border right for every child not on the right most column
4
+ @for $i from 1 to $axisCount {
5
+ & > *:nth-child(#{$axisCount}n+#{$i}) {
6
+ border-right: 1px solid black;
7
+ }
8
+ }
9
+ } @else if $direction == 'row' {
10
+ //Setting border left for every child not on the left most column
11
+ @for $i from 1 through $axisCount {
12
+ & > *:nth-child(#{$axisCount}n+#{$i}):not(:nth-child(#{$i})) {
13
+ border-left: 1px solid black;
14
+ }
15
+ }
16
+ }
17
+
18
+
19
+ //Setting border top for every child not on the first row
20
+ @if $direction == 'column' {
21
+ @for $i from 1 through $axisCount {
22
+ & > *:nth-child(#{$axisCount}n+#{$i}):not(:nth-child(#{$i})) {
23
+ border-top: 1px solid black;
24
+ }
25
+ }
26
+ } @else if $direction == 'row' {
27
+ @for $i from 2 through $axisCount {
28
+ & > *:nth-child(#{$axisCount}n+#{$i}) {
29
+ border-top: 1px solid black;
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1 @@
1
+ @forward "grid";