microui-wc 0.1.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/.github/ISSUE_TEMPLATE/bug_report.md +40 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +33 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +28 -0
- package/.github/workflows/ci.yml +42 -0
- package/.github/workflows/deploy-pages.yml +112 -0
- package/AGENTS.md +2366 -0
- package/CHANGELOG.md +47 -0
- package/CODE_OF_CONDUCT.md +59 -0
- package/CONTRIBUTING.md +156 -0
- package/LICENSE +190 -0
- package/README.md +254 -0
- package/SECURITY.md +58 -0
- package/app/.generated/routes/alerts.js +8 -0
- package/app/.generated/routes/avatars.js +8 -0
- package/app/.generated/routes/badges.js +8 -0
- package/app/.generated/routes/buttons.js +10 -0
- package/app/.generated/routes/cards.js +10 -0
- package/app/.generated/routes/checkboxes.js +9 -0
- package/app/.generated/routes/chips.js +8 -0
- package/app/.generated/routes/dropdowns.js +9 -0
- package/app/.generated/routes/home.js +7 -0
- package/app/.generated/routes/icons.js +9 -0
- package/app/.generated/routes/inputs.js +10 -0
- package/app/.generated/routes/installation.js +7 -0
- package/app/.generated/routes/layout.js +9 -0
- package/app/.generated/routes/modals.js +9 -0
- package/app/.generated/routes/navbar.js +7 -0
- package/app/.generated/routes/progress.js +9 -0
- package/app/.generated/routes/radios.js +9 -0
- package/app/.generated/routes/switches.js +9 -0
- package/app/.generated/routes/tabs.js +8 -0
- package/app/.generated/routes/toasts.js +9 -0
- package/app/index.html +67 -0
- package/app/pages/alerts.html +23 -0
- package/app/pages/avatars.html +22 -0
- package/app/pages/badges.html +22 -0
- package/app/pages/buttons.html +71 -0
- package/app/pages/cards.html +54 -0
- package/app/pages/checkboxes.html +39 -0
- package/app/pages/chips.html +23 -0
- package/app/pages/dropdowns.html +41 -0
- package/app/pages/home.html +59 -0
- package/app/pages/icons.html +29 -0
- package/app/pages/inputs.html +66 -0
- package/app/pages/installation.html +34 -0
- package/app/pages/layout.html +30 -0
- package/app/pages/modals.html +21 -0
- package/app/pages/navbar.html +22 -0
- package/app/pages/progress.html +35 -0
- package/app/pages/radios.html +40 -0
- package/app/pages/switches.html +39 -0
- package/app/pages/tabs.html +30 -0
- package/app/pages/toasts.html +22 -0
- package/app-dist/index.html +67 -0
- package/app-dist/pages/alerts.html +23 -0
- package/app-dist/pages/avatars.html +22 -0
- package/app-dist/pages/badges.html +22 -0
- package/app-dist/pages/buttons.html +71 -0
- package/app-dist/pages/cards.html +54 -0
- package/app-dist/pages/checkboxes.html +39 -0
- package/app-dist/pages/chips.html +23 -0
- package/app-dist/pages/dropdowns.html +41 -0
- package/app-dist/pages/home.html +59 -0
- package/app-dist/pages/icons.html +29 -0
- package/app-dist/pages/inputs.html +66 -0
- package/app-dist/pages/installation.html +34 -0
- package/app-dist/pages/layout.html +30 -0
- package/app-dist/pages/modals.html +21 -0
- package/app-dist/pages/navbar.html +22 -0
- package/app-dist/pages/progress.html +35 -0
- package/app-dist/pages/radios.html +40 -0
- package/app-dist/pages/switches.html +39 -0
- package/app-dist/pages/tabs.html +30 -0
- package/app-dist/pages/toasts.html +22 -0
- package/app-dist/pages.json +217 -0
- package/app-dist/routes/alerts.js +5 -0
- package/app-dist/routes/avatars.js +1 -0
- package/app-dist/routes/badges.js +1 -0
- package/app-dist/routes/buttons.js +1 -0
- package/app-dist/routes/cards.js +1 -0
- package/app-dist/routes/checkboxes.js +9 -0
- package/app-dist/routes/chips.js +4 -0
- package/app-dist/routes/chunk-019e5e2f.js +5 -0
- package/app-dist/routes/chunk-0m4j19yd.js +2 -0
- package/app-dist/routes/chunk-0tmmp5q0.js +1 -0
- package/app-dist/routes/chunk-10xn709r.js +1 -0
- package/app-dist/routes/chunk-15m2qcda.js +2 -0
- package/app-dist/routes/chunk-1bh8g23n.js +1 -0
- package/app-dist/routes/chunk-1vg0v937.js +1 -0
- package/app-dist/routes/chunk-1zvcgy3j.js +1 -0
- package/app-dist/routes/chunk-2afb0861.js +1 -0
- package/app-dist/routes/chunk-2c6ttpzt.js +5 -0
- package/app-dist/routes/chunk-3dy30fhs.js +1 -0
- package/app-dist/routes/chunk-426dnces.js +13 -0
- package/app-dist/routes/chunk-44kgxery.js +1 -0
- package/app-dist/routes/chunk-47fdnejd.js +33 -0
- package/app-dist/routes/chunk-49a6t2vq.js +1 -0
- package/app-dist/routes/chunk-4fe1rm5b.js +1 -0
- package/app-dist/routes/chunk-4ggmvkta.js +33 -0
- package/app-dist/routes/chunk-4vkz81q7.js +33 -0
- package/app-dist/routes/chunk-4w4tmj8f.js +31 -0
- package/app-dist/routes/chunk-532s62kr.js +31 -0
- package/app-dist/routes/chunk-5hm3bssy.js +33 -0
- package/app-dist/routes/chunk-5vrh24hc.js +1 -0
- package/app-dist/routes/chunk-61pcg25a.js +1 -0
- package/app-dist/routes/chunk-6nfhygvf.js +1 -0
- package/app-dist/routes/chunk-700e7je6.js +33 -0
- package/app-dist/routes/chunk-7fsn17kg.js +1 -0
- package/app-dist/routes/chunk-7k789b32.js +1 -0
- package/app-dist/routes/chunk-7r46q0ys.js +36 -0
- package/app-dist/routes/chunk-86fmc1fr.js +5 -0
- package/app-dist/routes/chunk-8qth37vw.js +1 -0
- package/app-dist/routes/chunk-924wv8n0.js +1 -0
- package/app-dist/routes/chunk-9mbhgxk9.js +1 -0
- package/app-dist/routes/chunk-a216hyd9.js +1 -0
- package/app-dist/routes/chunk-akzxykh9.js +33 -0
- package/app-dist/routes/chunk-b3dcvy8c.js +1 -0
- package/app-dist/routes/chunk-b74zahz5.js +31 -0
- package/app-dist/routes/chunk-bftj53p2.js +5 -0
- package/app-dist/routes/chunk-c01hnz3e.js +1 -0
- package/app-dist/routes/chunk-d8pvv5km.js +1 -0
- package/app-dist/routes/chunk-dev0aezr.js +2 -0
- package/app-dist/routes/chunk-dh6vnv0e.js +1 -0
- package/app-dist/routes/chunk-dn2cbpva.js +36 -0
- package/app-dist/routes/chunk-dvn0my90.js +1 -0
- package/app-dist/routes/chunk-dvq8mnve.js +36 -0
- package/app-dist/routes/chunk-e8c2gc4d.js +5 -0
- package/app-dist/routes/chunk-ejf9ak2x.js +1 -0
- package/app-dist/routes/chunk-f083m55s.js +1 -0
- package/app-dist/routes/chunk-fnrj28s1.js +31 -0
- package/app-dist/routes/chunk-fvg3yjdp.js +31 -0
- package/app-dist/routes/chunk-g7k381n1.js +1 -0
- package/app-dist/routes/chunk-h01kq2ae.js +13 -0
- package/app-dist/routes/chunk-h4dk761v.js +5 -0
- package/app-dist/routes/chunk-hmx91z2x.js +5 -0
- package/app-dist/routes/chunk-hxbg4m42.js +36 -0
- package/app-dist/routes/chunk-jbjnfp2b.js +2 -0
- package/app-dist/routes/chunk-jxtz5vv6.js +36 -0
- package/app-dist/routes/chunk-jxzcs0ey.js +36 -0
- package/app-dist/routes/chunk-kt7wwhcx.js +1 -0
- package/app-dist/routes/chunk-kzptszyc.js +33 -0
- package/app-dist/routes/chunk-mhgca4w4.js +2 -0
- package/app-dist/routes/chunk-mhswxa20.js +1 -0
- package/app-dist/routes/chunk-n8zfeex6.js +1 -0
- package/app-dist/routes/chunk-pee47b2r.js +1 -0
- package/app-dist/routes/chunk-pesmw829.js +1 -0
- package/app-dist/routes/chunk-pgc4c6f3.js +36 -0
- package/app-dist/routes/chunk-q8egegm1.js +1 -0
- package/app-dist/routes/chunk-q9mn2qyq.js +36 -0
- package/app-dist/routes/chunk-qh0rtaf3.js +5 -0
- package/app-dist/routes/chunk-qqhmk6ye.js +2 -0
- package/app-dist/routes/chunk-qrxygmf7.js +33 -0
- package/app-dist/routes/chunk-r46yzksx.js +36 -0
- package/app-dist/routes/chunk-rgpbw2w0.js +5 -0
- package/app-dist/routes/chunk-rnpzv3d8.js +2 -0
- package/app-dist/routes/chunk-s5v8cv05.js +2 -0
- package/app-dist/routes/chunk-sbwn5bpc.js +1 -0
- package/app-dist/routes/chunk-sqbg8jbt.js +33 -0
- package/app-dist/routes/chunk-sv8dqnf7.js +1 -0
- package/app-dist/routes/chunk-t67sw3za.js +1 -0
- package/app-dist/routes/chunk-tjdpqwdf.js +31 -0
- package/app-dist/routes/chunk-tq2mfghg.js +1 -0
- package/app-dist/routes/chunk-ttn10vt6.js +1 -0
- package/app-dist/routes/chunk-v2hzpjxr.js +1 -0
- package/app-dist/routes/chunk-wfjjkw9y.js +1 -0
- package/app-dist/routes/chunk-wt8cxzmf.js +31 -0
- package/app-dist/routes/chunk-x45d372k.js +5 -0
- package/app-dist/routes/chunk-y3wsazkt.js +1 -0
- package/app-dist/routes/chunk-y7pmgc7t.js +33 -0
- package/app-dist/routes/chunk-zefdt2q3.js +31 -0
- package/app-dist/routes/dropdowns.js +6 -0
- package/app-dist/routes/home.js +1 -0
- package/app-dist/routes/icons.js +1 -0
- package/app-dist/routes/inputs.js +12 -0
- package/app-dist/routes/installation.js +1 -0
- package/app-dist/routes/layout.js +1 -0
- package/app-dist/routes/modals.js +7 -0
- package/app-dist/routes/navbar.js +1 -0
- package/app-dist/routes/progress.js +1 -0
- package/app-dist/routes/radios.js +6 -0
- package/app-dist/routes/switches.js +6 -0
- package/app-dist/routes/tabs.js +1 -0
- package/app-dist/routes/toasts.js +16 -0
- package/assets/fonts/material-symbols-mini.woff2 +0 -0
- package/assets/fonts/material-symbols.woff2 +0 -0
- package/assets/fonts/roboto-400.woff2 +0 -0
- package/assets/fonts/roboto-500.woff2 +0 -0
- package/assets/fonts/roboto-700.woff2 +0 -0
- package/assets/logo-banner-400.jpg +0 -0
- package/assets/logo-banner-400.webp +0 -0
- package/assets/logo-banner-800.webp +0 -0
- package/assets/logo-banner.jpg +0 -0
- package/assets/logo-icon-64.jpg +0 -0
- package/assets/logo-icon-64.webp +0 -0
- package/assets/logo-icon.jpg +0 -0
- package/assets/logo-square.jpg +0 -0
- package/bun.lock +312 -0
- package/bunfig.toml +4 -0
- package/custom-elements.json +1916 -0
- package/demo/api/sample-data.json +38 -0
- package/demo/content/alerts.html +115 -0
- package/demo/content/avatars.html +70 -0
- package/demo/content/badges.html +65 -0
- package/demo/content/buttons.html +188 -0
- package/demo/content/callouts.html +91 -0
- package/demo/content/cards.html +121 -0
- package/demo/content/checkboxes.html +178 -0
- package/demo/content/chips.html +67 -0
- package/demo/content/codeblocks.html +101 -0
- package/demo/content/confirms.html +115 -0
- package/demo/content/datatables.html +149 -0
- package/demo/content/dividers.html +119 -0
- package/demo/content/dropdowns.html +89 -0
- package/demo/content/enterprise.html +252 -0
- package/demo/content/home.html +149 -0
- package/demo/content/icons.html +89 -0
- package/demo/content/inputs.html +135 -0
- package/demo/content/installation.html +16 -0
- package/demo/content/layout.html +136 -0
- package/demo/content/modals.html +141 -0
- package/demo/content/navbar.html +70 -0
- package/demo/content/progress.html +119 -0
- package/demo/content/radios.html +88 -0
- package/demo/content/skeletons.html +109 -0
- package/demo/content/spinners.html +96 -0
- package/demo/content/switches.html +84 -0
- package/demo/content/tables.html +124 -0
- package/demo/content/tabs.html +85 -0
- package/demo/content/toasts.html +116 -0
- package/demo/content/tooltips.html +107 -0
- package/demo/content/virtual-lists.html +233 -0
- package/demo/favicon.ico +0 -0
- package/demo/favicon.png +0 -0
- package/demo/full.html +52 -0
- package/demo/iife.html +46 -0
- package/demo/manifest.json +34 -0
- package/demo/pages/datatable-demo.html +237 -0
- package/demo/pages/prompt-ui-demo.html +218 -0
- package/demo/pages/responsive-demo.html +122 -0
- package/demo/pages/schema-form-demo.html +270 -0
- package/demo/robots.txt +6 -0
- package/demo/shell.html +712 -0
- package/demo/sw.js +387 -0
- package/dist/AGENTS.md +2366 -0
- package/dist/README.md +254 -0
- package/dist/chunks/advanced.js +174 -0
- package/dist/chunks/chunk-1nhr1wrq.js +14 -0
- package/dist/chunks/chunk-hssyjbr0.js +2 -0
- package/dist/chunks/chunk-k8etzx0z.js +2 -0
- package/dist/chunks/chunk-rr1et8fg.js +2 -0
- package/dist/chunks/chunk-sjcx4fd5.js +6 -0
- package/dist/chunks/chunk-v1c777xh.js +5 -0
- package/dist/chunks/chunk-w5k5vwjd.js +13 -0
- package/dist/chunks/core.js +10 -0
- package/dist/chunks/display.js +17 -0
- package/dist/chunks/feedback.js +15 -0
- package/dist/chunks/forms.js +48 -0
- package/dist/chunks/layout.js +9 -0
- package/dist/components/chunk-4tezav8r.js +2 -0
- package/dist/components/chunk-fqyb2pms.js +2 -0
- package/dist/components/chunk-h7cdbhxw.js +13 -0
- package/dist/components/chunk-mzd8jwrs.js +2 -0
- package/dist/components/chunk-qwmxyn8e.js +2 -0
- package/dist/components/chunk-redtk47a.js +14 -0
- package/dist/components/mu-alert.js +5 -0
- package/dist/components/mu-api-table.js +33 -0
- package/dist/components/mu-avatar.js +1 -0
- package/dist/components/mu-badge.js +1 -0
- package/dist/components/mu-bottom-nav.js +1 -0
- package/dist/components/mu-button.js +1 -0
- package/dist/components/mu-callout.js +1 -0
- package/dist/components/mu-card.js +1 -0
- package/dist/components/mu-checkbox.js +9 -0
- package/dist/components/mu-chip.js +4 -0
- package/dist/components/mu-code.js +48 -0
- package/dist/components/mu-confirm.js +10 -0
- package/dist/components/mu-container.js +1 -0
- package/dist/components/mu-datatable.js +96 -0
- package/dist/components/mu-divider.js +1 -0
- package/dist/components/mu-doc-page.js +26 -0
- package/dist/components/mu-drawer-item.js +9 -0
- package/dist/components/mu-drawer.js +1 -0
- package/dist/components/mu-dropdown.js +6 -0
- package/dist/components/mu-error-boundary.js +10 -0
- package/dist/components/mu-example.js +38 -0
- package/dist/components/mu-fetch.js +1 -0
- package/dist/components/mu-form.js +1 -0
- package/dist/components/mu-grid.js +1 -0
- package/dist/components/mu-icon.js +5 -0
- package/dist/components/mu-input.js +12 -0
- package/dist/components/mu-layout.js +1 -0
- package/dist/components/mu-lazy.js +1 -0
- package/dist/components/mu-modal.js +7 -0
- package/dist/components/mu-navbar.js +1 -0
- package/dist/components/mu-page.js +1 -0
- package/dist/components/mu-progress.js +1 -0
- package/dist/components/mu-prompt-ui.js +20 -0
- package/dist/components/mu-radio.js +6 -0
- package/dist/components/mu-repeat.js +1 -0
- package/dist/components/mu-router.js +6 -0
- package/dist/components/mu-schema-form.js +76 -0
- package/dist/components/mu-sidebar.js +1 -0
- package/dist/components/mu-skeleton.js +13 -0
- package/dist/components/mu-spinner.js +1 -0
- package/dist/components/mu-stack.js +1 -0
- package/dist/components/mu-switch.js +6 -0
- package/dist/components/mu-table.js +1 -0
- package/dist/components/mu-tabs.js +1 -0
- package/dist/components/mu-textarea.js +11 -0
- package/dist/components/mu-theme-toggle.js +5 -0
- package/dist/components/mu-toast.js +4 -0
- package/dist/components/mu-tooltip.js +10 -0
- package/dist/components/mu-virtual-list.js +33 -0
- package/dist/components.css +1 -0
- package/dist/microui.css +1 -0
- package/dist/microui.d.ts +234 -0
- package/dist/microui.esm.js +549 -0
- package/dist/microui.esm.js.map +79 -0
- package/dist/microui.min.js +549 -0
- package/dist/microui.min.js.map +79 -0
- package/dist/routes/alerts.js +1 -0
- package/dist/routes/avatars.js +1 -0
- package/dist/routes/badges.js +1 -0
- package/dist/routes/buttons.js +1 -0
- package/dist/routes/callouts.js +1 -0
- package/dist/routes/cards.js +1 -0
- package/dist/routes/checkboxes.js +9 -0
- package/dist/routes/chips.js +4 -0
- package/dist/routes/chunk-19wgcncm.js +2 -0
- package/dist/routes/chunk-1khyr3v1.js +33 -0
- package/dist/routes/chunk-4rhxe97g.js +1 -0
- package/dist/routes/chunk-5qah04bh.js +2 -0
- package/dist/routes/chunk-7gfxy70n.js +5 -0
- package/dist/routes/chunk-e86zbeta.js +1 -0
- package/dist/routes/chunk-fagt36h6.js +2 -0
- package/dist/routes/chunk-fed7zr7m.js +1 -0
- package/dist/routes/chunk-hwj7pfwp.js +1 -0
- package/dist/routes/chunk-mhvcs2f8.js +5 -0
- package/dist/routes/chunk-nv3bddmj.js +13 -0
- package/dist/routes/chunk-q3f2aeqe.js +7 -0
- package/dist/routes/chunk-qxxa8trk.js +1 -0
- package/dist/routes/chunk-rw15y9zh.js +1 -0
- package/dist/routes/chunk-sfb7x11v.js +5 -0
- package/dist/routes/chunk-swyhghrm.js +48 -0
- package/dist/routes/chunk-sxddjs2d.js +2 -0
- package/dist/routes/chunk-vby0zg5w.js +17 -0
- package/dist/routes/chunk-w6zqjqqs.js +9 -0
- package/dist/routes/chunk-z960rexd.js +38 -0
- package/dist/routes/codeblocks.js +1 -0
- package/dist/routes/confirms.js +10 -0
- package/dist/routes/datatables.js +96 -0
- package/dist/routes/dividers.js +1 -0
- package/dist/routes/dropdowns.js +6 -0
- package/dist/routes/enterprise.js +15 -0
- package/dist/routes/home.js +1 -0
- package/dist/routes/icons.js +1 -0
- package/dist/routes/inputs.js +22 -0
- package/dist/routes/installation.js +1 -0
- package/dist/routes/layout.js +1 -0
- package/dist/routes/modals.js +1 -0
- package/dist/routes/navbar.js +1 -0
- package/dist/routes/page-components.json +316 -0
- package/dist/routes/progress.js +1 -0
- package/dist/routes/radios.js +6 -0
- package/dist/routes/route-deps.json +156 -0
- package/dist/routes/shell-critical.js +1 -0
- package/dist/routes/shell-deferred.js +1 -0
- package/dist/routes/shell.js +20 -0
- package/dist/routes/skeletons.js +13 -0
- package/dist/routes/spinners.js +1 -0
- package/dist/routes/src/chunks/core.js +36 -0
- package/dist/routes/switches.js +6 -0
- package/dist/routes/tables.js +1 -0
- package/dist/routes/tabs.js +1 -0
- package/dist/routes/toasts.js +1 -0
- package/dist/routes/tooltips.js +10 -0
- package/dist/routes/virtual-lists.js +33 -0
- package/dist/styles/common.css +1 -0
- package/dist/styles/components/animations.css +1 -0
- package/dist/styles/components/avatar.css +1 -0
- package/dist/styles/components/badge.css +1 -0
- package/dist/styles/components/bottom-nav.css +1 -0
- package/dist/styles/components/button.css +1 -0
- package/dist/styles/components/card.css +1 -0
- package/dist/styles/components/checkbox.css +1 -0
- package/dist/styles/components/chip.css +1 -0
- package/dist/styles/components/datatable.css +1 -0
- package/dist/styles/components/divider.css +1 -0
- package/dist/styles/components/drawer-item.css +1 -0
- package/dist/styles/components/drawer.css +1 -0
- package/dist/styles/components/grid.css +1 -0
- package/dist/styles/components/icon.css +1 -0
- package/dist/styles/components/input.css +1 -0
- package/dist/styles/components/layout.css +1 -0
- package/dist/styles/components/navbar.css +1 -0
- package/dist/styles/components/overlays.css +1 -0
- package/dist/styles/components/progress.css +1 -0
- package/dist/styles/components/prompt-ui.css +1 -0
- package/dist/styles/components/radio.css +1 -0
- package/dist/styles/components/schema-form.css +1 -0
- package/dist/styles/components/switch.css +1 -0
- package/dist/styles/components/tabs.css +1 -0
- package/dist/styles/components/tooltip.css +1 -0
- package/dist/styles/components/virtual-list.css +1 -0
- package/dist/tokens.css +1 -0
- package/docs/api-reference.md +175 -0
- package/docs/component-schema.md +231 -0
- package/docs/components.md +269 -0
- package/docs/design-system.md +183 -0
- package/docs/getting-started.md +198 -0
- package/docs/message-protocol.md +262 -0
- package/docs/utility-classes.md +205 -0
- package/lighthouse-audit.mjs +113 -0
- package/package.json +45 -0
- package/scripts/analyze-components.js +105 -0
- package/scripts/build-app.js +193 -0
- package/scripts/build-framework.js +444 -0
- package/scripts/build-utils.js +101 -0
- package/scripts/test-isolated.js +151 -0
- package/server.js +256 -0
- package/src/chunks/advanced.js +27 -0
- package/src/chunks/core.js +61 -0
- package/src/chunks/display.js +25 -0
- package/src/chunks/feedback.js +15 -0
- package/src/chunks/forms.js +25 -0
- package/src/chunks/layout.js +27 -0
- package/src/components/mu-alert.js +96 -0
- package/src/components/mu-api-table.js +167 -0
- package/src/components/mu-avatar.js +94 -0
- package/src/components/mu-badge.js +32 -0
- package/src/components/mu-bottom-nav.js +115 -0
- package/src/components/mu-button.js +61 -0
- package/src/components/mu-callout.js +71 -0
- package/src/components/mu-card.js +36 -0
- package/src/components/mu-checkbox.js +186 -0
- package/src/components/mu-chip.js +125 -0
- package/src/components/mu-code.js +534 -0
- package/src/components/mu-confirm.js +268 -0
- package/src/components/mu-container.js +53 -0
- package/src/components/mu-datatable.js +517 -0
- package/src/components/mu-divider.js +40 -0
- package/src/components/mu-doc-page.js +100 -0
- package/src/components/mu-drawer-item.js +158 -0
- package/src/components/mu-drawer.js +305 -0
- package/src/components/mu-dropdown.js +239 -0
- package/src/components/mu-error-boundary.js +191 -0
- package/src/components/mu-example.js +335 -0
- package/src/components/mu-fetch.js +256 -0
- package/src/components/mu-form.js +133 -0
- package/src/components/mu-grid.js +63 -0
- package/src/components/mu-icon.js +211 -0
- package/src/components/mu-input.js +142 -0
- package/src/components/mu-layout.js +129 -0
- package/src/components/mu-lazy.js +94 -0
- package/src/components/mu-modal.js +160 -0
- package/src/components/mu-navbar.js +71 -0
- package/src/components/mu-page.js +77 -0
- package/src/components/mu-progress.js +54 -0
- package/src/components/mu-prompt-ui.js +382 -0
- package/src/components/mu-radio.js +200 -0
- package/src/components/mu-repeat.js +135 -0
- package/src/components/mu-router.js +169 -0
- package/src/components/mu-schema-form.js +441 -0
- package/src/components/mu-sidebar.js +81 -0
- package/src/components/mu-skeleton.js +69 -0
- package/src/components/mu-spinner.js +30 -0
- package/src/components/mu-stack.js +59 -0
- package/src/components/mu-switch.js +150 -0
- package/src/components/mu-table.js +80 -0
- package/src/components/mu-tabs.js +112 -0
- package/src/components/mu-textarea.js +96 -0
- package/src/components/mu-theme-toggle.js +52 -0
- package/src/components/mu-toast.js +151 -0
- package/src/components/mu-tooltip.js +182 -0
- package/src/components/mu-virtual-list.js +184 -0
- package/src/core/MuElement.js +562 -0
- package/src/core/agent-api.js +771 -0
- package/src/core/breakpoints.js +195 -0
- package/src/core/bus.js +378 -0
- package/src/core/component-schema.js +287 -0
- package/src/core/feature-registry.js +241 -0
- package/src/core/form-state.js +252 -0
- package/src/core/http.js +104 -0
- package/src/core/keyboard.js +105 -0
- package/src/core/layers.js +71 -0
- package/src/core/render.js +201 -0
- package/src/core/ripple.js +158 -0
- package/src/core/router.js +100 -0
- package/src/core/scheduler.js +109 -0
- package/src/core/signals.js +164 -0
- package/src/core/store.js +268 -0
- package/src/core/theme.js +68 -0
- package/src/core/transitions.js +72 -0
- package/src/core/utils.js +30 -0
- package/src/index.d.ts +234 -0
- package/src/index.js +308 -0
- package/src/styles/animations.css +252 -0
- package/src/styles/common.css +82 -0
- package/src/styles/components/animations.css +129 -0
- package/src/styles/components/avatar.css +83 -0
- package/src/styles/components/badge.css +80 -0
- package/src/styles/components/bottom-nav.css +37 -0
- package/src/styles/components/button.css +348 -0
- package/src/styles/components/card.css +138 -0
- package/src/styles/components/checkbox.css +201 -0
- package/src/styles/components/chip.css +93 -0
- package/src/styles/components/datatable.css +180 -0
- package/src/styles/components/divider.css +49 -0
- package/src/styles/components/drawer-item.css +123 -0
- package/src/styles/components/drawer.css +273 -0
- package/src/styles/components/grid.css +189 -0
- package/src/styles/components/icon.css +40 -0
- package/src/styles/components/input.css +203 -0
- package/src/styles/components/layout.css +121 -0
- package/src/styles/components/navbar.css +91 -0
- package/src/styles/components/overlays.css +329 -0
- package/src/styles/components/progress.css +79 -0
- package/src/styles/components/prompt-ui.css +286 -0
- package/src/styles/components/radio.css +17 -0
- package/src/styles/components/schema-form.css +85 -0
- package/src/styles/components/switch.css +69 -0
- package/src/styles/components/tabs.css +145 -0
- package/src/styles/components/tooltip.css +93 -0
- package/src/styles/components/virtual-list.css +36 -0
- package/src/styles/components.css +3677 -0
- package/src/styles/routes/home.css +97 -0
- package/src/styles/tokens.css +675 -0
- package/tests/agents/agent-integration.test.js +76 -0
- package/tests/benchmark.html +296 -0
- package/tests/build/scan-components.test.js +173 -0
- package/tests/components/all-components.test.js +245 -0
- package/tests/components/all-missing-components.test.js +574 -0
- package/tests/components/mu-alert.test.js +113 -0
- package/tests/components/mu-avatar.test.js +148 -0
- package/tests/components/mu-badge.test.js +92 -0
- package/tests/components/mu-button.test.js +112 -0
- package/tests/components/mu-card.test.js +89 -0
- package/tests/components/mu-checkbox.test.js +158 -0
- package/tests/components/mu-chip.test.js +118 -0
- package/tests/components/mu-container.test.js +120 -0
- package/tests/components/mu-divider.test.js +98 -0
- package/tests/components/mu-drawer-item.test.js +199 -0
- package/tests/components/mu-drawer.test.js +96 -0
- package/tests/components/mu-dropdown.test.js +125 -0
- package/tests/components/mu-form.test.js +138 -0
- package/tests/components/mu-grid.test.js +135 -0
- package/tests/components/mu-icon.test.js +110 -0
- package/tests/components/mu-input.test.js +131 -0
- package/tests/components/mu-lazy.test.js +103 -0
- package/tests/components/mu-modal.test.js +275 -0
- package/tests/components/mu-navbar.test.js +101 -0
- package/tests/components/mu-progress.test.js +115 -0
- package/tests/components/mu-radio.test.js +114 -0
- package/tests/components/mu-repeat.test.js +106 -0
- package/tests/components/mu-sidebar.test.js +126 -0
- package/tests/components/mu-skeleton.test.js +162 -0
- package/tests/components/mu-stack.test.js +143 -0
- package/tests/components/mu-switch.test.js +292 -0
- package/tests/components/mu-table.test.js +124 -0
- package/tests/components/mu-tabs.test.js +104 -0
- package/tests/components/mu-textarea.test.js +115 -0
- package/tests/components/mu-toast.test.js +321 -0
- package/tests/components/mu-tooltip.test.js +133 -0
- package/tests/components/mu-virtual-list.test.js +109 -0
- package/tests/core/MuElement.test.js +120 -0
- package/tests/core/agent-api.test.js +125 -0
- package/tests/core/all-core-modules.test.js +442 -0
- package/tests/core/bus.test.js +364 -0
- package/tests/core/component-schema.test.js +160 -0
- package/tests/core/feature-registry.test.js +198 -0
- package/tests/core/form-state.test.js +167 -0
- package/tests/core/http.test.js +119 -0
- package/tests/core/keyboard.test.js +319 -0
- package/tests/core/layers.test.js +129 -0
- package/tests/core/namespaced-stores.test.js +114 -0
- package/tests/core/render.test.js +121 -0
- package/tests/core/ripple.test.js +131 -0
- package/tests/core/router.test.js +89 -0
- package/tests/core/scheduler.test.js +121 -0
- package/tests/core/signals.test.js +128 -0
- package/tests/core/store.test.js +171 -0
- package/tests/core/transitions.test.js +82 -0
- package/tests/e2e/accessibility-harness.html +58 -0
- package/tests/e2e/accessibility.test.js +401 -0
- package/tests/e2e/agent-features.test.js +372 -0
- package/tests/e2e/card-spacing.test.js +287 -0
- package/tests/e2e/components.test.js +439 -0
- package/tests/e2e/demo-routes.test.js +478 -0
- package/tests/e2e/layout-css-fallback.test.js +334 -0
- package/tests/e2e/mu-alert.e2e.test.js +111 -0
- package/tests/e2e/mu-checkbox.test.js +489 -0
- package/tests/e2e/mu-chip.test.js +347 -0
- package/tests/e2e/mu-form.test.js +499 -0
- package/tests/e2e/mu-icon.test.js +114 -0
- package/tests/e2e/mu-radio.test.js +113 -0
- package/tests/e2e/mu-skeleton.test.js +140 -0
- package/tests/e2e/mu-switch.test.js +415 -0
- package/tests/e2e/mu-tabs.test.js +494 -0
- package/tests/e2e/mu-textarea.test.js +242 -0
- package/tests/e2e/mu-virtual-list.test.js +427 -0
- package/tests/e2e/perf-memory.test.js +161 -0
- package/tests/e2e/puppeteer-helper.js +137 -0
- package/tests/e2e/puppeteer.test.js +226 -0
- package/tests/e2e/pwa.test.js +261 -0
- package/tests/e2e/test-harness.html +319 -0
- package/tests/manual/test-components.html +120 -0
- package/tests/memory-test.html +309 -0
- package/tests/setup-dom.js +93 -0
- package/tests/visual-test.html +301 -0
|
@@ -0,0 +1,3677 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* microUI Component Styles - Material Design 3
|
|
3
|
+
*
|
|
4
|
+
* Implements authentic MD3 component styling with:
|
|
5
|
+
* - Pill-shaped buttons (border-radius: 100px)
|
|
6
|
+
* - State layers for interactive states
|
|
7
|
+
* - Tonal elevation system
|
|
8
|
+
* - MD3 typography and spacing
|
|
9
|
+
*
|
|
10
|
+
* Uses tokens from tokens.css
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/* ============================================================================
|
|
14
|
+
BASE STYLES
|
|
15
|
+
============================================================================ */
|
|
16
|
+
|
|
17
|
+
*,
|
|
18
|
+
*::before,
|
|
19
|
+
*::after {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* ============================================================================
|
|
24
|
+
MD3 STATE LAYER UTILITIES (Reusable across components)
|
|
25
|
+
Reference: https://m3.material.io/foundations/interaction/states
|
|
26
|
+
|
|
27
|
+
Usage: Add .mu-state-layer to any interactive element, then use one of:
|
|
28
|
+
- .mu-state-layer--surface (for outlined/text buttons, cards)
|
|
29
|
+
- .mu-state-layer--on-primary (for filled primary buttons)
|
|
30
|
+
- .mu-state-layer--on-secondary (for tonal buttons)
|
|
31
|
+
============================================================================ */
|
|
32
|
+
|
|
33
|
+
/* Base state layer setup - requires position:relative and overflow:hidden on parent */
|
|
34
|
+
.mu-state-layer {
|
|
35
|
+
position: relative;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mu-state-layer::before {
|
|
40
|
+
content: '';
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset: 0;
|
|
43
|
+
border-radius: inherit;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Surface variant (default - for outlined, text, surface elements) */
|
|
50
|
+
.mu-state-layer--surface::before,
|
|
51
|
+
.mu-state-layer:not([class*="mu-state-layer--"])::before {
|
|
52
|
+
background: var(--md-sys-color-on-surface);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* On-primary variant (for filled primary bg) */
|
|
56
|
+
.mu-state-layer--on-primary::before {
|
|
57
|
+
background: var(--md-sys-color-on-primary);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* On-secondary variant (for tonal/secondary-container bg) */
|
|
61
|
+
.mu-state-layer--on-secondary::before {
|
|
62
|
+
background: var(--md-sys-color-on-secondary-container);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* On-error variant (for error buttons) */
|
|
66
|
+
.mu-state-layer--on-error::before {
|
|
67
|
+
background: var(--md-sys-color-on-error);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* State opacity changes */
|
|
71
|
+
.mu-state-layer:hover:not(:disabled)::before {
|
|
72
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.mu-state-layer:focus-visible:not(:disabled)::before {
|
|
76
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.mu-state-layer:active:not(:disabled)::before {
|
|
80
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Disabled state - hide layer */
|
|
84
|
+
.mu-state-layer:disabled::before,
|
|
85
|
+
.mu-state-layer.is-disabled::before {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ============================================================================
|
|
90
|
+
ICON - Material Symbols Integration
|
|
91
|
+
============================================================================ */
|
|
92
|
+
|
|
93
|
+
mu-icon,
|
|
94
|
+
.mu-icon {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
line-height: 1;
|
|
99
|
+
vertical-align: middle;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
mu-icon .material-symbols-outlined {
|
|
103
|
+
font-family: 'Material Symbols Outlined', sans-serif;
|
|
104
|
+
font-weight: normal;
|
|
105
|
+
font-style: normal;
|
|
106
|
+
font-size: 24px;
|
|
107
|
+
line-height: 1;
|
|
108
|
+
letter-spacing: normal;
|
|
109
|
+
text-transform: none;
|
|
110
|
+
display: inline-block;
|
|
111
|
+
white-space: nowrap;
|
|
112
|
+
word-wrap: normal;
|
|
113
|
+
direction: ltr;
|
|
114
|
+
-webkit-font-smoothing: antialiased;
|
|
115
|
+
-moz-osx-font-smoothing: grayscale;
|
|
116
|
+
text-rendering: optimizeLegibility;
|
|
117
|
+
font-feature-settings: 'liga';
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
mu-icon svg {
|
|
121
|
+
display: block;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ============================================================================
|
|
125
|
+
BUTTON - MD3 Common Button
|
|
126
|
+
https://m3.material.io/components/buttons
|
|
127
|
+
============================================================================ */
|
|
128
|
+
|
|
129
|
+
.mu-button {
|
|
130
|
+
position: relative;
|
|
131
|
+
display: inline-flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
gap: 8px;
|
|
135
|
+
min-width: 48px;
|
|
136
|
+
height: 40px;
|
|
137
|
+
padding: 0 24px;
|
|
138
|
+
font-family: var(--md-sys-typescale-font);
|
|
139
|
+
font-size: var(--md-sys-typescale-label-large-size);
|
|
140
|
+
font-weight: var(--md-sys-typescale-label-large-weight);
|
|
141
|
+
line-height: var(--md-sys-typescale-label-large-line-height);
|
|
142
|
+
letter-spacing: 0.1px;
|
|
143
|
+
text-decoration: none;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
/* Prevent text wrapping */
|
|
146
|
+
border: none;
|
|
147
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
/* Note: hover shadow uses ::before opacity (GPU-composited), not box-shadow transition */
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* State layer overlay */
|
|
154
|
+
.mu-button::before {
|
|
155
|
+
content: '';
|
|
156
|
+
position: absolute;
|
|
157
|
+
inset: 0;
|
|
158
|
+
border-radius: inherit;
|
|
159
|
+
opacity: 0;
|
|
160
|
+
transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Sizes */
|
|
164
|
+
.mu-button--sm {
|
|
165
|
+
height: 32px;
|
|
166
|
+
padding: 0 16px;
|
|
167
|
+
font-size: var(--md-sys-typescale-label-medium-size);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.mu-button--md {
|
|
171
|
+
height: 40px;
|
|
172
|
+
padding: 0 24px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.mu-button--lg {
|
|
176
|
+
height: 48px;
|
|
177
|
+
padding: 0 32px;
|
|
178
|
+
font-size: var(--md-sys-typescale-body-large-size);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* FILLED Button (Primary action) */
|
|
182
|
+
.mu-button--primary {
|
|
183
|
+
background: var(--md-sys-color-primary);
|
|
184
|
+
color: var(--md-sys-color-on-primary);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.mu-button--primary::before {
|
|
188
|
+
background: var(--md-sys-color-on-primary);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.mu-button--primary:hover:not(:disabled)::before {
|
|
192
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.mu-button--primary:focus-visible:not(:disabled)::before {
|
|
196
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.mu-button--primary:active:not(:disabled)::before {
|
|
200
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.mu-button--primary:hover:not(:disabled) {
|
|
204
|
+
box-shadow: var(--md-sys-elevation-level1);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* TONAL Button (Secondary action) */
|
|
208
|
+
.mu-button--secondary {
|
|
209
|
+
background: var(--md-sys-color-secondary-container);
|
|
210
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.mu-button--secondary::before {
|
|
214
|
+
background: var(--md-sys-color-on-secondary-container);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.mu-button--secondary:hover:not(:disabled)::before {
|
|
218
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.mu-button--secondary:focus-visible:not(:disabled)::before {
|
|
222
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.mu-button--secondary:active:not(:disabled)::before {
|
|
226
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.mu-button--secondary:hover:not(:disabled) {
|
|
230
|
+
box-shadow: var(--md-sys-elevation-level1);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* OUTLINED Button */
|
|
234
|
+
.mu-button--ghost {
|
|
235
|
+
background: transparent;
|
|
236
|
+
color: var(--md-sys-color-primary);
|
|
237
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.mu-button--ghost::before {
|
|
241
|
+
background: var(--md-sys-color-primary);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.mu-button--ghost:hover:not(:disabled)::before {
|
|
245
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.mu-button--ghost:focus-visible:not(:disabled)::before {
|
|
249
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* ERROR/Danger Button */
|
|
253
|
+
.mu-button--danger {
|
|
254
|
+
background: var(--md-sys-color-error);
|
|
255
|
+
color: var(--md-sys-color-on-error);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.mu-button--danger::before {
|
|
259
|
+
background: var(--md-sys-color-on-error);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.mu-button--danger:hover:not(:disabled)::before {
|
|
263
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.mu-button--danger:hover:not(:disabled) {
|
|
267
|
+
box-shadow: var(--md-sys-elevation-level1);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* Disabled State */
|
|
271
|
+
.mu-button:disabled,
|
|
272
|
+
.mu-button.is-disabled {
|
|
273
|
+
background: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
|
|
274
|
+
color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent);
|
|
275
|
+
cursor: not-allowed;
|
|
276
|
+
box-shadow: none;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.mu-button:disabled::before,
|
|
280
|
+
.mu-button.is-disabled::before {
|
|
281
|
+
display: none;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* ==========================================================================
|
|
285
|
+
MD3 OFFICIAL BUTTON VARIANTS
|
|
286
|
+
https://m3.material.io/components/buttons/overview
|
|
287
|
+
========================================================================== */
|
|
288
|
+
|
|
289
|
+
/* ELEVATED Button - Surface with shadow */
|
|
290
|
+
.mu-button--elevated {
|
|
291
|
+
background: var(--md-sys-color-surface-container-low);
|
|
292
|
+
color: var(--md-sys-color-primary);
|
|
293
|
+
box-shadow: var(--md-sys-elevation-level1);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.mu-button--elevated::before {
|
|
297
|
+
background: var(--md-sys-color-primary);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.mu-button--elevated:hover:not(:disabled)::before {
|
|
301
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.mu-button--elevated:hover:not(:disabled) {
|
|
305
|
+
box-shadow: var(--md-sys-elevation-level2);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.mu-button--elevated:focus-visible:not(:disabled)::before {
|
|
309
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.mu-button--elevated:active:not(:disabled)::before {
|
|
313
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* FILLED Button - Same as primary */
|
|
317
|
+
.mu-button--filled {
|
|
318
|
+
background: var(--md-sys-color-primary);
|
|
319
|
+
color: var(--md-sys-color-on-primary);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.mu-button--filled::before {
|
|
323
|
+
background: var(--md-sys-color-on-primary);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.mu-button--filled:hover:not(:disabled)::before {
|
|
327
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.mu-button--filled:hover:not(:disabled) {
|
|
331
|
+
box-shadow: var(--md-sys-elevation-level1);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.mu-button--filled:focus-visible:not(:disabled)::before {
|
|
335
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.mu-button--filled:active:not(:disabled)::before {
|
|
339
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* TONAL Button - Secondary container */
|
|
343
|
+
.mu-button--tonal {
|
|
344
|
+
background: var(--md-sys-color-secondary-container);
|
|
345
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.mu-button--tonal::before {
|
|
349
|
+
background: var(--md-sys-color-on-secondary-container);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.mu-button--tonal:hover:not(:disabled)::before {
|
|
353
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.mu-button--tonal:hover:not(:disabled) {
|
|
357
|
+
box-shadow: var(--md-sys-elevation-level1);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.mu-button--tonal:focus-visible:not(:disabled)::before {
|
|
361
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.mu-button--tonal:active:not(:disabled)::before {
|
|
365
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* OUTLINED Button - Border only */
|
|
369
|
+
.mu-button--outlined {
|
|
370
|
+
background: transparent;
|
|
371
|
+
color: var(--md-sys-color-primary);
|
|
372
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.mu-button--outlined::before {
|
|
376
|
+
background: var(--md-sys-color-primary);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.mu-button--outlined:hover:not(:disabled)::before {
|
|
380
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.mu-button--outlined:focus-visible:not(:disabled)::before {
|
|
384
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.mu-button--outlined:active:not(:disabled)::before {
|
|
388
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* TEXT Button - Minimal, no container */
|
|
392
|
+
.mu-button--text {
|
|
393
|
+
background: transparent;
|
|
394
|
+
color: var(--md-sys-color-primary);
|
|
395
|
+
padding: 0 12px;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.mu-button--text::before {
|
|
399
|
+
background: var(--md-sys-color-primary);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.mu-button--text:hover:not(:disabled)::before {
|
|
403
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.mu-button--text:focus-visible:not(:disabled)::before {
|
|
407
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.mu-button--text:active:not(:disabled)::before {
|
|
411
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/* MD3 Ripple Effect Animation */
|
|
415
|
+
@keyframes md-ripple {
|
|
416
|
+
from {
|
|
417
|
+
transform: scale(0);
|
|
418
|
+
opacity: 0.12;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
to {
|
|
422
|
+
transform: scale(2.5);
|
|
423
|
+
opacity: 0;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/* Universal Ripple Animation (used by ripple.js) */
|
|
428
|
+
@keyframes mu-ripple-expand {
|
|
429
|
+
from {
|
|
430
|
+
transform: scale(0);
|
|
431
|
+
opacity: 0.20;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
to {
|
|
435
|
+
transform: scale(1);
|
|
436
|
+
opacity: 0;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.mu-button.ripple::after {
|
|
441
|
+
content: '';
|
|
442
|
+
position: absolute;
|
|
443
|
+
width: 100%;
|
|
444
|
+
height: 100%;
|
|
445
|
+
border-radius: 50%;
|
|
446
|
+
background: currentColor;
|
|
447
|
+
transform: scale(0);
|
|
448
|
+
animation: md-ripple var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard);
|
|
449
|
+
pointer-events: none;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* Loading State */
|
|
453
|
+
.mu-button.is-loading {
|
|
454
|
+
color: transparent;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.mu-button.is-loading::after {
|
|
458
|
+
content: '';
|
|
459
|
+
position: absolute;
|
|
460
|
+
width: 20px;
|
|
461
|
+
height: 20px;
|
|
462
|
+
border: 2px solid currentColor;
|
|
463
|
+
border-right-color: transparent;
|
|
464
|
+
border-radius: 50%;
|
|
465
|
+
animation: spin 0.75s linear infinite;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* ============================================================================
|
|
469
|
+
INPUT - MD3 Text Field
|
|
470
|
+
https://m3.material.io/components/text-fields
|
|
471
|
+
============================================================================ */
|
|
472
|
+
|
|
473
|
+
/* Wrapper contains the animated focus indicator */
|
|
474
|
+
.mu-input {
|
|
475
|
+
position: relative;
|
|
476
|
+
display: block;
|
|
477
|
+
width: 100%;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/* MD3 Floating Label */
|
|
481
|
+
.mu-input__label {
|
|
482
|
+
position: absolute;
|
|
483
|
+
left: 16px;
|
|
484
|
+
top: 50%;
|
|
485
|
+
transform: translateY(-50%) scale(1);
|
|
486
|
+
transform-origin: left center;
|
|
487
|
+
font-size: 16px;
|
|
488
|
+
/* Fixed base size - scaling via transform for GPU acceleration */
|
|
489
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
490
|
+
pointer-events: none;
|
|
491
|
+
transition:
|
|
492
|
+
top var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized),
|
|
493
|
+
transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized),
|
|
494
|
+
color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
|
|
495
|
+
z-index: 1;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* Floating state - when focused or has value */
|
|
499
|
+
.mu-input:focus-within .mu-input__label,
|
|
500
|
+
.mu-input.has-value .mu-input__label {
|
|
501
|
+
top: 6px;
|
|
502
|
+
transform: translateY(0) scale(0.75);
|
|
503
|
+
/* 12px = 16px * 0.75 - GPU accelerated */
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/* Primary color when focused */
|
|
507
|
+
.mu-input:focus-within .mu-input__label {
|
|
508
|
+
color: var(--md-sys-color-primary);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* Outlined variant: add background to label for border cutout effect */
|
|
512
|
+
.mu-input--outlined .mu-input__label {
|
|
513
|
+
background: var(--md-sys-color-surface, #fff);
|
|
514
|
+
padding: 0 4px;
|
|
515
|
+
margin-left: -4px;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/* Adjust input padding when label is present */
|
|
519
|
+
.mu-input:has(.mu-input__label) .mu-input__field {
|
|
520
|
+
padding-top: 24px;
|
|
521
|
+
padding-bottom: 8px;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* Animated focus indicator - line expands from center */
|
|
525
|
+
.mu-input::after {
|
|
526
|
+
content: '';
|
|
527
|
+
position: absolute;
|
|
528
|
+
bottom: 0;
|
|
529
|
+
left: 50%;
|
|
530
|
+
width: 0;
|
|
531
|
+
height: 2px;
|
|
532
|
+
background: var(--md-sys-color-primary);
|
|
533
|
+
transition:
|
|
534
|
+
width var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized),
|
|
535
|
+
left var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/* Focus state - line expands to full width (supports both JS class and native CSS) */
|
|
539
|
+
.mu-input.is-focused::after,
|
|
540
|
+
.mu-input:focus-within::after {
|
|
541
|
+
width: 100%;
|
|
542
|
+
left: 0;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/* Actual input field */
|
|
546
|
+
.mu-input__field {
|
|
547
|
+
display: block;
|
|
548
|
+
width: 100%;
|
|
549
|
+
height: 56px;
|
|
550
|
+
padding: 16px;
|
|
551
|
+
font-family: var(--md-sys-typescale-font);
|
|
552
|
+
font-size: var(--md-sys-typescale-body-large-size);
|
|
553
|
+
line-height: var(--md-sys-typescale-body-large-line-height);
|
|
554
|
+
color: var(--md-sys-color-on-surface);
|
|
555
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
556
|
+
border: none;
|
|
557
|
+
border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
|
|
558
|
+
border-radius: var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small) 0 0;
|
|
559
|
+
caret-color: var(--md-sys-color-primary);
|
|
560
|
+
transition:
|
|
561
|
+
background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
|
562
|
+
border-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.mu-input__field::placeholder {
|
|
566
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
567
|
+
transition: opacity var(--md-sys-motion-duration-short2);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.mu-input__field:focus::placeholder {
|
|
571
|
+
opacity: 0.6;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.mu-input__field:hover:not(:disabled):not(:focus) {
|
|
575
|
+
background: color-mix(in srgb, var(--md-sys-color-surface-container-highest) 95%, var(--md-sys-color-on-surface) 5%);
|
|
576
|
+
border-bottom-color: var(--md-sys-color-on-surface);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/* Label background must match field on hover (MD3 state layer consistency) */
|
|
580
|
+
.mu-input--outlined:has(.mu-input__field:hover:not(:disabled):not(:focus)) .mu-input__label {
|
|
581
|
+
background: color-mix(in srgb, var(--md-sys-color-surface-container-highest) 95%, var(--md-sys-color-on-surface) 5%);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.mu-input__field:focus {
|
|
585
|
+
outline: none;
|
|
586
|
+
border-bottom-color: transparent;
|
|
587
|
+
/* Hidden because animated line shows */
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/* Sizes */
|
|
591
|
+
.mu-input--sm .mu-input__field {
|
|
592
|
+
height: 40px;
|
|
593
|
+
padding: 8px 12px;
|
|
594
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.mu-input--md .mu-input__field {
|
|
598
|
+
height: 56px;
|
|
599
|
+
padding: 16px;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.mu-input--lg .mu-input__field {
|
|
603
|
+
height: 64px;
|
|
604
|
+
padding: 20px;
|
|
605
|
+
font-size: 18px;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/* Filled Variant (default) */
|
|
609
|
+
.mu-input--filled .mu-input__field {
|
|
610
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/* Outlined Variant */
|
|
614
|
+
.mu-input--outlined .mu-input__field {
|
|
615
|
+
height: 56px;
|
|
616
|
+
padding: 16px;
|
|
617
|
+
background: transparent;
|
|
618
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
619
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
620
|
+
transition:
|
|
621
|
+
border-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
|
622
|
+
box-shadow var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.mu-input--outlined .mu-input__field:hover:not(:disabled):not(:focus) {
|
|
626
|
+
border-color: var(--md-sys-color-on-surface);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.mu-input--outlined .mu-input__field:focus {
|
|
630
|
+
border-color: var(--md-sys-color-primary);
|
|
631
|
+
/* Use box-shadow inset to simulate 2px border without layout shift */
|
|
632
|
+
box-shadow: inset 0 0 0 1px var(--md-sys-color-primary);
|
|
633
|
+
outline: none;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/* Outlined doesn't use the bottom line indicator */
|
|
637
|
+
.mu-input--outlined::after {
|
|
638
|
+
display: none;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/* Disabled */
|
|
642
|
+
.mu-input.is-disabled .mu-input__field,
|
|
643
|
+
.mu-input__field:disabled {
|
|
644
|
+
color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent);
|
|
645
|
+
background: color-mix(in srgb, var(--md-sys-color-on-surface) 4%, transparent);
|
|
646
|
+
border-bottom-color: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
|
|
647
|
+
cursor: not-allowed;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/* ============================================================================
|
|
651
|
+
NUMBER INPUT - MD3 Style (hide browser spinners)
|
|
652
|
+
============================================================================ */
|
|
653
|
+
|
|
654
|
+
/* Hide native spinners - Chrome, Safari, Edge, Opera */
|
|
655
|
+
.mu-input__field[type="number"]::-webkit-inner-spin-button,
|
|
656
|
+
.mu-input__field[type="number"]::-webkit-outer-spin-button {
|
|
657
|
+
-webkit-appearance: none;
|
|
658
|
+
margin: 0;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/* Hide native spinners - Firefox */
|
|
662
|
+
.mu-input__field[type="number"] {
|
|
663
|
+
-moz-appearance: textfield;
|
|
664
|
+
appearance: textfield;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/* ============================================================================
|
|
668
|
+
CARD - MD3 Card Container
|
|
669
|
+
https://m3.material.io/components/cards
|
|
670
|
+
============================================================================ */
|
|
671
|
+
|
|
672
|
+
.mu-card {
|
|
673
|
+
display: block;
|
|
674
|
+
border-radius: var(--md-sys-shape-corner-medium);
|
|
675
|
+
overflow: hidden;
|
|
676
|
+
padding: 20px;
|
|
677
|
+
/* MD3: 20dp default padding */
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/* Filled Card (default) - Surface container highest */
|
|
681
|
+
.mu-card--flat,
|
|
682
|
+
.mu-card--filled {
|
|
683
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
684
|
+
box-shadow: none;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/* Elevated Card - Surface with Level1 elevation */
|
|
688
|
+
.mu-card--elevated {
|
|
689
|
+
background: var(--md-sys-color-surface-container-low);
|
|
690
|
+
box-shadow: var(--md-sys-elevation-level1);
|
|
691
|
+
/* GPU-composited hover: use transform instead of box-shadow transition */
|
|
692
|
+
transition: transform var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* GPU-composited hover effect - subtle lift instead of shadow change */
|
|
696
|
+
.mu-card--elevated:hover {
|
|
697
|
+
transform: translateY(-2px);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/* Outlined Card - Surface with border */
|
|
701
|
+
.mu-card--outlined {
|
|
702
|
+
background: var(--md-sys-color-surface);
|
|
703
|
+
border: 1px solid var(--md-sys-color-outline-variant);
|
|
704
|
+
box-shadow: none;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/* Card Padding Variants - MD3 standard: 16-24dp depending on content */
|
|
708
|
+
.mu-card--padding-none {
|
|
709
|
+
padding: 0;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.mu-card--padding-sm {
|
|
713
|
+
padding: 12px;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.mu-card--padding-md {
|
|
717
|
+
padding: 20px;
|
|
718
|
+
/* MD3: 20dp for comfortable content spacing */
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.mu-card--padding-lg {
|
|
722
|
+
padding: 28px;
|
|
723
|
+
/* MD3: 28dp for prominent cards */
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/* Card Radius Variants */
|
|
727
|
+
.mu-card--radius-none {
|
|
728
|
+
border-radius: 0;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.mu-card--radius-sm {
|
|
732
|
+
border-radius: var(--md-sys-shape-corner-small);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.mu-card--radius-md {
|
|
736
|
+
border-radius: var(--md-sys-shape-corner-medium);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.mu-card--radius-lg {
|
|
740
|
+
border-radius: var(--md-sys-shape-corner-large);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.mu-card--radius-full {
|
|
744
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/* Clickable Card with state layer */
|
|
748
|
+
.mu-card--clickable {
|
|
749
|
+
cursor: pointer;
|
|
750
|
+
position: relative;
|
|
751
|
+
/* Note: hover effect uses ::before opacity (GPU-composited), not box-shadow transition */
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.mu-card--clickable::before {
|
|
755
|
+
content: '';
|
|
756
|
+
position: absolute;
|
|
757
|
+
inset: 0;
|
|
758
|
+
border-radius: inherit;
|
|
759
|
+
background: var(--md-sys-color-on-surface);
|
|
760
|
+
opacity: 0;
|
|
761
|
+
transition: opacity var(--md-sys-motion-duration-short2);
|
|
762
|
+
pointer-events: none;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.mu-card--clickable:hover::before {
|
|
766
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.mu-card--clickable:active::before {
|
|
770
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/* Card internal elements (optional) */
|
|
774
|
+
.mu-card__header {
|
|
775
|
+
padding: 16px;
|
|
776
|
+
padding-bottom: 0;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.mu-card__body {
|
|
780
|
+
padding: 16px;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.mu-card__footer {
|
|
784
|
+
padding: 16px;
|
|
785
|
+
padding-top: 0;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/* Card typography */
|
|
789
|
+
.mu-card h3 {
|
|
790
|
+
margin: 0 0 8px;
|
|
791
|
+
font-size: var(--md-sys-typescale-title-medium-size);
|
|
792
|
+
font-weight: var(--md-sys-typescale-title-medium-weight);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.mu-card p {
|
|
796
|
+
margin: 0;
|
|
797
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
798
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/* ============================================================================
|
|
802
|
+
STACK - Flexbox Layout
|
|
803
|
+
============================================================================ */
|
|
804
|
+
|
|
805
|
+
/* Base element - CSS fallback for before JS upgrade */
|
|
806
|
+
mu-stack {
|
|
807
|
+
display: flex;
|
|
808
|
+
flex-direction: column;
|
|
809
|
+
gap: var(--md-sys-spacing-md, 16px);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/* Attribute-based selectors (work before JS upgrade) */
|
|
813
|
+
mu-stack[direction="row"] {
|
|
814
|
+
flex-direction: row;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
mu-stack[direction="column"] {
|
|
818
|
+
flex-direction: column;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
mu-stack[direction="row-reverse"] {
|
|
822
|
+
flex-direction: row-reverse;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
mu-stack[direction="column-reverse"] {
|
|
826
|
+
flex-direction: column-reverse;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
mu-stack[gap="none"] {
|
|
830
|
+
gap: 0;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
mu-stack[gap="xs"] {
|
|
834
|
+
gap: var(--md-sys-spacing-xs, 4px);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
mu-stack[gap="sm"] {
|
|
838
|
+
gap: var(--md-sys-spacing-sm, 8px);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
mu-stack[gap="md"] {
|
|
842
|
+
gap: var(--md-sys-spacing-md, 16px);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
mu-stack[gap="lg"] {
|
|
846
|
+
gap: var(--md-sys-spacing-lg, 24px);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
mu-stack[gap="xl"] {
|
|
850
|
+
gap: var(--md-sys-spacing-xl, 32px);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
mu-stack[align="start"] {
|
|
854
|
+
align-items: flex-start;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
mu-stack[align="center"] {
|
|
858
|
+
align-items: center;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
mu-stack[align="end"] {
|
|
862
|
+
align-items: flex-end;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
mu-stack[align="stretch"] {
|
|
866
|
+
align-items: stretch;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
mu-stack[justify="start"] {
|
|
870
|
+
justify-content: flex-start;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
mu-stack[justify="center"] {
|
|
874
|
+
justify-content: center;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
mu-stack[justify="end"] {
|
|
878
|
+
justify-content: flex-end;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
mu-stack[justify="between"] {
|
|
882
|
+
justify-content: space-between;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
mu-stack[wrap] {
|
|
886
|
+
flex-wrap: wrap;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/* ============================================================================
|
|
890
|
+
GRID - CSS Grid Layout
|
|
891
|
+
============================================================================ */
|
|
892
|
+
|
|
893
|
+
/* Base element - CSS fallback for before JS upgrade */
|
|
894
|
+
mu-grid {
|
|
895
|
+
display: grid;
|
|
896
|
+
gap: var(--md-sys-spacing-md, 16px);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/* Attribute-based selectors for columns */
|
|
900
|
+
mu-grid[cols="1"] {
|
|
901
|
+
grid-template-columns: repeat(1, 1fr);
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
mu-grid[cols="2"] {
|
|
905
|
+
grid-template-columns: repeat(2, 1fr);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
mu-grid[cols="3"] {
|
|
909
|
+
grid-template-columns: repeat(3, 1fr);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
mu-grid[cols="4"] {
|
|
913
|
+
grid-template-columns: repeat(4, 1fr);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
mu-grid[cols="6"] {
|
|
917
|
+
grid-template-columns: repeat(6, 1fr);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
mu-grid[cols="12"] {
|
|
921
|
+
grid-template-columns: repeat(12, 1fr);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/* Attribute-based selectors for gap */
|
|
925
|
+
mu-grid[gap="none"] {
|
|
926
|
+
gap: 0;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
mu-grid[gap="xs"] {
|
|
930
|
+
gap: var(--md-sys-spacing-xs, 4px);
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
mu-grid[gap="sm"] {
|
|
934
|
+
gap: var(--md-sys-spacing-sm, 8px);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
mu-grid[gap="md"] {
|
|
938
|
+
gap: var(--md-sys-spacing-md, 16px);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
mu-grid[gap="lg"] {
|
|
942
|
+
gap: var(--md-sys-spacing-lg, 24px);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
mu-grid[gap="xl"] {
|
|
946
|
+
gap: var(--md-sys-spacing-xl, 32px);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/* Responsive: collapse to single column on compact screens (MD3 < 600px) */
|
|
950
|
+
/* !important is needed to override inline styles set by JS component */
|
|
951
|
+
@media (max-width: 599px) {
|
|
952
|
+
|
|
953
|
+
mu-grid[cols="2"],
|
|
954
|
+
mu-grid[cols="3"],
|
|
955
|
+
mu-grid[cols="4"],
|
|
956
|
+
mu-grid[cols="6"] {
|
|
957
|
+
grid-template-columns: 1fr !important;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/* Legacy class-based selectors (for compatibility) */
|
|
962
|
+
.mu-stack {
|
|
963
|
+
display: flex;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.mu-stack--row {
|
|
967
|
+
flex-direction: row;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.mu-stack--column {
|
|
971
|
+
flex-direction: column;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.mu-stack--row-reverse {
|
|
975
|
+
flex-direction: row-reverse;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.mu-stack--column-reverse {
|
|
979
|
+
flex-direction: column-reverse;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.mu-stack--gap-0 {
|
|
983
|
+
gap: 0;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.mu-stack--gap-1 {
|
|
987
|
+
gap: 4px;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.mu-stack--gap-2 {
|
|
991
|
+
gap: 8px;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.mu-stack--gap-3 {
|
|
995
|
+
gap: 12px;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.mu-stack--gap-4 {
|
|
999
|
+
gap: 16px;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.mu-stack--gap-5 {
|
|
1003
|
+
gap: 20px;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
.mu-stack--gap-6 {
|
|
1007
|
+
gap: 24px;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.mu-stack--gap-8 {
|
|
1011
|
+
gap: 32px;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.mu-stack--gap-10 {
|
|
1015
|
+
gap: 40px;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.mu-stack--gap-12 {
|
|
1019
|
+
gap: 48px;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
.mu-stack--gap-16 {
|
|
1023
|
+
gap: 64px;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.mu-stack--align-start {
|
|
1027
|
+
align-items: flex-start;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.mu-stack--align-center {
|
|
1031
|
+
align-items: center;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.mu-stack--align-end {
|
|
1035
|
+
align-items: flex-end;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.mu-stack--align-stretch {
|
|
1039
|
+
align-items: stretch;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.mu-stack--align-baseline {
|
|
1043
|
+
align-items: baseline;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.mu-stack--justify-start {
|
|
1047
|
+
justify-content: flex-start;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.mu-stack--justify-center {
|
|
1051
|
+
justify-content: center;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.mu-stack--justify-end {
|
|
1055
|
+
justify-content: flex-end;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.mu-stack--justify-between {
|
|
1059
|
+
justify-content: space-between;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.mu-stack--justify-around {
|
|
1063
|
+
justify-content: space-around;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.mu-stack--justify-evenly {
|
|
1067
|
+
justify-content: space-evenly;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.mu-stack--wrap {
|
|
1071
|
+
flex-wrap: wrap;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/* ============================================================================
|
|
1075
|
+
MODAL / DIALOG - MD3 Dialog
|
|
1076
|
+
https://m3.material.io/components/dialogs
|
|
1077
|
+
|
|
1078
|
+
NOTE: All modal styles are consolidated in the "MODAL DIALOG" section below
|
|
1079
|
+
(around line 1650+). Do NOT add modal styles here to prevent duplication.
|
|
1080
|
+
============================================================================ */
|
|
1081
|
+
|
|
1082
|
+
/* ============================================================================
|
|
1083
|
+
ALERT - MD3 Banner Style (Inline Notification)
|
|
1084
|
+
============================================================================ */
|
|
1085
|
+
|
|
1086
|
+
.mu-alert,
|
|
1087
|
+
mu-alert {
|
|
1088
|
+
display: flex;
|
|
1089
|
+
align-items: center;
|
|
1090
|
+
gap: 12px;
|
|
1091
|
+
padding: 16px;
|
|
1092
|
+
border-radius: var(--md-sys-shape-corner-medium, 12px);
|
|
1093
|
+
font-size: var(--md-sys-typescale-body-medium-size, 14px);
|
|
1094
|
+
line-height: var(--md-sys-typescale-body-medium-line-height, 20px);
|
|
1095
|
+
border: 1px solid transparent;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/* Info - uses primary container colors */
|
|
1099
|
+
.mu-alert--info,
|
|
1100
|
+
mu-alert[severity="info"] {
|
|
1101
|
+
background: var(--md-sys-color-surface-container-high, #E6E0E9);
|
|
1102
|
+
color: var(--md-sys-color-on-surface, #1D1B20);
|
|
1103
|
+
border-color: var(--md-sys-color-outline-variant, #CAC4D0);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.mu-alert--info .mu-alert__icon,
|
|
1107
|
+
mu-alert[severity="info"] mu-icon {
|
|
1108
|
+
color: var(--md-sys-color-primary, #6750A4);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/* Success - uses tertiary/green semantic colors */
|
|
1112
|
+
.mu-alert--success,
|
|
1113
|
+
mu-alert[severity="success"] {
|
|
1114
|
+
background: var(--md-sys-color-success-container, #C8E6C9);
|
|
1115
|
+
color: var(--md-sys-color-on-success-container, #1B5E20);
|
|
1116
|
+
border-color: var(--md-sys-color-success, #2E7D32);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.mu-alert--success .mu-alert__icon,
|
|
1120
|
+
mu-alert[severity="success"] mu-icon {
|
|
1121
|
+
color: var(--md-sys-color-success, #2E7D32);
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
/* Warning - uses custom warning semantic colors */
|
|
1125
|
+
.mu-alert--warning,
|
|
1126
|
+
mu-alert[severity="warning"] {
|
|
1127
|
+
background: var(--md-sys-color-warning-container, #FFF3E0);
|
|
1128
|
+
color: var(--md-sys-color-on-warning-container, #5D4037);
|
|
1129
|
+
border-color: var(--md-sys-color-warning, #FF9800);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.mu-alert--warning .mu-alert__icon,
|
|
1133
|
+
mu-alert[severity="warning"] mu-icon {
|
|
1134
|
+
color: var(--md-sys-color-warning, #FF9800);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
/* Error - uses error container colors */
|
|
1138
|
+
.mu-alert--error,
|
|
1139
|
+
mu-alert[severity="error"] {
|
|
1140
|
+
background: var(--md-sys-color-error-container, #F9DEDC);
|
|
1141
|
+
color: var(--md-sys-color-on-error-container, #410E0B);
|
|
1142
|
+
border-color: var(--md-sys-color-error, #B3261E);
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
.mu-alert--error .mu-alert__icon,
|
|
1146
|
+
mu-alert[severity="error"] mu-icon {
|
|
1147
|
+
color: var(--md-sys-color-error, #B3261E);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/* Icon styling */
|
|
1151
|
+
.mu-alert__icon,
|
|
1152
|
+
mu-alert mu-icon:first-child {
|
|
1153
|
+
flex-shrink: 0;
|
|
1154
|
+
display: flex;
|
|
1155
|
+
align-items: center;
|
|
1156
|
+
justify-content: center;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/* Content */
|
|
1160
|
+
.mu-alert__content {
|
|
1161
|
+
flex: 1;
|
|
1162
|
+
min-width: 0;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
.mu-alert__title {
|
|
1166
|
+
display: block;
|
|
1167
|
+
font-weight: var(--md-sys-typescale-title-small-weight, 500);
|
|
1168
|
+
margin-bottom: 4px;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/* Dismiss button */
|
|
1172
|
+
.mu-alert__close {
|
|
1173
|
+
display: flex;
|
|
1174
|
+
align-items: center;
|
|
1175
|
+
justify-content: center;
|
|
1176
|
+
width: 32px;
|
|
1177
|
+
height: 32px;
|
|
1178
|
+
margin: -8px -8px -8px 0;
|
|
1179
|
+
background: transparent;
|
|
1180
|
+
border: none;
|
|
1181
|
+
border-radius: var(--md-sys-shape-corner-full, 50%);
|
|
1182
|
+
cursor: pointer;
|
|
1183
|
+
color: currentColor;
|
|
1184
|
+
opacity: 0.7;
|
|
1185
|
+
transition: opacity 0.2s, background 0.2s;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
.mu-alert__close:hover {
|
|
1189
|
+
opacity: 1;
|
|
1190
|
+
background: var(--md-sys-color-on-surface-variant, rgba(0, 0, 0, 0.08));
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.mu-alert__close:focus-visible {
|
|
1194
|
+
outline: 2px solid var(--md-sys-color-primary, #6750A4);
|
|
1195
|
+
outline-offset: 2px;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/* ============================================================================
|
|
1199
|
+
BADGE - MD3 Badge
|
|
1200
|
+
https://m3.material.io/components/badges
|
|
1201
|
+
============================================================================ */
|
|
1202
|
+
|
|
1203
|
+
.mu-badge {
|
|
1204
|
+
display: inline-flex;
|
|
1205
|
+
align-items: center;
|
|
1206
|
+
justify-content: center;
|
|
1207
|
+
min-width: 16px;
|
|
1208
|
+
height: 16px;
|
|
1209
|
+
padding: 0 4px;
|
|
1210
|
+
font-family: var(--md-sys-typescale-font);
|
|
1211
|
+
font-size: var(--md-sys-typescale-label-small-size);
|
|
1212
|
+
font-weight: var(--md-sys-typescale-label-small-weight);
|
|
1213
|
+
line-height: 1;
|
|
1214
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.mu-badge--sm {
|
|
1218
|
+
min-width: 16px;
|
|
1219
|
+
height: 16px;
|
|
1220
|
+
font-size: 10px;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
.mu-badge--md {
|
|
1224
|
+
min-width: 20px;
|
|
1225
|
+
height: 20px;
|
|
1226
|
+
padding: 0 6px;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.mu-badge--lg {
|
|
1230
|
+
min-width: 24px;
|
|
1231
|
+
height: 24px;
|
|
1232
|
+
padding: 0 8px;
|
|
1233
|
+
font-size: 13px;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.mu-badge--primary {
|
|
1237
|
+
background: var(--md-sys-color-error);
|
|
1238
|
+
color: var(--md-sys-color-on-error);
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.mu-badge--secondary {
|
|
1242
|
+
background: var(--md-sys-color-secondary);
|
|
1243
|
+
color: var(--md-sys-color-on-secondary);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.mu-badge--success {
|
|
1247
|
+
background: #1B5E20;
|
|
1248
|
+
color: white;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
.mu-badge--warning {
|
|
1252
|
+
background: #E65100;
|
|
1253
|
+
color: white;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
.mu-badge--error {
|
|
1257
|
+
background: var(--md-sys-color-error);
|
|
1258
|
+
color: var(--md-sys-color-on-error);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
.mu-badge--neutral {
|
|
1262
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
1263
|
+
color: var(--md-sys-color-on-surface);
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
.mu-badge--dot {
|
|
1267
|
+
min-width: 6px;
|
|
1268
|
+
width: 6px;
|
|
1269
|
+
height: 6px;
|
|
1270
|
+
padding: 0;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
/* ============================================================================
|
|
1274
|
+
SKELETON - MD3 Skeleton Loader
|
|
1275
|
+
============================================================================ */
|
|
1276
|
+
|
|
1277
|
+
.mu-skeleton {
|
|
1278
|
+
display: block;
|
|
1279
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
1280
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
1281
|
+
animation: mu-skeleton-pulse var(--md-sys-motion-duration-extra-long4) var(--md-sys-motion-easing-standard) infinite;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.mu-skeleton--circle {
|
|
1285
|
+
border-radius: 50%;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
.mu-skeleton--text {
|
|
1289
|
+
height: 16px;
|
|
1290
|
+
margin-bottom: 8px;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
.mu-skeleton--text:last-child {
|
|
1294
|
+
width: 70%;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
.mu-skeleton__line {
|
|
1298
|
+
height: 16px;
|
|
1299
|
+
margin-bottom: 8px;
|
|
1300
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
1301
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
1302
|
+
animation: mu-skeleton-pulse var(--md-sys-motion-duration-extra-long4) var(--md-sys-motion-easing-standard) infinite;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
@keyframes mu-skeleton-pulse {
|
|
1306
|
+
|
|
1307
|
+
0%,
|
|
1308
|
+
100% {
|
|
1309
|
+
opacity: 1;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
50% {
|
|
1313
|
+
opacity: 0.4;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
/* ============================================================================
|
|
1318
|
+
SPINNER - MD3 Circular Progress Indicator
|
|
1319
|
+
https://m3.material.io/components/progress-indicators
|
|
1320
|
+
============================================================================ */
|
|
1321
|
+
|
|
1322
|
+
.mu-spinner {
|
|
1323
|
+
display: inline-block;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
.mu-spinner__circle {
|
|
1327
|
+
display: block;
|
|
1328
|
+
border: 3px solid transparent;
|
|
1329
|
+
border-top-color: currentColor;
|
|
1330
|
+
border-radius: 50%;
|
|
1331
|
+
animation: spin var(--md-sys-motion-duration-extra-long1) linear infinite;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
.mu-spinner--xs .mu-spinner__circle {
|
|
1335
|
+
width: 16px;
|
|
1336
|
+
height: 16px;
|
|
1337
|
+
border-width: 2px;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
.mu-spinner--sm .mu-spinner__circle {
|
|
1341
|
+
width: 20px;
|
|
1342
|
+
height: 20px;
|
|
1343
|
+
border-width: 2px;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
.mu-spinner--md .mu-spinner__circle {
|
|
1347
|
+
width: 48px;
|
|
1348
|
+
/* MD3: 48dp standard circular diameter */
|
|
1349
|
+
height: 48px;
|
|
1350
|
+
border-width: 4px;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.mu-spinner--lg .mu-spinner__circle {
|
|
1354
|
+
width: 40px;
|
|
1355
|
+
height: 40px;
|
|
1356
|
+
border-width: 4px;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.mu-spinner--xl .mu-spinner__circle {
|
|
1360
|
+
width: 48px;
|
|
1361
|
+
height: 48px;
|
|
1362
|
+
border-width: 4px;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
.mu-spinner--primary {
|
|
1366
|
+
color: var(--md-sys-color-primary);
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.mu-spinner--secondary {
|
|
1370
|
+
color: var(--md-sys-color-secondary);
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.mu-spinner--current {
|
|
1374
|
+
color: currentColor;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.mu-spinner--white {
|
|
1378
|
+
color: white;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
/* ============================================================================
|
|
1382
|
+
PROGRESS - MD3 Expressive Linear Progress Indicator (8dp)
|
|
1383
|
+
============================================================================ */
|
|
1384
|
+
|
|
1385
|
+
.mu-progress {
|
|
1386
|
+
position: relative;
|
|
1387
|
+
width: 100%;
|
|
1388
|
+
height: 8px;
|
|
1389
|
+
/* MD3 Expressive: 8dp track height for better visibility */
|
|
1390
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
1391
|
+
border-radius: 4px;
|
|
1392
|
+
/* MD3: trackCornerRadius = 4dp for rounded track */
|
|
1393
|
+
overflow: hidden;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.mu-progress--sm {
|
|
1397
|
+
height: 4px;
|
|
1398
|
+
border-radius: 2px;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
.mu-progress--md {
|
|
1402
|
+
height: 8px;
|
|
1403
|
+
border-radius: 4px;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
.mu-progress--lg {
|
|
1407
|
+
height: 12px;
|
|
1408
|
+
border-radius: 6px;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.mu-progress__bar {
|
|
1412
|
+
display: block;
|
|
1413
|
+
height: 100%;
|
|
1414
|
+
background: var(--md-sys-color-primary);
|
|
1415
|
+
border-radius: inherit;
|
|
1416
|
+
transition: width var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard);
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
.mu-progress--success .mu-progress__bar {
|
|
1420
|
+
background: #1B5E20;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.mu-progress--warning .mu-progress__bar {
|
|
1424
|
+
background: #E65100;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
.mu-progress--error .mu-progress__bar {
|
|
1428
|
+
background: var(--md-sys-color-error);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
/* Indeterminate animation */
|
|
1432
|
+
.mu-progress[indeterminate] .mu-progress__bar {
|
|
1433
|
+
width: 50% !important;
|
|
1434
|
+
animation: mu-progress-indeterminate 1.5s infinite ease-in-out;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
@keyframes mu-progress-indeterminate {
|
|
1438
|
+
0% {
|
|
1439
|
+
transform: translateX(-100%);
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
100% {
|
|
1443
|
+
transform: translateX(300%);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
.mu-progress__label {
|
|
1448
|
+
position: absolute;
|
|
1449
|
+
right: 8px;
|
|
1450
|
+
top: 50%;
|
|
1451
|
+
transform: translateY(-50%);
|
|
1452
|
+
font-size: var(--md-sys-typescale-label-small-size);
|
|
1453
|
+
color: var(--md-sys-color-on-surface);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/* ============================================================================
|
|
1457
|
+
TABS - MD3 Tabs with sliding indicator
|
|
1458
|
+
https://m3.material.io/components/tabs
|
|
1459
|
+
============================================================================ */
|
|
1460
|
+
|
|
1461
|
+
.mu-tabs {
|
|
1462
|
+
display: block;
|
|
1463
|
+
/* Required for margin to work */
|
|
1464
|
+
width: 100%;
|
|
1465
|
+
position: relative;
|
|
1466
|
+
margin-bottom: 24px;
|
|
1467
|
+
/* MD3: proper spacing between tabs and content */
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
.mu-tabs__list {
|
|
1471
|
+
display: flex;
|
|
1472
|
+
position: relative;
|
|
1473
|
+
border-bottom: 1px solid var(--md-sys-color-surface-variant);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
.mu-tabs__tab {
|
|
1477
|
+
position: relative;
|
|
1478
|
+
display: flex;
|
|
1479
|
+
align-items: center;
|
|
1480
|
+
justify-content: center;
|
|
1481
|
+
flex: 1;
|
|
1482
|
+
min-width: 90px;
|
|
1483
|
+
height: 48px;
|
|
1484
|
+
padding: 0 16px;
|
|
1485
|
+
background: transparent;
|
|
1486
|
+
border: none;
|
|
1487
|
+
font-family: var(--md-sys-typescale-font);
|
|
1488
|
+
font-size: var(--md-sys-typescale-title-small-size);
|
|
1489
|
+
font-weight: var(--md-sys-typescale-title-small-weight);
|
|
1490
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
1491
|
+
cursor: pointer;
|
|
1492
|
+
overflow: hidden;
|
|
1493
|
+
transition:
|
|
1494
|
+
color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
|
|
1495
|
+
background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
/* State layer for hover/focus */
|
|
1499
|
+
.mu-tabs__tab::before {
|
|
1500
|
+
content: '';
|
|
1501
|
+
position: absolute;
|
|
1502
|
+
inset: 0;
|
|
1503
|
+
background: var(--md-sys-color-primary);
|
|
1504
|
+
opacity: 0;
|
|
1505
|
+
transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
.mu-tabs__tab:hover::before {
|
|
1509
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
.mu-tabs__tab:active::before {
|
|
1513
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
.mu-tabs__tab.is-active {
|
|
1517
|
+
color: var(--md-sys-color-primary);
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
/* Remove per-tab indicator - we use sliding indicator now */
|
|
1521
|
+
.mu-tabs__tab::after {
|
|
1522
|
+
display: none;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/* Sliding indicator - ::after pseudo-element (no DOM element needed)
|
|
1526
|
+
Position controlled via CSS custom properties set by JS */
|
|
1527
|
+
.mu-tabs__list::after {
|
|
1528
|
+
content: '';
|
|
1529
|
+
position: absolute;
|
|
1530
|
+
bottom: 0;
|
|
1531
|
+
height: 3px;
|
|
1532
|
+
background: var(--md-sys-color-primary);
|
|
1533
|
+
border-radius: 3px 3px 0 0;
|
|
1534
|
+
/* Dynamic positioning via CSS custom properties */
|
|
1535
|
+
width: var(--indicator-width, 33.3333%);
|
|
1536
|
+
left: var(--indicator-left, 0);
|
|
1537
|
+
/* Smooth sliding animation */
|
|
1538
|
+
transition: left var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized),
|
|
1539
|
+
width var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized);
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
/* Legacy support: hide old DOM indicator if present */
|
|
1543
|
+
.mu-tabs__indicator {
|
|
1544
|
+
display: none;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
.mu-tabs__panel,
|
|
1548
|
+
mu-tab-panel {
|
|
1549
|
+
display: block;
|
|
1550
|
+
padding: 16px 0;
|
|
1551
|
+
animation: fadeIn var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
/* Tab panel visibility - hidden by default, shown when active */
|
|
1555
|
+
mu-tab-panel:not([active]),
|
|
1556
|
+
.mu-tab-panel:not(.active),
|
|
1557
|
+
.doc-tab-content:not(:first-of-type) {
|
|
1558
|
+
display: none;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/* Pills Variant */
|
|
1562
|
+
.mu-tabs--pills .mu-tabs__list {
|
|
1563
|
+
border-bottom: none;
|
|
1564
|
+
gap: 8px;
|
|
1565
|
+
padding: 4px;
|
|
1566
|
+
background: var(--md-sys-color-surface-container);
|
|
1567
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
1568
|
+
width: fit-content;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
.mu-tabs--pills .mu-tabs__tab {
|
|
1572
|
+
flex: none;
|
|
1573
|
+
height: 36px;
|
|
1574
|
+
min-width: auto;
|
|
1575
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
1576
|
+
transition:
|
|
1577
|
+
color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
|
1578
|
+
background-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized);
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
/* NoHide indicator for pills - use background instead */
|
|
1582
|
+
.mu-tabs--pills .mu-tabs__indicator {
|
|
1583
|
+
display: none;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
.mu-tabs--pills .mu-tabs__tab.is-active {
|
|
1587
|
+
background: var(--md-sys-color-secondary-container);
|
|
1588
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
/* Underline Variant - thinner indicator */
|
|
1592
|
+
.mu-tabs--underline .mu-tabs__indicator {
|
|
1593
|
+
height: 2px;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
/* ============================================================================
|
|
1597
|
+
DROPDOWN - MD3 Exposed Dropdown Menu (Select)
|
|
1598
|
+
https://m3.material.io/components/menus
|
|
1599
|
+
============================================================================ */
|
|
1600
|
+
|
|
1601
|
+
.mu-dropdown {
|
|
1602
|
+
position: relative;
|
|
1603
|
+
display: inline-block;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
/* MD3 Trigger - styled like an outlined text field */
|
|
1607
|
+
.mu-dropdown__trigger {
|
|
1608
|
+
position: relative;
|
|
1609
|
+
display: flex;
|
|
1610
|
+
align-items: center;
|
|
1611
|
+
justify-content: space-between;
|
|
1612
|
+
gap: 8px;
|
|
1613
|
+
min-width: 200px;
|
|
1614
|
+
height: 56px;
|
|
1615
|
+
/* MD3 standard text field height */
|
|
1616
|
+
padding: 0 16px;
|
|
1617
|
+
background: var(--md-sys-color-surface);
|
|
1618
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
1619
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
1620
|
+
/* 4dp */
|
|
1621
|
+
font-family: var(--md-sys-typescale-font);
|
|
1622
|
+
font-size: var(--md-sys-typescale-body-large-size);
|
|
1623
|
+
color: var(--md-sys-color-on-surface);
|
|
1624
|
+
cursor: pointer;
|
|
1625
|
+
overflow: hidden;
|
|
1626
|
+
transition:
|
|
1627
|
+
border-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
|
|
1628
|
+
background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
/* State layer for hover/pressed - MD3 spec */
|
|
1632
|
+
.mu-dropdown__trigger::before {
|
|
1633
|
+
content: '';
|
|
1634
|
+
position: absolute;
|
|
1635
|
+
inset: 0;
|
|
1636
|
+
background: var(--md-sys-color-on-surface);
|
|
1637
|
+
opacity: 0;
|
|
1638
|
+
transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
1639
|
+
pointer-events: none;
|
|
1640
|
+
border-radius: inherit;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
.mu-dropdown__trigger:hover::before {
|
|
1644
|
+
opacity: var(--md-sys-state-hover-opacity, 0.08);
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
.mu-dropdown__trigger:active::before {
|
|
1648
|
+
opacity: var(--md-sys-state-pressed-opacity, 0.12);
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
/* Focus state - MD3 uses primary color border */
|
|
1652
|
+
.mu-dropdown__trigger:focus-visible {
|
|
1653
|
+
outline: none;
|
|
1654
|
+
border-color: var(--md-sys-color-primary);
|
|
1655
|
+
border-width: 2px;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
/* Disabled state - MD3 38% opacity */
|
|
1659
|
+
.mu-dropdown__trigger:disabled {
|
|
1660
|
+
opacity: 0.38;
|
|
1661
|
+
cursor: not-allowed;
|
|
1662
|
+
background: var(--md-sys-color-surface-container);
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.mu-dropdown__trigger:disabled::before {
|
|
1666
|
+
display: none;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
/* Arrow icon - rotates 180° when open */
|
|
1670
|
+
.mu-dropdown__arrow {
|
|
1671
|
+
flex-shrink: 0;
|
|
1672
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
1673
|
+
transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized);
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.mu-dropdown.is-open .mu-dropdown__arrow {
|
|
1677
|
+
transform: rotate(180deg);
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
/* Open state - primary border */
|
|
1681
|
+
.mu-dropdown.is-open .mu-dropdown__trigger {
|
|
1682
|
+
border-color: var(--md-sys-color-primary);
|
|
1683
|
+
border-width: 2px;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
/* MD3 Menu container - now uses Popover API for top-layer */
|
|
1687
|
+
.mu-dropdown__menu {
|
|
1688
|
+
position: fixed;
|
|
1689
|
+
min-width: 160px;
|
|
1690
|
+
max-height: 280px;
|
|
1691
|
+
overflow-y: auto;
|
|
1692
|
+
padding: 8px 0;
|
|
1693
|
+
margin: 0;
|
|
1694
|
+
background: var(--md-sys-color-surface-container);
|
|
1695
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
1696
|
+
/* 4dp */
|
|
1697
|
+
box-shadow: var(--md-sys-elevation-level2);
|
|
1698
|
+
list-style: none;
|
|
1699
|
+
|
|
1700
|
+
/* Reset popover UA styles */
|
|
1701
|
+
border: none;
|
|
1702
|
+
inset: unset;
|
|
1703
|
+
/* Let JS position it */
|
|
1704
|
+
|
|
1705
|
+
/* Hidden by default - MD3 enter animation */
|
|
1706
|
+
opacity: 0;
|
|
1707
|
+
visibility: hidden;
|
|
1708
|
+
transform: scaleY(0.92) translateY(-8px);
|
|
1709
|
+
transform-origin: top center;
|
|
1710
|
+
transition:
|
|
1711
|
+
opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized-decelerate),
|
|
1712
|
+
visibility var(--md-sys-motion-duration-short4),
|
|
1713
|
+
transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized-decelerate);
|
|
1714
|
+
pointer-events: none;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/* Popover API: :popover-open pseudo-class (native top-layer) */
|
|
1718
|
+
.mu-dropdown__menu:popover-open {
|
|
1719
|
+
opacity: 1;
|
|
1720
|
+
visibility: visible;
|
|
1721
|
+
transform: scaleY(1) translateY(0);
|
|
1722
|
+
pointer-events: auto;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
/* Fallback: is-open class for older browsers or manual control */
|
|
1726
|
+
.mu-dropdown__menu.is-open {
|
|
1727
|
+
opacity: 1 !important;
|
|
1728
|
+
visibility: visible !important;
|
|
1729
|
+
transform: scaleY(1) translateY(0);
|
|
1730
|
+
pointer-events: auto;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
/* MD3 Menu items - 48dp height (touch-friendly) */
|
|
1734
|
+
.mu-dropdown__item,
|
|
1735
|
+
.mu-dropdown__option {
|
|
1736
|
+
position: relative;
|
|
1737
|
+
display: flex;
|
|
1738
|
+
align-items: center;
|
|
1739
|
+
height: 48px;
|
|
1740
|
+
/* MD3 touch target minimum */
|
|
1741
|
+
padding: 0 16px;
|
|
1742
|
+
font-size: var(--md-sys-typescale-body-large-size);
|
|
1743
|
+
color: var(--md-sys-color-on-surface);
|
|
1744
|
+
cursor: pointer;
|
|
1745
|
+
overflow: hidden;
|
|
1746
|
+
transition: background var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
/* State layer for options - MD3 spec */
|
|
1750
|
+
.mu-dropdown__item::before,
|
|
1751
|
+
.mu-dropdown__option::before {
|
|
1752
|
+
content: '';
|
|
1753
|
+
position: absolute;
|
|
1754
|
+
inset: 0;
|
|
1755
|
+
background: var(--md-sys-color-on-surface);
|
|
1756
|
+
opacity: 0;
|
|
1757
|
+
transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
1758
|
+
pointer-events: none;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
.mu-dropdown__item:hover::before,
|
|
1762
|
+
.mu-dropdown__option:hover::before {
|
|
1763
|
+
opacity: var(--md-sys-state-hover-opacity, 0.08);
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
.mu-dropdown__item:active::before,
|
|
1767
|
+
.mu-dropdown__option:active::before {
|
|
1768
|
+
opacity: var(--md-sys-state-pressed-opacity, 0.12);
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
.mu-dropdown__item:focus-visible,
|
|
1772
|
+
.mu-dropdown__option:focus-visible {
|
|
1773
|
+
outline: none;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
.mu-dropdown__item:focus-visible::before,
|
|
1777
|
+
.mu-dropdown__option:focus-visible::before {
|
|
1778
|
+
opacity: var(--md-sys-state-focus-opacity, 0.12);
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
/* Selected state - secondary container bg */
|
|
1782
|
+
.mu-dropdown__item.is-selected,
|
|
1783
|
+
.mu-dropdown__option.is-active {
|
|
1784
|
+
background: var(--md-sys-color-secondary-container);
|
|
1785
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
.mu-dropdown__item.is-selected::before,
|
|
1789
|
+
.mu-dropdown__option.is-active::before {
|
|
1790
|
+
background: var(--md-sys-color-on-secondary-container);
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
/* ============================================================================
|
|
1794
|
+
TOAST - MD3 Snackbar
|
|
1795
|
+
https://m3.material.io/components/snackbar
|
|
1796
|
+
============================================================================ */
|
|
1797
|
+
|
|
1798
|
+
/* TOAST CONTAINER - Stacked notifications */
|
|
1799
|
+
.mu-toast-container {
|
|
1800
|
+
position: fixed;
|
|
1801
|
+
z-index: 9999;
|
|
1802
|
+
padding: 24px;
|
|
1803
|
+
display: flex;
|
|
1804
|
+
flex-direction: column;
|
|
1805
|
+
gap: 8px;
|
|
1806
|
+
pointer-events: none;
|
|
1807
|
+
max-width: 100%;
|
|
1808
|
+
/* Default bottom-center */
|
|
1809
|
+
bottom: 0;
|
|
1810
|
+
left: 50%;
|
|
1811
|
+
transform: translateX(-50%);
|
|
1812
|
+
align-items: center;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/* Position Variants (Container) */
|
|
1816
|
+
.mu-toast-container[position="bottom-center"] {
|
|
1817
|
+
bottom: 0;
|
|
1818
|
+
left: 50%;
|
|
1819
|
+
transform: translateX(-50%);
|
|
1820
|
+
align-items: center;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
.mu-toast-container[position="top-center"] {
|
|
1824
|
+
top: 0;
|
|
1825
|
+
left: 50%;
|
|
1826
|
+
transform: translateX(-50%);
|
|
1827
|
+
flex-direction: column-reverse;
|
|
1828
|
+
align-items: center;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
.mu-toast-container[position="top-right"] {
|
|
1832
|
+
top: 0;
|
|
1833
|
+
right: 0;
|
|
1834
|
+
left: auto;
|
|
1835
|
+
transform: none;
|
|
1836
|
+
flex-direction: column-reverse;
|
|
1837
|
+
align-items: flex-end;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
.mu-toast-container[position="top-left"] {
|
|
1841
|
+
top: 0;
|
|
1842
|
+
left: 0;
|
|
1843
|
+
right: auto;
|
|
1844
|
+
transform: none;
|
|
1845
|
+
flex-direction: column-reverse;
|
|
1846
|
+
align-items: flex-start;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
.mu-toast-container[position="bottom-right"] {
|
|
1850
|
+
bottom: 0;
|
|
1851
|
+
right: 0;
|
|
1852
|
+
left: auto;
|
|
1853
|
+
transform: none;
|
|
1854
|
+
align-items: flex-end;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
.mu-toast-container[position="bottom-left"] {
|
|
1858
|
+
bottom: 0;
|
|
1859
|
+
left: 0;
|
|
1860
|
+
right: auto;
|
|
1861
|
+
transform: none;
|
|
1862
|
+
align-items: flex-start;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
/* ITEM */
|
|
1866
|
+
.mu-toast {
|
|
1867
|
+
position: relative;
|
|
1868
|
+
pointer-events: auto;
|
|
1869
|
+
display: flex;
|
|
1870
|
+
align-items: center;
|
|
1871
|
+
gap: 12px;
|
|
1872
|
+
min-height: 48px;
|
|
1873
|
+
padding: 14px 16px;
|
|
1874
|
+
background: var(--md-sys-color-inverse-surface);
|
|
1875
|
+
color: var(--md-sys-color-inverse-on-surface);
|
|
1876
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
1877
|
+
box-shadow: var(--md-sys-elevation-level3);
|
|
1878
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
1879
|
+
min-width: 288px;
|
|
1880
|
+
max-width: 560px;
|
|
1881
|
+
animation: toastEnter 0.3s cubic-bezier(0.2, 0, 0, 1) forwards;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
@keyframes toastEnter {
|
|
1885
|
+
from {
|
|
1886
|
+
opacity: 0;
|
|
1887
|
+
transform: scale(0.9);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
to {
|
|
1891
|
+
opacity: 1;
|
|
1892
|
+
transform: scale(1);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
.mu-toast.is-exiting {
|
|
1897
|
+
animation: toastExit 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
@keyframes toastExit {
|
|
1901
|
+
to {
|
|
1902
|
+
opacity: 0;
|
|
1903
|
+
transform: scale(0.9);
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
.mu-toast--info,
|
|
1908
|
+
.mu-toast--success,
|
|
1909
|
+
.mu-toast--warning,
|
|
1910
|
+
.mu-toast--error {
|
|
1911
|
+
border-left: none;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
.mu-toast__icon {
|
|
1915
|
+
font-size: 24px;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
.mu-toast__content {
|
|
1919
|
+
flex: 1;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
.mu-toast__title {
|
|
1923
|
+
display: block;
|
|
1924
|
+
font-weight: 500;
|
|
1925
|
+
margin-bottom: 4px;
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
.mu-toast__close {
|
|
1929
|
+
display: flex;
|
|
1930
|
+
align-items: center;
|
|
1931
|
+
justify-content: center;
|
|
1932
|
+
width: 32px;
|
|
1933
|
+
height: 32px;
|
|
1934
|
+
background: transparent;
|
|
1935
|
+
border: none;
|
|
1936
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
1937
|
+
color: var(--md-sys-color-inverse-primary);
|
|
1938
|
+
cursor: pointer;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
.mu-toast__close:hover {
|
|
1942
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
/* ============================================================================
|
|
1946
|
+
TOOLTIP - MD3 Tooltip
|
|
1947
|
+
https://m3.material.io/components/tooltips
|
|
1948
|
+
============================================================================ */
|
|
1949
|
+
|
|
1950
|
+
.mu-tooltip {
|
|
1951
|
+
position: relative;
|
|
1952
|
+
display: inline-block;
|
|
1953
|
+
cursor: pointer;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
/* Hidden by default - CSS-only approach */
|
|
1957
|
+
.mu-tooltip__content {
|
|
1958
|
+
position: absolute;
|
|
1959
|
+
padding: 8px 12px;
|
|
1960
|
+
background: var(--md-sys-color-inverse-surface);
|
|
1961
|
+
color: var(--md-sys-color-inverse-on-surface);
|
|
1962
|
+
font-family: var(--md-sys-typescale-font);
|
|
1963
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
1964
|
+
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
1965
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
1966
|
+
white-space: nowrap;
|
|
1967
|
+
z-index: var(--mu-z-tooltip);
|
|
1968
|
+
pointer-events: none;
|
|
1969
|
+
|
|
1970
|
+
/* Hidden state */
|
|
1971
|
+
opacity: 0;
|
|
1972
|
+
visibility: hidden;
|
|
1973
|
+
transform: translateX(-50%) scale(0.9);
|
|
1974
|
+
transition:
|
|
1975
|
+
opacity var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
|
|
1976
|
+
visibility var(--md-sys-motion-duration-short3),
|
|
1977
|
+
transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized);
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
/* Show on hover */
|
|
1981
|
+
.mu-tooltip:hover .mu-tooltip__content,
|
|
1982
|
+
.mu-tooltip:focus-within .mu-tooltip__content {
|
|
1983
|
+
opacity: 1;
|
|
1984
|
+
visibility: visible;
|
|
1985
|
+
transform: translateX(-50%) scale(1);
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/* Position variants */
|
|
1989
|
+
.mu-tooltip--top .mu-tooltip__content {
|
|
1990
|
+
bottom: 100%;
|
|
1991
|
+
left: 50%;
|
|
1992
|
+
transform: translateX(-50%) translateY(4px) scale(0.9);
|
|
1993
|
+
margin-bottom: 8px;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
.mu-tooltip--top:hover .mu-tooltip__content {
|
|
1997
|
+
transform: translateX(-50%) translateY(0) scale(1);
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
.mu-tooltip--bottom .mu-tooltip__content {
|
|
2001
|
+
top: 100%;
|
|
2002
|
+
left: 50%;
|
|
2003
|
+
transform: translateX(-50%) translateY(-4px) scale(0.9);
|
|
2004
|
+
margin-top: 8px;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
.mu-tooltip--bottom:hover .mu-tooltip__content {
|
|
2008
|
+
transform: translateX(-50%) translateY(0) scale(1);
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
.mu-tooltip--left .mu-tooltip__content {
|
|
2012
|
+
right: 100%;
|
|
2013
|
+
top: 50%;
|
|
2014
|
+
transform: translateY(-50%) translateX(4px) scale(0.9);
|
|
2015
|
+
margin-right: 8px;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
.mu-tooltip--left:hover .mu-tooltip__content {
|
|
2019
|
+
transform: translateY(-50%) translateX(0) scale(1);
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
.mu-tooltip--right .mu-tooltip__content {
|
|
2023
|
+
left: 100%;
|
|
2024
|
+
top: 50%;
|
|
2025
|
+
transform: translateY(-50%) translateX(-4px) scale(0.9);
|
|
2026
|
+
margin-left: 8px;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
.mu-tooltip--right:hover .mu-tooltip__content {
|
|
2030
|
+
transform: translateY(-50%) translateX(0) scale(1);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
/* ============================================================================
|
|
2034
|
+
ANIMATIONS - Material Design 3
|
|
2035
|
+
============================================================================ */
|
|
2036
|
+
|
|
2037
|
+
@keyframes spin {
|
|
2038
|
+
from {
|
|
2039
|
+
transform: rotate(0deg);
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
to {
|
|
2043
|
+
transform: rotate(360deg);
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
@keyframes fadeIn {
|
|
2048
|
+
from {
|
|
2049
|
+
opacity: 0;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
to {
|
|
2053
|
+
opacity: 1;
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
@keyframes fadeOut {
|
|
2058
|
+
from {
|
|
2059
|
+
opacity: 1;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
to {
|
|
2063
|
+
opacity: 0;
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
@keyframes slideUp {
|
|
2068
|
+
from {
|
|
2069
|
+
opacity: 0;
|
|
2070
|
+
transform: translateY(16px) scale(0.95);
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
to {
|
|
2074
|
+
opacity: 1;
|
|
2075
|
+
transform: translateY(0) scale(1);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
@keyframes slideDown {
|
|
2080
|
+
from {
|
|
2081
|
+
opacity: 0;
|
|
2082
|
+
transform: translateY(-16px) scale(0.95);
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
to {
|
|
2086
|
+
opacity: 1;
|
|
2087
|
+
transform: translateY(0) scale(1);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
@keyframes slideInRight {
|
|
2092
|
+
from {
|
|
2093
|
+
transform: translateX(100%);
|
|
2094
|
+
opacity: 0;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
to {
|
|
2098
|
+
transform: translateX(0);
|
|
2099
|
+
opacity: 1;
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
@keyframes slideInLeft {
|
|
2104
|
+
from {
|
|
2105
|
+
transform: translateX(-100%);
|
|
2106
|
+
opacity: 0;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
to {
|
|
2110
|
+
transform: translateX(0);
|
|
2111
|
+
opacity: 1;
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
@keyframes scaleIn {
|
|
2116
|
+
from {
|
|
2117
|
+
opacity: 0;
|
|
2118
|
+
transform: scale(0.85);
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
to {
|
|
2122
|
+
opacity: 1;
|
|
2123
|
+
transform: scale(1);
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
/* MD3 Ripple effect - CSS-only using :active */
|
|
2128
|
+
@keyframes ripple {
|
|
2129
|
+
from {
|
|
2130
|
+
transform: scale(0);
|
|
2131
|
+
opacity: 0.4;
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
to {
|
|
2135
|
+
transform: scale(4);
|
|
2136
|
+
opacity: 0;
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
/* Apply ripple effect to buttons */
|
|
2141
|
+
.mu-button::after {
|
|
2142
|
+
content: '';
|
|
2143
|
+
position: absolute;
|
|
2144
|
+
inset: 0;
|
|
2145
|
+
background: radial-gradient(circle, currentColor 10%, transparent 10.01%);
|
|
2146
|
+
transform: scale(10, 10);
|
|
2147
|
+
opacity: 0;
|
|
2148
|
+
transition: transform 0.3s, opacity 0.5s;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
.mu-button:active::after {
|
|
2152
|
+
transform: scale(0, 0);
|
|
2153
|
+
opacity: 0.2;
|
|
2154
|
+
transition: 0s;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/* ============================================================================
|
|
2158
|
+
MODAL DIALOG - MD3 Dialog Component (Native <dialog>)
|
|
2159
|
+
Uses native dialog element for top-layer, focus trap, ESC, backdrop
|
|
2160
|
+
============================================================================ */
|
|
2161
|
+
|
|
2162
|
+
.mu-modal {
|
|
2163
|
+
display: contents;
|
|
2164
|
+
/* mu-modal wrapper is invisible, dialog handles everything */
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/* Native dialog element styling */
|
|
2168
|
+
dialog.mu-modal__dialog {
|
|
2169
|
+
/* Reset default dialog styles */
|
|
2170
|
+
border: none;
|
|
2171
|
+
padding: 24px;
|
|
2172
|
+
margin: auto;
|
|
2173
|
+
/* Center in viewport */
|
|
2174
|
+
|
|
2175
|
+
/* MD3 Surface styling */
|
|
2176
|
+
background: var(--md-sys-color-surface-container-high, var(--md-sys-color-surface));
|
|
2177
|
+
border-radius: var(--md-sys-shape-corner-extra-large, 28px);
|
|
2178
|
+
width: fit-content;
|
|
2179
|
+
min-width: 280px;
|
|
2180
|
+
max-width: min(560px, calc(100vw - 96px));
|
|
2181
|
+
max-height: min(560px, calc(100vh - 96px));
|
|
2182
|
+
overflow-y: auto;
|
|
2183
|
+
box-shadow: var(--md-sys-elevation-3);
|
|
2184
|
+
color: var(--md-sys-color-on-surface);
|
|
2185
|
+
|
|
2186
|
+
/* Animation initial state */
|
|
2187
|
+
transform: scale(0.9);
|
|
2188
|
+
opacity: 0;
|
|
2189
|
+
transition:
|
|
2190
|
+
transform var(--md-sys-motion-duration-medium3, 300ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1)),
|
|
2191
|
+
opacity var(--md-sys-motion-duration-medium2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
/* Native ::backdrop pseudo-element - replaces custom overlay */
|
|
2195
|
+
dialog.mu-modal__dialog::backdrop {
|
|
2196
|
+
background: rgba(0, 0, 0, 0.32);
|
|
2197
|
+
backdrop-filter: blur(8px);
|
|
2198
|
+
-webkit-backdrop-filter: blur(8px);
|
|
2199
|
+
opacity: 0;
|
|
2200
|
+
transition: opacity var(--md-sys-motion-duration-medium2, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
/* Visible state - triggered by is-visible class on mu-modal */
|
|
2204
|
+
.mu-modal.is-visible dialog.mu-modal__dialog {
|
|
2205
|
+
transform: scale(1);
|
|
2206
|
+
opacity: 1;
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
.mu-modal.is-visible dialog.mu-modal__dialog::backdrop {
|
|
2210
|
+
opacity: 1;
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
/* Dialog open state (native) */
|
|
2214
|
+
dialog.mu-modal__dialog[open] {
|
|
2215
|
+
display: flex;
|
|
2216
|
+
flex-direction: column;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
.mu-modal__close {
|
|
2220
|
+
position: absolute;
|
|
2221
|
+
top: 12px;
|
|
2222
|
+
right: 12px;
|
|
2223
|
+
width: 40px;
|
|
2224
|
+
height: 40px;
|
|
2225
|
+
border: none;
|
|
2226
|
+
background: transparent;
|
|
2227
|
+
border-radius: 50%;
|
|
2228
|
+
font-size: 20px;
|
|
2229
|
+
cursor: pointer;
|
|
2230
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
2231
|
+
transition: background-color var(--md-sys-motion-duration-short2);
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
.mu-modal__close:hover {
|
|
2235
|
+
background: var(--md-sys-color-on-surface-variant-opacity-08, rgba(0, 0, 0, 0.08));
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
.mu-modal__body {
|
|
2239
|
+
color: var(--md-sys-color-on-surface);
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
/* Size variants - class is on dialog element */
|
|
2243
|
+
dialog.mu-modal__dialog.mu-modal--sm {
|
|
2244
|
+
max-width: 400px;
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
dialog.mu-modal__dialog.mu-modal--lg {
|
|
2248
|
+
max-width: 720px;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
dialog.mu-modal__dialog.mu-modal--xl {
|
|
2252
|
+
max-width: 900px;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
dialog.mu-modal__dialog.mu-modal--full {
|
|
2256
|
+
width: 95vw;
|
|
2257
|
+
max-width: 95vw;
|
|
2258
|
+
height: 95vh;
|
|
2259
|
+
max-height: 95vh;
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
/* Modal header - MD3 headline style */
|
|
2263
|
+
.mu-modal__header {
|
|
2264
|
+
display: flex;
|
|
2265
|
+
align-items: center;
|
|
2266
|
+
justify-content: space-between;
|
|
2267
|
+
margin-bottom: 16px;
|
|
2268
|
+
font-size: var(--md-sys-typescale-headline-small-size, 24px);
|
|
2269
|
+
font-weight: var(--md-sys-typescale-headline-small-weight, 400);
|
|
2270
|
+
line-height: var(--md-sys-typescale-headline-small-line-height, 32px);
|
|
2271
|
+
color: var(--md-sys-color-on-surface);
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
/* Modal footer - action buttons area */
|
|
2275
|
+
.mu-modal__footer {
|
|
2276
|
+
display: flex;
|
|
2277
|
+
justify-content: flex-end;
|
|
2278
|
+
gap: 8px;
|
|
2279
|
+
margin-top: 24px;
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
/* ============================================================================
|
|
2283
|
+
FOCUS VISIBLE STATES - MD3 Accessibility
|
|
2284
|
+
============================================================================ */
|
|
2285
|
+
|
|
2286
|
+
.mu-button:focus-visible,
|
|
2287
|
+
.mu-tabs__tab:focus-visible,
|
|
2288
|
+
.mu-dropdown__trigger:focus-visible,
|
|
2289
|
+
.mu-input:focus-visible {
|
|
2290
|
+
outline: 2px solid var(--md-sys-color-primary);
|
|
2291
|
+
outline-offset: 2px;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
/* ============================================================================
|
|
2295
|
+
TRANSITIONS - Smooth state changes
|
|
2296
|
+
============================================================================ */
|
|
2297
|
+
|
|
2298
|
+
.mu-card,
|
|
2299
|
+
.mu-alert,
|
|
2300
|
+
.mu-badge,
|
|
2301
|
+
.mu-progress__bar {
|
|
2302
|
+
transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
|
|
2303
|
+
opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
|
|
2304
|
+
box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/* Interactive elements get faster transitions */
|
|
2308
|
+
.mu-button,
|
|
2309
|
+
.mu-tabs__tab,
|
|
2310
|
+
.mu-dropdown__item {
|
|
2311
|
+
transition:
|
|
2312
|
+
background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
|
2313
|
+
box-shadow var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
|
2314
|
+
transform var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
/* Active press effect */
|
|
2318
|
+
.mu-button:active:not(:disabled) {
|
|
2319
|
+
transform: scale(0.98);
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
.mu-tabs__tab:active,
|
|
2323
|
+
.mu-dropdown__item:active {
|
|
2324
|
+
transform: scale(0.98);
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
/* ============================================================================
|
|
2328
|
+
THEME TOGGLE - Light/Dark Mode Switch
|
|
2329
|
+
============================================================================ */
|
|
2330
|
+
|
|
2331
|
+
.mu-theme-toggle {
|
|
2332
|
+
display: inline-flex;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
.mu-theme-toggle__button {
|
|
2336
|
+
position: relative;
|
|
2337
|
+
display: flex;
|
|
2338
|
+
align-items: center;
|
|
2339
|
+
justify-content: center;
|
|
2340
|
+
width: 48px;
|
|
2341
|
+
height: 48px;
|
|
2342
|
+
background: linear-gradient(135deg,
|
|
2343
|
+
var(--md-sys-color-primary-container) 0%,
|
|
2344
|
+
var(--md-sys-color-secondary-container) 100%);
|
|
2345
|
+
border: 2px solid var(--md-sys-color-outline-variant);
|
|
2346
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
2347
|
+
cursor: pointer;
|
|
2348
|
+
overflow: hidden;
|
|
2349
|
+
transition:
|
|
2350
|
+
transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized),
|
|
2351
|
+
box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
|
|
2352
|
+
border-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
.mu-theme-toggle__button:hover {
|
|
2356
|
+
transform: scale(1.1);
|
|
2357
|
+
box-shadow:
|
|
2358
|
+
0 4px 16px rgba(0, 0, 0, 0.2),
|
|
2359
|
+
0 0 24px var(--md-sys-color-primary);
|
|
2360
|
+
border-color: var(--md-sys-color-primary);
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
.mu-theme-toggle__button:active {
|
|
2364
|
+
transform: scale(0.95);
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
.mu-theme-toggle__icon {
|
|
2368
|
+
font-size: 22px;
|
|
2369
|
+
transition: transform var(--md-sys-motion-duration-medium3) var(--md-sys-motion-easing-emphasized-decelerate);
|
|
2370
|
+
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
.mu-theme-toggle__button:hover .mu-theme-toggle__icon {
|
|
2374
|
+
transform: rotate(20deg) scale(1.1);
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
/* Dark mode specific glow */
|
|
2378
|
+
[data-theme="dark"] .mu-theme-toggle__button {
|
|
2379
|
+
background: linear-gradient(135deg,
|
|
2380
|
+
rgba(255, 200, 50, 0.15) 0%,
|
|
2381
|
+
rgba(255, 150, 0, 0.1) 100%);
|
|
2382
|
+
border-color: rgba(255, 200, 50, 0.3);
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
[data-theme="dark"] .mu-theme-toggle__button:hover {
|
|
2386
|
+
box-shadow:
|
|
2387
|
+
0 4px 16px rgba(0, 0, 0, 0.4),
|
|
2388
|
+
0 0 32px rgba(255, 200, 50, 0.4);
|
|
2389
|
+
border-color: rgba(255, 200, 50, 0.6);
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
/* Light mode specific glow */
|
|
2393
|
+
[data-theme="light"] .mu-theme-toggle__button {
|
|
2394
|
+
background: linear-gradient(135deg,
|
|
2395
|
+
rgba(100, 100, 200, 0.1) 0%,
|
|
2396
|
+
rgba(50, 50, 150, 0.05) 100%);
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
[data-theme="light"] .mu-theme-toggle__button:hover {
|
|
2400
|
+
box-shadow:
|
|
2401
|
+
0 4px 16px rgba(0, 0, 0, 0.15),
|
|
2402
|
+
0 0 24px rgba(100, 100, 200, 0.3);
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
/* ============================================================================
|
|
2406
|
+
NAVBAR LINKS - MD3 Navigation Items
|
|
2407
|
+
https://m3.material.io/components/navigation-rail
|
|
2408
|
+
============================================================================ */
|
|
2409
|
+
|
|
2410
|
+
.mu-navbar__links {
|
|
2411
|
+
display: flex;
|
|
2412
|
+
align-items: center;
|
|
2413
|
+
gap: 4px;
|
|
2414
|
+
margin-left: 24px;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
.mu-navbar__links a {
|
|
2418
|
+
position: relative;
|
|
2419
|
+
display: inline-flex;
|
|
2420
|
+
align-items: center;
|
|
2421
|
+
justify-content: center;
|
|
2422
|
+
height: 40px;
|
|
2423
|
+
padding: 0 16px;
|
|
2424
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
2425
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
2426
|
+
text-decoration: none;
|
|
2427
|
+
font-family: var(--md-sys-typescale-font);
|
|
2428
|
+
font-size: var(--md-sys-typescale-label-large-size);
|
|
2429
|
+
font-weight: var(--md-sys-typescale-label-large-weight);
|
|
2430
|
+
overflow: hidden;
|
|
2431
|
+
cursor: pointer;
|
|
2432
|
+
transition: color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
/* State layer */
|
|
2436
|
+
.mu-navbar__links a::before {
|
|
2437
|
+
content: '';
|
|
2438
|
+
position: absolute;
|
|
2439
|
+
inset: 0;
|
|
2440
|
+
border-radius: inherit;
|
|
2441
|
+
background: var(--md-sys-color-on-surface);
|
|
2442
|
+
opacity: 0;
|
|
2443
|
+
transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
2444
|
+
pointer-events: none;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
/* Hover state */
|
|
2448
|
+
.mu-navbar__links a:hover {
|
|
2449
|
+
color: var(--md-sys-color-on-surface);
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
.mu-navbar__links a:hover::before {
|
|
2453
|
+
opacity: var(--md-sys-state-hover-opacity);
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
/* Focus state */
|
|
2457
|
+
.mu-navbar__links a:focus-visible {
|
|
2458
|
+
outline: none;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
.mu-navbar__links a:focus-visible::before {
|
|
2462
|
+
opacity: var(--md-sys-state-focus-opacity);
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
.mu-navbar__links a:focus-visible::after {
|
|
2466
|
+
content: '';
|
|
2467
|
+
position: absolute;
|
|
2468
|
+
inset: -2px;
|
|
2469
|
+
border: 2px solid var(--md-sys-color-primary);
|
|
2470
|
+
border-radius: calc(var(--md-sys-shape-corner-full) + 2px);
|
|
2471
|
+
pointer-events: none;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
/* Pressed state */
|
|
2475
|
+
.mu-navbar__links a:active::before {
|
|
2476
|
+
opacity: var(--md-sys-state-pressed-opacity);
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
/* Active/Selected state - with pill indicator */
|
|
2480
|
+
.mu-navbar__links a.active,
|
|
2481
|
+
.mu-navbar__links a[aria-current="page"] {
|
|
2482
|
+
background: var(--md-sys-color-secondary-container);
|
|
2483
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
.mu-navbar__links a.active::before,
|
|
2487
|
+
.mu-navbar__links a[aria-current="page"]::before {
|
|
2488
|
+
background: var(--md-sys-color-on-secondary-container);
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
/* ============================================================================
|
|
2492
|
+
CONFIRM DIALOG - Agent-friendly confirm modal
|
|
2493
|
+
============================================================================ */
|
|
2494
|
+
|
|
2495
|
+
mu-confirm {
|
|
2496
|
+
display: none;
|
|
2497
|
+
position: fixed;
|
|
2498
|
+
inset: 0;
|
|
2499
|
+
z-index: 1000;
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
mu-confirm.is-open {
|
|
2503
|
+
display: flex;
|
|
2504
|
+
align-items: center;
|
|
2505
|
+
justify-content: center;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
.mu-confirm__overlay {
|
|
2509
|
+
position: absolute;
|
|
2510
|
+
inset: 0;
|
|
2511
|
+
background: rgba(0, 0, 0, 0.32);
|
|
2512
|
+
opacity: 0;
|
|
2513
|
+
transition: opacity 200ms var(--md-sys-motion-easing-standard);
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
mu-confirm.is-visible .mu-confirm__overlay {
|
|
2517
|
+
opacity: 1;
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
.mu-confirm__dialog {
|
|
2521
|
+
position: relative;
|
|
2522
|
+
min-width: 280px;
|
|
2523
|
+
max-width: 400px;
|
|
2524
|
+
background: var(--md-sys-color-surface);
|
|
2525
|
+
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
2526
|
+
box-shadow: var(--md-sys-elevation-level3);
|
|
2527
|
+
padding: 24px;
|
|
2528
|
+
transform: scale(0.9);
|
|
2529
|
+
opacity: 0;
|
|
2530
|
+
transition: transform 250ms var(--md-sys-motion-easing-emphasized),
|
|
2531
|
+
opacity 150ms var(--md-sys-motion-easing-standard);
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
mu-confirm.is-visible .mu-confirm__dialog {
|
|
2535
|
+
transform: scale(1);
|
|
2536
|
+
opacity: 1;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
.mu-confirm__title {
|
|
2540
|
+
margin: 0 0 16px;
|
|
2541
|
+
font-size: var(--md-sys-typescale-headline-small-size);
|
|
2542
|
+
font-weight: var(--md-sys-typescale-headline-small-weight);
|
|
2543
|
+
color: var(--md-sys-color-on-surface);
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
.mu-confirm__message {
|
|
2547
|
+
margin: 0 0 24px;
|
|
2548
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
2549
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
2550
|
+
line-height: 1.5;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
.mu-confirm__actions {
|
|
2554
|
+
display: flex;
|
|
2555
|
+
justify-content: flex-end;
|
|
2556
|
+
gap: 8px;
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
/* ============================================================================
|
|
2560
|
+
FETCH - Data fetcher component states
|
|
2561
|
+
============================================================================ */
|
|
2562
|
+
|
|
2563
|
+
mu-fetch {
|
|
2564
|
+
display: block;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
.mu-fetch__loading {
|
|
2568
|
+
display: flex;
|
|
2569
|
+
align-items: center;
|
|
2570
|
+
justify-content: center;
|
|
2571
|
+
min-height: 100px;
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
.mu-fetch__error {
|
|
2575
|
+
margin: 16px 0;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
.mu-fetch__empty {
|
|
2579
|
+
display: flex;
|
|
2580
|
+
align-items: center;
|
|
2581
|
+
justify-content: center;
|
|
2582
|
+
min-height: 100px;
|
|
2583
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
.mu-fetch__data {
|
|
2587
|
+
display: block;
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
/* ============================================================================
|
|
2591
|
+
DOCUMENTATION PAGE UTILITIES
|
|
2592
|
+
These classes are used by microUI documentation pages (demo, showcase)
|
|
2593
|
+
============================================================================ */
|
|
2594
|
+
|
|
2595
|
+
.page {
|
|
2596
|
+
display: none;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
.page.active {
|
|
2600
|
+
display: block;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
.page-title {
|
|
2604
|
+
font-size: var(--md-sys-typescale-headline-medium-size, 28px);
|
|
2605
|
+
line-height: var(--md-sys-typescale-headline-medium-line-height, 36px);
|
|
2606
|
+
margin-bottom: 8px;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
.page-subtitle {
|
|
2610
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
2611
|
+
margin-bottom: 32px;
|
|
2612
|
+
line-height: 1.5;
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
.component-section {
|
|
2616
|
+
background: var(--md-sys-color-surface-container);
|
|
2617
|
+
padding: 24px;
|
|
2618
|
+
border-radius: var(--md-sys-shape-corner-large, 16px);
|
|
2619
|
+
margin-bottom: 24px;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
.section-title {
|
|
2623
|
+
font-size: var(--md-sys-typescale-title-medium-size, 16px);
|
|
2624
|
+
font-weight: var(--md-sys-typescale-title-medium-weight, 500);
|
|
2625
|
+
margin-top: 32px;
|
|
2626
|
+
/* MD3: 32dp spacing before new section */
|
|
2627
|
+
margin-bottom: 16px;
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
.section-title:first-child,
|
|
2631
|
+
.component-section>.section-title:first-child {
|
|
2632
|
+
margin-top: 0;
|
|
2633
|
+
/* No top margin for first title */
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
.demo-row {
|
|
2637
|
+
display: flex;
|
|
2638
|
+
gap: 16px;
|
|
2639
|
+
flex-wrap: wrap;
|
|
2640
|
+
align-items: center;
|
|
2641
|
+
margin-bottom: 16px;
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
.demo-label {
|
|
2645
|
+
font-size: var(--md-sys-typescale-label-small-size, 11px);
|
|
2646
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
2647
|
+
margin-bottom: 8px;
|
|
2648
|
+
width: 100%;
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
.code-block {
|
|
2652
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
2653
|
+
padding: 16px;
|
|
2654
|
+
border-radius: var(--md-sys-shape-corner-medium, 12px);
|
|
2655
|
+
font-family: 'Fira Code', 'Cascadia Code', 'SF Mono', Consolas, monospace;
|
|
2656
|
+
font-size: 13px;
|
|
2657
|
+
overflow-x: auto;
|
|
2658
|
+
margin-top: 16px;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
/* Documentation tab content visibility */
|
|
2662
|
+
.doc-tab-content {
|
|
2663
|
+
display: none;
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
.doc-tab-content:first-of-type,
|
|
2667
|
+
.doc-tab-content.active {
|
|
2668
|
+
display: block;
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
/* ============================================
|
|
2672
|
+
mu-drawer-item - Navigation Item Component
|
|
2673
|
+
============================================ */
|
|
2674
|
+
|
|
2675
|
+
mu-drawer-item,
|
|
2676
|
+
mu-nav-item {
|
|
2677
|
+
display: block;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
.mu-drawer-item-link {
|
|
2681
|
+
display: flex;
|
|
2682
|
+
align-items: center;
|
|
2683
|
+
gap: 12px;
|
|
2684
|
+
padding: 0 24px 0 16px;
|
|
2685
|
+
min-height: 56px;
|
|
2686
|
+
width: 100%;
|
|
2687
|
+
border: none;
|
|
2688
|
+
background: transparent;
|
|
2689
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
2690
|
+
text-decoration: none;
|
|
2691
|
+
cursor: pointer;
|
|
2692
|
+
border-radius: 28px;
|
|
2693
|
+
/* MD3: full rounded pill */
|
|
2694
|
+
font-family: var(--md-sys-typescale-font);
|
|
2695
|
+
font-size: var(--md-sys-typescale-label-large-size, 14px);
|
|
2696
|
+
font-weight: var(--md-sys-typescale-label-large-weight, 500);
|
|
2697
|
+
line-height: var(--md-sys-typescale-label-large-line-height, 20px);
|
|
2698
|
+
transition: background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
|
2699
|
+
color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
2700
|
+
position: relative;
|
|
2701
|
+
box-sizing: border-box;
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
/* Vertical layout (for bottom-nav) */
|
|
2705
|
+
mu-drawer-item[layout="vertical"] .mu-drawer-item-link,
|
|
2706
|
+
mu-nav-item .mu-drawer-item-link {
|
|
2707
|
+
flex-direction: column;
|
|
2708
|
+
justify-content: center;
|
|
2709
|
+
gap: 4px;
|
|
2710
|
+
padding: 12px 16px;
|
|
2711
|
+
border-radius: var(--md-sys-shape-corner-large);
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
.mu-drawer-item-link:hover:not([disabled]):not([aria-disabled="true"]) {
|
|
2715
|
+
background: color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-hover-opacity, 0.08) * 100%), transparent);
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
.mu-drawer-item-link:focus-visible {
|
|
2719
|
+
outline: 2px solid var(--md-sys-color-primary);
|
|
2720
|
+
outline-offset: 2px;
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
.mu-drawer-item-link:active:not([disabled]):not([aria-disabled="true"]) {
|
|
2724
|
+
background: color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-pressed-opacity, 0.12) * 100%), transparent);
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
/* Active state - MD3 pill-shaped background on entire item */
|
|
2728
|
+
mu-drawer-item[active] .mu-drawer-item-link {
|
|
2729
|
+
background: var(--md-sys-color-secondary-container);
|
|
2730
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
mu-drawer-item[active] .mu-drawer-item-link:hover {
|
|
2734
|
+
background: color-mix(in srgb, var(--md-sys-color-on-secondary-container) calc(var(--md-sys-state-hover-opacity, 0.08) * 100%), var(--md-sys-color-secondary-container));
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
/* Vertical layout active - pill on icon only */
|
|
2738
|
+
mu-drawer-item[layout="vertical"][active] .mu-drawer-item-link,
|
|
2739
|
+
mu-nav-item[active] .mu-drawer-item-link {
|
|
2740
|
+
background: transparent;
|
|
2741
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
mu-drawer-item[layout="vertical"][active] .mu-drawer-item-icon,
|
|
2745
|
+
mu-nav-item[active] .mu-drawer-item-icon {
|
|
2746
|
+
background: var(--md-sys-color-secondary-container);
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
/* Disabled state */
|
|
2750
|
+
.mu-drawer-item-link[disabled],
|
|
2751
|
+
.mu-drawer-item-link[aria-disabled="true"] {
|
|
2752
|
+
opacity: 0.38;
|
|
2753
|
+
cursor: not-allowed;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
.mu-drawer-item-icon {
|
|
2757
|
+
display: flex;
|
|
2758
|
+
align-items: center;
|
|
2759
|
+
justify-content: center;
|
|
2760
|
+
flex-shrink: 0;
|
|
2761
|
+
width: 24px;
|
|
2762
|
+
height: 24px;
|
|
2763
|
+
position: relative;
|
|
2764
|
+
transition: background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
/* Vertical layout icon container */
|
|
2768
|
+
mu-drawer-item[layout="vertical"] .mu-drawer-item-icon,
|
|
2769
|
+
mu-nav-item .mu-drawer-item-icon {
|
|
2770
|
+
width: 56px;
|
|
2771
|
+
height: 32px;
|
|
2772
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
/* Icon styling for mu-icon */
|
|
2776
|
+
.mu-drawer-item-icon mu-icon {
|
|
2777
|
+
display: flex;
|
|
2778
|
+
align-items: center;
|
|
2779
|
+
justify-content: center;
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
.mu-drawer-item-label {
|
|
2783
|
+
flex: 1;
|
|
2784
|
+
white-space: nowrap;
|
|
2785
|
+
overflow: hidden;
|
|
2786
|
+
text-overflow: ellipsis;
|
|
2787
|
+
text-align: left;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
/* Vertical layout label */
|
|
2791
|
+
mu-drawer-item[layout="vertical"] .mu-drawer-item-label,
|
|
2792
|
+
mu-nav-item .mu-drawer-item-label {
|
|
2793
|
+
flex: none;
|
|
2794
|
+
text-align: center;
|
|
2795
|
+
font-size: var(--md-sys-typescale-label-medium-size, 12px);
|
|
2796
|
+
font-weight: var(--md-sys-typescale-label-medium-weight, 500);
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
/* Hide label in rail mode */
|
|
2800
|
+
mu-drawer-item[hide-label] .mu-drawer-item-label {
|
|
2801
|
+
display: none;
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
/* Rail mode: compact item with pill on icon only */
|
|
2805
|
+
mu-drawer-item[hide-label] .mu-drawer-item-link {
|
|
2806
|
+
width: auto;
|
|
2807
|
+
padding: 12px;
|
|
2808
|
+
min-width: 48px;
|
|
2809
|
+
min-height: 48px;
|
|
2810
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
2811
|
+
background: transparent;
|
|
2812
|
+
justify-content: center;
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
mu-drawer-item[hide-label][active] .mu-drawer-item-link {
|
|
2816
|
+
background: transparent;
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
mu-drawer-item[hide-label][active] .mu-drawer-item-icon {
|
|
2820
|
+
background: var(--md-sys-color-secondary-container);
|
|
2821
|
+
width: 56px;
|
|
2822
|
+
height: 32px;
|
|
2823
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
mu-drawer-item[hide-label] .mu-drawer-item-link:hover:not([disabled]) {
|
|
2827
|
+
background: transparent;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
mu-drawer-item[hide-label] .mu-drawer-item-icon:hover {
|
|
2831
|
+
background: color-mix(in srgb, var(--md-sys-color-on-surface) calc(var(--md-sys-state-hover-opacity, 0.08) * 100%), transparent);
|
|
2832
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
.mu-drawer-item-badge {
|
|
2836
|
+
min-width: 16px;
|
|
2837
|
+
height: 16px;
|
|
2838
|
+
padding: 0 4px;
|
|
2839
|
+
border-radius: var(--md-sys-shape-corner-full);
|
|
2840
|
+
background: var(--md-sys-color-error);
|
|
2841
|
+
color: var(--md-sys-color-on-error);
|
|
2842
|
+
font-size: 11px;
|
|
2843
|
+
font-weight: 500;
|
|
2844
|
+
display: flex;
|
|
2845
|
+
align-items: center;
|
|
2846
|
+
justify-content: center;
|
|
2847
|
+
flex-shrink: 0;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
/* Vertical layout badge */
|
|
2851
|
+
mu-drawer-item[layout="vertical"] .mu-drawer-item-badge,
|
|
2852
|
+
mu-nav-item .mu-drawer-item-badge {
|
|
2853
|
+
position: absolute;
|
|
2854
|
+
top: 0;
|
|
2855
|
+
right: 8px;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
/* ============================================================================
|
|
2859
|
+
BOTTOM NAV - MD3 Bottom Navigation Bar
|
|
2860
|
+
https://m3.material.io/components/navigation-bar
|
|
2861
|
+
============================================================================ */
|
|
2862
|
+
|
|
2863
|
+
mu-bottom-nav {
|
|
2864
|
+
display: block;
|
|
2865
|
+
position: fixed;
|
|
2866
|
+
bottom: 0;
|
|
2867
|
+
left: 0;
|
|
2868
|
+
right: 0;
|
|
2869
|
+
z-index: var(--mu-z-bottom-nav, 150);
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
.mu-bottom-nav-nav {
|
|
2873
|
+
display: flex;
|
|
2874
|
+
align-items: stretch;
|
|
2875
|
+
justify-content: space-around;
|
|
2876
|
+
height: var(--mu-bottom-nav-height, 80px);
|
|
2877
|
+
background: var(--md-sys-color-surface-container);
|
|
2878
|
+
border-top: 1px solid var(--md-sys-color-outline-variant);
|
|
2879
|
+
padding: 0 8px;
|
|
2880
|
+
padding-bottom: env(safe-area-inset-bottom, 0);
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
/* Distribute items evenly */
|
|
2884
|
+
.mu-bottom-nav-nav>mu-nav-item,
|
|
2885
|
+
.mu-bottom-nav-nav>mu-drawer-item {
|
|
2886
|
+
flex: 1;
|
|
2887
|
+
max-width: 120px;
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
/* ============================================================================
|
|
2891
|
+
LAYOUT - MD3 Responsive Layout Container
|
|
2892
|
+
============================================================================ */
|
|
2893
|
+
|
|
2894
|
+
mu-layout {
|
|
2895
|
+
display: flex;
|
|
2896
|
+
flex-direction: column;
|
|
2897
|
+
height: 100vh;
|
|
2898
|
+
background: var(--md-sys-color-background);
|
|
2899
|
+
color: var(--md-sys-color-on-background);
|
|
2900
|
+
overflow: hidden;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
.mu-layout-wrapper {
|
|
2904
|
+
display: flex;
|
|
2905
|
+
flex-direction: column;
|
|
2906
|
+
flex: 1;
|
|
2907
|
+
height: 100vh;
|
|
2908
|
+
overflow: hidden;
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
.mu-layout-header {
|
|
2912
|
+
flex-shrink: 0;
|
|
2913
|
+
width: 100%;
|
|
2914
|
+
z-index: var(--z-sticky, 100);
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
.mu-layout-body {
|
|
2918
|
+
display: flex;
|
|
2919
|
+
flex: 1;
|
|
2920
|
+
overflow: hidden;
|
|
2921
|
+
min-height: 0;
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
.mu-layout-drawer {
|
|
2925
|
+
flex-shrink: 0;
|
|
2926
|
+
height: 100%;
|
|
2927
|
+
overflow-y: auto;
|
|
2928
|
+
overflow-x: hidden;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
@media (max-width: 599px) {
|
|
2932
|
+
.mu-layout-drawer {
|
|
2933
|
+
position: fixed;
|
|
2934
|
+
top: 0;
|
|
2935
|
+
left: 0;
|
|
2936
|
+
height: 100vh;
|
|
2937
|
+
z-index: var(--mu-z-drawer, 250);
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
.mu-layout-main {
|
|
2942
|
+
flex: 1;
|
|
2943
|
+
display: flex;
|
|
2944
|
+
flex-direction: column;
|
|
2945
|
+
min-width: 0;
|
|
2946
|
+
height: 100%;
|
|
2947
|
+
overflow-y: auto;
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
.mu-layout-content {
|
|
2951
|
+
flex: 1;
|
|
2952
|
+
padding: 16px;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
mu-layout[has-bottom-nav] .mu-layout-content {
|
|
2956
|
+
padding-bottom: calc(var(--mu-bottom-nav-height, 80px) + 16px + env(safe-area-inset-bottom, 0));
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
@media (max-width: 599px) {
|
|
2960
|
+
.mu-layout-content {
|
|
2961
|
+
padding: 8px;
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
mu-layout[has-bottom-nav] .mu-layout-content {
|
|
2965
|
+
padding-bottom: calc(var(--mu-bottom-nav-height, 80px) + 8px + env(safe-area-inset-bottom, 0));
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
.mu-layout-footer {
|
|
2970
|
+
flex-shrink: 0;
|
|
2971
|
+
width: 100%;
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
.mu-layout-bottom {
|
|
2975
|
+
/* Bottom nav is fixed, no space needed here */
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
/* Loading state */
|
|
2979
|
+
mu-layout.mu-loading .mu-layout-content::before {
|
|
2980
|
+
content: '';
|
|
2981
|
+
position: fixed;
|
|
2982
|
+
top: 0;
|
|
2983
|
+
left: 0;
|
|
2984
|
+
right: 0;
|
|
2985
|
+
height: 4px;
|
|
2986
|
+
background: linear-gradient(90deg,
|
|
2987
|
+
var(--md-sys-color-primary) 0%,
|
|
2988
|
+
var(--md-sys-color-primary-container) 50%,
|
|
2989
|
+
var(--md-sys-color-primary) 100%);
|
|
2990
|
+
background-size: 200% 100%;
|
|
2991
|
+
animation: loading-bar 1.5s ease-in-out infinite;
|
|
2992
|
+
z-index: var(--z-overlay, 9999);
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
@keyframes loading-bar {
|
|
2996
|
+
0% {
|
|
2997
|
+
background-position: 200% 0;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
100% {
|
|
3001
|
+
background-position: -200% 0;
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
/* ============================================================================
|
|
3006
|
+
DRAWER - MD3 Adaptive Navigation Drawer
|
|
3007
|
+
https://m3.material.io/components/navigation-drawer
|
|
3008
|
+
============================================================================ */
|
|
3009
|
+
|
|
3010
|
+
mu-drawer {
|
|
3011
|
+
display: block;
|
|
3012
|
+
position: relative;
|
|
3013
|
+
z-index: var(--mu-z-drawer, 250);
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
.mu-drawer-scrim {
|
|
3017
|
+
position: fixed;
|
|
3018
|
+
inset: 0;
|
|
3019
|
+
background: rgba(0, 0, 0, 0.32);
|
|
3020
|
+
opacity: 0;
|
|
3021
|
+
visibility: hidden;
|
|
3022
|
+
transition: opacity var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard),
|
|
3023
|
+
visibility var(--md-sys-motion-duration-medium2);
|
|
3024
|
+
z-index: var(--mu-z-drawer-scrim, 240);
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
.mu-drawer-scrim.mu-drawer-scrim-visible {
|
|
3028
|
+
opacity: 1;
|
|
3029
|
+
visibility: visible;
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
.mu-drawer-nav {
|
|
3033
|
+
display: flex;
|
|
3034
|
+
flex-direction: column;
|
|
3035
|
+
background: var(--md-sys-color-surface-container-low);
|
|
3036
|
+
border-right: 1px solid var(--md-sys-color-outline-variant);
|
|
3037
|
+
height: 100%;
|
|
3038
|
+
overflow-y: auto;
|
|
3039
|
+
overflow-x: hidden;
|
|
3040
|
+
transition: width var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)),
|
|
3041
|
+
transform var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15));
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
/* Position end (right side) */
|
|
3045
|
+
mu-drawer[position="end"] .mu-drawer-nav {
|
|
3046
|
+
border-right: none;
|
|
3047
|
+
border-left: 1px solid var(--md-sys-color-outline-variant);
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
/* Mode: Expanded (full drawer) */
|
|
3051
|
+
.mu-drawer-nav.mu-drawer-mode-expanded {
|
|
3052
|
+
width: var(--mu-drawer-standard-width, 256px);
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
/* Mode: Rail (collapsed, icons only) */
|
|
3056
|
+
.mu-drawer-nav.mu-drawer-mode-rail {
|
|
3057
|
+
width: var(--mu-drawer-rail-width, 80px);
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
.mu-drawer-nav.mu-drawer-mode-rail.mu-drawer-expanded-hover {
|
|
3061
|
+
width: var(--mu-drawer-standard-width, 256px);
|
|
3062
|
+
box-shadow: var(--md-sys-elevation-level2);
|
|
3063
|
+
transition: width var(--md-sys-motion-duration-medium2, 300ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1)),
|
|
3064
|
+
transform var(--md-sys-motion-duration-medium2, 300ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1)),
|
|
3065
|
+
box-shadow var(--md-sys-motion-duration-medium2, 300ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1));
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
/* Mode: Hidden (off-screen, modal on open) */
|
|
3069
|
+
.mu-drawer-nav.mu-drawer-mode-hidden {
|
|
3070
|
+
position: fixed;
|
|
3071
|
+
top: 0;
|
|
3072
|
+
left: 0;
|
|
3073
|
+
bottom: 0;
|
|
3074
|
+
width: var(--mu-drawer-expanded-width, 360px);
|
|
3075
|
+
max-width: calc(100vw - 56px);
|
|
3076
|
+
transform: translateX(-100%);
|
|
3077
|
+
box-shadow: var(--md-sys-elevation-level3);
|
|
3078
|
+
z-index: var(--mu-z-drawer, 250);
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
mu-drawer[position="end"] .mu-drawer-nav.mu-drawer-mode-hidden {
|
|
3082
|
+
left: auto;
|
|
3083
|
+
right: 0;
|
|
3084
|
+
transform: translateX(100%);
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
.mu-drawer-nav.mu-drawer-mode-hidden.mu-drawer-open {
|
|
3088
|
+
transform: translateX(0);
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
/* Header */
|
|
3092
|
+
.mu-drawer-header {
|
|
3093
|
+
padding: 16px;
|
|
3094
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
3095
|
+
transition: opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard),
|
|
3096
|
+
padding var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard);
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
/* Hide header in rail mode when not hovering */
|
|
3100
|
+
.mu-drawer-nav.mu-drawer-mode-rail:not(.mu-drawer-expanded-hover) .mu-drawer-header {
|
|
3101
|
+
opacity: 0;
|
|
3102
|
+
padding: 8px;
|
|
3103
|
+
height: 0;
|
|
3104
|
+
overflow: hidden;
|
|
3105
|
+
border-bottom: none;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
/* Content area */
|
|
3109
|
+
.mu-drawer-content {
|
|
3110
|
+
flex: 1;
|
|
3111
|
+
padding: 8px 12px;
|
|
3112
|
+
display: flex;
|
|
3113
|
+
flex-direction: column;
|
|
3114
|
+
gap: 4px;
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
/* Rail mode: center items */
|
|
3118
|
+
.mu-drawer-nav.mu-drawer-mode-rail:not(.mu-drawer-expanded-hover) .mu-drawer-content {
|
|
3119
|
+
align-items: center;
|
|
3120
|
+
padding: 8px 0;
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
/* ============================================================================
|
|
3124
|
+
DATATABLE - Smart Data Table Component
|
|
3125
|
+
============================================================================ */
|
|
3126
|
+
|
|
3127
|
+
mu-datatable {
|
|
3128
|
+
display: block;
|
|
3129
|
+
font-family: var(--md-sys-typescale-font);
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
.mu-datatable-wrapper {
|
|
3133
|
+
background: var(--md-sys-color-surface);
|
|
3134
|
+
border-radius: var(--md-sys-shape-corner-medium);
|
|
3135
|
+
border: 1px solid var(--md-sys-color-outline-variant);
|
|
3136
|
+
overflow: hidden;
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
.mu-datatable-toolbar {
|
|
3140
|
+
display: flex;
|
|
3141
|
+
align-items: center;
|
|
3142
|
+
justify-content: space-between;
|
|
3143
|
+
padding: 12px 16px;
|
|
3144
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
3145
|
+
background: var(--md-sys-color-surface-container-low);
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
.mu-datatable-search {
|
|
3149
|
+
display: flex;
|
|
3150
|
+
align-items: center;
|
|
3151
|
+
gap: 8px;
|
|
3152
|
+
flex: 1;
|
|
3153
|
+
max-width: 300px;
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
.mu-datatable-search input {
|
|
3157
|
+
flex: 1;
|
|
3158
|
+
padding: 8px 12px;
|
|
3159
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
3160
|
+
border-radius: var(--md-sys-shape-corner-small);
|
|
3161
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
3162
|
+
background: var(--md-sys-color-surface);
|
|
3163
|
+
color: var(--md-sys-color-on-surface);
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
.mu-datatable-search input:focus {
|
|
3167
|
+
outline: 2px solid var(--md-sys-color-primary);
|
|
3168
|
+
outline-offset: -1px;
|
|
3169
|
+
border-color: var(--md-sys-color-primary);
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
.mu-datatable-info {
|
|
3173
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
3174
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
.mu-datatable-table {
|
|
3178
|
+
width: 100%;
|
|
3179
|
+
border-collapse: collapse;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
.mu-datatable-table thead {
|
|
3183
|
+
background: var(--md-sys-color-surface-container);
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
.mu-datatable-table th {
|
|
3187
|
+
padding: 12px 16px;
|
|
3188
|
+
text-align: left;
|
|
3189
|
+
font-weight: 500;
|
|
3190
|
+
font-size: var(--md-sys-typescale-label-large-size);
|
|
3191
|
+
color: var(--md-sys-color-on-surface);
|
|
3192
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
3193
|
+
user-select: none;
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
.mu-datatable-table th.mu-datatable-sortable {
|
|
3197
|
+
cursor: pointer;
|
|
3198
|
+
transition: background-color 0.15s;
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
.mu-datatable-table th.mu-datatable-sortable:hover {
|
|
3202
|
+
background: var(--md-sys-color-surface-container-high);
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
.mu-datatable-sort-icon {
|
|
3206
|
+
margin-left: 4px;
|
|
3207
|
+
opacity: 0.5;
|
|
3208
|
+
font-size: 16px;
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
.mu-datatable-table th.mu-datatable-sorted .mu-datatable-sort-icon {
|
|
3212
|
+
opacity: 1;
|
|
3213
|
+
color: var(--md-sys-color-primary);
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
.mu-datatable-table tbody tr {
|
|
3217
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
3218
|
+
transition: background-color 0.15s;
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3221
|
+
.mu-datatable-table tbody tr:hover {
|
|
3222
|
+
background: color-mix(in srgb, var(--md-sys-color-on-surface) 4%, transparent);
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
.mu-datatable-table tbody tr.mu-datatable-selected {
|
|
3226
|
+
background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
.mu-datatable-table td {
|
|
3230
|
+
padding: 12px 16px;
|
|
3231
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
3232
|
+
color: var(--md-sys-color-on-surface);
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
.mu-datatable-checkbox-cell {
|
|
3236
|
+
width: 48px;
|
|
3237
|
+
text-align: center;
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
.mu-datatable-checkbox-cell input {
|
|
3241
|
+
width: 18px;
|
|
3242
|
+
height: 18px;
|
|
3243
|
+
accent-color: var(--md-sys-color-primary);
|
|
3244
|
+
cursor: pointer;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
.mu-datatable-empty-state {
|
|
3248
|
+
padding: 48px 16px;
|
|
3249
|
+
text-align: center;
|
|
3250
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
.mu-datatable-pagination {
|
|
3254
|
+
display: flex;
|
|
3255
|
+
align-items: center;
|
|
3256
|
+
justify-content: space-between;
|
|
3257
|
+
padding: 12px 16px;
|
|
3258
|
+
border-top: 1px solid var(--md-sys-color-outline-variant);
|
|
3259
|
+
background: var(--md-sys-color-surface-container-low);
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
.mu-datatable-pagination-info {
|
|
3263
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
3264
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
.mu-datatable-pagination-controls {
|
|
3268
|
+
display: flex;
|
|
3269
|
+
gap: 4px;
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
.mu-datatable-pagination-btn {
|
|
3273
|
+
padding: 8px 12px;
|
|
3274
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
3275
|
+
border-radius: var(--md-sys-shape-corner-small);
|
|
3276
|
+
background: var(--md-sys-color-surface);
|
|
3277
|
+
color: var(--md-sys-color-on-surface);
|
|
3278
|
+
cursor: pointer;
|
|
3279
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
3280
|
+
transition: background-color 0.15s;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
.mu-datatable-pagination-btn:hover:not(:disabled) {
|
|
3284
|
+
background: var(--md-sys-color-surface-container);
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
.mu-datatable-pagination-btn:disabled {
|
|
3288
|
+
opacity: 0.5;
|
|
3289
|
+
cursor: not-allowed;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
.mu-datatable-pagination-btn.mu-datatable-pagination-btn-active {
|
|
3293
|
+
background: var(--md-sys-color-primary);
|
|
3294
|
+
color: var(--md-sys-color-on-primary);
|
|
3295
|
+
border-color: var(--md-sys-color-primary);
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
/* ============================================================================
|
|
3299
|
+
SCHEMA FORM - Auto-Generated Forms from JSON Schema
|
|
3300
|
+
============================================================================ */
|
|
3301
|
+
|
|
3302
|
+
mu-schema-form {
|
|
3303
|
+
display: block;
|
|
3304
|
+
font-family: var(--md-sys-typescale-font);
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
.mu-schema-form {
|
|
3308
|
+
display: flex;
|
|
3309
|
+
flex-direction: column;
|
|
3310
|
+
gap: 20px;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
.mu-schema-form.mu-schema-form-inline {
|
|
3314
|
+
flex-direction: row;
|
|
3315
|
+
flex-wrap: wrap;
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
.mu-schema-form.mu-schema-form-inline .mu-schema-form-field {
|
|
3319
|
+
flex: 1;
|
|
3320
|
+
min-width: 200px;
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
.mu-schema-form-field {
|
|
3324
|
+
display: flex;
|
|
3325
|
+
flex-direction: column;
|
|
3326
|
+
gap: 4px;
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
.mu-schema-form-field.mu-schema-form-field-error mu-input,
|
|
3330
|
+
.mu-schema-form-field.mu-schema-form-field-error mu-dropdown,
|
|
3331
|
+
.mu-schema-form-field.mu-schema-form-field-error mu-textarea {
|
|
3332
|
+
--md-sys-color-outline: var(--md-sys-color-error);
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
.mu-schema-form-description {
|
|
3336
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
3337
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3338
|
+
margin-top: 2px;
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
.mu-schema-form-error {
|
|
3342
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
3343
|
+
color: var(--md-sys-color-error);
|
|
3344
|
+
margin-top: 2px;
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
.mu-schema-form-switch-row {
|
|
3348
|
+
display: flex;
|
|
3349
|
+
align-items: center;
|
|
3350
|
+
gap: 12px;
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
.mu-schema-form-switch-label {
|
|
3354
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
3355
|
+
color: var(--md-sys-color-on-surface);
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
.mu-schema-form-actions {
|
|
3359
|
+
display: flex;
|
|
3360
|
+
gap: 12px;
|
|
3361
|
+
margin-top: 8px;
|
|
3362
|
+
padding-top: 16px;
|
|
3363
|
+
border-top: 1px solid var(--md-sys-color-outline-variant);
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
.mu-schema-form-actions mu-button {
|
|
3367
|
+
flex: 0 0 auto;
|
|
3368
|
+
}
|
|
3369
|
+
|
|
3370
|
+
.mu-schema-form-empty-state {
|
|
3371
|
+
padding: 24px;
|
|
3372
|
+
text-align: center;
|
|
3373
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3374
|
+
background: var(--md-sys-color-surface-container);
|
|
3375
|
+
border-radius: var(--md-sys-shape-corner-medium);
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
/* ============================================================================
|
|
3379
|
+
PROMPT UI COMPONENTS - AI Agent Interface Components
|
|
3380
|
+
============================================================================ */
|
|
3381
|
+
|
|
3382
|
+
/* --- MU-PROMPT-INPUT --- */
|
|
3383
|
+
mu-prompt-input {
|
|
3384
|
+
display: block;
|
|
3385
|
+
font-family: var(--md-sys-typescale-font);
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
.mu-prompt-input-container {
|
|
3389
|
+
display: flex;
|
|
3390
|
+
gap: 8px;
|
|
3391
|
+
background: var(--md-sys-color-surface-container);
|
|
3392
|
+
border: 1px solid var(--md-sys-color-outline-variant);
|
|
3393
|
+
border-radius: var(--md-sys-shape-corner-large);
|
|
3394
|
+
padding: 12px 16px;
|
|
3395
|
+
transition: border-color 0.2s var(--md-sys-motion-easing-standard);
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
.mu-prompt-input-container:focus-within {
|
|
3399
|
+
border-color: var(--md-sys-color-primary);
|
|
3400
|
+
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
.mu-prompt-input-loading {
|
|
3404
|
+
opacity: 0.7;
|
|
3405
|
+
pointer-events: none;
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
.mu-prompt-input-field {
|
|
3409
|
+
flex: 1;
|
|
3410
|
+
border: none;
|
|
3411
|
+
background: transparent;
|
|
3412
|
+
color: var(--md-sys-color-on-surface);
|
|
3413
|
+
font-size: var(--md-sys-typescale-body-large-size);
|
|
3414
|
+
font-family: inherit;
|
|
3415
|
+
resize: none;
|
|
3416
|
+
outline: none;
|
|
3417
|
+
min-height: 24px;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
textarea.mu-prompt-input-field {
|
|
3421
|
+
min-height: 80px;
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
.mu-prompt-input-field::placeholder {
|
|
3425
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
.mu-prompt-input-submit {
|
|
3429
|
+
display: flex;
|
|
3430
|
+
align-items: center;
|
|
3431
|
+
justify-content: center;
|
|
3432
|
+
width: 40px;
|
|
3433
|
+
height: 40px;
|
|
3434
|
+
border: none;
|
|
3435
|
+
border-radius: 50%;
|
|
3436
|
+
background: var(--md-sys-color-primary);
|
|
3437
|
+
color: var(--md-sys-color-on-primary);
|
|
3438
|
+
cursor: pointer;
|
|
3439
|
+
transition: background 0.2s, transform 0.1s;
|
|
3440
|
+
flex-shrink: 0;
|
|
3441
|
+
align-self: flex-end;
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
.mu-prompt-input-submit:hover:not(:disabled) {
|
|
3445
|
+
background: var(--md-sys-color-primary-container);
|
|
3446
|
+
color: var(--md-sys-color-on-primary-container);
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
.mu-prompt-input-submit:active:not(:disabled) {
|
|
3450
|
+
transform: scale(0.95);
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
.mu-prompt-input-submit:disabled {
|
|
3454
|
+
background: var(--md-sys-color-surface-container-high);
|
|
3455
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3456
|
+
cursor: not-allowed;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
.mu-prompt-input-submit svg {
|
|
3460
|
+
width: 20px;
|
|
3461
|
+
height: 20px;
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
.mu-prompt-input-spinner {
|
|
3465
|
+
width: 20px;
|
|
3466
|
+
height: 20px;
|
|
3467
|
+
border: 2px solid transparent;
|
|
3468
|
+
border-top-color: currentColor;
|
|
3469
|
+
border-radius: 50%;
|
|
3470
|
+
animation: mu-prompt-spin 0.8s linear infinite;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
@keyframes mu-prompt-spin {
|
|
3474
|
+
to {
|
|
3475
|
+
transform: rotate(360deg);
|
|
3476
|
+
}
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
/* --- MU-CODE-BLOCK --- */
|
|
3480
|
+
mu-code-block {
|
|
3481
|
+
display: block;
|
|
3482
|
+
margin: 12px 0;
|
|
3483
|
+
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3486
|
+
.mu-code-block-container {
|
|
3487
|
+
background: var(--md-sys-color-surface-container-highest);
|
|
3488
|
+
border-radius: var(--md-sys-shape-corner-medium);
|
|
3489
|
+
overflow: hidden;
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
.mu-code-block-header {
|
|
3493
|
+
display: flex;
|
|
3494
|
+
justify-content: space-between;
|
|
3495
|
+
align-items: center;
|
|
3496
|
+
padding: 8px 12px;
|
|
3497
|
+
background: var(--md-sys-color-surface-container-high);
|
|
3498
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
.mu-code-block-language {
|
|
3502
|
+
font-size: 12px;
|
|
3503
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3504
|
+
text-transform: uppercase;
|
|
3505
|
+
font-weight: 500;
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
.mu-code-block-filename {
|
|
3509
|
+
font-size: 12px;
|
|
3510
|
+
color: var(--md-sys-color-on-surface);
|
|
3511
|
+
}
|
|
3512
|
+
|
|
3513
|
+
.mu-code-block-copy-btn {
|
|
3514
|
+
font-size: 12px;
|
|
3515
|
+
padding: 4px 8px;
|
|
3516
|
+
border: none;
|
|
3517
|
+
border-radius: 4px;
|
|
3518
|
+
background: transparent;
|
|
3519
|
+
color: var(--md-sys-color-primary);
|
|
3520
|
+
cursor: pointer;
|
|
3521
|
+
transition: background 0.2s;
|
|
3522
|
+
}
|
|
3523
|
+
|
|
3524
|
+
.mu-code-block-copy-btn:hover {
|
|
3525
|
+
background: var(--md-sys-color-primary-container);
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
.mu-code-block-pre {
|
|
3529
|
+
margin: 0;
|
|
3530
|
+
padding: 16px;
|
|
3531
|
+
overflow-x: auto;
|
|
3532
|
+
font-size: 13px;
|
|
3533
|
+
line-height: 1.5;
|
|
3534
|
+
color: var(--md-sys-color-on-surface);
|
|
3535
|
+
}
|
|
3536
|
+
|
|
3537
|
+
.mu-code-block-pre code {
|
|
3538
|
+
font-family: inherit;
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
/* --- MU-AGENT-TOOLBAR --- */
|
|
3542
|
+
mu-agent-toolbar {
|
|
3543
|
+
display: flex;
|
|
3544
|
+
gap: 4px;
|
|
3545
|
+
margin-top: 8px;
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
.mu-agent-toolbar-btn {
|
|
3549
|
+
display: flex;
|
|
3550
|
+
align-items: center;
|
|
3551
|
+
justify-content: center;
|
|
3552
|
+
width: 32px;
|
|
3553
|
+
height: 32px;
|
|
3554
|
+
border: none;
|
|
3555
|
+
border-radius: 8px;
|
|
3556
|
+
background: transparent;
|
|
3557
|
+
cursor: pointer;
|
|
3558
|
+
font-size: 16px;
|
|
3559
|
+
opacity: 0.6;
|
|
3560
|
+
transition: opacity 0.2s, background 0.2s;
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
.mu-agent-toolbar-btn:hover {
|
|
3564
|
+
opacity: 1;
|
|
3565
|
+
background: var(--md-sys-color-surface-container-high);
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
.mu-agent-toolbar-btn:active {
|
|
3569
|
+
transform: scale(0.95);
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
/* --- MU-MESSAGE-BUBBLE --- */
|
|
3573
|
+
mu-message-bubble {
|
|
3574
|
+
display: block;
|
|
3575
|
+
margin: 16px 0;
|
|
3576
|
+
font-family: var(--md-sys-typescale-font);
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3579
|
+
.mu-message-bubble-message {
|
|
3580
|
+
display: flex;
|
|
3581
|
+
gap: 12px;
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
.mu-message-bubble-message.mu-message-bubble-user {
|
|
3585
|
+
flex-direction: row-reverse;
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
.mu-message-bubble-avatar {
|
|
3589
|
+
width: 36px;
|
|
3590
|
+
height: 36px;
|
|
3591
|
+
border-radius: 50%;
|
|
3592
|
+
display: flex;
|
|
3593
|
+
align-items: center;
|
|
3594
|
+
justify-content: center;
|
|
3595
|
+
font-size: 18px;
|
|
3596
|
+
flex-shrink: 0;
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
.mu-message-bubble-avatar.mu-message-bubble-user {
|
|
3600
|
+
background: var(--md-sys-color-primary-container);
|
|
3601
|
+
color: var(--md-sys-color-on-primary-container);
|
|
3602
|
+
}
|
|
3603
|
+
|
|
3604
|
+
.mu-message-bubble-avatar.mu-message-bubble-assistant {
|
|
3605
|
+
background: var(--md-sys-color-secondary-container);
|
|
3606
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
.mu-message-bubble-avatar img {
|
|
3610
|
+
width: 100%;
|
|
3611
|
+
height: 100%;
|
|
3612
|
+
border-radius: 50%;
|
|
3613
|
+
object-fit: cover;
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3616
|
+
.mu-message-bubble-content {
|
|
3617
|
+
flex: 1;
|
|
3618
|
+
max-width: 80%;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
.mu-message-bubble-header {
|
|
3622
|
+
display: flex;
|
|
3623
|
+
gap: 8px;
|
|
3624
|
+
align-items: center;
|
|
3625
|
+
margin-bottom: 4px;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
.mu-message-bubble-header.mu-message-bubble-user {
|
|
3629
|
+
flex-direction: row-reverse;
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
.mu-message-bubble-name {
|
|
3633
|
+
font-size: var(--md-sys-typescale-label-medium-size);
|
|
3634
|
+
font-weight: 600;
|
|
3635
|
+
color: var(--md-sys-color-on-surface);
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
.mu-message-bubble-timestamp {
|
|
3639
|
+
font-size: var(--md-sys-typescale-label-small-size);
|
|
3640
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
.mu-message-bubble-bubble {
|
|
3644
|
+
padding: 12px 16px;
|
|
3645
|
+
line-height: 1.5;
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
.mu-message-bubble-bubble.mu-message-bubble-user {
|
|
3649
|
+
border-radius: 16px 16px 4px 16px;
|
|
3650
|
+
background: var(--md-sys-color-primary);
|
|
3651
|
+
color: var(--md-sys-color-on-primary);
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
.mu-message-bubble-bubble.mu-message-bubble-assistant {
|
|
3655
|
+
border-radius: 16px 16px 16px 4px;
|
|
3656
|
+
background: var(--md-sys-color-surface-container);
|
|
3657
|
+
color: var(--md-sys-color-on-surface);
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
/* ============================================================================
|
|
3661
|
+
SOTA 2026: PERFORMANCE OPTIMIZATIONS
|
|
3662
|
+
These optimizations benefit ALL framework users by default
|
|
3663
|
+
============================================================================ */
|
|
3664
|
+
|
|
3665
|
+
/* content-visibility: Skip rendering off-screen examples for faster initial paint */
|
|
3666
|
+
mu-example {
|
|
3667
|
+
content-visibility: auto;
|
|
3668
|
+
contain-intrinsic-size: auto 300px;
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
/* CSS contain: Limit repaint scope for modals/dialogs */
|
|
3672
|
+
mu-modal,
|
|
3673
|
+
mu-confirm,
|
|
3674
|
+
dialog.mu-modal__dialog,
|
|
3675
|
+
dialog.mu-confirm__dialog {
|
|
3676
|
+
contain: layout style paint;
|
|
3677
|
+
}
|