@oardi/css-utils 0.74.0 → 0.76.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oardi/css-utils",
3
- "version": "0.74.0",
3
+ "version": "0.76.0",
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",
@@ -21,7 +21,7 @@
21
21
  font-size: var(--tooltip-font-size);
22
22
  white-space: nowrap;
23
23
  box-shadow: var(--tooltip-box-shadow);
24
- pointer-events: none;
24
+ pointer-events: auto;
25
25
  }
26
26
 
27
27
  .tooltip-arrow {
@@ -0,0 +1,29 @@
1
+ @use 'sass:map';
2
+ @use './theme.scss' as theme;
3
+
4
+ $-display-values: (
5
+ none: none,
6
+ block: block,
7
+ inline: inline,
8
+ inline-block: inline-block,
9
+ flex: flex,
10
+ inline-flex: inline-flex,
11
+ );
12
+
13
+ @layer utilities {
14
+ @each $name, $value in $-display-values {
15
+ .d-#{$name} {
16
+ display: $value;
17
+ }
18
+ }
19
+
20
+ @each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
21
+ @media (min-width: #{$bp-value}) {
22
+ @each $name, $value in $-display-values {
23
+ .d-#{$bp}-#{$name} {
24
+ display: $value;
25
+ }
26
+ }
27
+ }
28
+ }
29
+ }
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use './display.scss';
2
3
  @use './theme.scss' as theme;
3
4
 
4
5
  // TODO
@@ -7,15 +8,6 @@
7
8
  @layer utilities {
8
9
  @each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
9
10
  @media (min-width: #{$bp-value}) {
10
- // basic
11
- .d-#{$bp}-flex {
12
- display: flex;
13
- }
14
-
15
- .d-#{$bp}-inline-flex {
16
- display: inline-flex;
17
- }
18
-
19
11
  // directions
20
12
  .flex-#{$bp}-row {
21
13
  flex-direction: row;
package/scss/flex.scss CHANGED
@@ -1,5 +1,4 @@
1
- @use 'sass:map';
2
- @use './theme.scss' as theme;
1
+ @use './display.scss';
3
2
 
4
3
  @layer utilities {
5
4
  // TODO - use the following to iterate
@@ -8,15 +7,6 @@
8
7
  // $flex-justify-content-alignments: (start, end, center, between, around, evenly);
9
8
  // $flex-align-items-alignments: (start, end, center, baseline, stretch);
10
9
 
11
- // basic
12
- .d-flex {
13
- display: flex;
14
- }
15
-
16
- .d-inline-flex {
17
- display: inline-flex;
18
- }
19
-
20
10
  // directions
21
11
  .flex-row {
22
12
  flex-direction: row;
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use './display.scss';
2
3
  @use './theme.scss' as theme;
3
4
 
4
5
  $-widths: (
@@ -263,43 +264,10 @@ $-widths: (
263
264
  }
264
265
  }
265
266
 
266
- // display
267
- .d-none {
268
- display: none;
269
- }
270
-
271
- .d-block {
272
- display: block;
273
- }
274
-
275
- .d-inline {
276
- display: inline;
277
- }
278
-
279
- .d-inline-block {
280
- display: inline-block;
281
- }
282
-
283
267
  .hidden {
284
268
  visibility: hidden;
285
269
  }
286
270
 
287
- @each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
288
- @media (min-width: #{$bp-value}) {
289
- .d-#{$bp}-none {
290
- display: none;
291
- }
292
-
293
- .d-#{$bp}-block {
294
- display: block;
295
- }
296
-
297
- .d-#{$bp}-inline-block {
298
- display: inline-block;
299
- }
300
- }
301
- }
302
-
303
271
  @each $name, $value in map.get(theme.$theme, zIndexLevels) {
304
272
  .z-index-#{$name} {
305
273
  z-index: $value;