@yewdiel21/motion-kit 0.0.0-stage → 0.9.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.
Files changed (391) hide show
  1. package/NOTICE +38 -0
  2. package/README.md +80 -2
  3. package/bin/motion-kit.mjs +242 -0
  4. package/css.d.ts +2 -0
  5. package/dist/auto/index.d.ts +63 -0
  6. package/dist/auto/index.js +207 -0
  7. package/dist/auto/index.js.map +1 -0
  8. package/dist/chunk-2BQGFOA7.js +177 -0
  9. package/dist/chunk-2BQGFOA7.js.map +1 -0
  10. package/dist/chunk-34XYOXHG.js +2374 -0
  11. package/dist/chunk-34XYOXHG.js.map +1 -0
  12. package/dist/chunk-6OJAP6ZL.js +832 -0
  13. package/dist/chunk-6OJAP6ZL.js.map +1 -0
  14. package/dist/chunk-ABNRDDO7.js +28 -0
  15. package/dist/chunk-ABNRDDO7.js.map +1 -0
  16. package/dist/chunk-FS2HJVVY.js +3320 -0
  17. package/dist/chunk-FS2HJVVY.js.map +1 -0
  18. package/dist/chunk-J27KH2A2.js +157 -0
  19. package/dist/chunk-J27KH2A2.js.map +1 -0
  20. package/dist/chunk-KLY5BRRI.js +18 -0
  21. package/dist/chunk-KLY5BRRI.js.map +1 -0
  22. package/dist/chunk-Q4LVFNLN.js +1617 -0
  23. package/dist/chunk-Q4LVFNLN.js.map +1 -0
  24. package/dist/chunk-RFDIZYFX.js +304 -0
  25. package/dist/chunk-RFDIZYFX.js.map +1 -0
  26. package/dist/chunk-TGV27ZWM.js +17 -0
  27. package/dist/chunk-TGV27ZWM.js.map +1 -0
  28. package/dist/confetti-BSX1CLLV.d.ts +41 -0
  29. package/dist/css/components/chat-background.css +87 -0
  30. package/dist/css/components/chat.css +237 -0
  31. package/dist/css/components/cursor.css +178 -0
  32. package/dist/css/components/dialog.css +259 -0
  33. package/dist/css/components/island.css +301 -0
  34. package/dist/css/components/menu.css +105 -0
  35. package/dist/css/components/nav.css +1054 -0
  36. package/dist/css/components/steps.css +50 -0
  37. package/dist/css/components/theme-picker.css +115 -0
  38. package/dist/css/components/toast.css +115 -0
  39. package/dist/css/controls.css +950 -0
  40. package/dist/css/effects.css +587 -0
  41. package/dist/css/fonts.css +3 -0
  42. package/dist/css/themes/black-green.css +126 -0
  43. package/dist/css/themes/black.css +126 -0
  44. package/dist/css/themes/blue.css +126 -0
  45. package/dist/css/themes/brown.css +126 -0
  46. package/dist/css/themes/cold-blue.css +126 -0
  47. package/dist/css/themes/funny.css +126 -0
  48. package/dist/css/themes/gray.css +126 -0
  49. package/dist/css/themes/green.css +126 -0
  50. package/dist/css/themes/modern-1.css +126 -0
  51. package/dist/css/themes/neogreen.css +126 -0
  52. package/dist/css/themes/new.css +126 -0
  53. package/dist/css/themes/new2.css +126 -0
  54. package/dist/css/themes/oled.css +126 -0
  55. package/dist/css/themes/orange.css +126 -0
  56. package/dist/css/themes/pastel-pink.css +126 -0
  57. package/dist/css/themes/pink.css +126 -0
  58. package/dist/css/themes/purple.css +126 -0
  59. package/dist/css/themes/red.css +126 -0
  60. package/dist/css/themes/super-blue.css +126 -0
  61. package/dist/css/themes.css +2431 -0
  62. package/dist/css/tokens.css +452 -0
  63. package/dist/elements/index.d.ts +183 -0
  64. package/dist/elements/index.js +472 -0
  65. package/dist/elements/index.js.map +1 -0
  66. package/dist/engine-CUr9QijM.d.ts +46 -0
  67. package/dist/gl/index.d.ts +61 -0
  68. package/dist/gl/index.js +18 -0
  69. package/dist/gl/index.js.map +1 -0
  70. package/dist/index.css +5296 -0
  71. package/dist/index.d.ts +440 -0
  72. package/dist/index.js +390 -0
  73. package/dist/index.js.map +1 -0
  74. package/dist/react/index.d.ts +476 -0
  75. package/dist/react/index.js +969 -0
  76. package/dist/react/index.js.map +1 -0
  77. package/dist/reduced-BM4Ls0g5.d.ts +566 -0
  78. package/dist/reveal-WFUWDrei.d.ts +416 -0
  79. package/dist/store-Bqy_obnD.d.ts +195 -0
  80. package/dist/theme/generate.d.ts +18 -0
  81. package/dist/theme/generate.js +64 -0
  82. package/dist/theme/generate.js.map +1 -0
  83. package/dist/theme/index.d.ts +17 -0
  84. package/dist/theme/index.js +32 -0
  85. package/dist/theme/index.js.map +1 -0
  86. package/dist/theme-BFMoCzi6.d.ts +158 -0
  87. package/dist/types-BkS_raL8.d.ts +7 -0
  88. package/package.json +114 -3
  89. package/registry.json +469 -0
  90. package/skills/motion-kit/SKILL.md +189 -0
  91. package/skills/motion-kit/reference/components.md +86 -0
  92. package/skills/motion-kit/reference/design.md +92 -0
  93. package/skills/motion-kit/reference/recipes.md +172 -0
  94. package/src/auto/auto-init.ts +151 -0
  95. package/src/auto/index.ts +3 -0
  96. package/src/auto/parse-options.ts +68 -0
  97. package/src/components/chat/README.md +90 -0
  98. package/src/components/chat/chat.css +236 -0
  99. package/src/components/chat/element.ts +98 -0
  100. package/src/components/chat/engine.ts +295 -0
  101. package/src/components/chat/react.tsx +196 -0
  102. package/src/components/chat-background/README.md +50 -0
  103. package/src/components/chat-background/audio.ts +56 -0
  104. package/src/components/chat-background/chat-background.css +86 -0
  105. package/src/components/chat-background/element.ts +31 -0
  106. package/src/components/chat-background/engine.ts +108 -0
  107. package/src/components/chat-background/react.tsx +36 -0
  108. package/src/components/cursor/README.md +53 -0
  109. package/src/components/cursor/cursor.css +177 -0
  110. package/src/components/cursor/element.ts +23 -0
  111. package/src/components/cursor/engine.ts +254 -0
  112. package/src/components/cursor/react.tsx +26 -0
  113. package/src/components/dialog/README.md +106 -0
  114. package/src/components/dialog/dialog.css +258 -0
  115. package/src/components/dialog/element.ts +118 -0
  116. package/src/components/dialog/engine.ts +432 -0
  117. package/src/components/dialog/react.tsx +200 -0
  118. package/src/components/icon.tsx +10 -0
  119. package/src/components/icons.ts +24 -0
  120. package/src/components/island/README.md +91 -0
  121. package/src/components/island/element.ts +45 -0
  122. package/src/components/island/engine.ts +200 -0
  123. package/src/components/island/island.css +300 -0
  124. package/src/components/island/react.tsx +115 -0
  125. package/src/components/menu/README.md +67 -0
  126. package/src/components/menu/element.ts +55 -0
  127. package/src/components/menu/engine.ts +142 -0
  128. package/src/components/menu/menu.css +104 -0
  129. package/src/components/menu/react.tsx +82 -0
  130. package/src/components/nav/README.md +85 -0
  131. package/src/components/nav/element.ts +39 -0
  132. package/src/components/nav/engine.ts +164 -0
  133. package/src/components/nav/nav.css +1053 -0
  134. package/src/components/nav/react.tsx +90 -0
  135. package/src/components/steps/README.md +70 -0
  136. package/src/components/steps/element.ts +43 -0
  137. package/src/components/steps/engine.ts +185 -0
  138. package/src/components/steps/react.tsx +91 -0
  139. package/src/components/steps/steps.css +49 -0
  140. package/src/components/theme-picker/README.md +57 -0
  141. package/src/components/theme-picker/element.ts +20 -0
  142. package/src/components/theme-picker/engine.ts +91 -0
  143. package/src/components/theme-picker/react.tsx +31 -0
  144. package/src/components/theme-picker/theme-picker.css +114 -0
  145. package/src/components/toast/README.md +60 -0
  146. package/src/components/toast/element.ts +25 -0
  147. package/src/components/toast/engine.ts +483 -0
  148. package/src/components/toast/react.tsx +22 -0
  149. package/src/components/toast/store.ts +122 -0
  150. package/src/components/toast/toast.css +114 -0
  151. package/src/core/channels.ts +165 -0
  152. package/src/core/curves.ts +35 -0
  153. package/src/core/frame.ts +12 -0
  154. package/src/core/gsap.ts +65 -0
  155. package/src/core/loop.ts +44 -0
  156. package/src/core/math.ts +9 -0
  157. package/src/core/physics-spring.ts +59 -0
  158. package/src/core/pointer.ts +63 -0
  159. package/src/core/reduced.ts +21 -0
  160. package/src/core/scope.ts +70 -0
  161. package/src/core/scroll-track.ts +106 -0
  162. package/src/core/split.ts +68 -0
  163. package/src/core/spring.ts +22 -0
  164. package/src/core/styles.ts +31 -0
  165. package/src/core/timing.ts +204 -0
  166. package/src/core/types.ts +20 -0
  167. package/src/core/visible.ts +19 -0
  168. package/src/css/base.css +142 -0
  169. package/src/css/controls/README.md +122 -0
  170. package/src/css/controls/burger.css +67 -0
  171. package/src/css/controls/button.css +226 -0
  172. package/src/css/controls/checkbox.css +53 -0
  173. package/src/css/controls/chip.css +85 -0
  174. package/src/css/controls/field.css +124 -0
  175. package/src/css/controls/glass.css +220 -0
  176. package/src/css/controls/icon.css +26 -0
  177. package/src/css/controls/segmented.css +60 -0
  178. package/src/css/controls/switch.css +72 -0
  179. package/src/css/default-theme.css +123 -0
  180. package/src/css/effects/README.md +134 -0
  181. package/src/css/effects/anim.css +224 -0
  182. package/src/css/effects/fade.css +15 -0
  183. package/src/css/effects/float.css +64 -0
  184. package/src/css/effects/frost.css +62 -0
  185. package/src/css/effects/grain.css +58 -0
  186. package/src/css/effects/loading.css +60 -0
  187. package/src/css/effects/success.css +22 -0
  188. package/src/css/effects/text.css +67 -0
  189. package/src/css/fonts.css +3 -0
  190. package/src/css/states.css +51 -0
  191. package/src/css/themes/black-green.css +126 -0
  192. package/src/css/themes/black.css +126 -0
  193. package/src/css/themes/blue.css +126 -0
  194. package/src/css/themes/brown.css +126 -0
  195. package/src/css/themes/cold-blue.css +126 -0
  196. package/src/css/themes/funny.css +126 -0
  197. package/src/css/themes/gray.css +126 -0
  198. package/src/css/themes/green.css +126 -0
  199. package/src/css/themes/modern-1.css +126 -0
  200. package/src/css/themes/neogreen.css +126 -0
  201. package/src/css/themes/new.css +126 -0
  202. package/src/css/themes/new2.css +126 -0
  203. package/src/css/themes/oled.css +126 -0
  204. package/src/css/themes/orange.css +126 -0
  205. package/src/css/themes/pastel-pink.css +126 -0
  206. package/src/css/themes/pink.css +126 -0
  207. package/src/css/themes/purple.css +126 -0
  208. package/src/css/themes/red.css +126 -0
  209. package/src/css/themes/super-blue.css +126 -0
  210. package/src/css/tokens.css +182 -0
  211. package/src/elements/base.ts +76 -0
  212. package/src/elements/index.ts +48 -0
  213. package/src/gl/index.ts +15 -0
  214. package/src/gl/liquid-blend/README.md +23 -0
  215. package/src/gl/liquid-blend/create-liquid-blend.ts +7 -0
  216. package/src/gl/liquid-blend/shader.ts +9 -0
  217. package/src/gl/matcap/README.md +23 -0
  218. package/src/gl/matcap/create-matcap.ts +7 -0
  219. package/src/gl/matcap/shader.ts +16 -0
  220. package/src/gl/particle-hero/README.md +41 -0
  221. package/src/gl/particle-hero/create-particle-hero.ts +544 -0
  222. package/src/gl/particle-hero/particle-hero.css +19 -0
  223. package/src/gl/particle-hero/shaders.ts +84 -0
  224. package/src/gl/shader-blur/README.md +23 -0
  225. package/src/gl/shader-blur/create-shader-blur.ts +7 -0
  226. package/src/gl/shader-blur/shader.ts +11 -0
  227. package/src/gl/shader-grain/README.md +23 -0
  228. package/src/gl/shader-grain/create-shader-grain.ts +7 -0
  229. package/src/gl/shader-grain/shader.ts +6 -0
  230. package/src/gl/shared/create-shader-effect.ts +186 -0
  231. package/src/gl/shared/shader.css +3 -0
  232. package/src/gl/shared/shaders.ts +30 -0
  233. package/src/index.ts +177 -0
  234. package/src/motion/anchor.ts +45 -0
  235. package/src/motion/chat.ts +97 -0
  236. package/src/motion/confetti.ts +130 -0
  237. package/src/motion/count.ts +95 -0
  238. package/src/motion/details.ts +70 -0
  239. package/src/motion/drag-dismiss.ts +231 -0
  240. package/src/motion/effects.ts +81 -0
  241. package/src/motion/entrances.ts +27 -0
  242. package/src/motion/floating.ts +389 -0
  243. package/src/motion/flow.ts +115 -0
  244. package/src/motion/indicator.ts +44 -0
  245. package/src/motion/layout.ts +39 -0
  246. package/src/motion/liquid.ts +227 -0
  247. package/src/motion/morph.ts +540 -0
  248. package/src/motion/reveal.ts +112 -0
  249. package/src/motion/sheet.ts +65 -0
  250. package/src/motion/surface.ts +108 -0
  251. package/src/react/animated-number.tsx +30 -0
  252. package/src/react/flip-group.tsx +44 -0
  253. package/src/react/frost.tsx +33 -0
  254. package/src/react/index.ts +80 -0
  255. package/src/react/slot-text.tsx +44 -0
  256. package/src/react/theme-provider.tsx +42 -0
  257. package/src/react/use-card-dock.ts +9 -0
  258. package/src/react/use-cascade.ts +9 -0
  259. package/src/react/use-contrast.ts +9 -0
  260. package/src/react/use-counter.ts +8 -0
  261. package/src/react/use-curved-carousel.ts +10 -0
  262. package/src/react/use-depth-grid.ts +9 -0
  263. package/src/react/use-details.ts +7 -0
  264. package/src/react/use-dock-pill.ts +10 -0
  265. package/src/react/use-drag-ruler.ts +10 -0
  266. package/src/react/use-fill-text.ts +9 -0
  267. package/src/react/use-fit-text.ts +8 -0
  268. package/src/react/use-flow.ts +8 -0
  269. package/src/react/use-frame-zoom.ts +9 -0
  270. package/src/react/use-infinite-reel.ts +8 -0
  271. package/src/react/use-letters.ts +9 -0
  272. package/src/react/use-liquid-blend.ts +8 -0
  273. package/src/react/use-marquee.ts +9 -0
  274. package/src/react/use-mask-text.ts +9 -0
  275. package/src/react/use-matcap.ts +8 -0
  276. package/src/react/use-parallax.ts +9 -0
  277. package/src/react/use-particle-hero.ts +9 -0
  278. package/src/react/use-pile.ts +8 -0
  279. package/src/react/use-pop.ts +8 -0
  280. package/src/react/use-radial-menu.ts +10 -0
  281. package/src/react/use-recipe.ts +38 -0
  282. package/src/react/use-reflow.ts +9 -0
  283. package/src/react/use-repel-bento.ts +8 -0
  284. package/src/react/use-reveal.ts +8 -0
  285. package/src/react/use-rotator.ts +10 -0
  286. package/src/react/use-shader-blur.ts +8 -0
  287. package/src/react/use-shader-grain.ts +8 -0
  288. package/src/react/use-slot-text.ts +17 -0
  289. package/src/react/use-snap-strip.ts +9 -0
  290. package/src/react/use-sortable.ts +14 -0
  291. package/src/react/use-spring-cards.ts +8 -0
  292. package/src/react/use-stretch-footer.ts +20 -0
  293. package/src/react/use-tabs.ts +10 -0
  294. package/src/react/use-text-roll.ts +9 -0
  295. package/src/react/use-ticket-menu.ts +15 -0
  296. package/src/react/use-words.ts +8 -0
  297. package/src/recipes/card-dock/README.md +36 -0
  298. package/src/recipes/card-dock/card-dock.css +178 -0
  299. package/src/recipes/card-dock/create-card-dock.ts +97 -0
  300. package/src/recipes/cascade/README.md +33 -0
  301. package/src/recipes/cascade/create-cascade.ts +111 -0
  302. package/src/recipes/contrast/README.md +29 -0
  303. package/src/recipes/contrast/create-contrast.ts +68 -0
  304. package/src/recipes/counter/README.md +42 -0
  305. package/src/recipes/counter/create-counter.ts +84 -0
  306. package/src/recipes/curved-carousel/README.md +50 -0
  307. package/src/recipes/curved-carousel/carousel-math.ts +20 -0
  308. package/src/recipes/curved-carousel/create-curved-carousel.ts +257 -0
  309. package/src/recipes/curved-carousel/curved-carousel.css +50 -0
  310. package/src/recipes/depth-grid/README.md +30 -0
  311. package/src/recipes/depth-grid/create-depth-grid.ts +120 -0
  312. package/src/recipes/details/README.md +31 -0
  313. package/src/recipes/details/create-details.ts +27 -0
  314. package/src/recipes/dock-pill/README.md +23 -0
  315. package/src/recipes/dock-pill/create-dock-pill.ts +68 -0
  316. package/src/recipes/dock-pill/dock-pill.css +5 -0
  317. package/src/recipes/drag-ruler/README.md +21 -0
  318. package/src/recipes/drag-ruler/create-drag-ruler.ts +95 -0
  319. package/src/recipes/drag-ruler/drag-ruler.css +16 -0
  320. package/src/recipes/fill-text/README.md +27 -0
  321. package/src/recipes/fill-text/create-fill-text.ts +93 -0
  322. package/src/recipes/fit-text/README.md +37 -0
  323. package/src/recipes/fit-text/create-fit-text.ts +55 -0
  324. package/src/recipes/fit-text/fit-text.css +6 -0
  325. package/src/recipes/flow/README.md +46 -0
  326. package/src/recipes/flow/create-flow.ts +55 -0
  327. package/src/recipes/frame-zoom/README.md +29 -0
  328. package/src/recipes/frame-zoom/create-frame-zoom.ts +91 -0
  329. package/src/recipes/infinite-reel/README.md +23 -0
  330. package/src/recipes/infinite-reel/create-infinite-reel.ts +140 -0
  331. package/src/recipes/infinite-reel/infinite-reel.css +8 -0
  332. package/src/recipes/letters/README.md +30 -0
  333. package/src/recipes/letters/create-letters.ts +113 -0
  334. package/src/recipes/marquee/README.md +32 -0
  335. package/src/recipes/marquee/create-marquee.ts +74 -0
  336. package/src/recipes/marquee/marquee.css +41 -0
  337. package/src/recipes/mask-text/README.md +39 -0
  338. package/src/recipes/mask-text/create-mask-text.ts +134 -0
  339. package/src/recipes/parallax/README.md +31 -0
  340. package/src/recipes/parallax/create-parallax.ts +74 -0
  341. package/src/recipes/pile/README.md +48 -0
  342. package/src/recipes/pile/create-pile.ts +50 -0
  343. package/src/recipes/pile/pile-math.ts +27 -0
  344. package/src/recipes/pile/pile.css +63 -0
  345. package/src/recipes/pill/README.md +30 -0
  346. package/src/recipes/pill/pill.css +48 -0
  347. package/src/recipes/pop/README.md +36 -0
  348. package/src/recipes/pop/create-pop.ts +52 -0
  349. package/src/recipes/radial-menu/README.md +44 -0
  350. package/src/recipes/radial-menu/create-radial-menu.ts +96 -0
  351. package/src/recipes/radial-menu/radial-menu.css +45 -0
  352. package/src/recipes/reflow/README.md +47 -0
  353. package/src/recipes/reflow/create-reflow.ts +49 -0
  354. package/src/recipes/repel-bento/README.md +21 -0
  355. package/src/recipes/repel-bento/create-repel-bento.ts +65 -0
  356. package/src/recipes/repel-bento/repel-bento.css +3 -0
  357. package/src/recipes/reveal/README.md +36 -0
  358. package/src/recipes/reveal/create-reveal.ts +48 -0
  359. package/src/recipes/rotator/README.md +21 -0
  360. package/src/recipes/rotator/create-rotator.ts +66 -0
  361. package/src/recipes/rotator/rotator.css +3 -0
  362. package/src/recipes/slot-text/README.md +44 -0
  363. package/src/recipes/slot-text/create-slot-text.ts +244 -0
  364. package/src/recipes/slot-text/slot-text.css +42 -0
  365. package/src/recipes/snap-strip/README.md +31 -0
  366. package/src/recipes/snap-strip/create-snap-strip.ts +133 -0
  367. package/src/recipes/snap-strip/snap-strip.css +23 -0
  368. package/src/recipes/sortable/README.md +88 -0
  369. package/src/recipes/sortable/create-sortable.ts +863 -0
  370. package/src/recipes/sortable/sortable.css +40 -0
  371. package/src/recipes/spring-cards/README.md +48 -0
  372. package/src/recipes/spring-cards/create-spring-cards.ts +140 -0
  373. package/src/recipes/spring-cards/spring-cards.css +23 -0
  374. package/src/recipes/stretch-footer/README.md +44 -0
  375. package/src/recipes/stretch-footer/create-stretch-footer.ts +69 -0
  376. package/src/recipes/stretch-footer/stretch-footer.css +28 -0
  377. package/src/recipes/tabs/README.md +39 -0
  378. package/src/recipes/tabs/create-tabs.ts +91 -0
  379. package/src/recipes/tabs/tabs.css +19 -0
  380. package/src/recipes/text-roll/README.md +35 -0
  381. package/src/recipes/text-roll/create-text-roll.ts +137 -0
  382. package/src/recipes/text-roll/text-roll.css +21 -0
  383. package/src/recipes/ticket-menu/README.md +24 -0
  384. package/src/recipes/ticket-menu/create-ticket-menu.ts +6 -0
  385. package/src/recipes/words/README.md +43 -0
  386. package/src/recipes/words/create-words.ts +114 -0
  387. package/src/theme/css-format.ts +32 -0
  388. package/src/theme/generate.ts +72 -0
  389. package/src/theme/index.ts +15 -0
  390. package/src/theme/presets.ts +79 -0
  391. package/src/theme/theme.ts +119 -0
