@macroui/macroui 4.0.0 → 4.0.2
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/base.js +1 -0
- package/dist/full.css +62910 -0
- package/dist/index.d.ts +122 -0
- package/dist/index.js +149 -0
- package/dist/styled.css +5192 -0
- package/dist/styled.js +1 -0
- package/dist/themes.css +2118 -0
- package/dist/unstyled.css +1330 -0
- package/dist/unstyled.js +1 -0
- package/dist/utilities-styled.js +1 -0
- package/dist/utilities-unstyled.js +1 -0
- package/dist/utilities.js +1 -0
- package/package.json +23 -24
- package/src/base/properties.css +5 -0
- package/src/base/reset.css +130 -0
- package/src/base/rootcolor.css +9 -0
- package/src/base/rootscrollgutter.css +21 -0
- package/src/base/rootscrolllock.css +4 -0
- package/src/base/scrollbar.css +3 -0
- package/src/base/svg.css +3 -0
- package/src/components/alert.css +126 -0
- package/src/components/avatar.css +60 -0
- package/src/components/badge.css +151 -0
- package/src/components/breadcrumbs.css +40 -0
- package/src/components/button.css +362 -0
- package/src/components/calendar.css +549 -0
- package/src/components/card.css +203 -0
- package/src/components/carousel.css +59 -0
- package/src/components/chat.css +157 -0
- package/src/components/checkbox.css +174 -0
- package/src/components/collapse.css +302 -0
- package/src/components/countdown.css +56 -0
- package/src/components/diff.css +93 -0
- package/src/components/divider.css +148 -0
- package/src/components/dock.css +123 -0
- package/src/components/drawer.css +166 -0
- package/src/components/dropdown.css +247 -0
- package/src/components/fab.css +139 -0
- package/src/components/fieldset.css +23 -0
- package/src/components/fileinput.css +265 -0
- package/src/components/filter.css +42 -0
- package/src/components/footer.css +45 -0
- package/src/components/hero.css +21 -0
- package/src/components/hover3d.css +128 -0
- package/src/components/hovergallery.css +87 -0
- package/src/components/indicator.css +76 -0
- package/src/components/input.css +263 -0
- package/src/components/kbd.css +49 -0
- package/src/components/label.css +101 -0
- package/src/components/link.css +116 -0
- package/src/components/list.css +58 -0
- package/src/components/loading.css +76 -0
- package/src/components/mask.css +108 -0
- package/src/components/menu.css +298 -0
- package/src/components/mockup.css +150 -0
- package/src/components/modal.css +182 -0
- package/src/components/navbar.css +36 -0
- package/src/components/progress.css +108 -0
- package/src/components/radialprogress.css +39 -0
- package/src/components/radio.css +158 -0
- package/src/components/range.css +186 -0
- package/src/components/rating.css +114 -0
- package/src/components/select.css +284 -0
- package/src/components/skeleton.css +41 -0
- package/src/components/stack.css +80 -0
- package/src/components/stat.css +73 -0
- package/src/components/status.css +92 -0
- package/src/components/steps.css +168 -0
- package/src/components/swap.css +94 -0
- package/src/components/tab.css +557 -0
- package/src/components/table.css +126 -0
- package/src/components/textarea.css +179 -0
- package/src/components/textrotate.css +71 -0
- package/src/components/timeline.css +250 -0
- package/src/components/toast.css +68 -0
- package/src/components/toggle.css +239 -0
- package/src/components/tooltip.css +203 -0
- package/src/components/validator.css +47 -0
- package/src/themes/abyss.css +29 -0
- package/src/themes/acid.css +29 -0
- package/src/themes/aqua.css +29 -0
- package/src/themes/autumn.css +29 -0
- package/src/themes/black.css +29 -0
- package/src/themes/bumblebee.css +29 -0
- package/src/themes/business.css +29 -0
- package/src/themes/caramellatte.css +29 -0
- package/src/themes/cmyk.css +29 -0
- package/src/themes/coffee.css +29 -0
- package/src/themes/corporate.css +29 -0
- package/src/themes/cupcake.css +29 -0
- package/src/themes/cyberpunk.css +29 -0
- package/src/themes/dark.css +29 -0
- package/src/themes/dim.css +29 -0
- package/src/themes/dracula.css +29 -0
- package/src/themes/emerald.css +29 -0
- package/src/themes/fantasy.css +29 -0
- package/src/themes/forest.css +29 -0
- package/src/themes/garden.css +29 -0
- package/src/themes/halloween.css +29 -0
- package/src/themes/lemonade.css +29 -0
- package/src/themes/light.css +29 -0
- package/src/themes/lofi.css +29 -0
- package/src/themes/luxury.css +29 -0
- package/src/themes/night.css +29 -0
- package/src/themes/nord.css +29 -0
- package/src/themes/pastel.css +29 -0
- package/src/themes/retro.css +29 -0
- package/src/themes/silk.css +29 -0
- package/src/themes/sunset.css +29 -0
- package/src/themes/synthwave.css +29 -0
- package/src/themes/valentine.css +29 -0
- package/src/themes/winter.css +29 -0
- package/src/themes/wireframe.css +29 -0
- package/src/utilities/glass.css +20 -0
- package/src/utilities/join.css +207 -0
- package/src/utilities/radius.css +119 -0
- package/src/utilities/typography.css +31 -0
- package/functions/addPrefix.js +0 -185
- package/functions/plugin.js +0 -11
- package/functions/pluginOptionsHandler.js +0 -97
- package/functions/themeOrder.js +0 -37
- package/functions/variables.js +0 -29
- package/index.js +0 -61
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.mask {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply inline-block align-middle;
|
|
4
|
+
mask-size: contain;
|
|
5
|
+
mask-repeat: no-repeat;
|
|
6
|
+
mask-position: center;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.mask-half-1 {
|
|
11
|
+
@layer daisyui.l1.l2 {
|
|
12
|
+
mask-size: 200%;
|
|
13
|
+
mask-position: left;
|
|
14
|
+
@apply [mask-position:left] rtl:[mask-position:right];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mask-half-2 {
|
|
19
|
+
@layer daisyui.l1.l2 {
|
|
20
|
+
mask-size: 200%;
|
|
21
|
+
mask-position: right;
|
|
22
|
+
@apply [mask-position:right] rtl:[mask-position:left];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mask-squircle {
|
|
27
|
+
@layer daisyui.l1.l2 {
|
|
28
|
+
mask-image: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mask-decagon {
|
|
33
|
+
@layer daisyui.l1.l2 {
|
|
34
|
+
mask-image: url("data:image/svg+xml,%3csvg width='192' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 0 58.779 19.098 36.327 50v61.804l-36.327 50L96 200l-58.779-19.098-36.327-50V69.098l36.327-50z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mask-diamond {
|
|
39
|
+
@layer daisyui.l1.l2 {
|
|
40
|
+
mask-image: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m100 0 100 100-100 100L0 100z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.mask-heart {
|
|
45
|
+
@layer daisyui.l1.l2 {
|
|
46
|
+
mask-image: url("data:image/svg+xml,%3csvg width='200' height='185' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.mask-hexagon {
|
|
51
|
+
@layer daisyui.l1.l2 {
|
|
52
|
+
mask-image: url("data:image/svg+xml,%3csvg width='182' height='201' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M.3 65.486c0-9.196 6.687-20.063 14.211-25.078l61.86-35.946c8.36-5.016 20.899-5.016 29.258 0l61.86 35.946c8.36 5.015 14.211 15.882 14.211 25.078v71.055c0 9.196-6.687 20.063-14.211 25.079l-61.86 35.945c-8.36 4.18-20.899 4.18-29.258 0L14.51 161.62C6.151 157.44.3 145.737.3 136.54V65.486Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.mask-hexagon-2 {
|
|
57
|
+
@layer daisyui.l1.l2 {
|
|
58
|
+
mask-image: url("data:image/svg+xml,%3csvg width='200' height='182' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M64.786 181.4c-9.196 0-20.063-6.687-25.079-14.21L3.762 105.33c-5.016-8.36-5.016-20.9 0-29.259l35.945-61.86C44.723 5.851 55.59 0 64.786 0h71.055c9.196 0 20.063 6.688 25.079 14.211l35.945 61.86c4.18 8.36 4.18 20.899 0 29.258l-35.945 61.86c-4.18 8.36-15.883 14.211-25.079 14.211H64.786Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.mask-circle {
|
|
63
|
+
@layer daisyui.l1.l2 {
|
|
64
|
+
mask-image: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle fill='black' cx='100' cy='100' r='100' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mask-pentagon {
|
|
69
|
+
@layer daisyui.l1.l2 {
|
|
70
|
+
mask-image: url("data:image/svg+xml,%3csvg width='192' height='181' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 0 95.106 69.098-36.327 111.804H37.22L.894 69.098z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.mask-star {
|
|
75
|
+
@layer daisyui.l1.l2 {
|
|
76
|
+
mask-image: url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.mask-star-2 {
|
|
81
|
+
@layer daisyui.l1.l2 {
|
|
82
|
+
mask-image: url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.mask-triangle {
|
|
87
|
+
@layer daisyui.l1.l2 {
|
|
88
|
+
mask-image: url("data:image/svg+xml,%3csvg width='174' height='149' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m87 148.476-86.603.185L43.86 74.423 87 0l43.14 74.423 43.463 74.238z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.mask-triangle-2 {
|
|
93
|
+
@layer daisyui.l1.l2 {
|
|
94
|
+
mask-image: url("data:image/svg+xml,%3csvg width='174' height='150' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m87 .738 86.603-.184-43.463 74.238L87 149.214 43.86 74.792.397.554z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mask-triangle-3 {
|
|
99
|
+
@layer daisyui.l1.l2 {
|
|
100
|
+
mask-image: url("data:image/svg+xml,%3csvg width='150' height='174' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m149.369 87.107.185 86.603-74.239-43.463L.893 87.107l74.422-43.14L149.554.505z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.mask-triangle-4 {
|
|
105
|
+
@layer daisyui.l1.l2 {
|
|
106
|
+
mask-image: url("data:image/svg+xml,%3csvg width='150' height='174' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='M.631 87.107.446.505l74.239 43.462 74.422 43.14-74.422 43.14L.446 173.71z' fill-rule='evenodd'/%3e%3c/svg%3e");
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
.menu {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply flex w-fit flex-col flex-wrap p-2;
|
|
4
|
+
--menu-active-fg: var(--color-neutral-content);
|
|
5
|
+
--menu-active-bg: var(--color-neutral);
|
|
6
|
+
font-size: 0.875rem;
|
|
7
|
+
|
|
8
|
+
:where(li ul) {
|
|
9
|
+
@apply relative ms-4 ps-2 whitespace-nowrap;
|
|
10
|
+
|
|
11
|
+
&:before {
|
|
12
|
+
@apply bg-base-content absolute start-0 top-3 bottom-3 opacity-10;
|
|
13
|
+
width: var(--border);
|
|
14
|
+
content: "";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(li > .menu-dropdown:not(.menu-dropdown-show)) {
|
|
19
|
+
@apply hidden;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(li:not(.menu-title) > *:not(ul, details, .menu-title, .btn)),
|
|
23
|
+
:where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
24
|
+
@apply rounded-field grid grid-flow-col content-start items-center gap-2 px-3 py-1.5 text-start;
|
|
25
|
+
transition-property: color, background-color, box-shadow;
|
|
26
|
+
transition-duration: 0.2s;
|
|
27
|
+
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
28
|
+
grid-auto-columns: minmax(auto, max-content) auto max-content;
|
|
29
|
+
text-wrap: balance;
|
|
30
|
+
user-select: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(li > details > summary) {
|
|
34
|
+
@apply outline-hidden;
|
|
35
|
+
|
|
36
|
+
&::-webkit-details-marker {
|
|
37
|
+
@apply hidden;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(li > details > summary),
|
|
42
|
+
:where(li > .menu-dropdown-toggle) {
|
|
43
|
+
&:after {
|
|
44
|
+
@apply justify-self-end;
|
|
45
|
+
display: block;
|
|
46
|
+
height: 0.375rem;
|
|
47
|
+
width: 0.375rem;
|
|
48
|
+
rotate: -135deg;
|
|
49
|
+
translate: 0 -1px;
|
|
50
|
+
transition-property: rotate, translate;
|
|
51
|
+
transition-duration: 0.2s;
|
|
52
|
+
content: "";
|
|
53
|
+
transform-origin: 50% 50%;
|
|
54
|
+
box-shadow: 2px 2px inset;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
details {
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
interpolate-size: allow-keywords;
|
|
62
|
+
}
|
|
63
|
+
details::details-content {
|
|
64
|
+
block-size: 0;
|
|
65
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
66
|
+
transition-behavior: allow-discrete;
|
|
67
|
+
transition-property: block-size, content-visibility;
|
|
68
|
+
transition-duration: 0.2s;
|
|
69
|
+
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
details[open]::details-content {
|
|
73
|
+
block-size: auto;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:where(li > details[open] > summary):after,
|
|
77
|
+
:where(li > .menu-dropdown-toggle.menu-dropdown-show):after {
|
|
78
|
+
rotate: 45deg;
|
|
79
|
+
translate: 0 1px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where(
|
|
83
|
+
li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title),
|
|
84
|
+
li:not(.menu-title, .disabled) > details > summary:not(.menu-title)
|
|
85
|
+
):not(.menu-active, :active, .btn) {
|
|
86
|
+
&.menu-focus,
|
|
87
|
+
&:focus-visible {
|
|
88
|
+
@apply bg-base-content/10 text-base-content cursor-pointer outline-hidden;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
:where(
|
|
92
|
+
li:not(.menu-title, .disabled)
|
|
93
|
+
> *:not(ul, details, .menu-title):not(.menu-active, :active, .btn):hover,
|
|
94
|
+
li:not(.menu-title, .disabled)
|
|
95
|
+
> details
|
|
96
|
+
> summary:not(.menu-title):not(.menu-active, :active, .btn):hover
|
|
97
|
+
) {
|
|
98
|
+
@apply bg-base-content/10 cursor-pointer outline-hidden;
|
|
99
|
+
box-shadow:
|
|
100
|
+
0 1px oklch(0% 0 0 / 0.01) inset,
|
|
101
|
+
0 -1px oklch(100% 0 0 / 0.01) inset;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where(li:empty) {
|
|
105
|
+
@apply bg-base-content opacity-10;
|
|
106
|
+
margin: 0.5rem 1rem;
|
|
107
|
+
height: 1px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:where(li) {
|
|
111
|
+
@apply relative flex shrink-0 flex-col flex-wrap items-stretch;
|
|
112
|
+
|
|
113
|
+
.badge {
|
|
114
|
+
@apply justify-self-end;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
& > *:not(ul, .menu-title, details, .btn):active,
|
|
118
|
+
& > *:not(ul, .menu-title, details, .btn).menu-active,
|
|
119
|
+
& > details > summary:active {
|
|
120
|
+
@apply outline-hidden;
|
|
121
|
+
color: var(--menu-active-fg);
|
|
122
|
+
background-color: var(--menu-active-bg);
|
|
123
|
+
background-size: auto, calc(var(--noise) * 100%);
|
|
124
|
+
background-image: none, var(--fx-noise);
|
|
125
|
+
&:not(&:active) {
|
|
126
|
+
box-shadow: 0 2px calc(var(--depth) * 3px) -2px var(--menu-active-bg);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.menu-disabled {
|
|
131
|
+
@apply text-base-content/20 pointer-events-none;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.dropdown:focus-within {
|
|
135
|
+
.menu-dropdown-toggle:after {
|
|
136
|
+
rotate: 45deg;
|
|
137
|
+
translate: 0 1px;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.dropdown-content {
|
|
141
|
+
@apply mt-2 p-2;
|
|
142
|
+
&:before {
|
|
143
|
+
@apply hidden;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.menu-title {
|
|
150
|
+
@layer daisyui.l1.l2.l3 {
|
|
151
|
+
@apply text-base-content/40 px-3 py-2;
|
|
152
|
+
font-size: 0.875rem;
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.menu-horizontal {
|
|
158
|
+
@layer daisyui.l1.l2 {
|
|
159
|
+
@apply inline-flex flex-row;
|
|
160
|
+
|
|
161
|
+
& > li:not(.menu-title) > details {
|
|
162
|
+
& > ul {
|
|
163
|
+
@apply bg-base-100 rounded-box absolute ms-0 mt-4 origin-top py-2 pe-2 opacity-0;
|
|
164
|
+
scale: 95%;
|
|
165
|
+
box-shadow:
|
|
166
|
+
0 1px 3px 0 oklch(0% 0 0/0.1),
|
|
167
|
+
0 1px 2px -1px oklch(0% 0 0/0.1);
|
|
168
|
+
|
|
169
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
170
|
+
@starting-style {
|
|
171
|
+
scale: 95%;
|
|
172
|
+
opacity: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
animation: menu 0.2s;
|
|
176
|
+
transition-property: opacity, scale, display;
|
|
177
|
+
transition-behavior: allow-discrete;
|
|
178
|
+
transition-duration: 0.2s;
|
|
179
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&[open] > ul {
|
|
184
|
+
@apply opacity-100;
|
|
185
|
+
scale: 100%;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
& > li > details > ul {
|
|
190
|
+
&:before {
|
|
191
|
+
--tw-content: none;
|
|
192
|
+
content: var(--tw-content);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.menu-vertical {
|
|
199
|
+
@layer daisyui.l1.l2 {
|
|
200
|
+
@apply inline-flex flex-col;
|
|
201
|
+
|
|
202
|
+
& > li:not(.menu-title) > details > ul {
|
|
203
|
+
@apply relative ms-4 mt-0 py-0 pe-0;
|
|
204
|
+
background-color: revert-layer;
|
|
205
|
+
border-radius: revert-layer;
|
|
206
|
+
animation: revert-layer;
|
|
207
|
+
transition: revert-layer;
|
|
208
|
+
box-shadow: revert-layer;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.menu-xs {
|
|
214
|
+
@layer daisyui.l1.l2 {
|
|
215
|
+
:where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
216
|
+
:where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
217
|
+
@apply rounded-field px-2 py-1;
|
|
218
|
+
font-size: 0.6875rem;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.menu-title {
|
|
222
|
+
@apply px-2 py-1;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.menu-sm {
|
|
228
|
+
@layer daisyui.l1.l2 {
|
|
229
|
+
:where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
230
|
+
:where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
231
|
+
@apply rounded-field px-2.5 py-1;
|
|
232
|
+
font-size: 0.75rem;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.menu-title {
|
|
236
|
+
@apply px-3 py-2;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.menu-md {
|
|
242
|
+
@layer daisyui.l1.l2 {
|
|
243
|
+
:where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
244
|
+
:where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
245
|
+
@apply rounded-field px-3 py-1.5;
|
|
246
|
+
font-size: 0.875rem;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.menu-title {
|
|
250
|
+
@apply px-3 py-2;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.menu-lg {
|
|
256
|
+
@layer daisyui.l1.l2 {
|
|
257
|
+
:where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
258
|
+
:where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
259
|
+
@apply rounded-field px-4 py-1.5;
|
|
260
|
+
font-size: 1.125rem;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.menu-title {
|
|
264
|
+
@apply px-6 py-3;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.menu-xl {
|
|
270
|
+
@layer daisyui.l1.l2 {
|
|
271
|
+
:where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
272
|
+
:where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
273
|
+
@apply rounded-field px-5 py-1.5;
|
|
274
|
+
font-size: 1.375rem;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.menu-title {
|
|
278
|
+
@apply px-6 py-3;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* allow use cases like group-hover:menu-active to make a menu item active when the menu is hovered */
|
|
284
|
+
:where(:not(ul, details, .menu-title, .btn)).menu-active {
|
|
285
|
+
@layer daisyui.l1.l2 {
|
|
286
|
+
@apply outline-hidden;
|
|
287
|
+
color: var(--menu-active-fg);
|
|
288
|
+
background-color: var(--menu-active-bg);
|
|
289
|
+
background-size: auto, calc(var(--noise) * 100%);
|
|
290
|
+
background-image: none, var(--fx-noise);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@keyframes menu {
|
|
295
|
+
0% {
|
|
296
|
+
opacity: 0;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
.mockup-code {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply bg-neutral text-neutral-content rounded-box relative overflow-hidden overflow-x-auto py-5;
|
|
4
|
+
font-size: 0.875rem;
|
|
5
|
+
direction: ltr;
|
|
6
|
+
|
|
7
|
+
&:before {
|
|
8
|
+
content: "";
|
|
9
|
+
@apply mb-4 block h-3 w-3 rounded-full opacity-30;
|
|
10
|
+
box-shadow:
|
|
11
|
+
1.4em 0,
|
|
12
|
+
2.8em 0,
|
|
13
|
+
4.2em 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
pre {
|
|
17
|
+
@apply pr-5;
|
|
18
|
+
|
|
19
|
+
&:before {
|
|
20
|
+
content: "";
|
|
21
|
+
margin-right: 2ch;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-prefix] {
|
|
25
|
+
&:before {
|
|
26
|
+
--tw-content: attr(data-prefix);
|
|
27
|
+
content: var(--tw-content);
|
|
28
|
+
@apply inline-block w-8 text-right opacity-50;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mockup-window {
|
|
36
|
+
@layer daisyui.l1.l2.l3 {
|
|
37
|
+
@apply rounded-box relative flex flex-col overflow-hidden overflow-x-auto pt-5;
|
|
38
|
+
|
|
39
|
+
&:before {
|
|
40
|
+
content: "";
|
|
41
|
+
@apply mb-4 block aspect-square h-3 shrink-0 self-start rounded-full opacity-30;
|
|
42
|
+
box-shadow:
|
|
43
|
+
1.4em 0,
|
|
44
|
+
2.8em 0,
|
|
45
|
+
4.2em 0;
|
|
46
|
+
}
|
|
47
|
+
[dir="rtl"] &:before {
|
|
48
|
+
@apply self-end;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
pre[data-prefix] {
|
|
52
|
+
&:before {
|
|
53
|
+
--tw-content: attr(data-prefix);
|
|
54
|
+
content: var(--tw-content);
|
|
55
|
+
@apply inline-block text-right;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.mockup-browser {
|
|
62
|
+
@layer daisyui.l1.l2.l3 {
|
|
63
|
+
@apply rounded-box relative overflow-hidden overflow-x-auto;
|
|
64
|
+
|
|
65
|
+
pre[data-prefix] {
|
|
66
|
+
&:before {
|
|
67
|
+
--tw-content: attr(data-prefix);
|
|
68
|
+
content: var(--tw-content);
|
|
69
|
+
@apply inline-block text-right;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mockup-browser-toolbar {
|
|
74
|
+
@apply my-3 inline-flex w-full items-center pr-[1.4em] rtl:flex-row-reverse;
|
|
75
|
+
|
|
76
|
+
&:before {
|
|
77
|
+
content: "";
|
|
78
|
+
@apply mr-[4.8rem] inline-block aspect-square h-3 rounded-full opacity-30;
|
|
79
|
+
box-shadow:
|
|
80
|
+
1.4em 0,
|
|
81
|
+
2.8em 0,
|
|
82
|
+
4.2em 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.input {
|
|
86
|
+
@apply bg-base-200 mx-auto flex h-full items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap;
|
|
87
|
+
font-size: 0.75rem;
|
|
88
|
+
direction: ltr;
|
|
89
|
+
|
|
90
|
+
&:before {
|
|
91
|
+
content: "";
|
|
92
|
+
@apply size-4 opacity-50;
|
|
93
|
+
background-color: currentColor;
|
|
94
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z' clip-rule='evenodd' /%3E%3C/svg%3E")
|
|
95
|
+
no-repeat center;
|
|
96
|
+
mask-size: contain;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mockup-phone {
|
|
104
|
+
@layer daisyui.l1.l2.l3 {
|
|
105
|
+
@apply inline-grid justify-items-center;
|
|
106
|
+
border: 5px solid #6b6b6b;
|
|
107
|
+
border-radius: 65px;
|
|
108
|
+
background-color: #000;
|
|
109
|
+
padding: 6px;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
width: 100%;
|
|
112
|
+
max-width: 462px;
|
|
113
|
+
aspect-ratio: 462 / 978;
|
|
114
|
+
@supports (corner-shape: superellipse(1.45)) {
|
|
115
|
+
border-radius: 90px;
|
|
116
|
+
corner-shape: superellipse(1.45);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.mockup-phone-camera {
|
|
121
|
+
@layer daisyui.l1.l2.l3 {
|
|
122
|
+
grid-column: 1/1;
|
|
123
|
+
grid-row: 1/1;
|
|
124
|
+
background: #000;
|
|
125
|
+
height: 3.7%;
|
|
126
|
+
width: 28%;
|
|
127
|
+
border-radius: 17px;
|
|
128
|
+
z-index: 1;
|
|
129
|
+
margin-top: 3%;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
.mockup-phone-display {
|
|
133
|
+
@layer daisyui.l1.l2.l3 {
|
|
134
|
+
border-radius: 54px;
|
|
135
|
+
grid-column: 1/1;
|
|
136
|
+
grid-row: 1/1;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
width: 100%;
|
|
139
|
+
height: 100%;
|
|
140
|
+
@supports (corner-shape: superellipse(1.87)) {
|
|
141
|
+
border-radius: 101px;
|
|
142
|
+
corner-shape: superellipse(1.87);
|
|
143
|
+
}
|
|
144
|
+
& > img {
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: 100%;
|
|
147
|
+
object-fit: cover;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|