@mrpelz/uikit-ish 7.13.0 → 7.26.2

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