@oardi/css-utils 0.31.5 → 0.32.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oardi/css-utils",
3
- "version": "0.31.5",
3
+ "version": "0.32.1",
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",
@@ -3,12 +3,13 @@
3
3
 
4
4
  .btn-base {
5
5
  --button-padding: 5px 14px;
6
+ --button-border-width: var(--border-width);
6
7
 
7
8
  display: inline-flex;
8
9
  align-items: center;
9
10
  gap: var(--spacer-2);
10
11
 
11
- border-width: var(--button-border-width, var(--border-width));
12
+ border-width: var(--button-border-width);
12
13
  border-style: solid;
13
14
  background-color: transparent;
14
15
  border-color: transparent;
@@ -37,18 +38,23 @@
37
38
  .btn {
38
39
  @extend .btn-base;
39
40
 
40
- border-radius: var(--button-border-radius, var(--border-radius));
41
+ --button-border-radius: var(--border-radius);
42
+ --button-disabled-font-color: var(--disabled-font-color);
43
+ --button-disabled-bg-color: var(--disabled-bg-color);
44
+ --button-disabled-bg-color: var(--disabled-border-color);
45
+
46
+ border-radius: var(--button-border-radius);
41
47
  line-height: var(--line-height);
42
48
  padding: var(--button-padding);
43
49
 
44
50
  &[disabled],
45
51
  &[disabled]:hover,
46
52
  &[active]:hover {
47
- color: var(--button-disabled-font-color, var(--disabled-font-color));
53
+ color: var(--button-disabled-font-color);
48
54
  outline: 0;
49
55
  box-shadow: none;
50
- background-color: var(--button-disabled-bg-color, var(--disabled-bg-color));
51
- border-color: var(--button-disabled-bg-color, var(--disabled-border-color));
56
+ background-color: var(--button-disabled-bg-color);
57
+ border-color: var(--button-disabled-bg-color);
52
58
  }
53
59
  }
54
60
 
@@ -91,12 +97,14 @@
91
97
  }
92
98
 
93
99
  .btn-#{$name}-text {
100
+ --button-highlight: var(--highlight);
101
+
94
102
  color: var(--#{$name});
95
103
  fill: var(--#{$name});
96
104
 
97
105
  &:hover,
98
106
  &:active {
99
- background-color: var(--button-highlight, var(--highlight));
107
+ background-color: var(--button-highlight);
100
108
  }
101
109
 
102
110
  &:focus {
@@ -2,6 +2,7 @@
2
2
  @use '../theme.scss';
3
3
 
4
4
  .chip-base {
5
+ --chip-label-font-size: 0.9rem;
5
6
  --chip-label-padding: 0 7px;
6
7
  --chip-border-radius: 16px;
7
8
  --chip-border-width: var(--border-width);
@@ -13,6 +14,7 @@
13
14
  background-color: transparent;
14
15
  border-color: transparent;
15
16
  color: var(--font-color);
17
+ font-size: var(--chip-label-font-size);
16
18
  transition: var(--transition-color);
17
19
  -webkit-tap-highlight-color: transparent;
18
20
  touch-action: manipulation; // ios fix
@@ -13,7 +13,7 @@
13
13
  padding: var(--list-item-padding);
14
14
  display: flex;
15
15
  align-items: start;
16
- flex-direction: column;
16
+ gap: var(--spacer-2);
17
17
 
18
18
  &.is-active,
19
19
  &.has-hover:hover {
@@ -23,6 +23,12 @@
23
23
  text-decoration: none;
24
24
  }
25
25
 
26
+ .list-item-text {
27
+ flex: 1;
28
+ display: flex;
29
+ flex-direction: column;
30
+ }
31
+
26
32
  a {
27
33
  color: inherit;
28
34
  }
@@ -84,5 +84,7 @@ a {
84
84
  }
85
85
 
86
86
  p {
87
- margin-bottom: 1rem;
87
+ --paragraph-margin: 0 0 0.5rem 0;
88
+
89
+ margin: var(--paragraph-margin);
88
90
  }
@@ -228,6 +228,10 @@ bg-light(top)?
228
228
  display: inline-block !important;
229
229
  }
230
230
 
231
+ .hidden {
232
+ visibility: hidden !important;
233
+ }
234
+
231
235
  @each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
232
236
  @media (min-width: #{$bp-value}) {
233
237
  .d-#{$bp}-none {