@oardi/css-utils 0.31.0 → 0.31.3

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": "@oardi/css-utils",
3
- "version": "0.31.0",
3
+ "version": "0.31.3",
4
4
  "author": "Ardian Shala",
5
5
  "homepage": "https://css-utils.oardi.com",
6
6
  "description": "Powerful set of semantic css classes with support for breakpoints, directions and spacings",
package/scss/borders.scss CHANGED
@@ -1,26 +1,48 @@
1
1
  @use 'sass:map';
2
2
  @use './theme.scss';
3
3
 
4
+ .border {
5
+ border: var(--border-width) solid var(--border-color) !important;
6
+ }
7
+
8
+ @each $dir, $prop in map.get(theme.$theme, directions) {
9
+ .border-#{$dir} {
10
+ border-#{$prop}: var(--border-width) solid var(--border-color) !important;
11
+ }
12
+ }
13
+
4
14
  .border-0 {
5
15
  border: 0 !important;
6
16
  }
7
17
 
18
+ .border-1 {
19
+ --border-width: 1px;
20
+ }
21
+
22
+ .border-2 {
23
+ --border-width: 2px;
24
+ }
25
+
26
+ .border-3 {
27
+ --border-width: 3px;
28
+ }
29
+
30
+ .border-4 {
31
+ --border-width: 4px;
32
+ }
33
+
34
+ .border-5 {
35
+ --border-width: 5px;
36
+ }
37
+
8
38
  @each $name, $value in map.get(theme.$theme, colors) {
9
- // TODO - add borders for positions
10
39
  .border-#{$name} {
11
- border: var(--border-width) solid var(--#{$name}) !important;
12
- }
13
-
14
- // TODO - refactor directions s = start = left = l?
15
- @each $dir, $prop in map.get(theme.$theme, directions) {
16
- .border-#{$dir}-#{$name} {
17
- border-#{$prop}: var(--border-width) solid var(--#{$name}) !important;
18
- }
40
+ --border-color: var(--#{$name});
19
41
  }
20
42
  }
21
43
 
22
44
  @each $dir, $prop in map.get(theme.$theme, directions) {
23
45
  .border-#{$dir}-0 {
24
- border-#{$dir}: none !important;
46
+ border-#{$prop}: none !important;
25
47
  }
26
48
  }
@@ -34,9 +34,8 @@
34
34
  --black: #000000;
35
35
 
36
36
  --bg-surface: var(--white);
37
-
37
+ --body-bg-color: var(--white);
38
38
  --font-color: var(--gray-100);
39
- --body-bg-color: var(--gray-950);
40
39
 
41
40
  --highlight: rgba(0, 0, 0, 0.08);
42
41
 
@@ -49,7 +48,7 @@
49
48
  --disabled-border-color: var(--gray-850);
50
49
 
51
50
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
52
- --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
51
+ --shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
53
52
  --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.175);
54
53
 
55
54
  --focus-outline: 2px solid rgba(var(--primary-rgb), 0.5);