@massimo-cassandro/minimo 0.10.7 → 0.10.8

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": "@massimo-cassandro/minimo",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/massimo-cassandro/minimo#readme",
@@ -1,18 +1,20 @@
1
- /* TODO dividere in più file secondo il tipo di button */
1
+ /* TODO dividere in più file secondo la variante? */
2
2
 
3
3
  /*
4
- outline btns: primary/secondary + fondo body bg o trasparente
5
-
4
+ .btn-defaults -> class that contains some basic properties aimed to be used for non -`.btn` buttons
5
+ .btn-reset + .btn-defaults reset btn styles and add basic interactions properties
6
6
  */
7
7
 
8
- button, [role='button'], .btn {
8
+ button, [role='button'], .btn, .btn-defaults {
9
9
  &:not([disabled]) {
10
10
  cursor: pointer;
11
11
  }
12
12
  }
13
13
 
14
- .btn svg, .btn[disabled] {
15
- pointer-events: none; /* fa sì che le icone non intercettano il click destinata ai pulsanti */
14
+ .btn, .btn-defaults {
15
+ & svg, &[disabled] {
16
+ pointer-events: none;
17
+ }
16
18
  }
17
19
 
18
20
  .btn-reset, .btn-link, .btn-close {
@@ -23,7 +25,7 @@ button, [role='button'], .btn {
23
25
  box-shadow: none;
24
26
  }
25
27
 
26
- a.btn {
28
+ a.btn, a.btn-defaults {
27
29
  &:focus {
28
30
  outline: none;
29
31
  }
@@ -35,7 +37,6 @@ a.btn {
35
37
  }
36
38
 
37
39
  .btn {
38
-
39
40
  display: inline-block;
40
41
  padding: var(--btn-padding-block) var(--btn-padding-inline);
41
42
  font-size: var(--btn-font-size);
@@ -51,7 +52,6 @@ a.btn {
51
52
 
52
53
  &[disabled] {
53
54
  font-style: italic;
54
- pointer-events: none;
55
55
  cursor: not-allowed;
56
56
  opacity: var(--btn-disabled-opacity);
57
57
  filter: grayscale(60%);
@@ -59,7 +59,6 @@ a.btn {
59
59
 
60
60
  svg {
61
61
  width: 1em;
62
- pointer-events: none;
63
62
  fill: currentColor;
64
63
  }
65
64
 
@@ -92,6 +91,7 @@ a.btn {
92
91
  }
93
92
 
94
93
 
94
+ /* TODO button con solo icona o cosa? controllare: completare o eliminare */
95
95
  &.btn-icon {
96
96
  display: inline-flex;
97
97
  flex-flow: row nowrap;