@oardi/css-utils 0.59.0 → 0.60.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.59.0",
3
+ "version": "0.60.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",
@@ -14,7 +14,7 @@
14
14
  list-style: none;
15
15
 
16
16
  .breadcrumb-item {
17
- &.active {
17
+ &.is-active {
18
18
  color: var(--breadcrumb-item-active-color);
19
19
  }
20
20
 
@@ -93,7 +93,7 @@
93
93
  border-color: var(--button-color-hover);
94
94
  }
95
95
 
96
- &.active,
96
+ &.is-active,
97
97
  &:active {
98
98
  background-color: var(--button-color-active);
99
99
  border-color: var(--button-color-active);
@@ -116,7 +116,7 @@
116
116
  border-color: var(--button-color-hover);
117
117
  }
118
118
 
119
- &.active,
119
+ &.is-active,
120
120
  &:active {
121
121
  color: var(--button-on-color);
122
122
  background-color: var(--button-color-active);
@@ -124,11 +124,8 @@
124
124
  }
125
125
 
126
126
  &:focus-visible {
127
- // color: var(--button-on-color);
128
127
  outline: var(--button-focus-outline-width) var(--button-focus-outline-style)
129
128
  rgba(var(--button-color-rgb), 0.5);
130
- // background-color: var(--button-color);
131
- // border-color: var(--button-color);
132
129
  }
133
130
  }
134
131
 
@@ -140,8 +137,9 @@
140
137
  border-color: transparent;
141
138
 
142
139
  &:hover,
143
- &.active,
140
+ &.is-active,
144
141
  &:active {
142
+ // color: var(--button-on-color); // check if needed
145
143
  background-color: var(--button-highlight);
146
144
  }
147
145
 
@@ -116,7 +116,7 @@
116
116
  }
117
117
 
118
118
  &:active,
119
- &.active {
119
+ &.is-active {
120
120
  color: var(--icon-button-on-color);
121
121
  background-color: var(--icon-button-color-active);
122
122
  border-color: var(--icon-button-color-active);
@@ -139,7 +139,7 @@
139
139
  }
140
140
 
141
141
  &:active,
142
- &.active {
142
+ &.is-active {
143
143
  color: var(--icon-button-on-color);
144
144
  background-color: var(--icon-button-color-active);
145
145
  border-color: var(--icon-button-color-active);
@@ -0,0 +1,89 @@
1
+ @layer components {
2
+ .pagination {
3
+ --pagination-gap: var(--spacer-1);
4
+
5
+ --pagination-item-min-width: 2.25rem;
6
+ --pagination-item-padding-y: var(--spacer-1);
7
+ --pagination-item-padding-x: var(--spacer-2);
8
+ --pagination-item-border-radius: 9999px;
9
+
10
+ --pagination-item-color: var(--text-color);
11
+ --pagination-item-bg-color: transparent;
12
+
13
+ --pagination-item-hover-color: var(--primary);
14
+ --pagination-item-hover-bg-color: var(--bg-highlight);
15
+
16
+ --pagination-item-active-color: var(--on-primary);
17
+ --pagination-item-active-bg-color: var(--primary);
18
+
19
+ --pagination-item-disabled-color: var(--disabled-text-color);
20
+
21
+ --pagination-item-focus-outline-width: var(--focus-outline-width);
22
+ --pagination-item-focus-outline-style: var(--focus-outline-style);
23
+ --pagination-item-focus-outline-color: var(--focus-outline-color);
24
+ --pagination-item-focus-outline-offset: var(--focus-offset);
25
+
26
+ --pagination-transition-duration: var(--transition-duration);
27
+ --pagination-transition-easing: var(--transition-easing);
28
+
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ align-items: center;
32
+ gap: var(--pagination-gap);
33
+ }
34
+
35
+ .pagination-item {
36
+ display: inline-flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ min-width: var(--pagination-item-min-width);
40
+ padding: var(--pagination-item-padding-y) var(--pagination-item-padding-x);
41
+ color: var(--pagination-item-color);
42
+ background-color: var(--pagination-item-bg-color);
43
+ border: 0;
44
+ border-radius: var(--pagination-item-border-radius);
45
+ text-decoration: none;
46
+ line-height: var(--line-height);
47
+ -webkit-tap-highlight-color: transparent;
48
+ touch-action: manipulation;
49
+
50
+ transition:
51
+ color var(--pagination-transition-duration) var(--pagination-transition-easing),
52
+ background-color var(--pagination-transition-duration) var(--pagination-transition-easing),
53
+ box-shadow var(--pagination-transition-duration) var(--pagination-transition-easing);
54
+
55
+ &:hover {
56
+ cursor: pointer;
57
+ color: var(--pagination-item-hover-color);
58
+ background-color: var(--pagination-item-hover-bg-color);
59
+ text-decoration: none;
60
+ }
61
+
62
+ &:focus-visible {
63
+ outline: var(--pagination-item-focus-outline-width) var(--pagination-item-focus-outline-style)
64
+ var(--pagination-item-focus-outline-color);
65
+ outline-offset: var(--pagination-item-focus-outline-offset);
66
+ }
67
+
68
+ &.is-active {
69
+ color: var(--pagination-item-active-color);
70
+ background-color: var(--pagination-item-active-bg-color);
71
+ }
72
+
73
+ &.disabled,
74
+ &:disabled,
75
+ &[disabled] {
76
+ cursor: not-allowed;
77
+ pointer-events: none;
78
+ color: var(--pagination-item-disabled-color);
79
+ background-color: transparent;
80
+ outline: 0;
81
+ }
82
+ }
83
+
84
+ .pagination-ellipsis {
85
+ pointer-events: none;
86
+ color: var(--text-muted);
87
+ background-color: transparent;
88
+ }
89
+ }
package/scss/index.scss CHANGED
@@ -36,7 +36,8 @@
36
36
  @forward './components/list.scss';
37
37
  @forward './components/navbar.scss';
38
38
  @forward './components/overlay.scss';
39
- @forward './components/tabs.scss';
39
+ @forward './components/pagination.scss';
40
40
  @forward './components/table.scss';
41
+ @forward './components/tabs.scss';
41
42
  @forward './components/toast.scss';
42
43
  @forward './components/tooltip.scss';
@@ -251,9 +251,7 @@
251
251
 
252
252
  .no-scroll {
253
253
  overflow: hidden;
254
- position: fixed;
255
- width: 100%;
256
- height: 100%;
254
+ overscroll-behavior: none;
257
255
  }
258
256
 
259
257
  // width, height, display with breakpoints and directions