@yuhuanowo/yunui 0.2.12 → 0.2.13
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/dist/ai.d.ts +73 -1
- package/dist/ai.js +331 -45
- package/dist/ai.js.map +1 -1
- package/dist/{chunk-65XAR7FY.js → chunk-MTEICYIC.js} +29 -13
- package/dist/chunk-MTEICYIC.js.map +1 -0
- package/dist/{chunk-BO6CDGJS.js → chunk-N53PNMPJ.js} +3 -3
- package/dist/chunk-N53PNMPJ.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/patterns.d.ts +4 -1
- package/dist/patterns.js +41 -32
- package/dist/patterns.js.map +1 -1
- package/package.json +1 -1
- package/styles/yunui.css +39 -12
- package/dist/chunk-65XAR7FY.js.map +0 -1
- package/dist/chunk-BO6CDGJS.js.map +0 -1
package/styles/yunui.css
CHANGED
|
@@ -424,6 +424,20 @@ body {
|
|
|
424
424
|
-moz-osx-font-smoothing: grayscale;
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
+
/* Kill the grey tap-highlight box iOS Safari draws over buttons/links on tap —
|
|
428
|
+
it read as an ugly box "popping up" when tapping e.g. pagination. We provide
|
|
429
|
+
our own hover/active feedback, so suppress the native overlay everywhere. */
|
|
430
|
+
a,
|
|
431
|
+
button,
|
|
432
|
+
[role="button"],
|
|
433
|
+
[role="checkbox"],
|
|
434
|
+
[role="tab"],
|
|
435
|
+
.btn,
|
|
436
|
+
label,
|
|
437
|
+
summary {
|
|
438
|
+
-webkit-tap-highlight-color: transparent;
|
|
439
|
+
}
|
|
440
|
+
|
|
427
441
|
/* Scrollbar */
|
|
428
442
|
::-webkit-scrollbar {
|
|
429
443
|
width: 6px;
|
|
@@ -895,29 +909,42 @@ select.input:focus,
|
|
|
895
909
|
margin-bottom: 0.75rem;
|
|
896
910
|
padding: 0.25rem 0.875rem;
|
|
897
911
|
}
|
|
912
|
+
/* Stack each cell as label-above-value (not label-left/value-right): a
|
|
913
|
+
space-between row pushed wide values (icons, badges, long names, buttons)
|
|
914
|
+
off the card and clipped them. Block flow keeps any cell content full-width
|
|
915
|
+
and on-screen; long unbreakable strings (ids) wrap instead of overflowing. */
|
|
898
916
|
.yunui-table-responsive td {
|
|
899
|
-
display:
|
|
900
|
-
|
|
901
|
-
justify-content: space-between;
|
|
902
|
-
gap: 1rem;
|
|
903
|
-
padding: 0.55rem 0;
|
|
917
|
+
display: block;
|
|
918
|
+
padding: 0.5rem 0;
|
|
904
919
|
border: 0 !important;
|
|
905
|
-
text-align:
|
|
920
|
+
text-align: left;
|
|
921
|
+
overflow-wrap: anywhere;
|
|
906
922
|
}
|
|
907
923
|
.yunui-table-responsive td::before {
|
|
908
924
|
content: attr(data-label);
|
|
925
|
+
display: block;
|
|
926
|
+
font-size: 0.6875rem;
|
|
909
927
|
font-weight: 500;
|
|
910
|
-
color: var(--text-
|
|
911
|
-
text-
|
|
912
|
-
|
|
928
|
+
color: var(--text-tertiary);
|
|
929
|
+
text-transform: uppercase;
|
|
930
|
+
letter-spacing: 0.03em;
|
|
931
|
+
margin-bottom: 0.2rem;
|
|
913
932
|
}
|
|
914
|
-
/* unlabelled cells (
|
|
933
|
+
/* unlabelled cells (row-select checkbox, actions) just render their content */
|
|
915
934
|
.yunui-table-responsive td:not([data-label])::before,
|
|
916
935
|
.yunui-table-responsive td[data-label=""]::before {
|
|
917
936
|
content: none;
|
|
918
937
|
}
|
|
919
|
-
|
|
920
|
-
|
|
938
|
+
/* Desktop-table alignment (text-right / justify-end the cell content carries
|
|
939
|
+
for the wide table) reads wrong in a stacked card — left-align it on mobile.
|
|
940
|
+
The compound selector outranks the Tailwind utility, so no !important and no
|
|
941
|
+
per-cell `md:` rewrite is needed. */
|
|
942
|
+
.yunui-table-responsive td [class~="text-right"],
|
|
943
|
+
.yunui-table-responsive td.text-right {
|
|
944
|
+
text-align: left;
|
|
945
|
+
}
|
|
946
|
+
.yunui-table-responsive td [class~="justify-end"] {
|
|
947
|
+
justify-content: flex-start;
|
|
921
948
|
}
|
|
922
949
|
}
|
|
923
950
|
|