@mrpelz/uikit-ish 7.13.1 → 7.29.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 (393) hide show
  1. package/dist/components/accordion/style.css +0 -3
  2. package/dist/components/action-sheet/main.d.ts.map +1 -1
  3. package/dist/components/action-sheet/main.js +9 -6
  4. package/dist/components/action-sheet/main.js.map +1 -1
  5. package/dist/components/action-sheet/props.d.ts +2 -1
  6. package/dist/components/action-sheet/props.d.ts.map +1 -1
  7. package/dist/components/activity-view/style.css +17 -17
  8. package/dist/components/alert/main.d.ts.map +1 -1
  9. package/dist/components/alert/main.js +12 -4
  10. package/dist/components/alert/main.js.map +1 -1
  11. package/dist/components/alert/props.d.ts +2 -1
  12. package/dist/components/alert/props.d.ts.map +1 -1
  13. package/dist/components/alert/style.css +39 -15
  14. package/dist/components/avatar/style.css +2 -2
  15. package/dist/components/badge/style.css +1 -1
  16. package/dist/components/button/main.js +1 -1
  17. package/dist/components/button/main.js.map +1 -1
  18. package/dist/components/button/props.d.ts +3 -2
  19. package/dist/components/button/props.d.ts.map +1 -1
  20. package/dist/components/button/style.css +18 -29
  21. package/dist/components/card/buttons.d.ts +35 -0
  22. package/dist/components/card/buttons.d.ts.map +1 -0
  23. package/dist/components/card/buttons.js +60 -0
  24. package/dist/components/card/buttons.js.map +1 -0
  25. package/dist/components/card/channels.d.ts +43 -0
  26. package/dist/components/card/channels.d.ts.map +1 -0
  27. package/dist/components/card/channels.js +321 -0
  28. package/dist/components/card/channels.js.map +1 -0
  29. package/dist/components/card/color.d.ts +21 -0
  30. package/dist/components/card/color.d.ts.map +1 -0
  31. package/dist/components/card/color.js +100 -0
  32. package/dist/components/card/color.js.map +1 -0
  33. package/dist/components/card/main.d.ts +81 -0
  34. package/dist/components/card/main.d.ts.map +1 -0
  35. package/dist/components/card/main.js +91 -0
  36. package/dist/components/card/main.js.map +1 -0
  37. package/dist/components/card/parts.css +769 -0
  38. package/dist/components/card/press.d.ts +25 -0
  39. package/dist/components/card/press.d.ts.map +1 -0
  40. package/dist/components/card/press.js +111 -0
  41. package/dist/components/card/press.js.map +1 -0
  42. package/dist/components/card/progress.d.ts +43 -0
  43. package/dist/components/card/progress.d.ts.map +1 -0
  44. package/dist/components/card/progress.js +122 -0
  45. package/dist/components/card/progress.js.map +1 -0
  46. package/dist/components/card/props.d.ts +393 -0
  47. package/dist/components/card/props.d.ts.map +1 -0
  48. package/dist/components/card/props.js +2 -0
  49. package/dist/components/card/props.js.map +1 -0
  50. package/dist/components/card/root.d.ts +100 -0
  51. package/dist/components/card/root.d.ts.map +1 -0
  52. package/dist/components/card/root.js +388 -0
  53. package/dist/components/card/root.js.map +1 -0
  54. package/dist/components/card/rows.d.ts +19 -0
  55. package/dist/components/card/rows.d.ts.map +1 -0
  56. package/dist/components/card/rows.js +185 -0
  57. package/dist/components/card/rows.js.map +1 -0
  58. package/dist/components/card/segmented.d.ts +61 -0
  59. package/dist/components/card/segmented.d.ts.map +1 -0
  60. package/dist/components/card/segmented.js +289 -0
  61. package/dist/components/card/segmented.js.map +1 -0
  62. package/dist/components/card/shared.d.ts +55 -0
  63. package/dist/components/card/shared.d.ts.map +1 -0
  64. package/dist/components/card/shared.js +80 -0
  65. package/dist/components/card/shared.js.map +1 -0
  66. package/dist/components/card/slider.d.ts +16 -0
  67. package/dist/components/card/slider.d.ts.map +1 -0
  68. package/dist/components/card/slider.js +48 -0
  69. package/dist/components/card/slider.js.map +1 -0
  70. package/dist/components/card/stages.d.ts +18 -0
  71. package/dist/components/card/stages.d.ts.map +1 -0
  72. package/dist/components/card/stages.js +37 -0
  73. package/dist/components/card/stages.js.map +1 -0
  74. package/dist/components/card/style.css +959 -0
  75. package/dist/components/checkbox/style.css +10 -5
  76. package/dist/components/collapsible/style.css +0 -3
  77. package/dist/components/color-picker/color.d.ts +2 -2
  78. package/dist/components/color-picker/color.d.ts.map +1 -1
  79. package/dist/components/color-picker/color.js +7 -7
  80. package/dist/components/color-picker/color.js.map +1 -1
  81. package/dist/components/color-picker/main.d.ts +11 -5
  82. package/dist/components/color-picker/main.d.ts.map +1 -1
  83. package/dist/components/color-picker/main.js +147 -89
  84. package/dist/components/color-picker/main.js.map +1 -1
  85. package/dist/components/color-picker/props.d.ts +216 -6
  86. package/dist/components/color-picker/props.d.ts.map +1 -1
  87. package/dist/components/color-picker/style.css +12 -31
  88. package/dist/components/contextual-menu/main.d.ts +6 -2
  89. package/dist/components/contextual-menu/main.d.ts.map +1 -1
  90. package/dist/components/contextual-menu/main.js +67 -43
  91. package/dist/components/contextual-menu/main.js.map +1 -1
  92. package/dist/components/contextual-menu/props.d.ts +2 -1
  93. package/dist/components/contextual-menu/props.d.ts.map +1 -1
  94. package/dist/components/contextual-menu/style.css +64 -2
  95. package/dist/components/control-cards/main.d.ts +38 -0
  96. package/dist/components/control-cards/main.d.ts.map +1 -0
  97. package/dist/components/control-cards/main.js +196 -0
  98. package/dist/components/control-cards/main.js.map +1 -0
  99. package/dist/components/control-cards/props.d.ts +238 -0
  100. package/dist/components/control-cards/props.d.ts.map +1 -0
  101. package/dist/components/control-cards/props.js +2 -0
  102. package/dist/components/control-cards/props.js.map +1 -0
  103. package/dist/components/control-cards/style.css +2 -0
  104. package/dist/components/date-picker/main.d.ts +8 -3
  105. package/dist/components/date-picker/main.d.ts.map +1 -1
  106. package/dist/components/date-picker/main.js +73 -30
  107. package/dist/components/date-picker/main.js.map +1 -1
  108. package/dist/components/date-picker/pager.d.ts.map +1 -1
  109. package/dist/components/date-picker/pager.js +9 -2
  110. package/dist/components/date-picker/pager.js.map +1 -1
  111. package/dist/components/date-picker/props.d.ts +81 -5
  112. package/dist/components/date-picker/props.d.ts.map +1 -1
  113. package/dist/components/date-picker/style.css +25 -17
  114. package/dist/components/drawer/style.css +6 -0
  115. package/dist/components/edit-menu/main.d.ts +2 -1
  116. package/dist/components/edit-menu/main.d.ts.map +1 -1
  117. package/dist/components/edit-menu/main.js +8 -4
  118. package/dist/components/edit-menu/main.js.map +1 -1
  119. package/dist/components/edit-menu/style.css +2 -2
  120. package/dist/components/glass/backdrop.d.ts +75 -0
  121. package/dist/components/glass/backdrop.d.ts.map +1 -0
  122. package/dist/components/glass/backdrop.js +608 -0
  123. package/dist/components/glass/backdrop.js.map +1 -0
  124. package/dist/components/glass/gradient.d.ts +17 -0
  125. package/dist/components/glass/gradient.d.ts.map +1 -0
  126. package/dist/components/glass/gradient.js +233 -0
  127. package/dist/components/glass/gradient.js.map +1 -0
  128. package/dist/components/glass/main.d.ts +60 -6
  129. package/dist/components/glass/main.d.ts.map +1 -1
  130. package/dist/components/glass/main.js +100 -122
  131. package/dist/components/glass/main.js.map +1 -1
  132. package/dist/components/glass/marker.d.ts +66 -0
  133. package/dist/components/glass/marker.d.ts.map +1 -0
  134. package/dist/components/glass/marker.js +268 -0
  135. package/dist/components/glass/marker.js.map +1 -0
  136. package/dist/components/glass/props.d.ts +33 -7
  137. package/dist/components/glass/props.d.ts.map +1 -1
  138. package/dist/components/glass/style.css +172 -75
  139. package/dist/components/grid/dashes.d.ts +15 -0
  140. package/dist/components/grid/dashes.d.ts.map +1 -0
  141. package/dist/components/grid/dashes.js +37 -0
  142. package/dist/components/grid/dashes.js.map +1 -0
  143. package/dist/components/grid/edit.d.ts +11 -0
  144. package/dist/components/grid/edit.d.ts.map +1 -0
  145. package/dist/components/grid/edit.js +1066 -0
  146. package/dist/components/grid/edit.js.map +1 -0
  147. package/dist/components/grid/handle.d.ts +123 -0
  148. package/dist/components/grid/handle.d.ts.map +1 -0
  149. package/dist/components/grid/handle.js +194 -0
  150. package/dist/components/grid/handle.js.map +1 -0
  151. package/dist/components/grid/icons.d.ts +40 -0
  152. package/dist/components/grid/icons.d.ts.map +1 -0
  153. package/dist/components/grid/icons.js +140 -0
  154. package/dist/components/grid/icons.js.map +1 -0
  155. package/dist/components/grid/layout.d.ts +111 -0
  156. package/dist/components/grid/layout.d.ts.map +1 -0
  157. package/dist/components/grid/layout.js +1257 -0
  158. package/dist/components/grid/layout.js.map +1 -0
  159. package/dist/components/grid/main.d.ts +63 -0
  160. package/dist/components/grid/main.d.ts.map +1 -0
  161. package/dist/components/grid/main.js +1977 -0
  162. package/dist/components/grid/main.js.map +1 -0
  163. package/dist/components/grid/overlay.d.ts +24 -0
  164. package/dist/components/grid/overlay.d.ts.map +1 -0
  165. package/dist/components/grid/overlay.js +312 -0
  166. package/dist/components/grid/overlay.js.map +1 -0
  167. package/dist/components/grid/plan.d.ts +78 -0
  168. package/dist/components/grid/plan.d.ts.map +1 -0
  169. package/dist/components/grid/plan.js +249 -0
  170. package/dist/components/grid/plan.js.map +1 -0
  171. package/dist/components/grid/props.d.ts +579 -0
  172. package/dist/components/grid/props.d.ts.map +1 -0
  173. package/dist/components/grid/props.js +2 -0
  174. package/dist/components/grid/props.js.map +1 -0
  175. package/dist/components/grid/reshape.d.ts +60 -0
  176. package/dist/components/grid/reshape.d.ts.map +1 -0
  177. package/dist/components/grid/reshape.js +214 -0
  178. package/dist/components/grid/reshape.js.map +1 -0
  179. package/dist/components/grid/style.css +1323 -0
  180. package/dist/components/header/main.d.ts.map +1 -1
  181. package/dist/components/header/main.js +97 -10
  182. package/dist/components/header/main.js.map +1 -1
  183. package/dist/components/header/props.d.ts +2 -2
  184. package/dist/components/header/props.d.ts.map +1 -1
  185. package/dist/components/header/style.css +40 -49
  186. package/dist/components/index.d.ts +16 -10
  187. package/dist/components/index.d.ts.map +1 -1
  188. package/dist/components/index.js +11 -5
  189. package/dist/components/index.js.map +1 -1
  190. package/dist/components/island/main.d.ts +2 -2
  191. package/dist/components/island/main.d.ts.map +1 -1
  192. package/dist/components/island/main.js +193 -41
  193. package/dist/components/island/main.js.map +1 -1
  194. package/dist/components/island/props.d.ts +4 -2
  195. package/dist/components/island/props.d.ts.map +1 -1
  196. package/dist/components/island/style.css +50 -3
  197. package/dist/components/layout/main.d.ts +3 -6
  198. package/dist/components/layout/main.d.ts.map +1 -1
  199. package/dist/components/layout/main.js +225 -56
  200. package/dist/components/layout/main.js.map +1 -1
  201. package/dist/components/layout/props.d.ts +43 -2
  202. package/dist/components/layout/props.d.ts.map +1 -1
  203. package/dist/components/layout/style.css +81 -23
  204. package/dist/components/list/main.d.ts +8 -6
  205. package/dist/components/list/main.d.ts.map +1 -1
  206. package/dist/components/list/main.js +132 -24
  207. package/dist/components/list/main.js.map +1 -1
  208. package/dist/components/list/props.d.ts +25 -0
  209. package/dist/components/list/props.d.ts.map +1 -1
  210. package/dist/components/list/reorder.d.ts +50 -2
  211. package/dist/components/list/reorder.d.ts.map +1 -1
  212. package/dist/components/list/reorder.js +40 -17
  213. package/dist/components/list/reorder.js.map +1 -1
  214. package/dist/components/list/style.css +160 -75
  215. package/dist/components/menu/main.d.ts +9 -5
  216. package/dist/components/menu/main.d.ts.map +1 -1
  217. package/dist/components/menu/main.js +87 -9
  218. package/dist/components/menu/main.js.map +1 -1
  219. package/dist/components/menu/props.d.ts +14 -0
  220. package/dist/components/menu/props.d.ts.map +1 -1
  221. package/dist/components/menu/style.css +41 -31
  222. package/dist/components/navigation/main.d.ts.map +1 -1
  223. package/dist/components/navigation/main.js +35 -13
  224. package/dist/components/navigation/main.js.map +1 -1
  225. package/dist/components/navigation/style.css +7 -0
  226. package/dist/components/page/main.d.ts.map +1 -1
  227. package/dist/components/page/main.js +6 -3
  228. package/dist/components/page/main.js.map +1 -1
  229. package/dist/components/page/props.d.ts +3 -2
  230. package/dist/components/page/props.d.ts.map +1 -1
  231. package/dist/components/page/style.css +8 -4
  232. package/dist/components/page-control/main.d.ts.map +1 -1
  233. package/dist/components/page-control/main.js +32 -15
  234. package/dist/components/page-control/main.js.map +1 -1
  235. package/dist/components/page-control/props.d.ts +9 -3
  236. package/dist/components/page-control/props.d.ts.map +1 -1
  237. package/dist/components/page-control/style.css +36 -0
  238. package/dist/components/pager/main.d.ts +12 -0
  239. package/dist/components/pager/main.d.ts.map +1 -0
  240. package/dist/components/pager/main.js +368 -0
  241. package/dist/components/pager/main.js.map +1 -0
  242. package/dist/components/pager/props.d.ts +36 -0
  243. package/dist/components/pager/props.d.ts.map +1 -0
  244. package/dist/components/pager/props.js +2 -0
  245. package/dist/components/pager/props.js.map +1 -0
  246. package/dist/components/pager/style.css +42 -0
  247. package/dist/components/popover/main.d.ts +10 -4
  248. package/dist/components/popover/main.d.ts.map +1 -1
  249. package/dist/components/popover/main.js +30 -19
  250. package/dist/components/popover/main.js.map +1 -1
  251. package/dist/components/popover/props.d.ts +2 -0
  252. package/dist/components/popover/props.d.ts.map +1 -1
  253. package/dist/components/popover/style.css +6 -2
  254. package/dist/components/progress/main.d.ts.map +1 -1
  255. package/dist/components/progress/main.js +3 -2
  256. package/dist/components/progress/main.js.map +1 -1
  257. package/dist/components/progress/style.css +4 -10
  258. package/dist/components/roll/main.d.ts.map +1 -1
  259. package/dist/components/roll/main.js +5 -3
  260. package/dist/components/roll/main.js.map +1 -1
  261. package/dist/components/roll/style.css +2 -2
  262. package/dist/components/segmented/main.d.ts.map +1 -1
  263. package/dist/components/segmented/main.js +4 -4
  264. package/dist/components/segmented/main.js.map +1 -1
  265. package/dist/components/segmented/props.d.ts +5 -2
  266. package/dist/components/segmented/props.d.ts.map +1 -1
  267. package/dist/components/segmented/style.css +17 -8
  268. package/dist/components/settings/main.d.ts +48 -1
  269. package/dist/components/settings/main.d.ts.map +1 -1
  270. package/dist/components/settings/main.js +311 -66
  271. package/dist/components/settings/main.js.map +1 -1
  272. package/dist/components/settings/props.d.ts +46 -4
  273. package/dist/components/settings/props.d.ts.map +1 -1
  274. package/dist/components/settings/region.d.ts +3 -0
  275. package/dist/components/settings/region.d.ts.map +1 -0
  276. package/dist/components/settings/region.js +120 -0
  277. package/dist/components/settings/region.js.map +1 -0
  278. package/dist/components/settings/style.css +2 -2
  279. package/dist/components/sheet/main.d.ts.map +1 -1
  280. package/dist/components/sheet/main.js +156 -45
  281. package/dist/components/sheet/main.js.map +1 -1
  282. package/dist/components/sheet/props.d.ts +4 -2
  283. package/dist/components/sheet/props.d.ts.map +1 -1
  284. package/dist/components/sheet/snap.d.ts +54 -0
  285. package/dist/components/sheet/snap.d.ts.map +1 -1
  286. package/dist/components/sheet/snap.js +261 -23
  287. package/dist/components/sheet/snap.js.map +1 -1
  288. package/dist/components/sheet/style.css +171 -20
  289. package/dist/components/sidebar/main.d.ts +2 -1
  290. package/dist/components/sidebar/main.d.ts.map +1 -1
  291. package/dist/components/sidebar/main.js +18 -6
  292. package/dist/components/sidebar/main.js.map +1 -1
  293. package/dist/components/sidebar/props.d.ts +2 -1
  294. package/dist/components/sidebar/props.d.ts.map +1 -1
  295. package/dist/components/sidebar/style.css +78 -0
  296. package/dist/components/slider/main.d.ts.map +1 -1
  297. package/dist/components/slider/main.js +55 -10
  298. package/dist/components/slider/main.js.map +1 -1
  299. package/dist/components/slider/props.d.ts +1 -0
  300. package/dist/components/slider/props.d.ts.map +1 -1
  301. package/dist/components/slider/style.css +15 -6
  302. package/dist/components/stack/main.d.ts +8 -0
  303. package/dist/components/stack/main.d.ts.map +1 -0
  304. package/dist/components/stack/main.js +25 -0
  305. package/dist/components/stack/main.js.map +1 -0
  306. package/dist/components/stack/props.d.ts +42 -0
  307. package/dist/components/stack/props.d.ts.map +1 -0
  308. package/dist/components/stack/props.js +2 -0
  309. package/dist/components/stack/props.js.map +1 -0
  310. package/dist/components/stack/style.css +68 -0
  311. package/dist/components/stepper/main.d.ts +3 -1
  312. package/dist/components/stepper/main.d.ts.map +1 -1
  313. package/dist/components/stepper/main.js +4 -0
  314. package/dist/components/stepper/main.js.map +1 -1
  315. package/dist/components/stepper/style.css +2 -2
  316. package/dist/components/switch/main.d.ts.map +1 -1
  317. package/dist/components/switch/main.js +9 -3
  318. package/dist/components/switch/main.js.map +1 -1
  319. package/dist/components/switch/props.d.ts +4 -1
  320. package/dist/components/switch/props.d.ts.map +1 -1
  321. package/dist/components/symbol/main.d.ts.map +1 -1
  322. package/dist/components/symbol/main.js +5 -1
  323. package/dist/components/symbol/main.js.map +1 -1
  324. package/dist/components/symbol/props.d.ts +10 -0
  325. package/dist/components/symbol/props.d.ts.map +1 -1
  326. package/dist/components/symbol/style.css +21 -3
  327. package/dist/components/tab-bar/main.d.ts.map +1 -1
  328. package/dist/components/tab-bar/main.js +8 -5
  329. package/dist/components/tab-bar/main.js.map +1 -1
  330. package/dist/components/tab-bar/props.d.ts +16 -12
  331. package/dist/components/tab-bar/props.d.ts.map +1 -1
  332. package/dist/components/tab-bar/style.css +38 -21
  333. package/dist/components/text-field/main.d.ts.map +1 -1
  334. package/dist/components/text-field/main.js +6 -3
  335. package/dist/components/text-field/main.js.map +1 -1
  336. package/dist/components/text-field/style.css +28 -17
  337. package/dist/components/toolbar/main.d.ts +5 -2
  338. package/dist/components/toolbar/main.d.ts.map +1 -1
  339. package/dist/components/toolbar/main.js +19 -1
  340. package/dist/components/toolbar/main.js.map +1 -1
  341. package/dist/components/toolbar/props.d.ts +18 -3
  342. package/dist/components/toolbar/props.d.ts.map +1 -1
  343. package/dist/components/toolbar/style.css +127 -11
  344. package/dist/components/tooltip/main.d.ts +6 -1
  345. package/dist/components/tooltip/main.d.ts.map +1 -1
  346. package/dist/components/tooltip/main.js +13 -7
  347. package/dist/components/tooltip/main.js.map +1 -1
  348. package/dist/components/tooltip/style.css +2 -2
  349. package/dist/components/typography/main.d.ts +1 -0
  350. package/dist/components/typography/main.d.ts.map +1 -1
  351. package/dist/components/typography/main.js +1 -0
  352. package/dist/components/typography/main.js.map +1 -1
  353. package/dist/components/typography/sizes.css +456 -0
  354. package/dist/components/typography/style.css +24 -456
  355. package/dist/components/utils/main.d.ts +50 -4
  356. package/dist/components/utils/main.d.ts.map +1 -1
  357. package/dist/components/utils/main.js +113 -3
  358. package/dist/components/utils/main.js.map +1 -1
  359. package/dist/components/viewport/current.d.ts +15 -0
  360. package/dist/components/viewport/current.d.ts.map +1 -0
  361. package/dist/components/viewport/current.js +74 -0
  362. package/dist/components/viewport/current.js.map +1 -0
  363. package/dist/components/viewport/edge-effect.d.ts.map +1 -1
  364. package/dist/components/viewport/edge-effect.js +58 -26
  365. package/dist/components/viewport/edge-effect.js.map +1 -1
  366. package/dist/components/viewport/edge.d.ts +7 -4
  367. package/dist/components/viewport/edge.d.ts.map +1 -1
  368. package/dist/components/viewport/edge.js +21 -7
  369. package/dist/components/viewport/edge.js.map +1 -1
  370. package/dist/components/viewport/focus-scroll.d.ts +21 -0
  371. package/dist/components/viewport/focus-scroll.d.ts.map +1 -0
  372. package/dist/components/viewport/focus-scroll.js +273 -0
  373. package/dist/components/viewport/focus-scroll.js.map +1 -0
  374. package/dist/components/viewport/input.d.ts +39 -1
  375. package/dist/components/viewport/input.d.ts.map +1 -1
  376. package/dist/components/viewport/input.js +122 -13
  377. package/dist/components/viewport/input.js.map +1 -1
  378. package/dist/components/viewport/main.d.ts +16 -1
  379. package/dist/components/viewport/main.d.ts.map +1 -1
  380. package/dist/components/viewport/main.js +276 -50
  381. package/dist/components/viewport/main.js.map +1 -1
  382. package/dist/components/viewport/padding.d.ts +1 -1
  383. package/dist/components/viewport/padding.d.ts.map +1 -1
  384. package/dist/components/viewport/padding.js +2 -2
  385. package/dist/components/viewport/props.d.ts +12 -2
  386. package/dist/components/viewport/props.d.ts.map +1 -1
  387. package/dist/components/viewport/status-bar.d.ts +9 -0
  388. package/dist/components/viewport/status-bar.d.ts.map +1 -0
  389. package/dist/components/viewport/status-bar.js +131 -0
  390. package/dist/components/viewport/status-bar.js.map +1 -0
  391. package/dist/components/viewport/style.css +67 -16
  392. package/dist/styles.css +371 -279
  393. package/package.json +5 -4