@@ -0,0 +1,1053 @@
1
+ /*
2
+ * nav — Stepbro's navigation (Money and Tasks): seven desktop styles and one
3
+ * mobile bar under 680 px, inside an app shell. Ported from Stepbro's
4
+ * `.app-nav.style-N` rules: .app-container → .mk-shell, .app-view → .mk-shell__view,
5
+ * .nav-button → .mk-nav__button, [active=true] → [aria-current="page"],
6
+ * variant-1 → .mk-nav--accent.
7
+ */
8
+
9
+ /* Shell: the view and the nav side by side (the nav first), stacked on phones. */
10
+ .mk-shell {
11
+ position: relative;
12
+ display: flex;
13
+ flex-direction: row;
14
+ flex-grow: 1;
15
+ min-height: 0;
16
+ overflow: hidden;
17
+ background: var(--md-sys-color-background);
18
+ color: var(--md-sys-color-on-background);
19
+ font-family: var(--mk-font);
20
+ }
21
+
22
+ .mk-shell__view {
23
+ display: flex;
24
+ flex-direction: column;
25
+ flex-grow: 1;
26
+ min-width: 0;
27
+ padding: 16px;
28
+ padding-top: max(16px, env(safe-area-inset-top));
29
+ gap: 8px;
30
+ overflow: auto;
31
+ }
32
+
33
+ .mk-shell__view:has(> .mk-shell__content) {
34
+ padding: 0;
35
+ gap: 0;
36
+ }
37
+
38
+ .mk-shell__content {
39
+ display: flex;
40
+ flex-grow: 1;
41
+ flex-direction: column;
42
+ gap: 8px;
43
+ padding: 16px;
44
+ box-sizing: border-box;
45
+ }
46
+
47
+ .mk-shell__header {
48
+ display: flex;
49
+ justify-content: space-between;
50
+ align-items: center;
51
+ }
52
+
53
+ .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
54
+ padding: 16px;
55
+ }
56
+
57
+ .mk-shell__title {
58
+ margin: 0;
59
+ font-family: var(--mk-font);
60
+ font-weight: 500;
61
+ font-size: var(--md-sys-typescale-display-medium-size);
62
+ line-height: 1.1;
63
+ }
64
+
65
+ /* Nav parts shared by every style. */
66
+ .mk-nav {
67
+ box-sizing: border-box;
68
+ font-family: var(--mk-font);
69
+ }
70
+
71
+ .mk-nav__buttons,
72
+ .mk-nav__actions {
73
+ margin: 0;
74
+ padding: 0;
75
+ }
76
+
77
+ .mk-nav__button {
78
+ position: relative;
79
+ box-sizing: border-box;
80
+ margin: 0;
81
+ border: none;
82
+ color: inherit;
83
+ font: inherit;
84
+ text-decoration: none;
85
+ -webkit-tap-highlight-color: transparent;
86
+ -webkit-user-select: none;
87
+ user-select: none;
88
+ }
89
+
90
+ .mk-nav__button:focus-visible {
91
+ outline: 2px solid var(--mk-accent);
92
+ outline-offset: 2px;
93
+ }
94
+
95
+ .mk-nav__icon {
96
+ display: inline-flex;
97
+ flex: none;
98
+ }
99
+
100
+ .mk-nav__icon:is(svg),
101
+ .mk-nav__icon > svg {
102
+ width: var(--mk-nav-icon-size, 24px);
103
+ height: var(--mk-nav-icon-size, 24px);
104
+ }
105
+
106
+ .mk-nav__options {
107
+ display: none;
108
+ }
109
+
110
+ /* The current page's icon fills (Material Symbols): the font axis directly, or .mk-icon's --mk-icon-fill. */
111
+ @property --mk-icon-fill {
112
+ syntax: '<number>';
113
+ inherits: true;
114
+ initial-value: 0;
115
+ }
116
+
117
+ .mk-nav .mk-nav__button[aria-current='page'] {
118
+ --mk-icon-fill: 1;
119
+ }
120
+
121
+ @keyframes mk-nav-icon {
122
+ from {
123
+ font-variation-settings: 'FILL' 0;
124
+ --mk-icon-fill: 0;
125
+ }
126
+
127
+ to {
128
+ font-variation-settings: 'FILL' 1;
129
+ --mk-icon-fill: 1;
130
+ }
131
+ }
132
+
133
+ @media only screen and (min-width: 680px) {
134
+ .mk-shell > .mk-nav {
135
+ order: -1;
136
+ }
137
+
138
+ /* 1 · Clásica: a bordered sidebar, a filled pill for the current page. */
139
+ .mk-shell:has(> .mk-nav--clasica) > .mk-shell__view {
140
+ border-right: 1px solid var(--md-sys-color-surface-container);
141
+ }
142
+
143
+ .mk-nav--clasica {
144
+ display: flex;
145
+ flex-direction: column;
146
+ min-width: 270px;
147
+ padding: 16px;
148
+ border-right: 1px solid var(--md-sys-color-surface-container);
149
+ z-index: 1;
150
+ }
151
+
152
+ .mk-nav--clasica .mk-nav__buttons {
153
+ display: flex;
154
+ flex-direction: column;
155
+ gap: 4px;
156
+ }
157
+
158
+ .mk-nav--clasica .mk-nav__actions {
159
+ margin-top: auto;
160
+ display: flex;
161
+ flex-direction: column;
162
+ }
163
+
164
+ .mk-nav--clasica .mk-nav__options {
165
+ display: flex;
166
+ flex-direction: column;
167
+ gap: 4px;
168
+ margin-top: 24px;
169
+ }
170
+
171
+ .mk-nav--clasica .mk-nav__label {
172
+ display: flex;
173
+ align-items: center;
174
+ height: 40px;
175
+ padding: 0 16px;
176
+ opacity: 0.6;
177
+ user-select: none;
178
+ font-size: 16px;
179
+ font-weight: 500;
180
+ }
181
+
182
+ .mk-nav--clasica .mk-nav__button {
183
+ display: flex;
184
+ align-items: center;
185
+ gap: 8px;
186
+ background: transparent;
187
+ color: var(--md-sys-color-outline);
188
+ border-radius: 12px;
189
+ height: 40px;
190
+ padding: 8px 16px;
191
+ font-size: 16px;
192
+ font-weight: 500;
193
+ cursor: pointer;
194
+ transition:
195
+ 0.15s color,
196
+ 0.15s background;
197
+ }
198
+
199
+ .mk-nav--clasica .mk-nav__button:hover {
200
+ color: var(--md-sys-color-primary);
201
+ }
202
+
203
+ .mk-nav--clasica .mk-nav__button[aria-current='page'] {
204
+ background: var(--md-sys-color-surface-container-high);
205
+ color: var(--md-sys-color-primary);
206
+ animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
207
+ font-variation-settings: 'FILL' 1;
208
+ }
209
+
210
+ .mk-nav--clasica.mk-nav--accent .mk-nav__button[aria-current='page'] {
211
+ background: var(--md-sys-color-primary-container);
212
+ color: var(--md-sys-color-on-primary-container);
213
+ box-shadow: 0 0 32px -10px var(--md-sys-color-primary-container);
214
+ }
215
+
216
+ .mk-nav--clasica .mk-nav__button.mk-nav__button--first {
217
+ color: var(--md-sys-color-on-background);
218
+ margin-bottom: 32px;
219
+ }
220
+
221
+ .mk-nav--clasica .mk-nav__button--first .mk-nav__name {
222
+ display: flex;
223
+ flex-grow: 1;
224
+ }
225
+
226
+ .mk-nav--clasica .mk-nav__button--first::after {
227
+ content: '';
228
+ position: absolute;
229
+ left: -16px;
230
+ right: -16px;
231
+ height: 1px;
232
+ bottom: -17px;
233
+ background: var(--md-sys-color-surface-container);
234
+ }
235
+
236
+ /* 2 · Bonita: centred text pills that widen on hover and when current (spring padding). */
237
+ .mk-nav--bonita {
238
+ display: flex;
239
+ flex-direction: column;
240
+ justify-content: center;
241
+ min-width: 200px;
242
+ padding: 12px 16px;
243
+ z-index: 1;
244
+ }
245
+
246
+ .mk-nav--bonita .mk-nav__buttons {
247
+ display: flex;
248
+ flex-direction: column;
249
+ gap: 4px;
250
+ }
251
+
252
+ .mk-nav--bonita .mk-nav__actions {
253
+ position: absolute;
254
+ bottom: 16px;
255
+ display: flex;
256
+ gap: 8px;
257
+ }
258
+
259
+ .mk-nav--bonita .mk-nav__button {
260
+ display: flex;
261
+ align-items: center;
262
+ gap: 8px;
263
+ background: var(--md-sys-color-surface-container-low);
264
+ color: color-mix(in srgb, var(--md-sys-color-outline), var(--md-sys-color-background) 40%);
265
+ border-radius: 40px;
266
+ max-width: min-content;
267
+ height: 48px;
268
+ padding: 0 24px;
269
+ font-size: 16px;
270
+ font-weight: 500;
271
+ white-space: nowrap;
272
+ cursor: pointer;
273
+ transition:
274
+ 0.15s color,
275
+ 0.15s background,
276
+ 0.3s padding var(--mk-ease-swatch);
277
+ }
278
+
279
+ .mk-nav--bonita .mk-nav__icon {
280
+ display: none;
281
+ }
282
+
283
+ .mk-nav--bonita .mk-nav__button:hover {
284
+ color: var(--md-sys-color-primary);
285
+ padding: 0 26px;
286
+ }
287
+
288
+ .mk-nav--bonita .mk-nav__button[aria-current='page'] {
289
+ background: var(--md-sys-color-surface-container-highest);
290
+ color: var(--md-sys-color-on-background);
291
+ animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
292
+ font-variation-settings: 'FILL' 1;
293
+ padding: 0 32px;
294
+ }
295
+
296
+ .mk-nav--bonita.mk-nav--accent .mk-nav__button[aria-current='page'] {
297
+ background: var(--md-sys-color-primary-container);
298
+ color: var(--md-sys-color-on-primary-container);
299
+ box-shadow: 0 0 32px -10px var(--md-sys-color-primary-container);
300
+ }
301
+
302
+ .mk-nav--bonita .mk-nav__name {
303
+ display: flex;
304
+ flex-grow: 1;
305
+ }
306
+
307
+ .mk-nav--bonita .mk-nav__button.mk-nav__button--first {
308
+ display: none;
309
+ }
310
+
311
+ /* 3 · Dock: a floating glass bar centred at the bottom. */
312
+ .mk-shell:has(> .mk-nav--dock) {
313
+ flex-direction: column;
314
+ overflow: auto;
315
+ }
316
+
317
+ .mk-shell:has(> .mk-nav--dock) > .mk-nav {
318
+ order: 1;
319
+ }
320
+
321
+ .mk-shell:has(> .mk-nav--dock) > .mk-shell__view {
322
+ overflow: visible;
323
+ }
324
+
325
+ .mk-nav--dock {
326
+ position: sticky;
327
+ display: flex;
328
+ align-items: center;
329
+ justify-content: space-between;
330
+ margin: 16px;
331
+ bottom: 16px;
332
+ left: 50%;
333
+ transform: translate(-50%);
334
+ z-index: 1;
335
+ max-width: fit-content;
336
+ gap: 16px;
337
+ }
338
+
339
+ .mk-nav--dock .mk-nav__actions {
340
+ display: flex;
341
+ gap: 8px;
342
+ }
343
+
344
+ .mk-nav--dock .mk-nav__button.mk-nav__button--first {
345
+ display: none !important;
346
+ }
347
+
348
+ .mk-nav--dock .mk-nav__buttons {
349
+ display: flex;
350
+ flex-direction: row;
351
+ padding: 8px;
352
+ border-radius: 64px;
353
+ background: color-mix(in srgb, var(--mk-bg) 50%, transparent);
354
+ -webkit-backdrop-filter: blur(8px);
355
+ backdrop-filter: blur(8px);
356
+ box-shadow:
357
+ 1px 1px 1px color-mix(in srgb, var(--mk-bg) 60%, transparent) inset,
358
+ -1px -1px 1px color-mix(in srgb, var(--mk-bg) 60%, transparent) inset,
359
+ 0 0 16px #00000014;
360
+ }
361
+
362
+ .mk-nav--dock .mk-nav__button {
363
+ display: flex;
364
+ flex: 1;
365
+ flex-direction: column;
366
+ align-items: center;
367
+ justify-content: center;
368
+ background: transparent;
369
+ color: var(--md-sys-color-outline);
370
+ border-radius: 32px;
371
+ min-width: 64px;
372
+ width: 64px;
373
+ height: 64px;
374
+ padding: 16px;
375
+ font-size: 16px;
376
+ font-weight: 500;
377
+ cursor: pointer;
378
+ transition:
379
+ color 0.15s,
380
+ transform 0.3s var(--mk-ease-nav-move),
381
+ background 0.25s,
382
+ min-width 0.3s cubic-bezier(0.38, 0.49, 0, 1);
383
+ }
384
+
385
+ .mk-nav--dock .mk-nav__button:hover {
386
+ color: var(--md-sys-color-primary);
387
+ }
388
+
389
+ .mk-nav--dock .mk-nav__button[aria-current='page'] {
390
+ background: var(--md-sys-color-tertiary-container);
391
+ color: var(--md-sys-color-on-tertiary-container);
392
+ animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
393
+ font-variation-settings: 'FILL' 1;
394
+ min-width: 80px;
395
+ box-shadow:
396
+ 1px 1px 1px color-mix(in srgb, var(--mk-bg) 60%, transparent) inset,
397
+ -1px -1px 1px color-mix(in srgb, var(--mk-bg) 60%, transparent) inset,
398
+ 0 0 16px #00000014;
399
+ }
400
+
401
+ .mk-nav--dock .mk-nav__name {
402
+ /* Hidden from sight, not from screen readers: the button keeps its name. */
403
+ position: absolute;
404
+ width: 1px;
405
+ height: 1px;
406
+ overflow: hidden;
407
+ clip-path: inset(50%);
408
+ white-space: nowrap;
409
+ }
410
+
411
+ .mk-nav--dock .mk-nav__button.mk-nav__button--action {
412
+ background: var(--md-sys-color-primary-container);
413
+ color: var(--md-sys-color-on-primary-container);
414
+ }
415
+
416
+ /* 4 · Guapa: the view is a raised card on a tinted shell; the current page is a white chip. */
417
+ .mk-shell:has(> .mk-nav--guapa) {
418
+ background: var(--md-sys-color-surface-container-low);
419
+ padding: 8px 8px 8px 0;
420
+ }
421
+
422
+ .mk-shell:has(> .mk-nav--guapa) > .mk-shell__view {
423
+ background: var(--md-sys-color-background);
424
+ border-radius: 24px;
425
+ box-shadow: 0 0.5px 2.5px #0000001f;
426
+ }
427
+
428
+ .mk-shell:has(> .mk-nav--guapa) > .mk-shell__view:not(:last-of-type) {
429
+ margin-right: 8px;
430
+ }
431
+
432
+ .mk-nav--guapa {
433
+ display: flex;
434
+ flex-direction: column;
435
+ min-width: 270px;
436
+ padding: 12px 16px;
437
+ z-index: 1;
438
+ }
439
+
440
+ .mk-nav--guapa .mk-nav__buttons {
441
+ display: flex;
442
+ flex-direction: column;
443
+ }
444
+
445
+ .mk-nav--guapa .mk-nav__actions {
446
+ margin-top: auto;
447
+ display: flex;
448
+ flex-direction: column;
449
+ }
450
+
451
+ .mk-nav--guapa .mk-nav__options {
452
+ display: flex;
453
+ flex-direction: column;
454
+ margin-top: 24px;
455
+ }
456
+
457
+ .mk-nav--guapa .mk-nav__label {
458
+ display: flex;
459
+ align-items: center;
460
+ height: 40px;
461
+ padding: 0 12px;
462
+ opacity: 0.6;
463
+ user-select: none;
464
+ font-size: 16px;
465
+ font-weight: 500;
466
+ }
467
+
468
+ .mk-nav--guapa .mk-nav__button {
469
+ --mk-nav-icon-size: 16px;
470
+ display: flex;
471
+ align-items: center;
472
+ gap: 8px;
473
+ background: transparent;
474
+ color: var(--md-sys-color-outline);
475
+ border-radius: 12px;
476
+ height: 40px;
477
+ padding: 8px 12px;
478
+ font-size: 16px;
479
+ font-weight: 500;
480
+ cursor: pointer;
481
+ transition:
482
+ 50ms color,
483
+ 0.15s background;
484
+ }
485
+
486
+ .mk-nav--guapa .mk-nav__button:hover {
487
+ color: var(--md-sys-color-primary);
488
+ }
489
+
490
+ .mk-nav--guapa .mk-nav__button[aria-current='page'] {
491
+ background: var(--md-sys-color-background);
492
+ color: color-mix(in srgb, var(--md-sys-color-primary) 80%, var(--md-sys-color-primary-container) 90%);
493
+ box-shadow:
494
+ 0 0 0 1px #00000008,
495
+ 0 0.5px 2.5px #00000014;
496
+ animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
497
+ font-variation-settings: 'FILL' 1;
498
+ }
499
+
500
+ .mk-nav--guapa.mk-nav--accent .mk-nav__button[aria-current='page'] {
501
+ background: linear-gradient(
502
+ color-mix(in srgb, var(--md-sys-color-primary-container) 100%, var(--md-sys-color-background) 40%),
503
+ var(--md-sys-color-primary-container)
504
+ );
505
+ color: var(--md-sys-color-on-primary-container);
506
+ box-shadow:
507
+ 0 0 32px -10px var(--md-sys-color-primary-container),
508
+ 0 0 0 1px color-mix(in srgb, var(--md-sys-color-on-background) 10%, transparent 100%) inset,
509
+ inset 0 1.8px #ffffff4d;
510
+ }
511
+
512
+ .mk-nav--guapa .mk-nav__button.mk-nav__button--first {
513
+ color: var(--md-sys-color-on-background);
514
+ margin-bottom: 16px;
515
+ }
516
+
517
+ .mk-nav--guapa .mk-nav__button--first .mk-nav__name {
518
+ display: flex;
519
+ flex-grow: 1;
520
+ }
521
+
522
+ /* 5 · Tasks: a rail of round 56 px buttons; the current one squares off (springy radius). */
523
+ .mk-shell:has(> .mk-nav--tasks) {
524
+ padding: 8px;
525
+ }
526
+
527
+ .mk-shell:has(> .mk-nav--tasks) > .mk-shell__view {
528
+ background: var(--md-sys-color-background);
529
+ }
530
+
531
+ .mk-shell:has(> .mk-nav--tasks) > .mk-shell__view:not(:last-of-type) .mk-shell__content {
532
+ padding-right: 0 !important;
533
+ }
534
+
535
+ .mk-nav--tasks {
536
+ display: flex;
537
+ flex-direction: column;
538
+ width: auto;
539
+ padding: 16px 8px 16px 16px;
540
+ z-index: 1;
541
+ }
542
+
543
+ .mk-nav--tasks .mk-nav__buttons {
544
+ display: flex;
545
+ flex-direction: column;
546
+ gap: 0;
547
+ }
548
+
549
+ .mk-nav--tasks .mk-nav__actions {
550
+ margin-top: auto;
551
+ display: flex;
552
+ flex-direction: column;
553
+ }
554
+
555
+ .mk-nav--tasks .mk-nav__button {
556
+ display: flex;
557
+ align-items: center;
558
+ justify-content: center;
559
+ background: var(--md-sys-color-surface-container-low);
560
+ color: var(--md-sys-color-outline);
561
+ border-radius: 28px;
562
+ width: 56px;
563
+ height: 56px;
564
+ padding: 0;
565
+ font-size: 16px;
566
+ font-weight: 500;
567
+ cursor: pointer;
568
+ transition:
569
+ border-radius 0.3s var(--mk-ease-nav-radius),
570
+ transform 0.5s var(--mk-ease-nav-move),
571
+ background 0.25s;
572
+ }
573
+
574
+ .mk-nav--tasks .mk-nav__name {
575
+ /* Hidden from sight, not from screen readers: the button keeps its name. */
576
+ position: absolute;
577
+ width: 1px;
578
+ height: 1px;
579
+ overflow: hidden;
580
+ clip-path: inset(50%);
581
+ white-space: nowrap;
582
+ }
583
+
584
+ .mk-nav--tasks .mk-nav__button:hover {
585
+ color: var(--md-sys-color-primary);
586
+ }
587
+
588
+ .mk-nav--tasks .mk-nav__button[aria-current='page'] {
589
+ background: var(--md-sys-color-surface-container-highest);
590
+ color: var(--md-sys-color-primary);
591
+ animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
592
+ font-variation-settings: 'FILL' 1;
593
+ border-radius: 12px;
594
+ }
595
+
596
+ .mk-nav--tasks.mk-nav--accent .mk-nav__button[aria-current='page'] {
597
+ background: var(--md-sys-color-primary-container);
598
+ color: var(--md-sys-color-on-primary-container);
599
+ }
600
+
601
+ .mk-nav--tasks .mk-nav__button.mk-nav__button--first {
602
+ color: var(--md-sys-color-on-background);
603
+ margin-bottom: 8px;
604
+ }
605
+
606
+ .mk-nav--tasks .mk-nav__button--first .mk-nav__icon {
607
+ display: none;
608
+ }
609
+
610
+ /* 6 · Melon: a soft sidebar with a faint primary wash on the current page. */
611
+ .mk-shell:has(> .mk-nav--melon) > .mk-shell__view {
612
+ border-right: 1px solid var(--md-sys-color-surface-container);
613
+ }
614
+
615
+ .mk-nav--melon {
616
+ display: flex;
617
+ flex-direction: column;
618
+ min-width: 270px;
619
+ padding: 16px 0 16px 16px;
620
+ z-index: 1;
621
+ }
622
+
623
+ .mk-nav--melon .mk-nav__buttons {
624
+ display: flex;
625
+ flex-direction: column;
626
+ }
627
+
628
+ .mk-nav--melon .mk-nav__actions {
629
+ margin-top: auto;
630
+ display: flex;
631
+ flex-direction: column;
632
+ }
633
+
634
+ .mk-nav--melon .mk-nav__options {
635
+ display: flex;
636
+ flex-direction: column;
637
+ margin-top: 24px;
638
+ }
639
+
640
+ .mk-nav--melon .mk-nav__label {
641
+ display: flex;
642
+ align-items: center;
643
+ height: 40px;
644
+ padding: 0 16px;
645
+ opacity: 0.6;
646
+ user-select: none;
647
+ font-size: 16px;
648
+ font-weight: 500;
649
+ }
650
+
651
+ .mk-nav--melon .mk-nav__button {
652
+ display: flex;
653
+ align-items: center;
654
+ gap: 8px;
655
+ background: transparent;
656
+ color: var(--md-sys-color-outline);
657
+ border-radius: 12px;
658
+ height: 40px;
659
+ padding: 8px 16px;
660
+ font-size: 16px;
661
+ font-weight: 500;
662
+ cursor: pointer;
663
+ transition:
664
+ 0.15s color,
665
+ 0.15s background;
666
+ }
667
+
668
+ .mk-nav--melon .mk-nav__button:hover {
669
+ color: var(--md-sys-color-primary);
670
+ }
671
+
672
+ .mk-nav--melon .mk-nav__button[aria-current='page'] {
673
+ background: color-mix(in srgb, var(--md-sys-color-primary-container) 10%, var(--md-sys-color-background) 90%);
674
+ color: var(--md-sys-color-primary);
675
+ animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
676
+ font-variation-settings: 'FILL' 1;
677
+ }
678
+
679
+ .mk-nav--melon.mk-nav--accent .mk-nav__button {
680
+ --mk-nav-icon-size: 16px;
681
+ padding: 8px 12px;
682
+ transition:
683
+ 50ms color,
684
+ 0.15s background;
685
+ }
686
+
687
+ .mk-nav--melon.mk-nav--accent .mk-nav__label {
688
+ padding: 0 12px;
689
+ }
690
+
691
+ .mk-nav--melon.mk-nav--accent .mk-nav__button[aria-current='page'] {
692
+ background: var(--md-sys-color-background);
693
+ color: color-mix(in srgb, var(--md-sys-color-primary) 80%, var(--md-sys-color-primary-container) 90%);
694
+ box-shadow:
695
+ 0 0 0 1px #00000008,
696
+ 0 0.5px 2.5px #00000014;
697
+ }
698
+
699
+ .mk-nav--melon .mk-nav__button.mk-nav__button--first {
700
+ color: var(--md-sys-color-on-background);
701
+ margin-bottom: 16px;
702
+ }
703
+
704
+ .mk-nav--melon .mk-nav__button--first .mk-nav__name {
705
+ display: flex;
706
+ flex-grow: 1;
707
+ }
708
+
709
+ /* 7 · Tunnel: big words; the hovered one and its neighbours grow like a dock. */
710
+ .mk-shell:has(> .mk-nav--tunnel) > .mk-shell__view {
711
+ border-right: 1px solid var(--md-sys-color-surface-container);
712
+ }
713
+
714
+ .mk-nav--tunnel {
715
+ display: flex;
716
+ flex-direction: column;
717
+ min-width: 270px;
718
+ padding: 16px;
719
+ border-right: 1px solid var(--md-sys-color-surface-container);
720
+ z-index: 1;
721
+ }
722
+
723
+ .mk-nav--tunnel .mk-nav__buttons {
724
+ display: flex;
725
+ flex-direction: column;
726
+ }
727
+
728
+ .mk-nav--tunnel .mk-nav__actions {
729
+ margin-top: auto;
730
+ display: flex;
731
+ flex-direction: column;
732
+ }
733
+
734
+ .mk-nav--tunnel .mk-nav__options {
735
+ display: flex;
736
+ flex-direction: column;
737
+ gap: 4px;
738
+ margin-top: 24px;
739
+ }
740
+
741
+ .mk-nav--tunnel .mk-nav__label {
742
+ display: flex;
743
+ align-items: center;
744
+ height: 40px;
745
+ padding: 0 8px;
746
+ user-select: none;
747
+ font-size: 16px;
748
+ font-weight: 500;
749
+ }
750
+
751
+ .mk-nav--tunnel .mk-nav__button {
752
+ display: flex;
753
+ align-items: center;
754
+ gap: 8px;
755
+ background: transparent;
756
+ color: var(--md-sys-color-outline-variant);
757
+ border-radius: 12px;
758
+ height: 40px;
759
+ padding: 8px;
760
+ font-size: 24px;
761
+ font-weight: 400;
762
+ cursor: pointer;
763
+ transition:
764
+ font-size 0.3s var(--mk-ease-swatch),
765
+ color 0.15s,
766
+ transform 0.3s var(--mk-ease-nav-move),
767
+ text-shadow 0.3s var(--mk-ease-nav-move);
768
+ transform-origin: left;
769
+ }
770
+
771
+ .mk-nav--tunnel .mk-nav__icon {
772
+ display: none;
773
+ }
774
+
775
+ .mk-nav--tunnel .mk-nav__button:hover {
776
+ color: var(--md-sys-color-primary-container);
777
+ }
778
+
779
+ .mk-nav--tunnel .mk-nav__button:not(.mk-nav__button--first):has(+ * + *:hover) {
780
+ transform: scale(1.03);
781
+ }
782
+
783
+ .mk-nav--tunnel .mk-nav__button:not(.mk-nav__button--first):has(+ *:hover) {
784
+ transform: scale(1.09);
785
+ }
786
+
787
+ .mk-nav--tunnel .mk-nav__button:hover {
788
+ transform: scale(1.2);
789
+ }
790
+
791
+ .mk-nav--tunnel .mk-nav__button:not(.mk-nav__button--first):hover + * {
792
+ transform: scale(1.09);
793
+ }
794
+
795
+ .mk-nav--tunnel .mk-nav__button:not(.mk-nav__button--first):hover + * + * {
796
+ transform: scale(1.03);
797
+ }
798
+
799
+ .mk-nav--tunnel .mk-nav__button[aria-current='page'] {
800
+ color: var(--md-sys-color-primary);
801
+ font-size: 28px;
802
+ font-weight: 600;
803
+ animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
804
+ font-variation-settings: 'FILL' 1;
805
+ }
806
+
807
+ .mk-nav--tunnel.mk-nav--accent .mk-nav__button[aria-current='page'] {
808
+ background: var(--md-sys-color-primary-container);
809
+ color: var(--md-sys-color-on-primary-container);
810
+ box-shadow: 0 0 32px -10px var(--md-sys-color-primary-container);
811
+ }
812
+
813
+ .mk-nav--tunnel .mk-nav__button.mk-nav__button--first {
814
+ color: var(--md-sys-color-on-background);
815
+ width: 40px;
816
+ padding: 0;
817
+ display: flex;
818
+ align-items: center;
819
+ justify-content: center;
820
+ border-radius: 64px;
821
+ background: var(--md-sys-color-surface-container);
822
+ margin: 8px;
823
+ }
824
+
825
+ .mk-nav--tunnel .mk-nav__button--first .mk-nav__name {
826
+ /* Hidden from sight, not from screen readers: the button keeps its name. */
827
+ position: absolute;
828
+ width: 1px;
829
+ height: 1px;
830
+ overflow: hidden;
831
+ clip-path: inset(50%);
832
+ white-space: nowrap;
833
+ }
834
+
835
+ .mk-nav--tunnel .mk-nav__button--first .mk-nav__icon {
836
+ display: none;
837
+ }
838
+ }
839
+
840
+ /* Phones: every style becomes the same floating glass bar at the bottom. */
841
+ @media only screen and (max-width: 679.98px) {
842
+ .mk-shell {
843
+ flex-direction: column;
844
+ overflow: auto;
845
+ overscroll-behavior: contain;
846
+ }
847
+
848
+ .mk-shell > .mk-shell__view {
849
+ overflow: visible;
850
+ }
851
+
852
+ .mk-nav {
853
+ position: sticky;
854
+ display: flex;
855
+ align-items: center;
856
+ justify-content: space-between;
857
+ margin: 16px;
858
+ bottom: 16px;
859
+ z-index: 1;
860
+ }
861
+
862
+ .mk-nav .mk-nav__buttons {
863
+ display: flex;
864
+ flex-direction: row;
865
+ padding: 8px;
866
+ border-radius: 64px;
867
+ background: color-mix(in srgb, var(--mk-bg) 50%, transparent);
868
+ -webkit-backdrop-filter: blur(8px);
869
+ backdrop-filter: blur(8px);
870
+ box-shadow:
871
+ 1px 1px 1px color-mix(in srgb, var(--mk-bg) 60%, transparent) inset,
872
+ -1px -1px 1px color-mix(in srgb, var(--mk-bg) 60%, transparent) inset,
873
+ 0 0 16px #00000014;
874
+ overflow: auto !important;
875
+ scrollbar-width: none;
876
+ }
877
+
878
+ .mk-nav .mk-nav__buttons::-webkit-scrollbar {
879
+ display: none;
880
+ }
881
+
882
+ .mk-nav .mk-nav__actions {
883
+ position: relative;
884
+ display: flex;
885
+ gap: 8px;
886
+ }
887
+
888
+ .mk-nav .mk-nav__button {
889
+ display: flex;
890
+ flex: 1;
891
+ flex-direction: column;
892
+ align-items: center;
893
+ justify-content: center;
894
+ background: transparent;
895
+ color: var(--md-sys-color-outline);
896
+ border-radius: 32px;
897
+ min-width: 64px;
898
+ width: 64px;
899
+ height: 64px;
900
+ padding: 16px;
901
+ font-size: 16px;
902
+ font-weight: 500;
903
+ cursor: pointer;
904
+ transition:
905
+ color 0.15s,
906
+ transform 0.3s var(--mk-ease-nav-move),
907
+ background 0.25s,
908
+ min-width 0.3s cubic-bezier(0.38, 0.49, 0, 1);
909
+ }
910
+
911
+ .mk-nav .mk-nav__button:hover {
912
+ color: var(--md-sys-color-primary);
913
+ }
914
+
915
+ .mk-nav .mk-nav__button[aria-current='page'] {
916
+ background: var(--md-sys-color-tertiary-container);
917
+ color: var(--md-sys-color-on-tertiary-container);
918
+ animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
919
+ font-variation-settings: 'FILL' 1;
920
+ min-width: 80px;
921
+ box-shadow:
922
+ 1px 1px 1px color-mix(in srgb, var(--mk-bg) 60%, transparent) inset,
923
+ -1px -1px 1px color-mix(in srgb, var(--mk-bg) 60%, transparent) inset,
924
+ 0 0 16px #00000014;
925
+ }
926
+
927
+ .mk-nav .mk-nav__name {
928
+ /* Hidden from sight, not from screen readers: the button keeps its name. */
929
+ position: absolute;
930
+ width: 1px;
931
+ height: 1px;
932
+ overflow: hidden;
933
+ clip-path: inset(50%);
934
+ white-space: nowrap;
935
+ }
936
+
937
+ .mk-nav .mk-nav__button.mk-nav__button--first,
938
+ .mk-nav [data-mk-hide-mobile] {
939
+ display: none !important;
940
+ }
941
+
942
+ .mk-nav .mk-nav__button.mk-nav__button--action {
943
+ background: var(--md-sys-color-primary-container);
944
+ color: var(--md-sys-color-on-primary-container);
945
+ }
946
+ }
947
+
948
+ @media only screen and (max-width: 380px) {
949
+ .mk-nav .mk-nav__button {
950
+ min-width: 56px;
951
+ width: 56px;
952
+ height: 56px;
953
+ }
954
+
955
+ .mk-nav .mk-nav__button[aria-current='page'] {
956
+ min-width: 72px;
957
+ }
958
+ }
959
+
960
+ /* Each style's view header. */
961
+ .mk-shell:has(> .mk-nav--clasica) .mk-shell__title {
962
+ font-size: var(--md-sys-typescale-headline-small-size);
963
+ }
964
+
965
+ .mk-shell:has(> .mk-nav--clasica) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
966
+ position: sticky;
967
+ top: 0;
968
+ z-index: 1;
969
+ background: color-mix(in srgb, var(--md-sys-color-background) 80%, transparent);
970
+ -webkit-backdrop-filter: blur(16px);
971
+ backdrop-filter: blur(16px);
972
+ box-shadow: 0 1px 0 0 var(--md-sys-color-surface-container);
973
+ padding-top: max(16px, env(safe-area-inset-top));
974
+ }
975
+
976
+ .mk-shell:has(> .mk-nav--bonita) .mk-shell__title,
977
+ .mk-shell:has(> .mk-nav--tasks) .mk-shell__title {
978
+ font-size: var(--md-sys-typescale-title-small-size);
979
+ }
980
+
981
+ .mk-shell:has(> .mk-nav--bonita) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header,
982
+ .mk-shell:has(> .mk-nav--tasks) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
983
+ display: flex;
984
+ align-items: center;
985
+ margin: 16px 16px -8px;
986
+ position: sticky;
987
+ top: 0;
988
+ z-index: 1;
989
+ box-sizing: border-box;
990
+ background: linear-gradient(var(--md-sys-color-background), transparent);
991
+ height: 56px;
992
+ max-height: 56px;
993
+ min-height: 56px;
994
+ padding: 0;
995
+ }
996
+
997
+ .mk-shell:has(> .mk-nav--bonita) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
998
+ padding-top: env(safe-area-inset-top);
999
+ }
1000
+
1001
+ .mk-shell:has(> .mk-nav--dock) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
1002
+ margin-bottom: -24px;
1003
+ }
1004
+
1005
+ .mk-shell:has(> .mk-nav--guapa) .mk-shell__title {
1006
+ font-size: var(--md-sys-typescale-title-large-size);
1007
+ }
1008
+
1009
+ .mk-shell:has(> .mk-nav--guapa) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
1010
+ position: sticky;
1011
+ top: 0;
1012
+ z-index: 1;
1013
+ background: color-mix(in srgb, var(--md-sys-color-background) 70%, transparent);
1014
+ -webkit-backdrop-filter: blur(24px);
1015
+ backdrop-filter: blur(24px);
1016
+ height: 40px;
1017
+ max-height: 40px;
1018
+ padding: 12px 12px 12px 16px;
1019
+ margin-bottom: -16px;
1020
+ padding-top: max(12px, env(safe-area-inset-top));
1021
+ }
1022
+
1023
+ .mk-shell:has(> .mk-nav--melon) .mk-shell__title {
1024
+ font-size: var(--md-sys-typescale-headline-small-size);
1025
+ }
1026
+
1027
+ .mk-shell:has(> .mk-nav--melon) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
1028
+ position: sticky;
1029
+ top: 0;
1030
+ z-index: 1;
1031
+ -webkit-backdrop-filter: blur(16px);
1032
+ backdrop-filter: blur(16px);
1033
+ margin-bottom: -16px;
1034
+ padding-top: max(16px, env(safe-area-inset-top));
1035
+ }
1036
+
1037
+ @media only screen and (max-width: 679.98px) {
1038
+ .mk-shell:has(> .mk-nav--tasks) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
1039
+ margin: 0;
1040
+ border-radius: 0;
1041
+ background: none;
1042
+ max-height: unset;
1043
+ height: auto;
1044
+ padding: 16px;
1045
+ }
1046
+ }
1047
+
1048
+ @media (prefers-reduced-motion: reduce) {
1049
+ .mk-nav .mk-nav__button {
1050
+ transition: none !important;
1051
+ animation: none !important;
1052
+ }
1053
+ }