@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,959 @@
1
+ /* Card (see main.tsx). */
2
+
3
+ @layer uikit-ish {
4
+ /* The card: glass (see the glass' `uikit-glass-medium`), the item's
5
+ radius, its parts on a grid of its own, laid out by its size (see
6
+ below): its symbol and a switch at its top, its title and value at
7
+ its bottom. */
8
+ .uikit-card-root {
9
+ position: relative;
10
+ display: grid;
11
+ width: 100%;
12
+ min-width: 0;
13
+ height: 100%;
14
+ min-height: 0;
15
+ border-radius: var(--uikit-grid-item-radius, 24px);
16
+
17
+ /* (Its wells: what's set into its glass (a list's group, see below; an
18
+ app's own, e.g. a bar), recessed: a translucent tint of its text's
19
+ color, shaded at its top, a hairline rim, lit at its bottom edge; by
20
+ its text's color, right on its glass in both schemes and bright.) */
21
+ --uikit-card-well: color-mix(in srgb, currentcolor 7%, transparent);
22
+ --uikit-card-well-shadow:
23
+ inset 0 1px 3px rgb(0 0 0 / 14%),
24
+ inset 0 0 0 0.5px color-mix(in srgb, currentcolor 12%, transparent),
25
+ inset 0 -0.5px 0 rgb(255 255 255 / 35%);
26
+
27
+ /* (Its layout's padding, also its slider's label's and value's copies'
28
+ in its fill, see below.) */
29
+ --uikit-card-padding: 12px 14px;
30
+
31
+ /* (Its hairline's width: its glass's rim, see Glass: on light glass
32
+ 0.5px, on dark 1px; lit, 0.5px, see below. What a slider's ticks on
33
+ its glass stop short of, at both ends, see below.) */
34
+ --uikit-card-rim: 0.5px;
35
+
36
+ @media (prefers-color-scheme: dark) {
37
+ --uikit-card-rim: 1px;
38
+ }
39
+
40
+ &:where([data-color-scheme='light'], [data-color-scheme='light'] *) {
41
+ --uikit-card-rim: 0.5px;
42
+ }
43
+
44
+ &:where([data-color-scheme='dark'], [data-color-scheme='dark'] *) {
45
+ --uikit-card-rim: 1px;
46
+ }
47
+
48
+ color: var(--uikit-glass-content);
49
+
50
+ /* (Its veil (see below) stacked within it: under the grid's corner
51
+ symbols beside it, in its tile.) */
52
+ isolation: isolate;
53
+ text-align: start;
54
+ transition: background-color 200ms;
55
+
56
+ /* (Pressable (an `onClick`, see main.tsx): its press tint, see its
57
+ frame below.) */
58
+ &[data-pressable] {
59
+ cursor: pointer;
60
+ -webkit-tap-highlight-color: transparent;
61
+ }
62
+ }
63
+
64
+ /* Flashed (a momentary card pressed, or its `flash`, see main.tsx): lit
65
+ as if active at once (see below), then fading back: a layer of its own
66
+ in the lit glass's color going clear over its glass, its text going
67
+ back from the lit one (colors only: its glass may be drawn as an
68
+ image, which doesn't fade). */
69
+ .uikit-card-root[data-fading] {
70
+ animation: 500ms uikit-card-fade-text;
71
+
72
+ &::before {
73
+ position: absolute;
74
+ border-radius: inherit;
75
+ animation: 500ms uikit-card-fade-glass forwards;
76
+ content: '';
77
+ inset: 0;
78
+ pointer-events: none;
79
+ }
80
+
81
+ :is(.uikit-card-symbol, .uikit-card-title, .uikit-card-value) {
82
+ animation: 500ms uikit-card-fade-text;
83
+ }
84
+
85
+ /* Motion reduced (see styles.css): lit as long, then off at once, not
86
+ fading back (still telling the press). */
87
+ :where([data-uikit-reduced-motion='true'])
88
+ &:not(:where([data-uikit-reduced-motion='false']) *) {
89
+ &,
90
+ &::before,
91
+ & :is(.uikit-card-symbol, .uikit-card-title, .uikit-card-value) {
92
+ animation-timing-function: step-end;
93
+ }
94
+ }
95
+
96
+ @media (prefers-reduced-motion: reduce) {
97
+ &:where([data-uikit-settings], [data-uikit-settings] *):not(:where([data-uikit-reduced-motion='false']) *) {
98
+ &,
99
+ &::before,
100
+ & :is(.uikit-card-symbol, .uikit-card-title, .uikit-card-value) {
101
+ animation-timing-function: step-end;
102
+ }
103
+ }
104
+ }
105
+ }
106
+
107
+ /* (Its edit layer (editing, see main.tsx): over its frame and its veil,
108
+ its corner buttons shown then on it, pressable; nothing else.) */
109
+ .uikit-card-edit-layer {
110
+ position: absolute;
111
+ z-index: 5;
112
+ border-radius: inherit;
113
+ inset: 0;
114
+ pointer-events: none;
115
+
116
+ > * {
117
+ pointer-events: auto;
118
+ }
119
+ }
120
+
121
+ /* Its frame: what its size queries ask (see below), filling it. */
122
+ .uikit-card-frame {
123
+ position: relative;
124
+ display: grid;
125
+ width: 100%;
126
+ min-width: 0;
127
+ height: 100%;
128
+ min-height: 0;
129
+ border-radius: inherit;
130
+ container: uikit-card / size;
131
+ }
132
+
133
+ /* (Off screen, what's in it skipped: not styled, laid out, painted or
134
+ hit-tested, so a page of many cards scrolls smoothly; its glass and
135
+ shadow its card's, drawn all the same (clipped by its own rounded box,
136
+ nothing of it past its card's edge). Its size its card's either way,
137
+ editing too.) */
138
+ .uikit-card-root > .uikit-card-frame {
139
+ content-visibility: auto;
140
+
141
+ /* Its veil (editing, see main.tsx), and its press tint: on its frame,
142
+ in the frame's stacking (its own, skipped as it is: see above), so
143
+ what's in it can be over it (e.g. a corner button shown while
144
+ editing); under the grid's corner symbols beside it, in its tile;
145
+ lifted while the grid's tiles are dragged or resized, as they fade
146
+ (see below). */
147
+ &::after {
148
+ position: absolute;
149
+ z-index: 2;
150
+ border-radius: inherit;
151
+ background-color: transparent;
152
+ content: '';
153
+ inset: 0;
154
+ pointer-events: none;
155
+ transition: background-color 200ms;
156
+ }
157
+
158
+ /* (Pressable: hovered, a tint of its text's color; pressed, more; by
159
+ its color, no layer changing. Not while what's hovered or pressed
160
+ takes its presses itself (`data-card-own-press`, e.g. a light's
161
+ channels): its own, not the card's.) */
162
+ @media (hover: hover) {
163
+ :where(
164
+ .uikit-card-root[data-pressable]:hover:not(
165
+ :has([data-card-own-press]:hover)
166
+ )
167
+ )
168
+ > &::after {
169
+ background-color: color-mix(in srgb, currentcolor 6%, transparent);
170
+ }
171
+ }
172
+
173
+ :where(
174
+ .uikit-card-root[data-pressable]:active:not(
175
+ :has([data-card-own-press]:active)
176
+ )
177
+ )
178
+ > &::after {
179
+ background-color: color-mix(in srgb, currentcolor 12%, transparent);
180
+ transition-duration: 0s;
181
+ }
182
+
183
+ :where(.uikit-card-root[data-editing]) > &::after {
184
+ /* (Over everything in it, its switch and corner buttons too (their
185
+ own, above a slider's fill: see below), but those shown while
186
+ editing; not as its press tint.) */
187
+ z-index: 4;
188
+ background-color: var(
189
+ --uikit-card-veil,
190
+ light-dark(
191
+ color-mix(in srgb, var(--color-ui-system-background) 45%, transparent),
192
+ color-mix(in srgb, var(--color-ui-system-background) 58%, transparent)
193
+ )
194
+ );
195
+ }
196
+
197
+ :where(.uikit-grid-root[data-grid-drag] .uikit-card-root[data-editing]) > &::after {
198
+ background-color: transparent;
199
+ }
200
+ }
201
+
202
+ /* (Its tile getting to a new box (see Grid's reshape.ts): its frame at
203
+ the size it's getting to (its parts laid out there at once), from its
204
+ glass's top leading corner; what's beyond its glass clipped.) */
205
+ .uikit-grid-item-body[data-grid-reshaping] > .uikit-card-root {
206
+ overflow: clip;
207
+
208
+ > .uikit-card-frame {
209
+ width: var(--uikit-grid-tile-width, 100%);
210
+ height: var(--uikit-grid-tile-height, 100%);
211
+ }
212
+ }
213
+
214
+ /* Its parts' layout (inside its frame, for its size queries, see
215
+ below). */
216
+ .uikit-card-layout {
217
+ display: grid;
218
+ min-width: 0;
219
+ min-height: 0;
220
+ box-sizing: border-box;
221
+ padding: var(--uikit-card-padding);
222
+ border-radius: inherit;
223
+ column-gap: 10px;
224
+ grid-template:
225
+ 'symbol control' auto
226
+ '. .' 1fr
227
+ 'title title' auto
228
+ 'value value' auto / 1fr auto;
229
+ }
230
+
231
+ /* (Its tile's corner symbols in its text's color: its glass's content,
232
+ as the medium glass sets it on it (see Glass), beside it (in its tile's
233
+ body; its move sign on its item, without an area's room); veiled while
234
+ editing, legible on it whatever its state. Hidden, as Grid hides them;
235
+ fading while the grid's tiles are dragged, below.) */
236
+ .uikit-grid-item-body:where(:has(> .uikit-card-root))
237
+ > :is(.uikit-grid-corner-button, .uikit-grid-move-sign):not([data-grid-hidden]),
238
+ .uikit-grid-item:where(
239
+ :not([data-grid-room]):has(> .uikit-grid-item-body > .uikit-card-root)
240
+ )
241
+ > .uikit-grid-move-sign:not([data-grid-hidden]) {
242
+ color: light-dark(
243
+ var(--glass-ui-medium-light-content),
244
+ var(--glass-ui-medium-dark-content)
245
+ );
246
+ }
247
+
248
+ /* (Its tile's corner symbols fading as its veil lifts, see above: by
249
+ their share shown (as they fade, see Grid), no layer changing.) */
250
+ .uikit-grid-root[data-grid-drag]
251
+ .uikit-grid-item:has(> .uikit-grid-item-body > .uikit-card-root)
252
+ :is(.uikit-grid-corner-button, .uikit-grid-move-sign)
253
+ > .uikit-grid-corner-icon {
254
+ --uikit-grid-corner-shown: 0;
255
+ }
256
+
257
+ /* A corner button (see main.tsx, Grid's): in its text's color, above
258
+ all of its content (a slider filling it, see below): a press there is
259
+ its own, wherever it's rendered in it; its parts off its icon, see the
260
+ end. */
261
+ .uikit-card-corner-button {
262
+ z-index: 3;
263
+ color: inherit;
264
+
265
+ /* (Shown while editing (its `whileEditing`, in its edit layer, see
266
+ below): in the grid's controls' color on the veil, see above.) */
267
+ &[data-grid-editing]:not([data-grid-hidden]) {
268
+ color: light-dark(
269
+ var(--glass-ui-medium-light-content),
270
+ var(--glass-ui-medium-dark-content)
271
+ );
272
+ }
273
+ }
274
+
275
+ /* Its symbol: at its top leading corner, a little larger than its text.
276
+ (Its parts' colors resolved on them: a copy over a slider's fill, in
277
+ the fill's color scheme, see below.) */
278
+ .uikit-card-symbol {
279
+ display: flex;
280
+ min-width: 0;
281
+ align-items: center;
282
+ color: var(--uikit-glass-content);
283
+ font-size: var(--font-ui-title3-size);
284
+ grid-area: symbol;
285
+ line-height: 1;
286
+
287
+ /* (On (`active`), though its card isn't lit: in its tint, its
288
+ `Symbol`'s emphasized icon (e.g. filled) shown, as when lit, see
289
+ below; not transitioned.) */
290
+ &[data-active] {
291
+ --uikit-symbol-emphasis: 1;
292
+
293
+ color: var(
294
+ --uikit-card-symbol-tint,
295
+ var(--uikit-switch-on-color, var(--color-ui-system-green))
296
+ );
297
+ }
298
+ }
299
+
300
+ /* Its title: two lines at most (its words breaking with a hyphen when
301
+ they don't fit), emphasized. */
302
+ .uikit-card-title {
303
+ display: -webkit-box;
304
+ overflow: hidden;
305
+ min-width: 0;
306
+ -webkit-box-orient: vertical;
307
+ color: var(--uikit-glass-content);
308
+ font-size: var(--font-ui-subheadline-size);
309
+ font-variation-settings: 'wght'
310
+ calc(var(--font-ui-subheadline-weight-emphasized) + var(--uikit-font-weight-boost, 0));
311
+ font-weight: round(
312
+ down,
313
+ calc(var(--font-ui-subheadline-weight-emphasized) + var(--uikit-font-weight-boost, 0)),
314
+ 100
315
+ );
316
+ grid-area: title;
317
+ hyphens: auto;
318
+ -webkit-line-clamp: 2;
319
+ line-height: var(--font-ui-subheadline-line-height);
320
+ overflow-wrap: anywhere;
321
+ }
322
+
323
+ /* Its value: below its title, in the glass' secondary color, its digits
324
+ lined up (tabular). */
325
+ .uikit-card-value {
326
+ overflow: hidden;
327
+ min-width: 0;
328
+ color: var(--uikit-glass-content-secondary);
329
+ font-size: var(--font-ui-subheadline-size);
330
+ font-variant-numeric: tabular-nums;
331
+ grid-area: value;
332
+ line-height: var(--font-ui-subheadline-line-height);
333
+ text-overflow: ellipsis;
334
+ white-space: nowrap;
335
+ }
336
+
337
+ /* Large (e.g. 2x2): its value large. */
338
+ @container uikit-card (width >= 180px) and (height >= 180px) {
339
+ .uikit-card-value {
340
+ color: var(--uikit-glass-content);
341
+ font-size: var(--font-ui-large-title-size);
342
+ font-variation-settings: 'wght'
343
+ calc(var(--font-ui-large-title-weight-emphasized, 700) + var(--uikit-font-weight-boost, 0));
344
+ font-weight: round(down, calc(700 + var(--uikit-font-weight-boost, 0)), 100);
345
+ line-height: 1.1;
346
+ }
347
+ }
348
+
349
+ /* (With a list in it (see below): its symbol's slot as wide as its rows'
350
+ symbols', its value small, whatever its size.) */
351
+ .uikit-card-layout:has(> .uikit-list-root) {
352
+ > .uikit-card-symbol {
353
+ min-width: var(--uikit-card-symbol-width, 28px);
354
+ justify-content: center;
355
+ }
356
+
357
+ > .uikit-card-value {
358
+ color: var(--uikit-glass-content-secondary);
359
+ font-size: var(--font-ui-subheadline-size);
360
+ font-variation-settings: normal;
361
+ font-weight: normal;
362
+ line-height: var(--font-ui-subheadline-line-height);
363
+ }
364
+ }
365
+
366
+ /* A slider in it (see main.tsx): its control the whole card, the fill
367
+ its background (from its leading edge, or from its bottom upright), no
368
+ knob; its ticks lines across it; its label and value laid out as its
369
+ title and value, over it, as its symbol is (they don't take presses:
370
+ the slider does). */
371
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-slider-root) {
372
+ overflow: hidden;
373
+
374
+ /* (Not a corner button: its own presses, see above.) */
375
+ .uikit-card-layout > :not(.uikit-slider-root, .uikit-card-corner-button, .uikit-switch-root) {
376
+ z-index: 1;
377
+ pointer-events: none;
378
+ }
379
+ }
380
+
381
+ .uikit-card-layout > .uikit-slider-root {
382
+ position: absolute;
383
+ display: grid;
384
+ width: auto;
385
+ height: auto;
386
+ box-sizing: border-box;
387
+ padding: inherit;
388
+ border-radius: inherit;
389
+
390
+ /* (Its label right above its value, as a card's title is.) */
391
+ gap: 0;
392
+ grid-template:
393
+ '.' 1fr
394
+ 'title' auto
395
+ 'value' auto / 1fr;
396
+ inset: 0;
397
+ place-self: stretch stretch;
398
+
399
+ > .uikit-slider-control {
400
+ position: absolute;
401
+ min-width: 0;
402
+ min-height: 0;
403
+ border-radius: inherit;
404
+ inset: 0;
405
+ }
406
+
407
+ .uikit-slider-track {
408
+ width: 100%;
409
+ height: 100%;
410
+ border-radius: inherit;
411
+ background-color: transparent;
412
+ }
413
+
414
+ /* (Straight at its end, the card's corners rounding it; in its tint,
415
+ opaque, above what's over it (their copies in it, see below), its
416
+ content clipped at its edge.) */
417
+ .uikit-slider-indicator {
418
+ z-index: 1;
419
+ overflow: hidden;
420
+ border-radius: 0;
421
+ background-color: var(--uikit-slider-tint);
422
+ }
423
+
424
+ /* (The copies of what's over it (see `CardBlendScope` and ControlCards' Slider): a
425
+ layer in the fill, in its color scheme and text color, at the card's
426
+ size, from where the track starts (the fill's start back from it),
427
+ laid out as the card is, so each is right over its original; clipped
428
+ by the fill's edge, meeting them there.) */
429
+ .uikit-card-blend {
430
+ position: absolute;
431
+ top: 0;
432
+ display: grid;
433
+ width: 100cqw;
434
+ height: 100cqh;
435
+ box-sizing: border-box;
436
+ padding: var(--uikit-card-padding);
437
+ color: var(--uikit-glass-content);
438
+ column-gap: 10px;
439
+ grid-template:
440
+ 'symbol control' auto
441
+ '. .' 1fr
442
+ 'title title' auto
443
+ 'value value' auto / 1fr auto;
444
+ inset-inline-start: 0;
445
+ pointer-events: none;
446
+
447
+ /* (Across it, as in the slider, see above.) */
448
+ > :is(.uikit-slider-label, .uikit-slider-value) {
449
+ grid-column: 1 / -1;
450
+ }
451
+ }
452
+
453
+ &[data-orientation='vertical'] .uikit-card-blend {
454
+ top: auto;
455
+ bottom: 0;
456
+ inset-inline-start: 0;
457
+ }
458
+
459
+
460
+ /* (Its thumb only for its input (keyboard, assistive technology):
461
+ nothing drawn.) */
462
+ .uikit-slider-thumb {
463
+ &::before,
464
+ &::after {
465
+ display: none;
466
+ }
467
+ }
468
+
469
+ /* (Behind its text, on its glass and in its fill alike: under the
470
+ card's (its stacking context's) content, over its glass; in the
471
+ fill, over the fill.) */
472
+
473
+ /* (On its glass, faint (decoration): as its border is, dark; a
474
+ hairline's shade, light. Its ticks', and its fill's end's while its
475
+ switch is off, see below.) */
476
+ --uikit-card-tick: light-dark(rgb(0 0 0 / 10%), var(--glass-ui-panel-rim));
477
+
478
+ .uikit-slider-ticks {
479
+ z-index: -1;
480
+ width: auto;
481
+ height: auto;
482
+ inset: 0;
483
+
484
+ /* (On its glass, inside its hairline, meeting it, not across it.) */
485
+ > * {
486
+ top: var(--uikit-card-rim);
487
+ width: 1px;
488
+ height: calc(100% - 2 * var(--uikit-card-rim));
489
+ border-radius: 0;
490
+ background-color: var(--uikit-card-tick);
491
+ }
492
+ }
493
+
494
+ /* (Upright: placed from its bottom, see Slider; not from its top.) */
495
+ &[data-orientation='vertical'] .uikit-slider-ticks > * {
496
+ top: auto;
497
+ left: var(--uikit-card-rim);
498
+ width: calc(100% - 2 * var(--uikit-card-rim));
499
+ height: 1px;
500
+ }
501
+
502
+ /* (Their copy in the fill: hairlines, a shade of its text color, edge
503
+ to edge, as the fill is.) */
504
+ .uikit-card-blend .uikit-slider-ticks > * {
505
+ top: 0;
506
+ width: 0.5px;
507
+ height: 100%;
508
+ background-color: color-mix(
509
+ in srgb,
510
+ var(--uikit-glass-content) 30%,
511
+ transparent
512
+ );
513
+ }
514
+
515
+ &[data-orientation='vertical'] .uikit-card-blend .uikit-slider-ticks > * {
516
+ top: auto;
517
+ left: 0;
518
+ width: 100%;
519
+ height: 0.5px;
520
+ }
521
+
522
+ > .uikit-slider-label,
523
+ .uikit-card-blend > .uikit-slider-label {
524
+ z-index: 1;
525
+ overflow: hidden;
526
+ color: var(--uikit-glass-content);
527
+ font-size: var(--font-ui-subheadline-size);
528
+ font-variation-settings: 'wght'
529
+ calc(var(--font-ui-subheadline-weight-emphasized) + var(--uikit-font-weight-boost, 0));
530
+ font-weight: round(
531
+ down,
532
+ calc(var(--font-ui-subheadline-weight-emphasized) + var(--uikit-font-weight-boost, 0)),
533
+ 100
534
+ );
535
+ grid-area: title;
536
+ line-height: var(--font-ui-subheadline-line-height);
537
+ pointer-events: none;
538
+ text-overflow: ellipsis;
539
+ white-space: nowrap;
540
+ }
541
+
542
+ /* (On its glass, in its secondary color, as a card's value is; its
543
+ copy in the fill in the fill's text color, see below.) */
544
+ > .uikit-slider-value,
545
+ .uikit-card-blend > .uikit-slider-value {
546
+ z-index: 1;
547
+ color: var(--uikit-glass-content-secondary);
548
+ font-size: var(--font-ui-subheadline-size);
549
+ grid-area: value;
550
+ justify-items: start;
551
+ line-height: var(--font-ui-subheadline-line-height);
552
+ pointer-events: none;
553
+ }
554
+
555
+ .uikit-card-blend > .uikit-slider-value {
556
+ color: var(--uikit-glass-content);
557
+ }
558
+ }
559
+
560
+ /* (Its switch off, a slider filling it kept where it's set: its fill
561
+ not drawn, nor what's copied into it, the card as off as without one;
562
+ where it'd end, a dashed line across the card, in its ticks' color,
563
+ inside its hairline, telling where it's set (a tick there, hidden
564
+ under it); none at either end of the track (all, or nothing: as off
565
+ as a switch's card).) */
566
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-switch-root:not([data-checked]))
567
+ > .uikit-card-frame
568
+ > .uikit-card-layout
569
+ > .uikit-slider-root
570
+ .uikit-slider-indicator {
571
+ background-color: transparent;
572
+
573
+ > * {
574
+ visibility: hidden;
575
+ }
576
+
577
+ &:not([data-at-min], [data-at-max])::after {
578
+ position: absolute;
579
+ width: 1px;
580
+ background-image: repeating-linear-gradient(
581
+ to bottom,
582
+ var(--uikit-card-tick) 0 8px,
583
+ transparent 8px 12px
584
+ );
585
+ content: '';
586
+ inset-block: var(--uikit-card-rim);
587
+ inset-inline-end: 0;
588
+ }
589
+
590
+ [data-orientation='vertical'] &:not([data-at-min], [data-at-max])::after {
591
+ width: auto;
592
+ height: 1px;
593
+ background-image: repeating-linear-gradient(
594
+ to right,
595
+ var(--uikit-card-tick) 0 8px,
596
+ transparent 8px 12px
597
+ );
598
+ inset: 0 var(--uikit-card-rim) auto;
599
+ }
600
+ }
601
+
602
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-switch-root:not([data-checked]))
603
+ > .uikit-card-frame
604
+ > .uikit-card-layout
605
+ > .uikit-slider-root
606
+ .uikit-slider-ticks
607
+ > [data-at-value] {
608
+ visibility: hidden;
609
+ }
610
+
611
+ /* A switch in it (see main.tsx): smaller, its top trailing corner; its
612
+ state the card's (on, lit; off, dark glass, see main.tsx), its symbol
613
+ in the switch's tint while on. */
614
+ .uikit-card-layout > .uikit-switch-root {
615
+ --uikit-switch-min-width: 44px;
616
+ --uikit-switch-min-height: 24px;
617
+ --uikit-switch-knob-width: 28px;
618
+
619
+ /* (Above a slider filling the card, and its fill: pressed, not the
620
+ slider, see below.) */
621
+ z-index: 3;
622
+ grid-area: control;
623
+ place-self: start end;
624
+
625
+ /* (At its size, at the end: its column may be wider, e.g. with a
626
+ corner button top leading, see the end.) */
627
+ }
628
+
629
+ /* Its switch part (`Card.Switch`, see main.tsx): on, in the card's tint
630
+ (`--uikit-card-switch-tint`, its `tint`; else the switch's green). Over
631
+ a slider's fill (its color the same tint, else the app's), set apart
632
+ from it: on, a darker shade of it (off, no fill under it, see above:
633
+ the switch's own off color). So too in a card never lit (`active`
634
+ given false, e.g. a dimmer's), however it's laid out (e.g. expanded,
635
+ its fill a light's channels instead): its switch the same at every
636
+ size. */
637
+ .uikit-card-layout > .uikit-card-switch {
638
+ --uikit-switch-on-color: var(
639
+ --uikit-card-switch-tint,
640
+ var(--color-ui-system-green)
641
+ );
642
+ }
643
+
644
+ :is(
645
+ .uikit-card-layout:has(> .uikit-slider-root),
646
+ .uikit-card-root[data-active-given]:not([data-active])
647
+ > .uikit-card-frame
648
+ > .uikit-card-layout
649
+ )
650
+ > .uikit-card-switch {
651
+ --uikit-card-switch-fill: var(
652
+ --uikit-card-switch-tint,
653
+ var(--color-ui-primary)
654
+ );
655
+ --uikit-switch-on-color: color-mix(
656
+ in oklab,
657
+ var(--uikit-card-switch-fill),
658
+ #000 28%
659
+ );
660
+ }
661
+
662
+ /* (On (`data-active`: its `active`, or a switch in it on, see main.tsx;
663
+ the switch's state, too, for these rules' order); a momentary card for
664
+ a moment as it's flashed.) */
665
+ .uikit-card-root:is(
666
+ [data-active],
667
+ [data-flashing],
668
+ :where(:not([data-active-given])):has(> .uikit-card-frame > .uikit-card-layout > .uikit-switch-root[data-checked])
669
+ ) {
670
+ /* (By a part's own color scheme: one over something dark on it, see
671
+ above, light.) */
672
+ --uikit-glass-content: light-dark(
673
+ #000,
674
+ var(--glass-ui-medium-dark-content)
675
+ );
676
+ --uikit-glass-content-secondary: light-dark(
677
+ rgb(0 0 0 / 55%),
678
+ var(--glass-ui-medium-dark-content-secondary)
679
+ );
680
+
681
+ /* (Editing: its own scheme dropped (its veil the page's, see main.tsx),
682
+ its glass still bright: its text the light scheme's, whatever the
683
+ page's.) */
684
+ &[data-editing] {
685
+ --uikit-glass-content: #000;
686
+ --uikit-glass-content-secondary: rgb(0 0 0 / 55%);
687
+ }
688
+
689
+ /* (Opaque, lifted: apart from light glass, in the light scheme, the
690
+ backdrop not showing through it.) */
691
+ --uikit-glass-background: var(--uikit-card-on-background, #fff);
692
+ --uikit-glass-shadow:
693
+ inset 0 0 0 0.5px rgb(0 0 0 / 8%), 0 2px 6px rgb(0 0 0 / 12%),
694
+ 0 8px 28px rgb(0 0 0 / 20%);
695
+ --uikit-card-rim: 0.5px;
696
+
697
+ /* (Its symbol on: in its tint, its `Symbol`'s emphasized icon (e.g.
698
+ filled) shown; off or not switchable, its icon (e.g. outlined).) */
699
+ .uikit-card-symbol {
700
+ --uikit-symbol-emphasis: 1;
701
+
702
+ color: var(
703
+ --uikit-card-symbol-tint,
704
+ var(--uikit-switch-on-color, var(--color-ui-system-green))
705
+ );
706
+ }
707
+ }
708
+
709
+ /* (Bright, in the light scheme, whatever the page's: its controls (a
710
+ segmented control, a stepper) drawn for its bright glass, as within a
711
+ forced light scheme, see the global styles; its `active` forcing it
712
+ outright, see main.tsx. Not while editing: its veil, and its grid's
713
+ controls on it, the page's.) */
714
+ .uikit-card-root:is(
715
+ [data-active],
716
+ [data-flashing],
717
+ :where(:not([data-active-given])):has(> .uikit-card-frame > .uikit-card-layout > .uikit-switch-root[data-checked])
718
+ ):not([data-editing]) {
719
+ --glass-ui-lens-shadow: var(--glass-ui-bright-lens-shadow);
720
+
721
+ color-scheme: light;
722
+ }
723
+
724
+ /* A list in it (List's inset grouped style, its default; as on an
725
+ island's glass, its groups on the glass's fill, see Glass): a well at
726
+ its bottom, 6px from its edges (its padding's 12px 14px given back,
727
+ less that), its corners concentric with the card's (its radius less
728
+ 6px); its rows' content where the card's is (8px in from the well's
729
+ edge, at its padding), their symbols centered under the card's (their
730
+ slot as wide as it is, see below), their titles where its title is;
731
+ compact (in its title's size), in its glass's content colors. Its
732
+ group at its bottom, what's left of its room above it. Not a
733
+ scroller: a card shows a summary, what doesn't fit is left out (more
734
+ shows as it expands or opens, see ControlCards' List). */
735
+ .uikit-card-layout > .uikit-list-root {
736
+ --color-ui-label: var(--uikit-glass-content);
737
+ --color-ui-secondary-label: var(--uikit-glass-content-secondary);
738
+
739
+ /* (A row's chevron (it's pressed, e.g. going to its page), faint; a row
740
+ pressed, no tint (what it does shows at once: a page, the card
741
+ expanding or opening), see below.) */
742
+ --color-ui-tertiary-label: color-mix(
743
+ in srgb,
744
+ var(--uikit-glass-content) 30%,
745
+ transparent
746
+ );
747
+ --uikit-list-pressed-background: transparent;
748
+ --font-ui-body-size: var(--font-ui-subheadline-size);
749
+ --font-ui-body-line-height: var(--font-ui-subheadline-line-height);
750
+ --font-ui-body-tracking: var(--font-ui-subheadline-tracking);
751
+ --uikit-list-inset: 0px;
752
+ --uikit-list-radius: calc(var(--uikit-grid-item-radius, 24px) - 6px);
753
+ --uikit-list-section-spacing: 0px;
754
+ --uikit-list-row-min-height: 30px;
755
+ --uikit-list-row-padding-block: 0px;
756
+ --uikit-list-row-padding-start: 8px;
757
+ --uikit-list-group-background: var(--uikit-card-well);
758
+
759
+ display: flex;
760
+ overflow: clip;
761
+ min-width: 0;
762
+ min-height: 0;
763
+ flex-direction: column;
764
+ justify-content: flex-end;
765
+ margin: 10px -8px -6px;
766
+
767
+ /* (Their content, and separators, ending 8px before the well's edge,
768
+ as they start.) */
769
+ .uikit-list-row {
770
+ padding-inline-end: 8px;
771
+
772
+ &::before {
773
+ inset-inline-end: 8px;
774
+ }
775
+ }
776
+ }
777
+
778
+ /* (Open above the page (see Grid): its rows the List's own size; closing,
779
+ its tile's again from the start, as its frame is (laid out at the size
780
+ it's getting to, see above).) */
781
+ [data-grid-open='open'] .uikit-card-layout > .uikit-list-root {
782
+ --font-ui-body-size: inherit;
783
+ --font-ui-body-line-height: inherit;
784
+ --font-ui-body-tracking: inherit;
785
+ --uikit-list-row-min-height: 44px;
786
+ }
787
+
788
+ /* (One row only: as tall as the well's corners need (twice its radius,
789
+ the card's less 6px: a pill), its curves following the card's, 6px in
790
+ as any; its content where it is. Its row only: how many rows fit is
791
+ still counted by the root's row height, see ControlCards' List.) */
792
+ .uikit-card-layout
793
+ > .uikit-list-root:has(.uikit-list-group > .uikit-list-item:only-child)
794
+ .uikit-list-row {
795
+ --uikit-list-min-height: calc(
796
+ 2 * (var(--uikit-grid-item-radius, 24px) - 6px)
797
+ );
798
+ }
799
+
800
+ /* (A row pressed (its title a button, see List): its separator, and the
801
+ next row's, kept, as its background is (see above); the first row's
802
+ still none, as ever.) */
803
+ .uikit-card-layout
804
+ > .uikit-list-root
805
+ .uikit-list-item:has(> * > * > * > button[data-list-part='title']:enabled:active) {
806
+ &:not(:first-child),
807
+ & + .uikit-list-item {
808
+ --uikit-list-separator-opacity: 1;
809
+ }
810
+ }
811
+
812
+ /* (Its groups set into its glass, see its wells above.) */
813
+ .uikit-card-layout > .uikit-list-root .uikit-list-group {
814
+ box-shadow: var(--uikit-card-well-shadow);
815
+ }
816
+
817
+ /* (Its rows' symbols in its text's color, as its own symbol is; their
818
+ slot as wide as it is, 10px before their titles, as its title is after
819
+ it.) */
820
+ .uikit-card-layout
821
+ > .uikit-list-root
822
+ [data-list-part='image'][data-variant='symbol'] {
823
+ width: var(--uikit-card-symbol-width, 28px);
824
+ color: inherit;
825
+ margin-inline-end: 10px;
826
+ }
827
+
828
+ /* (Its rows one line each: their titles and details cut short.) */
829
+ .uikit-card-layout
830
+ > .uikit-list-root
831
+ :is([data-list-part='title'], [data-list-part='detail']) {
832
+ overflow: hidden;
833
+ text-overflow: ellipsis;
834
+ white-space: nowrap;
835
+ }
836
+
837
+ /* (A slider's, focused by keyboard: its ring, the knob's (see Slider),
838
+ on the card.) */
839
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-slider-root):has(
840
+ .uikit-slider-thumb input:focus-visible
841
+ ) {
842
+ outline: 2px solid var(--uikit-slider-tint, var(--color-ui-primary));
843
+ outline-offset: 2px;
844
+ }
845
+
846
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-card-corner-button[data-grid-corner='top-trailing']:not([data-grid-hidden]), > .uikit-card-edit-layer > .uikit-card-corner-button[data-grid-corner='top-trailing']:not([data-grid-hidden])) > .uikit-card-frame > .uikit-card-layout > .uikit-switch-root {
847
+ margin-inline-end: var(--uikit-card-corner-room, 18px);
848
+ }
849
+
850
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-card-corner-button[data-grid-corner='bottom-leading'], > .uikit-card-edit-layer > .uikit-card-corner-button[data-grid-corner='bottom-leading']) > .uikit-card-frame > .uikit-card-layout > .uikit-card-value {
851
+ padding-inline-start: var(--uikit-card-corner-room, 18px);
852
+ }
853
+
854
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-card-corner-button[data-grid-corner='bottom-trailing'], > .uikit-card-edit-layer > .uikit-card-corner-button[data-grid-corner='bottom-trailing']) > .uikit-card-frame > .uikit-card-layout > .uikit-card-value {
855
+ padding-inline-end: var(--uikit-card-corner-room, 18px);
856
+ }
857
+
858
+ /* With a list in it (see above): its symbol at its top, its title beside
859
+ it, centered on it, its value (small, whatever its size) under the
860
+ title (a switch at the end); the list in all the room below. An x in
861
+ its top trailing corner (open above the page, see ControlCards' List):
862
+ its title and value clear of it (`--uikit-card-header-room`); one top
863
+ leading, its symbol and title in from it. */
864
+ .uikit-card-root > .uikit-card-frame > .uikit-card-layout:has(> .uikit-list-root) {
865
+ align-items: center;
866
+ grid-template:
867
+ 'symbol title control' auto
868
+ '. value .' auto
869
+ 'list list list' 1fr / auto 1fr auto;
870
+
871
+ > .uikit-list-root {
872
+ align-self: stretch;
873
+ grid-area: list;
874
+ }
875
+ }
876
+
877
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden]), > .uikit-card-edit-layer > .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden])) > .uikit-card-frame > .uikit-card-layout:has(> .uikit-list-root) > :is(.uikit-card-symbol, .uikit-card-title:first-child) {
878
+ margin-inline-start: var(--uikit-card-header-room, 28px);
879
+ }
880
+
881
+ .uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-card-corner-button[data-grid-corner='top-trailing']:not([data-grid-hidden]), > .uikit-card-edit-layer > .uikit-card-corner-button[data-grid-corner='top-trailing']:not([data-grid-hidden])) > .uikit-card-frame > .uikit-card-layout:has(> .uikit-list-root) > :is(.uikit-card-title, .uikit-card-value) {
882
+ padding-inline-end: var(--uikit-card-header-room, 28px);
883
+ }
884
+
885
+ /* (Its parts over a slider's fill, drawn again in it (see
886
+ `CardBlendScope`): under the fill, covered where it is; its symbol
887
+ in its text's color, its emphasis telling whether it's on; a corner
888
+ button pressed, drawn by its copies (one on its glass, under the fill,
889
+ one in it), not itself.) */
890
+ .uikit-card-root[data-card-blend]:has(> .uikit-card-frame > .uikit-card-layout > .uikit-slider-root) > .uikit-card-frame > .uikit-card-layout {
891
+ > .uikit-card-symbol,
892
+ > .uikit-slider-root > :is(.uikit-slider-label, .uikit-slider-value) {
893
+ z-index: auto;
894
+ }
895
+
896
+ .uikit-card-symbol {
897
+ color: var(--uikit-glass-content);
898
+ }
899
+
900
+ > .uikit-card-corner-button:not([data-card-copy]) {
901
+ color: transparent;
902
+
903
+ > .uikit-grid-corner-icon {
904
+ stroke: transparent;
905
+ }
906
+ }
907
+
908
+ .uikit-card-corner-button[data-card-copy] {
909
+ z-index: auto;
910
+ }
911
+ }
912
+
913
+ /* (Its parts off a corner button's icon (in from the corner as its
914
+ padding is): a switch at the top, its value at the bottom, by the
915
+ icon's width and a little more; its symbol, the top leading corner
916
+ taken, beside its title and value (a list's card: its own, above).) */
917
+
918
+ .uikit-card-root > .uikit-card-frame > .uikit-card-layout:not(:has(> .uikit-list-root)):has(> .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden])) {
919
+ align-items: end;
920
+ grid-template:
921
+ '. control' auto
922
+ '. .' 1fr
923
+ 'symbol title' auto
924
+ 'symbol value' auto / auto 1fr;
925
+
926
+ /* (Its copies over a slider's fill, laid out as it is, see above.) */
927
+ .uikit-card-blend {
928
+ align-items: end;
929
+ grid-template:
930
+ '. control' auto
931
+ '. .' 1fr
932
+ 'symbol title' auto
933
+ 'symbol value' auto / auto 1fr;
934
+ }
935
+ }
936
+
937
+ .uikit-card-root > .uikit-card-frame > .uikit-card-layout:not(:has(> .uikit-list-root)):has(> .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden])) > .uikit-card-symbol,
938
+ .uikit-card-root > .uikit-card-frame > .uikit-card-layout:not(:has(> .uikit-list-root)):has(> .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden])) .uikit-card-blend > .uikit-card-symbol {
939
+ align-self: center;
940
+ }
941
+
942
+ }
943
+
944
+ /* A flashed card's fade (see above): from the lit glass, and its text. */
945
+ @keyframes uikit-card-fade-glass {
946
+ from {
947
+ background-color: var(--uikit-card-on-background, #fff);
948
+ }
949
+
950
+ to {
951
+ background-color: transparent;
952
+ }
953
+ }
954
+
955
+ @keyframes uikit-card-fade-text {
956
+ from {
957
+ color: #000;
958
+ }
959
+ }