@@ -0,0 +1,1323 @@
1
+ /* Grid (see main.tsx). */
2
+
3
+ /* (A corner symbol's share shown, 0 to 1 (see below): its icon's colors at
4
+ that share, faded by it alone. Registered to transition, not inherited.) */
5
+ @property --uikit-grid-corner-shown {
6
+ inherits: false;
7
+ initial-value: 1;
8
+ syntax: '<number>';
9
+ }
10
+
11
+ @layer uikit-ish {
12
+ /* Square units: its columns and unit measured (see main.tsx), its rows
13
+ as tall as a column is wide; placed by CSS grid, in order (`dense`:
14
+ earlier holes filled). The containing block of its items' positions
15
+ (offsets measured for gliding), its sections' too. */
16
+ .uikit-grid-root {
17
+ position: relative;
18
+ display: grid;
19
+ gap: var(--uikit-grid-gap);
20
+ grid-auto-flow: row;
21
+ grid-auto-rows: var(--uikit-grid-unit);
22
+ grid-template-columns: repeat(var(--uikit-grid-columns), minmax(0, 1fr));
23
+ isolation: isolate;
24
+ overflow-anchor: none;
25
+ transition: padding-inline-end 300ms cubic-bezier(0.32, 0.72, 0, 1);
26
+
27
+
28
+ &[data-dense] {
29
+ grid-auto-flow: row dense;
30
+ }
31
+
32
+ /* (Not shown until its columns and unit are measured: see main.tsx.) */
33
+ &:not([data-grid-measured]) {
34
+ visibility: hidden;
35
+ }
36
+ }
37
+
38
+ /* Holding sections: a column of them, each its own grid of the same
39
+ columns and unit (from the root's measure), its header across them
40
+ above its items. */
41
+ .uikit-grid-root:has(> .uikit-grid-section) {
42
+ display: flex;
43
+ flex-direction: column;
44
+ gap: calc(var(--uikit-grid-gap) * 2);
45
+ }
46
+
47
+ .uikit-grid-section {
48
+ position: relative;
49
+ display: grid;
50
+ gap: var(--uikit-grid-gap);
51
+ grid-auto-flow: row;
52
+ grid-auto-rows: var(--uikit-grid-unit);
53
+ grid-template-columns: repeat(var(--uikit-grid-columns), minmax(0, 1fr));
54
+ transition: padding-inline-end 300ms cubic-bezier(0.32, 0.72, 0, 1);
55
+
56
+
57
+ &:has(> .uikit-grid-header) {
58
+ grid-template-rows: auto;
59
+ }
60
+
61
+ &[data-dense] {
62
+ grid-auto-flow: row dense;
63
+ }
64
+ }
65
+
66
+ .uikit-grid-header {
67
+ grid-column: 1 / -1;
68
+ margin-inline-end: calc(-1 * var(--uikit-grid-strip, 0px));
69
+ }
70
+
71
+ /* Editing: an end-of-line column after its columns, where what runs to
72
+ a row's end shows (breaks, a full width, a resize past it; see
73
+ layout.ts, main.tsx): room at its trailing end
74
+ (`--uikit-grid-end-width`, a third of a unit by default, and a gap),
75
+ its columns narrower by as much, all alike, its rows as tall; opening
76
+ and closing smoothly (what's drawn in it following, by the room as
77
+ it is: `--uikit-grid-strip`, see main.tsx). Nothing placed in it; not
78
+ editing, none. Its header as wide as ever. */
79
+ .uikit-grid-root[data-editing] {
80
+ --uikit-grid-end-room: calc(
81
+ var(--uikit-grid-end-width, calc(var(--uikit-grid-unit) / 3)) +
82
+ var(--uikit-grid-gap)
83
+ );
84
+ }
85
+
86
+ .uikit-grid-root[data-editing]:not(:has(> .uikit-grid-section)),
87
+ .uikit-grid-root[data-editing] .uikit-grid-section {
88
+ padding-inline-end: var(--uikit-grid-end-room);
89
+ }
90
+
91
+ /* (A full width's own columns, an area's, as the grid's; what it shows
92
+ through the end-of-line column too, if that's a full width.) */
93
+ .uikit-grid-item[data-grid-full] {
94
+ padding-inline-end: var(--uikit-grid-strip, 0);
95
+ }
96
+
97
+ /* (A full-width tile, through the end-of-line column too; in an area
98
+ with room around it, kept to its columns, its resize outline only
99
+ reaching into that column, see main.tsx.) */
100
+ .uikit-grid-item[data-grid-full]:not([data-grid-room])
101
+ > :is(.uikit-grid-item-body, .uikit-grid-stand-in)[data-size^='*'] {
102
+ margin-inline-end: calc(-1 * var(--uikit-grid-strip, 0px));
103
+ }
104
+
105
+ /* Editing: its rows (a section's) outlined as one band, as they're read
106
+ (see layout.ts): its first from the grid's start on off its page's
107
+ trailing edge, the rows between in from its leading edge and on off
108
+ it, its last in from the leading edge to the grid's end; behind what's
109
+ in them. Shown only while a tile's dragged to move it (the root's
110
+ `data-grid-drag`, see edit.ts), fading in and out by its color (no
111
+ layer changing). */
112
+ .uikit-grid-root[data-editing],
113
+ .uikit-grid-root[data-editing] .uikit-grid-section {
114
+ &::before {
115
+ position: absolute;
116
+ z-index: -1;
117
+ height: var(--uikit-grid-bands-height, 0);
118
+ background-color: var(--uikit-grid-bands-shown, transparent);
119
+ content: '';
120
+ inset-block-start: var(--uikit-grid-bands-top, 0);
121
+ inset-inline: calc(-1 * var(--uikit-grid-bands-start, 0px)) calc(-1 * var(--uikit-grid-bands-end, 0px));
122
+ mask: var(--uikit-grid-bands, none) 0 0 / 100% 100% no-repeat;
123
+ pointer-events: none;
124
+ transition: background-color 200ms;
125
+ }
126
+ }
127
+
128
+ .uikit-grid-root[data-editing][data-grid-drag='move'] {
129
+ --uikit-grid-bands-shown: var(
130
+ --uikit-grid-band-color,
131
+ color-mix(in srgb, var(--color-ui-label) 15%, transparent)
132
+ );
133
+ }
134
+
135
+ /* An item (a spacer, a dragged cell's placeholder): its effective size's
136
+ span. */
137
+ .uikit-grid-item,
138
+ .uikit-grid-spacer,
139
+ .uikit-grid-placeholder {
140
+ position: relative;
141
+ display: grid;
142
+ min-width: 0;
143
+ min-height: 0;
144
+ grid-column: span var(--uikit-grid-item-columns, 1);
145
+ grid-row: span var(--uikit-grid-item-rows, 1);
146
+ }
147
+
148
+ /* An item's area (its size, without one of its own): a grid of its
149
+ units, its tile (its body) on it, centered (see main.tsx). */
150
+ .uikit-grid-item {
151
+ gap: var(--uikit-grid-gap);
152
+ grid-template-columns: repeat(
153
+ var(--uikit-grid-item-columns, 1),
154
+ minmax(0, 1fr)
155
+ );
156
+ grid-template-rows: repeat(var(--uikit-grid-item-rows, 1), minmax(0, 1fr));
157
+ }
158
+
159
+ /* Its area handle's place (see main.tsx): no box of its own, the handle
160
+ in the cell's corner. */
161
+ .uikit-grid-item-slot {
162
+ display: contents;
163
+ }
164
+
165
+ /* Its tile: what's in it filling it, its corner controls on it. */
166
+
167
+ /* (Its stand-in, open (see main.tsx, below): placed as it is.) */
168
+ .uikit-grid-item-body,
169
+ .uikit-grid-stand-in {
170
+ position: relative;
171
+ display: grid;
172
+ min-width: 0;
173
+ min-height: 0;
174
+ box-sizing: border-box;
175
+ grid-column: var(--uikit-grid-body-column, 1) / span
176
+ var(--uikit-grid-body-columns, 1);
177
+ grid-row: var(--uikit-grid-body-row, 1) / span
178
+ var(--uikit-grid-body-rows, 1);
179
+ }
180
+
181
+ /* Editing, an area bigger than its tile: the room around it hatched,
182
+ its tile cut out exactly (what's in it may be translucent): its box,
183
+ less its corners outside its radius (the item radius). */
184
+ .uikit-grid-root[data-editing] .uikit-grid-item[data-grid-room]::before {
185
+ --uikit-grid-pitch: calc(var(--uikit-grid-unit) + var(--uikit-grid-gap));
186
+ --uikit-grid-column-pitch: calc(
187
+ var(--uikit-grid-column, var(--uikit-grid-unit)) + var(--uikit-grid-gap)
188
+ );
189
+ --uikit-grid-room-radius: var(--uikit-grid-item-radius, 24px);
190
+ --uikit-grid-room-x: calc(
191
+ var(--uikit-grid-body-x, 0) * var(--uikit-grid-column-pitch) +
192
+ var(--uikit-grid-inset-x, 0) * var(--uikit-grid-corner-inset, 24px) +
193
+ var(--uikit-grid-inset-strip, 0) * var(--uikit-grid-strip, 0px)
194
+ );
195
+ --uikit-grid-room-y: calc(
196
+ var(--uikit-grid-body-y, 0) * var(--uikit-grid-pitch) +
197
+ var(--uikit-grid-inset-y, 0) * var(--uikit-grid-corner-inset, 24px)
198
+ );
199
+ --uikit-grid-room-width: calc(
200
+ var(--uikit-grid-body-columns, 1) * var(--uikit-grid-column-pitch) -
201
+ var(--uikit-grid-gap)
202
+ );
203
+ --uikit-grid-room-height: calc(
204
+ var(--uikit-grid-body-rows, 1) * var(--uikit-grid-pitch) -
205
+ var(--uikit-grid-gap)
206
+ );
207
+ --uikit-grid-room-x-end: calc(
208
+ var(--uikit-grid-room-x) + var(--uikit-grid-room-width) -
209
+ var(--uikit-grid-room-radius)
210
+ );
211
+ --uikit-grid-room-y-end: calc(
212
+ var(--uikit-grid-room-y) + var(--uikit-grid-room-height) -
213
+ var(--uikit-grid-room-radius)
214
+ );
215
+
216
+ position: absolute;
217
+ border-radius: var(--uikit-grid-item-radius, 24px);
218
+ background-image: repeating-linear-gradient(
219
+ -45deg,
220
+ var(
221
+ --uikit-grid-room-color,
222
+ color-mix(in srgb, var(--color-ui-label) 18%, transparent)
223
+ )
224
+ 0 2px,
225
+ transparent 0 10px
226
+ );
227
+
228
+ /* (A full width's: in its shape, see layout.ts.) */
229
+ clip-path: var(--uikit-grid-full-shape, none);
230
+ content: '';
231
+ inset: 0;
232
+ mask-composite: add, add, add, add, exclude, add;
233
+ mask-image:
234
+ radial-gradient(
235
+ circle at 100% 100%,
236
+ transparent calc(var(--uikit-grid-room-radius) - 0.5px),
237
+ #000 calc(var(--uikit-grid-room-radius) + 0.5px)
238
+ ),
239
+ radial-gradient(
240
+ circle at 0 100%,
241
+ transparent calc(var(--uikit-grid-room-radius) - 0.5px),
242
+ #000 calc(var(--uikit-grid-room-radius) + 0.5px)
243
+ ),
244
+ radial-gradient(
245
+ circle at 100% 0,
246
+ transparent calc(var(--uikit-grid-room-radius) - 0.5px),
247
+ #000 calc(var(--uikit-grid-room-radius) + 0.5px)
248
+ ),
249
+ radial-gradient(
250
+ circle at 0 0,
251
+ transparent calc(var(--uikit-grid-room-radius) - 0.5px),
252
+ #000 calc(var(--uikit-grid-room-radius) + 0.5px)
253
+ ),
254
+ linear-gradient(#000 0 0),
255
+ linear-gradient(#000 0 0);
256
+ mask-position:
257
+ var(--uikit-grid-room-x) var(--uikit-grid-room-y),
258
+ var(--uikit-grid-room-x-end) var(--uikit-grid-room-y),
259
+ var(--uikit-grid-room-x) var(--uikit-grid-room-y-end),
260
+ var(--uikit-grid-room-x-end) var(--uikit-grid-room-y-end),
261
+ var(--uikit-grid-room-x) var(--uikit-grid-room-y),
262
+ 0 0;
263
+ mask-repeat: no-repeat;
264
+ mask-size:
265
+ var(--uikit-grid-room-radius) var(--uikit-grid-room-radius),
266
+ var(--uikit-grid-room-radius) var(--uikit-grid-room-radius),
267
+ var(--uikit-grid-room-radius) var(--uikit-grid-room-radius),
268
+ var(--uikit-grid-room-radius) var(--uikit-grid-room-radius),
269
+ var(--uikit-grid-room-width) var(--uikit-grid-room-height),
270
+ 100% 100%;
271
+ pointer-events: none;
272
+
273
+ /* (Mirrored: its places from the right, each corner's image where
274
+ that corner is.) */
275
+ &:dir(rtl) {
276
+ mask-position:
277
+ right var(--uikit-grid-room-x-end) top var(--uikit-grid-room-y),
278
+ right var(--uikit-grid-room-x) top var(--uikit-grid-room-y),
279
+ right var(--uikit-grid-room-x-end) top var(--uikit-grid-room-y-end),
280
+ right var(--uikit-grid-room-x) top var(--uikit-grid-room-y-end),
281
+ right var(--uikit-grid-room-x) top var(--uikit-grid-room-y),
282
+ 0 0;
283
+ }
284
+ }
285
+
286
+ /* Editing, an area bigger than its tile: its edge (as its hatching,
287
+ see above, a little stronger), so its room isn't taken for the row
288
+ it's in; a full width's in its shape (see layout.ts). Not editing,
289
+ none. */
290
+ .uikit-grid-room-edge {
291
+ display: none;
292
+ }
293
+
294
+ .uikit-grid-root[data-editing] .uikit-grid-item[data-grid-room] > .uikit-grid-room-edge {
295
+ position: absolute;
296
+ display: block;
297
+ box-sizing: border-box;
298
+ border: 1.5px solid
299
+ var(
300
+ --uikit-grid-room-edge-color,
301
+ color-mix(in srgb, var(--color-ui-label) 30%, transparent)
302
+ );
303
+ border-radius: var(--uikit-grid-item-radius, 24px);
304
+ inset: 0;
305
+ pointer-events: none;
306
+ }
307
+
308
+ .uikit-grid-root[data-editing] .uikit-grid-item[data-grid-full][data-grid-room] > .uikit-grid-room-edge {
309
+ border: none;
310
+ border-radius: 0;
311
+ background-color: var(
312
+ --uikit-grid-room-edge-color,
313
+ color-mix(in srgb, var(--color-ui-label) 30%, transparent)
314
+ );
315
+
316
+ /* (Its edge, in its shape (see layout.ts); not shaped yet: nothing,
317
+ not a block.) */
318
+ clip-path: var(--uikit-grid-full-edge, inset(50%));
319
+ }
320
+
321
+ /* A full width (`*` columns, see props.tsx): from the first column to
322
+ the last, whatever their count (starting a row of its own); editing,
323
+ through the end-of-line column, unlike a tile as wide as the columns. */
324
+ :is(.uikit-grid-item, .uikit-grid-spacer)[data-grid-full] {
325
+ grid-column: 1 / -1;
326
+ margin-inline-end: calc(-1 * var(--uikit-grid-strip, 0px));
327
+ }
328
+
329
+ /* Editing: what's named dragged by a held touch, not scrolled by it (see
330
+ main.tsx); the one dragged above the others. */
331
+ .uikit-grid-root[data-editing] :is(.uikit-grid-item, .uikit-grid-spacer, .uikit-grid-break) {
332
+ -webkit-user-select: none;
333
+ user-select: none;
334
+
335
+ /* (Held, no tap highlight darkening it, no callout.) */
336
+ &[data-grid-movable] {
337
+ cursor: grab;
338
+ -webkit-tap-highlight-color: transparent;
339
+ -webkit-touch-callout: none;
340
+ }
341
+
342
+ &:focus-visible {
343
+ border-radius: var(--uikit-grid-item-radius, 24px);
344
+ outline: 2px solid var(--color-ui-primary);
345
+ outline-offset: 2px;
346
+ }
347
+ }
348
+
349
+ /* Dragged (see edit.ts): lifted out of the flow, where it was (its
350
+ inline position and size), above every section. */
351
+ .uikit-grid-root [data-grid-dragging] {
352
+ position: absolute;
353
+ z-index: 2;
354
+ margin: 0;
355
+ cursor: grabbing;
356
+ }
357
+
358
+ /* A spawn (see main.tsx): a cell as big as its area, its tile (its
359
+ body) dashed as a spacer is (editing or not), a button filling it, its
360
+ sign in its middle (the app's, e.g. a symbol; none by default) in that
361
+ color; its controls beside the button, over it. */
362
+ .uikit-grid-spawn > .uikit-grid-item-body {
363
+ border-radius: var(--uikit-grid-item-radius, 24px);
364
+
365
+ &::after {
366
+ position: absolute;
367
+ width: var(--uikit-grid-sign-size, 32px);
368
+ height: var(--uikit-grid-sign-size, 32px);
369
+ margin: auto;
370
+ background-color: var(
371
+ --uikit-grid-spacer-color,
372
+ color-mix(in srgb, var(--color-ui-label) 35%, transparent)
373
+ );
374
+ content: '';
375
+ inset: 0;
376
+ mask: var(--uikit-grid-spawn-sign, linear-gradient(transparent 0 0)) center / contain no-repeat;
377
+ pointer-events: none;
378
+ }
379
+ }
380
+
381
+ .uikit-grid-spawn-button {
382
+ position: absolute;
383
+ padding: 0;
384
+ border: none;
385
+ border-radius: var(--uikit-grid-item-radius, 24px);
386
+ margin: 0;
387
+ background: none;
388
+ color: inherit;
389
+ cursor: pointer;
390
+ font: inherit;
391
+ inset: 0;
392
+ -webkit-tap-highlight-color: transparent;
393
+ -webkit-touch-callout: none;
394
+
395
+ &:focus-visible {
396
+ outline: 2px solid var(--color-ui-primary);
397
+ outline-offset: 2px;
398
+ }
399
+ }
400
+
401
+ /* A spacer (a break): a hole, what's in it (e.g. a control removing it)
402
+ shown only while editing, a spacer outlined then (a break filled, see
403
+ below). */
404
+ .uikit-grid-spacer > * {
405
+ visibility: hidden;
406
+ }
407
+
408
+ .uikit-grid-root[data-editing] :is(.uikit-grid-spacer, .uikit-grid-break) > * {
409
+ visibility: visible;
410
+ }
411
+
412
+ .uikit-grid-root[data-editing] .uikit-grid-spacer {
413
+ border-radius: var(--uikit-grid-item-radius, 24px);
414
+ }
415
+
416
+ /* Dashed (a spacer, editing; an add tile's tile; a dragged tile's hole
417
+ and a spacer to be, see edit.ts): an SVG outline over it (see
418
+ dashes.ts), 2px on its edge, its dashes by its size in units, so they
419
+ stretch with its columns; a hole's in `--uikit-grid-hole-color`, the
420
+ rest in the spacer color. */
421
+ .uikit-grid-dashes {
422
+ position: absolute;
423
+ overflow: visible;
424
+ width: calc(100% - 2px);
425
+ height: calc(100% - 2px);
426
+ fill: none;
427
+ inset-block-start: 1px;
428
+ inset-inline-start: 1px;
429
+ pointer-events: none;
430
+ stroke: var(
431
+ --uikit-grid-spacer-color,
432
+ color-mix(in srgb, var(--color-ui-label) 35%, transparent)
433
+ );
434
+ stroke-dasharray: 0.55 0.45;
435
+ stroke-width: 2px;
436
+
437
+ rect {
438
+ rx: calc(var(--uikit-grid-item-radius, 24px) - 1px);
439
+ }
440
+ }
441
+
442
+ .uikit-grid-placeholder[data-grid-hole] > .uikit-grid-dashes {
443
+ stroke: var(
444
+ --uikit-grid-hole-color,
445
+ color-mix(in srgb, var(--color-ui-label) 40%, transparent)
446
+ );
447
+ }
448
+
449
+ /* A break (one to be, see edit.ts): one row in the grid, drawn as tall
450
+ as its rows (over its fillers below, see layout.ts), unless after a
451
+ full row; not editing, not drawn (keeping nothing empty: none). */
452
+ .uikit-grid-break,
453
+ .uikit-grid-break-placeholder {
454
+ position: relative;
455
+ display: grid;
456
+ min-width: 0;
457
+ height: calc(
458
+ var(--uikit-grid-break-height) * var(--uikit-grid-unit) +
459
+ (var(--uikit-grid-break-height) - 1) * var(--uikit-grid-gap)
460
+ );
461
+ align-self: start;
462
+ grid-row: span 1;
463
+
464
+ --uikit-grid-break-height: var(
465
+ --uikit-grid-break-drawn,
466
+ var(--uikit-grid-break-rows, 1)
467
+ );
468
+ }
469
+
470
+ .uikit-grid-root:not([data-editing]) .uikit-grid-break {
471
+ visibility: hidden;
472
+
473
+ &[data-grid-break-none] {
474
+ display: none;
475
+ }
476
+ }
477
+
478
+ /* What keeps the rows below a break empty (see layout.ts). */
479
+ .uikit-grid-break-fill {
480
+ min-width: 0;
481
+ grid-row: span 1;
482
+ pointer-events: none;
483
+ }
484
+
485
+ /* Dragged, taller than a row (an item, a spacer; where it'll land, where
486
+ it was): its rows below its first fainter; where it lands is decided
487
+ by its first row (its top left), the others following. */
488
+ .uikit-grid-root [data-grid-dragging]:is(.uikit-grid-item, .uikit-grid-spacer):not([data-size$='x1']),
489
+ .uikit-grid-root .uikit-grid-break[data-grid-dragging]:not([data-grid-rows='1']),
490
+ .uikit-grid-root .uikit-grid-placeholder[data-grid-tall] {
491
+ mask-image: linear-gradient(
492
+ #000 0 var(--uikit-grid-unit),
493
+ rgb(0 0 0 / 35%) 0
494
+ );
495
+ }
496
+
497
+ /* (A spacer, only outlined: its first row filled, too.) */
498
+ .uikit-grid-root .uikit-grid-spacer[data-grid-dragging] {
499
+ background-image: linear-gradient(
500
+ var(
501
+ --uikit-grid-first-row-color,
502
+ color-mix(in srgb, var(--color-ui-label) 20%, transparent)
503
+ )
504
+ 0 var(--uikit-grid-unit),
505
+ transparent 0
506
+ );
507
+ }
508
+
509
+ /* Dragging (see edit.ts): where it'll land, softly filled; where it was
510
+ (while it's to land after it), outlined. */
511
+ .uikit-grid-placeholder {
512
+ border-radius: var(--uikit-grid-item-radius, 24px);
513
+ background-color: color-mix(in srgb, var(--color-ui-label) 10%, transparent);
514
+
515
+ &[data-grid-hole] {
516
+ background-color: transparent;
517
+ }
518
+ }
519
+
520
+ /* A spacer to be (see edit.ts): as a spacer, editing. */
521
+ .uikit-grid-root .uikit-grid-spacer-placeholder {
522
+ background-color: transparent;
523
+ }
524
+
525
+ /* A break, editing (one to be, see edit.ts): the rest of its rows,
526
+ filled, from where it starts to the grid's end (past what's in the
527
+ way, see layout.ts), its rows below from their start (not the gap
528
+ above them); one shape, every corner rounded. Drawn as one box behind
529
+ it, from its first row's start, its shape a clip (see layout.ts; one
530
+ path: no seams, drawn at once; a break to be's rows below its first
531
+ fainter); while it's dragged, just itself. */
532
+ .uikit-grid-root[data-editing] .uikit-grid-break,
533
+ .uikit-grid-root .uikit-grid-break-placeholder {
534
+ --uikit-grid-break-color: color-mix(
535
+ in srgb,
536
+ var(--color-ui-label) 12%,
537
+ transparent
538
+ );
539
+ --uikit-grid-break-pitch: calc(
540
+ var(--uikit-grid-column, var(--uikit-grid-unit)) + var(--uikit-grid-gap)
541
+ );
542
+
543
+ border: none;
544
+ border-radius: var(--uikit-grid-item-radius, 24px);
545
+ background-color: transparent;
546
+
547
+ &::before {
548
+ position: absolute;
549
+ z-index: -1;
550
+ background-image: linear-gradient(
551
+ var(--uikit-grid-break-color) 0 var(--uikit-grid-break-fade, 100%),
552
+ color-mix(in srgb, var(--uikit-grid-break-color) 35%, transparent) 0
553
+ );
554
+ clip-path: var(--uikit-grid-break-shape, none);
555
+ content: '';
556
+ inset-block: calc(
557
+ -1 * var(--uikit-grid-break-above, 0) *
558
+ (var(--uikit-grid-unit) + var(--uikit-grid-gap))
559
+ )
560
+ 0;
561
+ inset-inline: calc(
562
+ -1 * var(--uikit-grid-break-from, 0) * var(--uikit-grid-break-pitch)
563
+ )
564
+ calc(
565
+ -1 * var(--uikit-grid-break-rest, 0) * var(--uikit-grid-break-pitch) -
566
+ var(--uikit-grid-strip, 0px)
567
+ );
568
+ pointer-events: none;
569
+ }
570
+ }
571
+
572
+ /* Where it's anchored (a break, one to be): the end of its first row
573
+ (in the end-of-line column, see layout.ts), a return sign in its
574
+ middle, still (its own element, see main.tsx, edit.ts). */
575
+ .uikit-grid-root[data-editing] :is(.uikit-grid-break, .uikit-grid-break-placeholder) > .uikit-grid-break-sign {
576
+ position: absolute;
577
+ width: 20px;
578
+ height: 20px;
579
+ background-color: var(
580
+ --uikit-grid-break-sign-color,
581
+ color-mix(in srgb, var(--color-ui-label) 55%, transparent)
582
+ );
583
+ inset-block-start: calc(
584
+ (var(--uikit-grid-unit) - 20px) / 2 - var(--uikit-grid-break-above, 0) *
585
+ (var(--uikit-grid-unit) + var(--uikit-grid-gap))
586
+ );
587
+ inset-inline-end: calc(
588
+ (var(--uikit-grid-end, 32px) - 20px) / 2 - var(--uikit-grid-break-sign, 0) *
589
+ var(--uikit-grid-break-pitch, 0px) - var(--uikit-grid-strip, 0px)
590
+ );
591
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16 4v6a3 3 0 0 1-3 3H5M8.5 9.5 5 13l3.5 3.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
592
+ center / contain no-repeat;
593
+ pointer-events: none;
594
+ }
595
+
596
+ .uikit-grid-root[data-editing] :is(.uikit-grid-break, .uikit-grid-break-placeholder):dir(rtl) > .uikit-grid-break-sign {
597
+ scale: -1 1;
598
+ }
599
+
600
+ /* (After a full width (see layout.ts): in the half of its first row
601
+ below that one's part of the end-of-line column, its rows' head;
602
+ taking no room, its own box's top.) */
603
+ .uikit-grid-root[data-editing] .uikit-grid-break[data-grid-break-after-full] > .uikit-grid-break-sign {
604
+ inset-block-start: calc(
605
+ ((var(--uikit-grid-unit) - var(--uikit-grid-gap)) / 2 - 20px) / 2 +
606
+ var(--uikit-grid-break-head, 0px) - var(--uikit-grid-break-above, 0) *
607
+ (var(--uikit-grid-unit) + var(--uikit-grid-gap))
608
+ );
609
+ }
610
+
611
+ /* Keeping nothing empty (after a full row, see layout.ts): in that row's
612
+ end-of-line column (see above), a unit tall, taking no room; after a
613
+ full width, below its part of that column, as tall as its rows reach
614
+ (`--uikit-grid-break-none-height`). */
615
+ .uikit-grid-root[data-editing] .uikit-grid-break[data-grid-break-none],
616
+ .uikit-grid-root .uikit-grid-break-placeholder[data-grid-break-none] {
617
+ /* (What's in it in its own box: nothing past it.) */
618
+ --uikit-grid-strip: 0px;
619
+
620
+ position: absolute;
621
+ z-index: 1;
622
+ width: var(--uikit-grid-end, 0);
623
+ height: var(--uikit-grid-break-none-height, var(--uikit-grid-unit));
624
+ border-radius: var(--uikit-grid-item-radius, 24px);
625
+ inset-block-start: var(--uikit-grid-break-top, 0);
626
+ inset-inline-end: 0;
627
+
628
+ /* (Drawn as any break is, behind it: its box, rounded; a drop target
629
+ too, as one.) */
630
+ &::before {
631
+ border-radius: inherit;
632
+ }
633
+ }
634
+
635
+ .uikit-grid-root[data-editing] .uikit-grid-break[data-grid-dragging] {
636
+ background-color: var(--uikit-grid-break-color);
637
+
638
+ &::before {
639
+ content: none;
640
+ }
641
+ }
642
+
643
+ /* A section taking drops (a root without sections too), editing: a row
644
+ at its end to drop in (empty: its only one), after its cells however they're shown (see edit.ts);
645
+ outlined as its rows are (see above). */
646
+ .uikit-grid-root[data-editing] .uikit-grid-section[data-grid-drop]::after,
647
+ .uikit-grid-root[data-editing][data-grid-drop]:not(
648
+ :has(> .uikit-grid-section)
649
+ )::after {
650
+ order: 999999;
651
+ content: '';
652
+ grid-column: 1 / -1;
653
+ }
654
+
655
+ /* Resized (its handle dragged, see main.tsx): its size to be outlined
656
+ over it from its top leading corner, nothing moving until it's
657
+ released; above what's around it; grown past its row's end (into the
658
+ end-of-line column), where it'll land (`--uikit-grid-resize-x`, `-y`,
659
+ from there). A break's: its rows, as wide. */
660
+ .uikit-grid-root[data-editing] [data-grid-resizing]::after {
661
+ position: absolute;
662
+ z-index: 3;
663
+ width: calc(
664
+ var(--uikit-grid-resize-columns, 1) *
665
+ var(--uikit-grid-column, var(--uikit-grid-unit)) +
666
+ (var(--uikit-grid-resize-columns, 1) - 1) * var(--uikit-grid-gap)
667
+ );
668
+ height: calc(
669
+ var(--uikit-grid-resize-rows, 1) * var(--uikit-grid-unit) +
670
+ (var(--uikit-grid-resize-rows, 1) - 1) * var(--uikit-grid-gap)
671
+ );
672
+ box-sizing: border-box;
673
+ border: 2px solid var(--color-ui-primary);
674
+ border-radius: var(--uikit-grid-item-radius, 24px);
675
+ background-color: color-mix(
676
+ in srgb,
677
+ var(--color-ui-primary) 15%,
678
+ transparent
679
+ );
680
+ content: '';
681
+ inset-block-start: var(--uikit-grid-resize-y, 0);
682
+ inset-inline-start: var(--uikit-grid-resize-x, 0);
683
+ pointer-events: none;
684
+
685
+ /* (Its size changing as the grid's cells glide; as it appears, at
686
+ once; with reduced motion, at once.) */
687
+ transition:
688
+ width 300ms cubic-bezier(0.32, 0.72, 0, 1),
689
+ height 300ms cubic-bezier(0.32, 0.72, 0, 1);
690
+
691
+ }
692
+
693
+ /* (A tile's in its area: its place there changing with its size, as
694
+ its placement keeps it (e.g. its trailing side, trailing).) */
695
+ .uikit-grid-root[data-editing] .uikit-grid-item-body[data-grid-resizing]::after {
696
+ transition:
697
+ width 300ms cubic-bezier(0.32, 0.72, 0, 1),
698
+ height 300ms cubic-bezier(0.32, 0.72, 0, 1),
699
+ inset-block-start 300ms cubic-bezier(0.32, 0.72, 0, 1),
700
+ inset-inline-start 300ms cubic-bezier(0.32, 0.72, 0, 1);
701
+
702
+ }
703
+
704
+ /* (A full width's: through the end-of-line column.) */
705
+ .uikit-grid-root[data-editing] [data-grid-resizing][data-grid-resize-full]::after {
706
+ width: calc(
707
+ var(--uikit-grid-resize-columns, 1) *
708
+ var(--uikit-grid-column, var(--uikit-grid-unit)) +
709
+ (var(--uikit-grid-resize-columns, 1) - 1) * var(--uikit-grid-gap) +
710
+ var(--uikit-grid-strip, 0px)
711
+ );
712
+ }
713
+
714
+ /* Offered while dragging (a spacer, a break to be added, see edit.ts)
715
+ or taken in by a resize (see main.tsx; its controls hidden while it's
716
+ marked): a sign in its middle (the app's, e.g. a symbol; none by
717
+ default), a spacer's in its outline's color, a break's in its return
718
+ sign's. */
719
+ .uikit-grid-root[data-editing] [data-grid-merging] > :is(.uikit-grid-resize-handle, .uikit-grid-remove-button) {
720
+ visibility: hidden;
721
+ }
722
+
723
+ .uikit-grid-root .uikit-grid-spacer-placeholder::after,
724
+ .uikit-grid-root .uikit-grid-break-placeholder[data-grid-offered]::after,
725
+ .uikit-grid-root[data-editing] [data-grid-merging]:is(.uikit-grid-spacer, .uikit-grid-break)::after {
726
+ position: absolute;
727
+ width: var(--uikit-grid-sign-size, 32px);
728
+ height: var(--uikit-grid-sign-size, 32px);
729
+ margin: auto;
730
+ background-color: var(
731
+ --uikit-grid-spacer-color,
732
+ color-mix(in srgb, var(--color-ui-label) 35%, transparent)
733
+ );
734
+ content: '';
735
+ inset: 0;
736
+ mask: var(--uikit-grid-offer-sign, linear-gradient(transparent 0 0)) center / contain no-repeat;
737
+ pointer-events: none;
738
+ }
739
+
740
+ .uikit-grid-root .uikit-grid-break-placeholder[data-grid-offered]::after,
741
+ .uikit-grid-root[data-editing] .uikit-grid-break[data-grid-merging]::after {
742
+ background-color: var(
743
+ --uikit-grid-break-sign-color,
744
+ color-mix(in srgb, var(--color-ui-label) 55%, transparent)
745
+ );
746
+ }
747
+
748
+ .uikit-grid-root[data-editing] [data-grid-merging]:is(.uikit-grid-spacer, .uikit-grid-break)::after {
749
+ mask-image: var(--uikit-grid-merge-sign, linear-gradient(transparent 0 0));
750
+ }
751
+
752
+
753
+ /* A resize's row change (see main.tsx): grown into the next row, an
754
+ outline as the resize's, from the tile to its row's end-of-line
755
+ column, as tall as it, a return sign (a break's) in its middle;
756
+ shrunk back into the row before, the same there, fading in (by its
757
+ colors), its sign turned around and mirrored (from the bottom
758
+ trailing corner up, pointing to the top leading). */
759
+ .uikit-grid-resize-wrap {
760
+ position: absolute;
761
+ z-index: 3;
762
+ box-sizing: border-box;
763
+ border: 2px solid var(--color-ui-primary);
764
+ border-radius: var(--uikit-grid-item-radius, 24px);
765
+ background-color: color-mix(in srgb, var(--color-ui-primary) 15%, transparent);
766
+ pointer-events: none;
767
+ transition:
768
+ inset-inline-start 300ms cubic-bezier(0.32, 0.72, 0, 1),
769
+ inset-block-start 300ms cubic-bezier(0.32, 0.72, 0, 1),
770
+ width 300ms cubic-bezier(0.32, 0.72, 0, 1),
771
+ height 300ms cubic-bezier(0.32, 0.72, 0, 1);
772
+
773
+ &::after {
774
+ position: absolute;
775
+ width: 20px;
776
+ height: 20px;
777
+ margin: auto;
778
+ background-color: var(--color-ui-primary);
779
+ content: '';
780
+ inset: 0;
781
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16 4v6a3 3 0 0 1-3 3H5M8.5 9.5 5 13l3.5 3.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
782
+ center / contain no-repeat;
783
+ transition: background-color 200ms;
784
+ }
785
+
786
+ &:dir(rtl)::after {
787
+ scale: -1 1;
788
+ }
789
+
790
+ /* (Shrunk back: as it is, fading in (by its colors); its sign turned
791
+ around and mirrored: flipped upright.) */
792
+ &[data-direction='previous'] {
793
+ border-color: transparent;
794
+ background-color: transparent;
795
+ transition:
796
+ border-color 200ms,
797
+ background-color 200ms;
798
+
799
+ &::after {
800
+ background-color: transparent;
801
+ scale: 1 -1;
802
+ }
803
+
804
+ &[data-shown] {
805
+ border-color: var(--color-ui-primary);
806
+ background-color: color-mix(
807
+ in srgb,
808
+ var(--color-ui-primary) 15%,
809
+ transparent
810
+ );
811
+
812
+ &::after {
813
+ background-color: var(--color-ui-primary);
814
+ }
815
+ }
816
+ }
817
+
818
+ &[data-direction='previous']:dir(rtl)::after {
819
+ scale: -1 -1;
820
+ }
821
+
822
+ }
823
+
824
+ /* (A full width's, still one: its shape as it'd be (see main.tsx,
825
+ layout.ts), filled and edged by its mask, as a break's below.) */
826
+ .uikit-grid-root[data-editing] .uikit-grid-item[data-grid-resize-shaped]::after {
827
+ width: var(--uikit-grid-resize-width, 100%);
828
+ height: var(--uikit-grid-resize-height, 100%);
829
+ border: none;
830
+ border-radius: 0;
831
+ background-color: var(--color-ui-primary);
832
+ inset-block-start: 0;
833
+ inset-inline-start: 0;
834
+ mask: var(--uikit-grid-resize-shape, none) 0 0 / 100% 100% no-repeat;
835
+ transition: none;
836
+ }
837
+
838
+ /* (A break's: its shape as it'd be, through the end-of-line column (see
839
+ main.tsx, layout.ts), filled and edged by its mask.) */
840
+ .uikit-grid-root[data-editing] .uikit-grid-break[data-grid-resizing]::after {
841
+ width: var(--uikit-grid-resize-width, 100%);
842
+ height: var(--uikit-grid-resize-height, 100%);
843
+ border: none;
844
+ border-radius: 0;
845
+ background-color: var(--color-ui-primary);
846
+ inset-block-start: var(--uikit-grid-resize-top, 0);
847
+ inset-inline-start: var(--uikit-grid-resize-start, 0);
848
+ mask: var(--uikit-grid-resize-shape, none) 0 0 / 100% 100% no-repeat;
849
+ transition: none;
850
+ }
851
+
852
+
853
+ /* A corner button's icon (see below): its outlines filled; under each, a 3px stroke, its backing
854
+ (1.5px around it), faint, where it's on no fill (a spacer, a spawn,
855
+ an area's room; `--uikit-grid-corner-backing`, see below): legible on
856
+ whatever's behind it; an item's own fill is its backing. */
857
+ .uikit-grid-corner-icon {
858
+ display: block;
859
+ overflow: visible;
860
+ fill: color-mix(
861
+ in srgb,
862
+ currentcolor calc(var(--uikit-grid-corner-shown) * 100%),
863
+ transparent
864
+ );
865
+ paint-order: stroke;
866
+ stroke: color-mix(
867
+ in srgb,
868
+ var(--uikit-grid-corner-backing, transparent)
869
+ calc(var(--uikit-grid-corner-shown) * 100%),
870
+ transparent
871
+ );
872
+ stroke-linejoin: round;
873
+ stroke-width: 3px;
874
+
875
+ /* (Fading in and out by its share shown (see the top), nothing else:
876
+ its colors change at once, as its surroundings' do, e.g. its card
877
+ lit.) */
878
+ transition: --uikit-grid-corner-shown 200ms;
879
+ }
880
+
881
+ /* A corner button (see main.tsx; the grid's controls, a card's): a 44px
882
+ target in its cell's corner, its icon 16.5px in from both of the
883
+ corner's edges (its content box a 33px square there), at the corner
884
+ icons' size, in the label's color. A movable cell's sign is placed as
885
+ one is. Hidden, see the end. */
886
+ .uikit-grid-corner-button,
887
+ .uikit-grid-move-sign {
888
+ position: absolute;
889
+ z-index: 1;
890
+ display: grid;
891
+ width: 44px;
892
+ height: 44px;
893
+ box-sizing: border-box;
894
+ padding: 0;
895
+ border: none;
896
+ margin: 0;
897
+ background: none;
898
+ color: var(--color-ui-label);
899
+ font-size: var(--uikit-grid-corner-icon-size, 15px);
900
+ line-height: 0;
901
+ place-items: center;
902
+
903
+ &[data-grid-corner^='top'] {
904
+ inset-block-start: 0;
905
+ padding-block-end: 11px;
906
+ }
907
+
908
+ &[data-grid-corner^='bottom'] {
909
+ inset-block-end: 0;
910
+ padding-block-start: 11px;
911
+ }
912
+
913
+ &[data-grid-corner$='leading'] {
914
+ inset-inline-start: 0;
915
+ padding-inline-end: 11px;
916
+ }
917
+
918
+ &[data-grid-corner$='trailing'] {
919
+ inset-inline-end: 0;
920
+ padding-inline-start: 11px;
921
+ }
922
+
923
+ /* (Pointing somewhere: flipped around its own middle.) */
924
+ &[data-grid-mirrored]:dir(rtl) > .uikit-grid-corner-icon {
925
+ scale: -1 1;
926
+ }
927
+ }
928
+
929
+ .uikit-grid-corner-button {
930
+ cursor: pointer;
931
+ -webkit-tap-highlight-color: transparent;
932
+ touch-action: manipulation;
933
+ -webkit-touch-callout: none;
934
+
935
+ &:focus-visible {
936
+ border-radius: 50%;
937
+ outline: 2px solid var(--color-ui-primary);
938
+ }
939
+ }
940
+
941
+ /* A resize handle: the arc in its cell's corner (bottom trailing,
942
+ concentric with its radius); inside it, a chevron where the tile can
943
+ go (grow, shrink, both; none when it's free, see main.tsx).
944
+ Dragged, not scrolling (see main.tsx). */
945
+ .uikit-grid-resize-handle {
946
+ cursor: nwse-resize;
947
+ touch-action: none;
948
+
949
+ &:dir(rtl) {
950
+ cursor: nesw-resize;
951
+ }
952
+ }
953
+
954
+ /* In an item: in its text's color (its own fill its backing; a card's
955
+ to redraw them), the grid's controls and the app's corner buttons
956
+ alike. */
957
+ .uikit-grid-item .uikit-grid-corner-button {
958
+ color: inherit;
959
+ }
960
+
961
+ /* Movable, editing (see main.tsx): crosshairs in its top trailing corner,
962
+ where a remove button's x is in its own, in its controls' color (an
963
+ area's: its handle's); a break's at its rows' end, in its return
964
+ sign's. Not a control: it's dragged from anywhere. */
965
+ .uikit-grid-move-sign {
966
+ pointer-events: none;
967
+ }
968
+
969
+ .uikit-grid-break > .uikit-grid-move-sign {
970
+ color: var(
971
+ --uikit-grid-break-sign-color,
972
+ color-mix(in srgb, var(--color-ui-label) 55%, transparent)
973
+ );
974
+ inset-block-start: calc(
975
+ -1 * var(--uikit-grid-break-above, 0) *
976
+ (var(--uikit-grid-unit) + var(--uikit-grid-gap))
977
+ );
978
+ inset-inline-end: calc(
979
+ -1 * var(--uikit-grid-break-sign, 0) *
980
+ var(--uikit-grid-break-pitch, 0px) - var(--uikit-grid-strip, 0px)
981
+ );
982
+ }
983
+
984
+ /* (An item's, a movable tile's own on it: in its text's color, as its
985
+ controls.) */
986
+ .uikit-grid-item > .uikit-grid-move-sign,
987
+ .uikit-grid-item-body > .uikit-grid-move-sign {
988
+ color: inherit;
989
+ }
990
+
991
+ .uikit-grid-item[data-grid-room] > .uikit-grid-move-sign {
992
+ color: var(--uikit-grid-area-handle-color, var(--color-ui-label));
993
+ }
994
+
995
+ /* (Only in an end-of-line column: too narrow for it beside the remove
996
+ button's x; after a full width, there too. Taking no room there, no
997
+ room for the x either: its resize handle only, its x back once it's
998
+ taller than that full width.) */
999
+ .uikit-grid-break:is([data-grid-break-none], [data-grid-break-after-full])
1000
+ > .uikit-grid-move-sign,
1001
+ .uikit-grid-break[data-grid-break-none][data-grid-break-after-full]
1002
+ .uikit-grid-remove-button {
1003
+ display: none;
1004
+ }
1005
+
1006
+ /* (On no fill, their own backing: in a spacer, a spawn (only outlined),
1007
+ an area's room (its sign, its handle, see below); a break's filled.) */
1008
+ :is(.uikit-grid-spacer, .uikit-grid-spawn) :is(.uikit-grid-corner-button, .uikit-grid-move-sign),
1009
+ .uikit-grid-item[data-grid-room] > .uikit-grid-move-sign {
1010
+ --uikit-grid-corner-backing: color-mix(
1011
+ in srgb,
1012
+ var(--color-ui-system-background) 45%,
1013
+ transparent
1014
+ );
1015
+ }
1016
+
1017
+ /* In a break: its rows only; at its last row's last free unit (past
1018
+ what's in the way, not under what's there; see layout.ts). */
1019
+ .uikit-grid-break .uikit-grid-resize-handle {
1020
+ cursor: ns-resize;
1021
+ inset-inline-end: calc(
1022
+ -1 * var(--uikit-grid-break-handle, 0) *
1023
+ var(--uikit-grid-break-pitch, 0px) - var(--uikit-grid-strip, 0px)
1024
+ );
1025
+
1026
+ &:dir(rtl) {
1027
+ cursor: ns-resize;
1028
+ }
1029
+ }
1030
+
1031
+ /* An area's handle and remove button: in the area's corners, past its
1032
+ tile's (see main.tsx), on the room around it: in the label's color
1033
+ (not the tile's), with their own backing, as a spacer's. With no room
1034
+ around its tile (their corners the same): its tile's handle the one
1035
+ there (resizing the tile first, see main.tsx; none: the area's), its
1036
+ tile's remove button too; held, the area moves (see main.tsx). */
1037
+ .uikit-grid-resize-handle[data-grid-area-handle],
1038
+ .uikit-grid-remove-button[data-grid-area-button] {
1039
+ --uikit-grid-corner-backing: color-mix(
1040
+ in srgb,
1041
+ var(--color-ui-system-background) 45%,
1042
+ transparent
1043
+ );
1044
+
1045
+ color: var(--uikit-grid-area-handle-color, var(--color-ui-label));
1046
+ }
1047
+
1048
+ .uikit-grid-item:not([data-grid-room]):has(
1049
+ > .uikit-grid-item-body .uikit-grid-resize-handle
1050
+ )
1051
+ > .uikit-grid-item-slot
1052
+ > .uikit-grid-resize-handle[data-grid-area-handle],
1053
+ .uikit-grid-item:not([data-grid-room])
1054
+ > .uikit-grid-item-slot
1055
+ > .uikit-grid-remove-button[data-grid-area-button] {
1056
+ display: none;
1057
+ }
1058
+
1059
+ /* (Editing, what its tile shows in its shape (see layout.ts; not its
1060
+ controls, nor its tile's resize outline).) */
1061
+ .uikit-grid-root[data-editing] .uikit-grid-item[data-grid-full]
1062
+ > .uikit-grid-item-body
1063
+ > :not(
1064
+ .uikit-grid-resize-handle,
1065
+ .uikit-grid-remove-button,
1066
+ .uikit-grid-area-button,
1067
+ .uikit-grid-move-sign
1068
+ ) {
1069
+ clip-path: var(--uikit-grid-body-shape, none);
1070
+ }
1071
+
1072
+ /* (Editing, shaped (see layout.ts): past its last column only its first
1073
+ row's upper half, the rest a break's after it; its resize handles at
1074
+ its last column's corner, where it ends once done. Its tile's trailing
1075
+ controls in by as far as it runs past that column (a full-width tile,
1076
+ one in a trailing corner of a full-width area; see layout.ts), its
1077
+ ring only where it'd be cut away; it reads as full width within its
1078
+ area.) */
1079
+ .uikit-grid-root[data-editing] .uikit-grid-item[data-grid-full] {
1080
+ > .uikit-grid-item-slot > .uikit-grid-resize-handle {
1081
+ inset-inline-end: var(--uikit-grid-strip, 0);
1082
+ }
1083
+
1084
+ > .uikit-grid-item-body .uikit-grid-resize-handle {
1085
+ inset-inline-end: var(--uikit-grid-body-overhang, 0);
1086
+ }
1087
+
1088
+ > .uikit-grid-item-body > .uikit-grid-move-sign {
1089
+ inset-inline-end: var(--uikit-grid-body-overhang-top, 0);
1090
+ }
1091
+ }
1092
+
1093
+ /* Editing, a tile in its area's corner: inset off it (off the area's
1094
+ controls there; `--uikit-grid-corner-inset`, 24px), off its units,
1095
+ along each axis it has room (see main.tsx); in a full-width area, on
1096
+ by its share of the end-of-line column (trailing: off its edge past
1097
+ it; centered: across it); not editing, on them. */
1098
+ .uikit-grid-root[data-editing] .uikit-grid-item-body {
1099
+ inset-block-start: calc(
1100
+ var(--uikit-grid-inset-y, 0) * var(--uikit-grid-corner-inset, 24px)
1101
+ );
1102
+ inset-inline-start: calc(
1103
+ var(--uikit-grid-inset-x, 0) * var(--uikit-grid-corner-inset, 24px) +
1104
+ var(--uikit-grid-inset-strip, 0) * var(--uikit-grid-strip, 0px)
1105
+ );
1106
+ }
1107
+
1108
+ /* (Its own controls above its area's, where their 44px targets overlap:
1109
+ on the tile, the tile's; on the room (the area's symbols, inset off
1110
+ the tile), the area's.) */
1111
+ .uikit-grid-item[data-grid-room] > .uikit-grid-item-body :is(.uikit-grid-resize-handle, .uikit-grid-remove-button, .uikit-grid-area-button) {
1112
+ z-index: 2;
1113
+ }
1114
+
1115
+ /* Truly centered in its area (see main.tsx): across all of it, as wide
1116
+ and tall as its units, in its middle (off the unit lines if need be);
1117
+ without room around it, simply filling its cell. */
1118
+ .uikit-grid-item[data-grid-room][data-grid-placement='center']
1119
+ > :is(.uikit-grid-item-body, .uikit-grid-stand-in) {
1120
+ width: calc(
1121
+ (100% + var(--uikit-grid-gap)) * var(--uikit-grid-body-columns, 1) /
1122
+ var(--uikit-grid-item-columns, 1) - var(--uikit-grid-gap)
1123
+ );
1124
+ height: calc(
1125
+ (100% + var(--uikit-grid-gap)) * var(--uikit-grid-body-rows, 1) /
1126
+ var(--uikit-grid-item-rows, 1) - var(--uikit-grid-gap)
1127
+ );
1128
+ grid-column: 1 / -1;
1129
+ grid-row: 1 / -1;
1130
+ place-self: center;
1131
+ }
1132
+
1133
+ /* Movable in its area (see main.tsx): held and dragged, above what's
1134
+ around it; where it'd land outlined, its shape (as a dragged tile's
1135
+ placeholder: `--uikit-grid-landing-color`). */
1136
+ .uikit-grid-root[data-editing] .uikit-grid-item-body[data-grid-movable-body] {
1137
+ cursor: grab;
1138
+ }
1139
+
1140
+ .uikit-grid-root[data-editing] .uikit-grid-item[data-grid-placing] {
1141
+ > .uikit-grid-item-body {
1142
+ z-index: 2;
1143
+ cursor: grabbing;
1144
+ }
1145
+
1146
+ &::after {
1147
+ position: absolute;
1148
+ z-index: 1;
1149
+ width: calc(
1150
+ var(--uikit-grid-body-columns, 1) *
1151
+ var(--uikit-grid-column, var(--uikit-grid-unit)) +
1152
+ (var(--uikit-grid-body-columns, 1) - 1) * var(--uikit-grid-gap)
1153
+ );
1154
+ height: calc(
1155
+ var(--uikit-grid-body-rows, 1) * var(--uikit-grid-unit) +
1156
+ (var(--uikit-grid-body-rows, 1) - 1) * var(--uikit-grid-gap)
1157
+ );
1158
+ border-radius: var(--uikit-grid-item-radius, 24px);
1159
+ background-color: var(
1160
+ --uikit-grid-landing-color,
1161
+ color-mix(in srgb, var(--color-ui-label) 10%, transparent)
1162
+ );
1163
+ content: '';
1164
+ inset-block-start: var(--uikit-grid-landing-y, 0);
1165
+ inset-inline-start: var(--uikit-grid-landing-x, 0);
1166
+ pointer-events: none;
1167
+ }
1168
+ }
1169
+
1170
+ /* A corner button hidden (see main.tsx; inert): its icon faded out, its
1171
+ backing with it (see the top). */
1172
+ .uikit-grid-corner-button[data-grid-corner][data-grid-hidden] {
1173
+ pointer-events: none;
1174
+
1175
+ > .uikit-grid-corner-icon {
1176
+ --uikit-grid-corner-shown: 0;
1177
+ }
1178
+ }
1179
+
1180
+ /* Open above the page (see overlay.tsx): its tile's body out of the grid
1181
+ (from its stand-in's place, `--uikit-grid-open-left`/`-top`), in the
1182
+ screen's middle (`--uikit-grid-open-x`/`-y`) at its open size
1183
+ (`--uikit-grid-open-width`/`-height`), above the backdrop; closing,
1184
+ still lifted, back at its place. Getting there and back as any tile
1185
+ gets to a new box (see reshape.ts, below). */
1186
+ .uikit-grid-root .uikit-grid-item > .uikit-grid-item-body[data-grid-open] {
1187
+ position: absolute;
1188
+ z-index: 1001;
1189
+ width: var(--uikit-grid-open-width, auto);
1190
+ height: var(--uikit-grid-open-height, auto);
1191
+ border-radius: var(--uikit-grid-item-radius, 24px);
1192
+ margin: 0;
1193
+ grid-area: auto;
1194
+ inset: var(--uikit-grid-open-top, 0) auto auto
1195
+ var(--uikit-grid-open-left, 0);
1196
+ outline: none;
1197
+ translate: var(--uikit-grid-open-x, 0) var(--uikit-grid-open-y, 0);
1198
+ }
1199
+
1200
+ /* A tile getting to a new box (see reshape.ts): above what's around it
1201
+ (its cell, in its grid). Not clipped (what's in it keeps its shadow):
1202
+ what's in it clips itself if it's laid out larger meanwhile (e.g. a
1203
+ card, see Card). */
1204
+ .uikit-grid-item[data-grid-reshaping] {
1205
+ z-index: 2;
1206
+ }
1207
+
1208
+ /* Its stand-in, open: where it was, faintly (its place in the grid,
1209
+ nothing reflowing). */
1210
+ .uikit-grid-stand-in {
1211
+ border-radius: var(--uikit-grid-item-radius, 24px);
1212
+ background-color: var(
1213
+ --uikit-grid-stand-in-color,
1214
+ color-mix(in srgb, var(--color-ui-label) 8%, transparent)
1215
+ );
1216
+ pointer-events: none;
1217
+
1218
+ /* (Closing: gone as its item's back over it, as its underlay fades (see
1219
+ below): nothing under its glass to leave at the end.) */
1220
+ &[data-grid-closing] {
1221
+ background-color: transparent;
1222
+ transition: background-color 250ms;
1223
+ }
1224
+ }
1225
+
1226
+ /* The page behind an open item, dimmed (see overlay.tsx): a contextual
1227
+ menu's backdrop (see ContextualMenu), over its screen (its portal
1228
+ container), cut out where the item is. A press on it closes the item.
1229
+ Its underlay (in the item's grid, under it): only where it is, see
1230
+ below. */
1231
+ .uikit-grid-backdrop {
1232
+ -webkit-tap-highlight-color: transparent;
1233
+ }
1234
+
1235
+ /* (Its underlay: opaque while it's open (`--uikit-grid-open-background`):
1236
+ what it shows through its glass, whatever's under it; closing, its
1237
+ glass again by the time it's back (its move's 300ms), by its color.) */
1238
+ .uikit-grid-underlay {
1239
+ position: fixed;
1240
+ z-index: 1000;
1241
+ background-color: transparent;
1242
+ inset: 0;
1243
+ pointer-events: none;
1244
+ transition: background-color 280ms;
1245
+
1246
+ &[data-grid-open] {
1247
+ background-color: var(
1248
+ --uikit-grid-open-background,
1249
+ var(--color-ui-system-background)
1250
+ );
1251
+ transition: background-color 80ms;
1252
+ }
1253
+ }
1254
+
1255
+ /* (Its grid above what's beside it on its page while it's open, closing
1256
+ (e.g. cards outside it), as the backdrop is; just above: below the
1257
+ page's bars (a `Viewport` anchor's layer), which cover it where they
1258
+ meet, as they cover the page.) */
1259
+ .uikit-grid-root:has(.uikit-grid-item-body[data-grid-open]) {
1260
+ position: relative;
1261
+ z-index: 1;
1262
+ }
1263
+
1264
+ /* (Its corner buttons, open or closing: one going at the start of its
1265
+ move, by its color, as hidden ones fade (see above); one shown (e.g.
1266
+ its x) coming once at its end (an animation: shown, only then); its
1267
+ color otherwise changing at once, as its text's (e.g. lit).) */
1268
+ .uikit-grid-item-body[data-grid-open]
1269
+ .uikit-grid-corner-button
1270
+ > .uikit-grid-corner-icon {
1271
+ transition-duration: 0s;
1272
+ }
1273
+
1274
+ .uikit-grid-item-body[data-grid-open]
1275
+ .uikit-grid-corner-button[data-grid-hidden]
1276
+ > .uikit-grid-corner-icon {
1277
+ transition-duration: 80ms;
1278
+ }
1279
+
1280
+ .uikit-grid-item-body[data-grid-open='open']
1281
+ .uikit-grid-corner-button:not([data-grid-hidden])
1282
+ > .uikit-grid-corner-icon {
1283
+ animation: 120ms 200ms backwards uikit-grid-corner-appear;
1284
+
1285
+ /* Motion reduced (see styles.css): there at once, as its tile. */
1286
+ :where([data-uikit-reduced-motion='true'])
1287
+ &:not(:where([data-uikit-reduced-motion='false']) *) {
1288
+ animation: none;
1289
+ }
1290
+
1291
+ @media (prefers-reduced-motion: reduce) {
1292
+ &:where([data-uikit-settings], [data-uikit-settings] *):not(:where([data-uikit-reduced-motion='false']) *) {
1293
+ animation: none;
1294
+ }
1295
+ }
1296
+ }
1297
+
1298
+ /* (A tile's own corner button there while editing (its `whileEditing`,
1299
+ e.g. a card's settings): its move sign stepping aside, the tile moved
1300
+ from anywhere all the same, from that button too. An area's sign, at
1301
+ the area's corner, stays.) */
1302
+ .uikit-grid-item-body:has(
1303
+ .uikit-grid-corner-button[data-grid-corner='top-trailing'][data-grid-editing]:not([data-grid-hidden], [data-card-copy])
1304
+ )
1305
+ > .uikit-grid-move-sign {
1306
+ display: none;
1307
+ }
1308
+
1309
+ .uikit-grid-item:not([data-grid-room]):has(
1310
+ .uikit-grid-corner-button[data-grid-corner='top-trailing'][data-grid-editing]:not([data-grid-hidden], [data-card-copy])
1311
+ )
1312
+ > .uikit-grid-move-sign {
1313
+ display: none;
1314
+ }
1315
+ }
1316
+
1317
+ /* A corner button shown (see above): its icon from none shown, its backing
1318
+ with it (its colors' share, no opacity: in a scroller, iOS). */
1319
+ @keyframes uikit-grid-corner-appear {
1320
+ from {
1321
+ --uikit-grid-corner-shown: 0;
1322
+ }
1323
+ }