margo-ui 1.2.0 → 1.2.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
|
@@ -10,7 +10,7 @@ export const buttonIconClassName =
|
|
|
10
10
|
"relative z-10 flex size-4 min-w-0 shrink-0 items-center justify-center [direction:ltr]";
|
|
11
11
|
|
|
12
12
|
export const buttonLabelClassName =
|
|
13
|
-
"relative z-10 flex items-center text-sm whitespace-nowrap lowercase [direction:ltr] px-0.5";
|
|
13
|
+
"relative z-10 flex items-center text-sm whitespace-nowrap margo-text-box-trim lowercase [direction:ltr] px-0.5";
|
|
14
14
|
|
|
15
15
|
export const buttonGridClassName =
|
|
16
16
|
"grid items-center gap-0 transition-[grid-template-columns,gap] duration-[180ms] ease-in-out";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export const chipBaseClassName =
|
|
2
|
-
"bg-secondary px-3 py-0.5 whitespace-nowrap lowercase flex-none leading-none rounded-md text-mc shadow-chip";
|
|
2
|
+
"bg-secondary margo-text-box-trim flex items-center justify-center px-3 py-0.5 whitespace-nowrap lowercase flex-none leading-none rounded-md text-mc shadow-chip";
|
|
3
3
|
|
|
4
4
|
export const chipActiveClassName = "bg-on-main text-main";
|
package/src/css/utility.css
CHANGED
|
@@ -4,3 +4,7 @@
|
|
|
4
4
|
linear-gradient(var(--margo-color-main), var(--margo-color-main)) padding-box,
|
|
5
5
|
linear-gradient(to bottom right, var(--margo-color-primary-darken), var(--margo-color-primary)) border-box;
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
@utility margo-text-box-trim {
|
|
9
|
+
text-box: trim-start cap alphabetic;
|
|
10
|
+
}
|
package/src/css/variables.css
CHANGED
|
@@ -30,10 +30,6 @@
|
|
|
30
30
|
--margo-font-weight-black: 900;
|
|
31
31
|
|
|
32
32
|
--margo-border-width-2: 1.5px;
|
|
33
|
-
|
|
34
|
-
--margo-shadow-card-color: 0 0 0;
|
|
35
|
-
--margo-shadow-button-color: 0 0 0;
|
|
36
|
-
--margo-shadow-chip-color: 0 0 0;
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
:root {
|
|
@@ -47,11 +43,11 @@
|
|
|
47
43
|
--margo-color-primary-darken: #45b93f;
|
|
48
44
|
--margo-color-secondary: #d3d3d3;
|
|
49
45
|
--margo-color-medium: #7e7e7e;
|
|
50
|
-
--margo-color-border: #
|
|
46
|
+
--margo-color-border: #cfcfcf;
|
|
51
47
|
|
|
52
|
-
--margo-shadow-card: 0
|
|
53
|
-
--margo-shadow-button:
|
|
54
|
-
--margo-shadow-chip: 0 1px 3px -1px rgb(
|
|
48
|
+
--margo-shadow-card: 0 8px 6px -4px rgb(220, 220, 220, 0.5);
|
|
49
|
+
--margo-shadow-button: 0px 2px 3px -1px rgb(220, 220, 220, 0.6);
|
|
50
|
+
--margo-shadow-chip: 0 1px 3px -1px rgb(0, 0, 0, 0.6);
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
.dark {
|
|
@@ -67,7 +63,7 @@
|
|
|
67
63
|
--margo-color-medium: #999999;
|
|
68
64
|
--margo-color-border: #2c2c2c;
|
|
69
65
|
|
|
70
|
-
--margo-shadow-card: 0 4px 12px -4px rgb(
|
|
71
|
-
--margo-shadow-button: 0 2px 6px -2px rgb(
|
|
72
|
-
--margo-shadow-chip: 0 1px 3px -1px rgb(
|
|
66
|
+
--margo-shadow-card: 0 4px 12px -4px rgb(0, 0, 0, 0.5);
|
|
67
|
+
--margo-shadow-button: 0 2px 6px -2px rgb(0, 0, 0, 0.5);
|
|
68
|
+
--margo-shadow-chip: 0 1px 3px -1px rgb(0, 0, 0, 0.5);
|
|
73
69
|
}
|