datocms-react-ui 3.1.0-next.0 → 3.1.0-next.1

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 (201) hide show
  1. package/dist/Actions.d.ts +1 -0
  2. package/dist/Actions.js +4 -0
  3. package/dist/IconAvatar.d.ts +2 -0
  4. package/dist/IconAvatar.js +2 -0
  5. package/dist/ListDetail.js +2 -2
  6. package/dist/Pane.js +2 -1
  7. package/dist/SplitPane.js +2 -2
  8. package/dist/react-ui/src/Canvas.d.ts +2 -1
  9. package/dist/react-ui/src/Canvas.js +8 -6
  10. package/dist/react-ui/src/ContextInspector.js +2 -2
  11. package/dist/react-ui/src/messageText.js +1 -1
  12. package/dist/styles.css +330 -195
  13. package/dist/ui/icons/brands/gitlab.js +15 -0
  14. package/dist/ui/icons/custom/netlify.js +7 -29
  15. package/dist/ui/icons/custom/vercel.js +1 -4
  16. package/dist/ui/icons/index.js +206 -195
  17. package/dist/ui/icons/regular/command.js +16 -0
  18. package/dist/ui/icons/regular/keyboard.js +16 -0
  19. package/dist/ui/icons/regular/list-tree.js +2 -1
  20. package/dist/ui/icons/regular/list.js +2 -1
  21. package/dist/ui/icons/regular/memo.js +2 -1
  22. package/dist/ui/locales/en.js +10 -3
  23. package/dist/ui/src/BundledTexts.js +2 -2
  24. package/dist/ui/src/UiTextKey.d.ts +1 -1
  25. package/dist/ui/src/actions/Actions/ActionTooltip.js +24 -0
  26. package/dist/ui/src/actions/Actions/Shortcut.d.ts +23 -0
  27. package/dist/ui/src/actions/Actions/Shortcut.js +45 -0
  28. package/dist/ui/src/actions/Actions/index.d.ts +3 -0
  29. package/dist/ui/src/actions/Actions/index.js +3 -0
  30. package/dist/ui/src/actions/Actions/registry.d.ts +211 -0
  31. package/dist/ui/src/actions/Actions/registry.js +580 -0
  32. package/dist/ui/src/actions/Actions/shortcuts.d.ts +85 -0
  33. package/dist/ui/src/actions/Actions/shortcuts.js +284 -0
  34. package/dist/ui/src/actions/Button.d.ts +13 -12
  35. package/dist/ui/src/actions/Button.js +8 -7
  36. package/dist/ui/src/actions/Dropdown/DropdownContext.js +2 -1
  37. package/dist/ui/src/actions/Dropdown/Footer.js +1 -1
  38. package/dist/ui/src/actions/Dropdown/Menu.d.ts +2 -1
  39. package/dist/ui/src/actions/Dropdown/Menu.js +43 -37
  40. package/dist/ui/src/actions/Dropdown/MenuContent.js +22 -12
  41. package/dist/ui/src/actions/Dropdown/MenuParts.js +3 -3
  42. package/dist/ui/src/actions/Dropdown/Option.d.ts +20 -3
  43. package/dist/ui/src/actions/Dropdown/Option.js +48 -9
  44. package/dist/ui/src/actions/Dropdown/OptionAction.js +1 -1
  45. package/dist/ui/src/actions/Dropdown/Submenu.js +2 -2
  46. package/dist/ui/src/actions/Dropdown/index.d.ts +4 -1
  47. package/dist/ui/src/actions/Dropdown/index.js +6 -4
  48. package/dist/ui/src/actions/Dropdown/triggers/ButtonTrigger.d.ts +4 -4
  49. package/dist/ui/src/actions/Dropdown/triggers/ButtonTrigger.js +7 -6
  50. package/dist/ui/src/actions/Dropdown/triggers/PillTrigger.js +1 -1
  51. package/dist/ui/src/actions/Dropdown/triggers/TextualTrigger.js +1 -1
  52. package/dist/ui/src/actions/EditorToolbar/Button.js +2 -2
  53. package/dist/ui/src/actions/EditorToolbar/Buttons.js +2 -2
  54. package/dist/ui/src/actions/EditorToolbar/index.js +1 -1
  55. package/dist/ui/src/actions/MultipleSelectionActionBar.d.ts +20 -3
  56. package/dist/ui/src/actions/MultipleSelectionActionBar.js +25 -7
  57. package/dist/ui/src/actions/SplitButton/Caret.js +1 -1
  58. package/dist/ui/src/actions/SplitButton/index.js +1 -1
  59. package/dist/ui/src/actions/disabledReason.js +1 -1
  60. package/dist/ui/src/content/Avatar.d.ts +5 -3
  61. package/dist/ui/src/content/Avatar.js +4 -3
  62. package/dist/ui/src/content/CodeSnippet.js +1 -1
  63. package/dist/ui/src/content/CopyButton.js +1 -1
  64. package/dist/ui/src/content/CopyableId.d.ts +6 -1
  65. package/dist/ui/src/content/CopyableId.js +5 -2
  66. package/dist/ui/src/content/CopyableValue.js +2 -2
  67. package/dist/ui/src/content/FeedbackDot.js +1 -1
  68. package/dist/ui/src/content/IconAvatar.d.ts +42 -0
  69. package/dist/ui/src/content/IconAvatar.js +36 -0
  70. package/dist/ui/src/content/InitialsAvatar.js +1 -2
  71. package/dist/ui/src/content/Pill.js +3 -3
  72. package/dist/ui/src/content/SmartDate.js +1 -1
  73. package/dist/ui/src/content/UploadThreatTriangle.js +1 -1
  74. package/dist/ui/src/content/UsageMeter.d.ts +2 -1
  75. package/dist/ui/src/content/UsageMeter.js +3 -2
  76. package/dist/ui/src/content/ValidityTriangles.js +3 -3
  77. package/dist/ui/src/feedback/BlankSlate.js +2 -2
  78. package/dist/ui/src/feedback/Callout.js +2 -2
  79. package/dist/ui/src/feedback/ProgressBar.js +1 -1
  80. package/dist/ui/src/form/AutosizeInput.js +1 -1
  81. package/dist/ui/src/form/FieldHint.js +1 -1
  82. package/dist/ui/src/form/FieldWrapper.js +1 -1
  83. package/dist/ui/src/form/InputGroup.js +1 -1
  84. package/dist/ui/src/form/Label.js +2 -2
  85. package/dist/ui/src/form/PasswordInput.js +1 -1
  86. package/dist/ui/src/form/RadioGroupInput.js +1 -1
  87. package/dist/ui/src/form/SelectInput/SelectMenu.js +3 -3
  88. package/dist/ui/src/form/SelectInput/SelectMultiValueRemove.js +7 -0
  89. package/dist/ui/src/form/SelectInput/SelectOption.js +1 -1
  90. package/dist/ui/src/form/SelectInput/SortableMultiValue.js +1 -1
  91. package/dist/ui/src/form/StringInput.js +1 -1
  92. package/dist/ui/src/form/SwitchInput.d.ts +2 -0
  93. package/dist/ui/src/form/SwitchInput.js +4 -3
  94. package/dist/ui/src/form/SwitchList.js +1 -1
  95. package/dist/ui/src/form/TableList.js +2 -2
  96. package/dist/ui/src/form/TextareaInput.js +1 -1
  97. package/dist/ui/src/i18n.js +6 -6
  98. package/dist/ui/src/layout/ListOrOverview.js +3 -3
  99. package/dist/ui/src/layout/Page/Page.js +1 -1
  100. package/dist/ui/src/layout/Page/PageContent.js +1 -1
  101. package/dist/ui/src/layout/Page/PageGroup.js +2 -2
  102. package/dist/ui/src/layout/Page/PageSection.js +1 -1
  103. package/dist/ui/src/layout/Pane/ListFilter.js +6 -12
  104. package/dist/ui/src/layout/Pane/PaneHeader.js +3 -3
  105. package/dist/ui/src/layout/Pane/PaneRegion.d.ts +14 -0
  106. package/dist/ui/src/layout/Pane/PaneRegion.js +23 -0
  107. package/dist/ui/src/layout/Pane/index.d.ts +1 -0
  108. package/dist/ui/src/layout/Pane/index.js +36 -32
  109. package/dist/ui/src/layout/SidebarPanel.js +1 -1
  110. package/dist/ui/src/layout/SplitPane.d.ts +2 -0
  111. package/dist/ui/src/layout/SplitPane.js +79 -37
  112. package/dist/ui/src/layout/SplitView/SashActionButton.js +17 -9
  113. package/dist/ui/src/layout/SplitView/SplitView.js +1 -1
  114. package/dist/ui/src/layout/SplitView/SplitViewSash.js +2 -1
  115. package/dist/ui/src/layout/Toolbar/AddNewButton.d.ts +10 -6
  116. package/dist/ui/src/layout/Toolbar/AddNewButton.js +10 -23
  117. package/dist/ui/src/layout/Toolbar/Divider.d.ts +8 -0
  118. package/dist/ui/src/layout/Toolbar/Divider.js +16 -0
  119. package/dist/ui/src/layout/Toolbar/DotsDropdown.d.ts +8 -1
  120. package/dist/ui/src/layout/Toolbar/DotsDropdown.js +3 -2
  121. package/dist/ui/src/layout/Toolbar/Fill.js +1 -1
  122. package/dist/ui/src/layout/Toolbar/FilterInput.d.ts +7 -3
  123. package/dist/ui/src/layout/Toolbar/FilterInput.js +62 -49
  124. package/dist/ui/src/layout/Toolbar/FilterToggle.d.ts +6 -4
  125. package/dist/ui/src/layout/Toolbar/FilterToggle.js +42 -7
  126. package/dist/ui/src/layout/Toolbar/GoBack.d.ts +6 -1
  127. package/dist/ui/src/layout/Toolbar/GoBack.js +12 -5
  128. package/dist/ui/src/layout/Toolbar/Group.js +1 -1
  129. package/dist/ui/src/layout/Toolbar/Help.js +3 -3
  130. package/dist/ui/src/layout/Toolbar/Pagination.js +2 -2
  131. package/dist/ui/src/layout/Toolbar/PresetsTitle.js +3 -3
  132. package/dist/ui/src/layout/Toolbar/PrimaryButton.d.ts +3 -3
  133. package/dist/ui/src/layout/Toolbar/PrimaryButton.js +2 -2
  134. package/dist/ui/src/layout/Toolbar/Root.d.ts +6 -1
  135. package/dist/ui/src/layout/Toolbar/Root.js +13 -2
  136. package/dist/ui/src/layout/Toolbar/Search.d.ts +2 -1
  137. package/dist/ui/src/layout/Toolbar/Search.js +8 -3
  138. package/dist/ui/src/layout/Toolbar/context.js +2 -1
  139. package/dist/ui/src/layout/Toolbar/index.d.ts +5 -3
  140. package/dist/ui/src/layout/Toolbar/index.js +2 -0
  141. package/dist/ui/src/lists/CardList.d.ts +7 -2
  142. package/dist/ui/src/lists/CardList.js +7 -6
  143. package/dist/ui/src/lists/EmptySlot.js +2 -2
  144. package/dist/ui/src/lists/EntityRow.js +1 -1
  145. package/dist/ui/src/lists/InfoList.js +8 -3
  146. package/dist/ui/src/lists/InsertGap.js +4 -4
  147. package/dist/ui/src/lists/MediaCard.d.ts +10 -0
  148. package/dist/ui/src/lists/MediaCard.js +9 -4
  149. package/dist/ui/src/lists/RowList.js +2 -2
  150. package/dist/ui/src/lists/SettingsList.js +1 -1
  151. package/dist/ui/src/lists/Table/Body.js +1 -1
  152. package/dist/ui/src/lists/Table/Cell.js +1 -1
  153. package/dist/ui/src/lists/Table/ColumnsMenu.js +1 -1
  154. package/dist/ui/src/lists/Table/Header.js +8 -10
  155. package/dist/ui/src/lists/Table/HeaderCell.js +2 -2
  156. package/dist/ui/src/lists/Table/Row.d.ts +7 -1
  157. package/dist/ui/src/lists/Table/Row.js +6 -2
  158. package/dist/ui/src/lists/Table/Table.js +1 -1
  159. package/dist/ui/src/lists/Table/TreeToggle.js +1 -1
  160. package/dist/ui/src/lists/Table/index.d.ts +1 -1
  161. package/dist/ui/src/lists/Table/layout.d.ts +3 -2
  162. package/dist/ui/src/lists/Table/layout.js +26 -13
  163. package/dist/ui/src/lists/dnd/DragHandle.js +1 -1
  164. package/dist/ui/src/lists/dnd/DropIndicator.js +1 -1
  165. package/dist/ui/src/lists/dnd/SortableList.js +2 -2
  166. package/dist/ui/src/lists/dnd/tree/SortableTree.js +1 -1
  167. package/dist/ui/src/navigation/Chevron.js +2 -2
  168. package/dist/ui/src/navigation/SegmentedControl.d.ts +23 -4
  169. package/dist/ui/src/navigation/SegmentedControl.js +23 -5
  170. package/dist/ui/src/navigation/SettingsMenu.js +3 -3
  171. package/dist/ui/src/navigation/SidebarTree/SidebarTreeNode.js +3 -3
  172. package/dist/ui/src/navigation/SidebarTree/SidebarTreeNodeActions.js +1 -1
  173. package/dist/ui/src/navigation/Tabs.js +1 -1
  174. package/dist/ui/src/overlays/FullscreenModal.js +48 -53
  175. package/dist/ui/src/overlays/HoverCard.js +4 -4
  176. package/dist/ui/src/overlays/Modal.d.ts +7 -0
  177. package/dist/ui/src/overlays/Modal.js +53 -55
  178. package/dist/ui/src/overlays/Popover.d.ts +6 -3
  179. package/dist/ui/src/overlays/Popover.js +13 -8
  180. package/dist/ui/src/overlays/Portal.js +1 -1
  181. package/dist/ui/src/overlays/Tooltip.d.ts +6 -3
  182. package/dist/ui/src/overlays/Tooltip.js +29 -13
  183. package/dist/ui/src/overlays/useModalClose.js +17 -12
  184. package/dist/ui/src/patterns/ListDetail/Page.d.ts +9 -0
  185. package/dist/ui/src/patterns/ListDetail/Page.js +33 -26
  186. package/dist/ui/src/patterns/ListDetail/Panel.js +4 -2
  187. package/dist/ui/src/patterns/ListDetail/Split.d.ts +5 -0
  188. package/dist/ui/src/patterns/ListDetail/Split.js +75 -56
  189. package/dist/ui/src/patterns/ListDetail/index.d.ts +2 -2
  190. package/dist/ui/src/patterns/ListDetail/index.js +2 -2
  191. package/dist/ui/src/patterns/ListFormPage.js +2 -2
  192. package/dist/ui/src/semantic/Main.d.ts +4 -1
  193. package/dist/ui/src/semantic/Main.js +53 -3
  194. package/dist/ui/src/semantic/NavigationFocusProvider.js +9 -0
  195. package/package.json +1 -1
  196. package/dist/HotKey.d.ts +0 -1
  197. package/dist/HotKey.js +0 -2
  198. package/dist/ui/src/actions/HotKey.d.ts +0 -98
  199. package/dist/ui/src/actions/HotKey.js +0 -270
  200. package/dist/ui/src/actions/hotKeyContext.d.ts +0 -32
  201. package/dist/ui/src/actions/hotKeyContext.js +0 -15
package/dist/styles.css CHANGED
@@ -22,85 +22,21 @@
22
22
  disabled control keeps the colors of its rest state. It adds no
23
23
  specificity: a rule of a component that changes the hover still wins. */
24
24
 
25
- /* The @font-face rules of Colfax from Typekit, as in react-ui 2.x. */
25
+ /* The face of ABC Oracle, from the same URL as the apps (see
26
+ ../../ui/styles/_font-faces.css). The file name has no version, thus a new
27
+ file in the bucket gets to each plugin, also to an old one. The response
28
+ sends CORS, because the plugins run on other origins.
26
29
 
30
+ The build does not copy local font files, thus the other fonts of the cms
31
+ do not ship. */
27
32
  @font-face {
28
- font-family: "colfax-web";
29
- src:
30
- url("https://use.typekit.net/af/522c51/00000000000000003b9acde6/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n5&v=3")
31
- format("woff2"),
32
- url("https://use.typekit.net/af/522c51/00000000000000003b9acde6/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n5&v=3")
33
- format("woff"),
34
- url("https://use.typekit.net/af/522c51/00000000000000003b9acde6/27/a?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n5&v=3")
35
- format("opentype");
36
- font-display: auto;
33
+ font-family: "ABC Oracle";
37
34
  font-style: normal;
38
- font-weight: 700;
39
- }
40
- @font-face {
41
- font-family: "colfax-web";
42
- src:
43
- url("https://use.typekit.net/af/4e71b3/00000000000000003b9acde7/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i5&v=3")
44
- format("woff2"),
45
- url("https://use.typekit.net/af/4e71b3/00000000000000003b9acde7/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i5&v=3")
46
- format("woff"),
47
- url("https://use.typekit.net/af/4e71b3/00000000000000003b9acde7/27/a?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i5&v=3")
48
- format("opentype");
49
- font-display: auto;
50
- font-style: italic;
51
- font-weight: 700;
52
- }
53
- @font-face {
54
- font-family: "colfax-web";
55
- src:
56
- url("https://use.typekit.net/af/522c51/00000000000000003b9acde6/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n5&v=3")
57
- format("woff2"),
58
- url("https://use.typekit.net/af/522c51/00000000000000003b9acde6/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n5&v=3")
59
- format("woff"),
60
- url("https://use.typekit.net/af/522c51/00000000000000003b9acde6/27/a?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n5&v=3")
61
- format("opentype");
62
- font-display: auto;
63
- font-style: normal;
64
- font-weight: 500;
65
- }
66
- @font-face {
67
- font-family: "colfax-web";
68
- src:
69
- url("https://use.typekit.net/af/4e71b3/00000000000000003b9acde7/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i5&v=3")
70
- format("woff2"),
71
- url("https://use.typekit.net/af/4e71b3/00000000000000003b9acde7/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i5&v=3")
72
- format("woff"),
73
- url("https://use.typekit.net/af/4e71b3/00000000000000003b9acde7/27/a?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i5&v=3")
74
- format("opentype");
75
- font-display: auto;
76
- font-style: italic;
77
- font-weight: 500;
78
- }
79
- @font-face {
80
- font-family: "colfax-web";
81
- src:
82
- url("https://use.typekit.net/af/bac079/00000000000000003b9acde4/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n4&v=3")
83
- format("woff2"),
84
- url("https://use.typekit.net/af/bac079/00000000000000003b9acde4/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n4&v=3")
85
- format("woff"),
86
- url("https://use.typekit.net/af/bac079/00000000000000003b9acde4/27/a?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n4&v=3")
87
- format("opentype");
88
- font-display: auto;
89
- font-style: normal;
90
- font-weight: 400;
91
- }
92
- @font-face {
93
- font-family: "colfax-web";
94
- src:
95
- url("https://use.typekit.net/af/c1cc04/00000000000000003b9acde5/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i4&v=3")
96
- format("woff2"),
97
- url("https://use.typekit.net/af/c1cc04/00000000000000003b9acde5/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i4&v=3")
98
- format("woff"),
99
- url("https://use.typekit.net/af/c1cc04/00000000000000003b9acde5/27/a?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=i4&v=3")
100
- format("opentype");
101
- font-display: auto;
102
- font-style: italic;
103
- font-weight: 400;
35
+ font-weight: 200 1000;
36
+ font-display: swap;
37
+ src: url("https://www.datocms.com/fonts/ABCOracleVariable.woff2")
38
+ format("woff2");
39
+ size-adjust: 102%;
104
40
  }
105
41
  :root {
106
42
  /* Fonts. Keep the noto-script-fallback families last before the generic
@@ -117,7 +53,13 @@
117
53
  --monospaced-font-size: 0.9em;
118
54
  --cursive-font-family:
119
55
  "Pangolin", "noto-script-fallback", "noto-script-fallback-static", cursive;
120
- --font-weight-bold: 500;
56
+ /* The weight of the text. */
57
+ --font-weight-regular: 340;
58
+ /* The weight of titles, labels and words with emphasis. */
59
+ --font-weight-strong: 400;
60
+ /* The name of --font-weight-strong in react-ui 2.x. Use
61
+ --font-weight-strong. */
62
+ --font-weight-bold: var(--font-weight-strong);
121
63
 
122
64
  --px-to-rem: 0.0625rem;
123
65
  --space-unit: calc(12 * var(--px-to-rem));
@@ -236,12 +178,13 @@
236
178
  :root {
237
179
  --z-index-notifications: 10500;
238
180
  }
239
- /* The plugins use Colfax. The cms fonts (ABC Oracle, Geist, Pangolin and the
240
- noto-script-fallback families) do not ship, thus the stacks go to the
241
- system fonts after Colfax. */
181
+ /* The plugins use ABC Oracle, as the cms. Geist, Pangolin and the
182
+ noto-script-fallback families do not ship, thus the stacks go to the
183
+ system fonts after ABC Oracle. The weights are the ones of
184
+ ../../ui/styles/_css-variables.css. */
242
185
  :root {
243
186
  --base-font-family:
244
- "colfax-web", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
187
+ "ABC Oracle", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
245
188
  --monospaced-font-family:
246
189
  "Menlo", "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
247
190
  --cursive-font-family: cursive;
@@ -359,7 +302,7 @@ abbr[title] {
359
302
 
360
303
  b,
361
304
  strong {
362
- font-weight: bold;
305
+ font-weight: var(--font-weight-strong);
363
306
  }
364
307
  /**
365
308
  * Address styling not present in Safari and Chrome.*/
@@ -628,7 +571,7 @@ textarea {
628
571
  * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.*/
629
572
 
630
573
  optgroup {
631
- font-weight: bold;
574
+ font-weight: var(--font-weight-strong);
632
575
  }
633
576
  /* Tables
634
577
  * ==========================================================================*/
@@ -660,6 +603,7 @@ html {
660
603
  }
661
604
  body {
662
605
  font-family: var(--base-font-family);
606
+ font-weight: var(--font-weight-regular);
663
607
  font-synthesis-weight: none;
664
608
  font-size: var(--font-size-m);
665
609
  -webkit-text-size-adjust: 100%;
@@ -668,6 +612,12 @@ body {
668
612
  color: var(--color--ink);
669
613
  text-rendering: optimizeLegibility;
670
614
  }
615
+ /* Selected text has the colors of a selected row, thus it follows the brand
616
+ hue and the color scheme */
617
+ ::selection {
618
+ color: var(--color--selected--ink);
619
+ background-color: var(--color--selected--surface);
620
+ }
671
621
  a {
672
622
  color: var(--color--ink);
673
623
  text-decoration: underline;
@@ -942,16 +892,19 @@ th,
942
892
  td {
943
893
  text-align: left;
944
894
  }
895
+ th {
896
+ font-weight: var(--font-weight-strong);
897
+ }
945
898
  img {
946
899
  max-width: 100%;
947
900
  }
948
901
  legend {
949
- font-weight: bold;
902
+ font-weight: var(--font-weight-strong);
950
903
  color: var(--color--ink-subtle);
951
904
  letter-spacing: 0;
952
905
  }
953
906
  strong {
954
- font-weight: bold;
907
+ font-weight: var(--font-weight-strong);
955
908
  }
956
909
  input:-webkit-autofill {
957
910
  color: inherit !important;
@@ -1052,6 +1005,7 @@ button {
1052
1005
  background-color: var(--color--surface-raised);
1053
1006
  border: 1px solid var(--color--border);
1054
1007
  border-radius: var(--radius-s);
1008
+ box-shadow: var(--shadow--resting);
1055
1009
  }
1056
1010
  .blank-slate__inner {
1057
1011
  display: flex;
@@ -1084,7 +1038,7 @@ button {
1084
1038
  /* With only a title, the title is a plain message, not a heading */
1085
1039
  .blank-slate__title {
1086
1040
  font-size: var(--font-size-m);
1087
- font-weight: normal;
1041
+ font-weight: var(--font-weight-regular);
1088
1042
  }
1089
1043
  }
1090
1044
  .blank-slate__icon {
@@ -1106,7 +1060,7 @@ button {
1106
1060
  }
1107
1061
  .blank-slate__title {
1108
1062
  font-size: var(--font-size-xl);
1109
- font-weight: bold;
1063
+ font-weight: var(--font-weight-strong);
1110
1064
  line-height: 1.2;
1111
1065
  }
1112
1066
  /* A box under the title with the raw text of an error. It is quiet,
@@ -1154,7 +1108,7 @@ button {
1154
1108
  }
1155
1109
 
1156
1110
  a:not([class]) {
1157
- font-weight: bold;
1111
+ font-weight: var(--font-weight-strong);
1158
1112
  color: inherit;
1159
1113
  border-color: inherit;
1160
1114
 
@@ -1196,7 +1150,7 @@ button {
1196
1150
  padding: var(--button-pad-y) var(--button-pad-x);
1197
1151
  font-family: inherit;
1198
1152
  font-size: 1.1em;
1199
- font-weight: bold;
1153
+ font-weight: var(--font-weight-strong);
1200
1154
  line-height: inherit;
1201
1155
  vertical-align: middle;
1202
1156
  color: var(--color--primary-soft--ink);
@@ -1772,6 +1726,7 @@ button.EmptySlot {
1772
1726
  background-color: var(--color--surface-raised);
1773
1727
  border: 1px solid var(--color--border);
1774
1728
  border-radius: var(--radius-s);
1729
+ box-shadow: var(--shadow--resting);
1775
1730
  }
1776
1731
  .TableList__row {
1777
1732
  position: relative;
@@ -1932,6 +1887,7 @@ button.EmptySlot {
1932
1887
  background-color: var(--color--surface-raised);
1933
1888
  border: 1px solid var(--color--border);
1934
1889
  border-radius: var(--radius-s);
1890
+ box-shadow: var(--shadow--resting);
1935
1891
  }
1936
1892
 
1937
1893
  .CardList__header {
@@ -1978,7 +1934,7 @@ button.EmptySlot {
1978
1934
  min-width: 0;
1979
1935
  overflow: hidden;
1980
1936
  text-overflow: ellipsis;
1981
- font-weight: 600;
1937
+ font-weight: var(--font-weight-strong);
1982
1938
  white-space: nowrap;
1983
1939
  }
1984
1940
  .CardList__aside {
@@ -2044,6 +2000,18 @@ button.EmptySlot {
2044
2000
  background: var(--color--surface-hover);
2045
2001
  }
2046
2002
  }
2003
+ /* In a list to read, the value of a row can be far from its title: the
2004
+ hover helps the eye to follow the row. The cursor does not change,
2005
+ because the row does not open. */
2006
+ .CardList--actions-always > .CardList__items
2007
+ > .CardList__item
2008
+ > .CardList__row {
2009
+ @media (hover: hover) {
2010
+ &:hover {
2011
+ background: var(--color--surface-hover);
2012
+ }
2013
+ }
2014
+ }
2047
2015
  /* The rows on the corners of the card get the corners of the card on their
2048
2016
  hover */
2049
2017
  .CardList__items:first-child > .CardList__item:first-child > .CardList__row {
@@ -2385,7 +2353,8 @@ button.EmptySlot {
2385
2353
  }
2386
2354
  }
2387
2355
 
2388
- .form__label:focus & {
2356
+ &:focus-within,
2357
+ &:has([aria-expanded="true"]) {
2389
2358
  opacity: 1;
2390
2359
  }
2391
2360
  }
@@ -2590,7 +2559,7 @@ textarea:focus {
2590
2559
  }
2591
2560
  .form__input--large.form__input--large {
2592
2561
  font-size: 1.2em;
2593
- font-weight: bold;
2562
+ font-weight: var(--font-weight-strong);
2594
2563
  }
2595
2564
  .form__input--small {
2596
2565
  font-size: var(--font-size-xs);
@@ -2642,6 +2611,7 @@ textarea:focus {
2642
2611
  width: 100%;
2643
2612
  border: 1px solid var(--color--border);
2644
2613
  border-radius: var(--radius-s);
2614
+ box-shadow: var(--shadow--resting);
2645
2615
  transition: border-color 0.1s ease-in-out;
2646
2616
 
2647
2617
  .FramedImage__button:hover & {
@@ -2887,7 +2857,7 @@ textarea:focus {
2887
2857
  > * {
2888
2858
  flex-shrink: 0;
2889
2859
  font-size: var(--font-size-xl);
2890
- font-weight: bold;
2860
+ font-weight: var(--font-weight-strong);
2891
2861
  }
2892
2862
  }
2893
2863
  .Page__content__section__text {
@@ -2899,7 +2869,7 @@ textarea:focus {
2899
2869
  }
2900
2870
 
2901
2871
  & a {
2902
- font-weight: 600;
2872
+ font-weight: var(--font-weight-strong);
2903
2873
  color: var(--color--ink-link);
2904
2874
  }
2905
2875
  }
@@ -2936,6 +2906,7 @@ textarea:focus {
2936
2906
  background-color: var(--color--surface-raised);
2937
2907
  border: 1px solid var(--color--border);
2938
2908
  border-radius: var(--radius-s);
2909
+ box-shadow: var(--shadow--resting);
2939
2910
 
2940
2911
  @media (max-width: 479px) {
2941
2912
  --Page__group-padding: var(--spacing-m);
@@ -3005,7 +2976,7 @@ textarea:focus {
3005
2976
  min-width: 0;
3006
2977
  margin: 0;
3007
2978
  font-size: var(--font-size-l);
3008
- font-weight: 600;
2979
+ font-weight: var(--font-weight-strong);
3009
2980
  line-height: 1.2;
3010
2981
  }
3011
2982
  .Page__group__actions {
@@ -3033,9 +3004,11 @@ textarea:focus {
3033
3004
  margin-bottom: 0;
3034
3005
  }
3035
3006
 
3007
+ /* The group carries the shadow */
3036
3008
  & > .Table .Table__content {
3037
3009
  border: 0;
3038
3010
  border-radius: 0 0 var(--radius-s) var(--radius-s);
3011
+ box-shadow: none;
3039
3012
  }
3040
3013
 
3041
3014
  /* The border of the card is the side border of the CardList. A line
@@ -3048,6 +3021,8 @@ textarea:focus {
3048
3021
  overflow: clip;
3049
3022
  border-inline: 0;
3050
3023
  border-radius: 0;
3024
+ /* The group carries the shadow */
3025
+ box-shadow: none;
3051
3026
 
3052
3027
  &:first-child {
3053
3028
  border-top: 0;
@@ -3189,7 +3164,6 @@ textarea:focus {
3189
3164
  .Modal__content__inner {
3190
3165
  position: relative;
3191
3166
  flex: 1;
3192
- padding-top: 1px;
3193
3167
  background: var(--color--surface);
3194
3168
  border-radius: var(--radius-m) var(--radius-m) 0 0;
3195
3169
  box-shadow: var(--shadow--lifted);
@@ -3198,21 +3172,15 @@ textarea:focus {
3198
3172
  a scroll container, thus the sticky elements in the panel still work. */
3199
3173
  .Modal--fullscreen & {
3200
3174
  overflow: clip;
3175
+ border-top: 1px solid var(--color--border-raised);
3201
3176
  }
3202
3177
 
3203
3178
  .Modal--dialog & {
3204
3179
  display: flow-root;
3205
- padding-top: 0;
3206
3180
  background: var(--color--surface-raised);
3207
- border: 1px solid var(--color--border);
3181
+ border: 1px solid var(--color--border-raised);
3208
3182
  border-radius: var(--radius-m);
3209
3183
  }
3210
-
3211
- /* In dark mode, the shadow has its own light edge. A visible border makes
3212
- a double edge. The transparent border keeps the size of the dialog. */
3213
- [data-color-scheme="dark"] .Modal--dialog & {
3214
- border-color: transparent;
3215
- }
3216
3184
  }
3217
3185
  /* The header is a toolbar (see "_Toolbar.css"), thus the title looks the
3218
3186
  same as the titles of the other toolbars. The padding moves the content of
@@ -3589,6 +3557,7 @@ button.Toolbar__tab {
3589
3557
  color: var(--color--ink);
3590
3558
  white-space: nowrap;
3591
3559
  background-color: var(--color--surface-raised);
3560
+ border: 1px solid var(--color--border-raised);
3592
3561
  border-radius: var(--radius-full);
3593
3562
  box-shadow: var(--shadow--floating);
3594
3563
  }
@@ -3677,7 +3646,7 @@ button.Toolbar__tab {
3677
3646
  cursor: grabbing;
3678
3647
  background-color: var(--color--surface-raised);
3679
3648
  box-shadow:
3680
- inset 0 0 0 1px var(--color--border-hover),
3649
+ inset 0 0 0 1px var(--color--border-raised),
3681
3650
  var(--shadow--lifted);
3682
3651
  }
3683
3652
  }
@@ -3693,7 +3662,7 @@ button.Toolbar__tab {
3693
3662
  background-color: var(--color--selected--surface);
3694
3663
 
3695
3664
  & .SidebarTree__node__name {
3696
- font-weight: bold;
3665
+ font-weight: var(--font-weight-strong);
3697
3666
  color: var(--color--selected--ink);
3698
3667
  }
3699
3668
  & .SidebarTree__node__text {
@@ -3886,7 +3855,7 @@ span.SidebarTree__node__toggle {
3886
3855
  /* The title stays the name of the list, thus the qualifier has the color and
3887
3856
  the weight of a subtitle */
3888
3857
  .ListPresets__qualifier {
3889
- font-weight: normal;
3858
+ font-weight: var(--font-weight-regular);
3890
3859
  color: var(--color--ink-subtle);
3891
3860
  }
3892
3861
 
@@ -3991,6 +3960,7 @@ span.SidebarTree__node__toggle {
3991
3960
  }
3992
3961
 
3993
3962
  text {
3963
+ font-weight: var(--font-weight-strong);
3994
3964
  fill: var(--Avatar-ink);
3995
3965
  }
3996
3966
  }
@@ -4011,10 +3981,38 @@ span.SidebarTree__node__toggle {
4011
3981
  margin: auto;
4012
3982
  color: var(--color--ink-subtle);
4013
3983
  }
4014
- .Avatar__initials--muted {
3984
+ .Avatar__initials--muted,
3985
+ .Avatar__icon--muted {
4015
3986
  --Avatar-surface: var(--color--surface-muted);
4016
3987
  --Avatar-ink: var(--color--ink-subtle);
4017
3988
  }
3989
+ /* The size is a variable, thus the box of the caller (the image of an
3990
+ EntityRow) can give the square another size. */
3991
+ .Avatar__icon {
3992
+ position: relative;
3993
+ display: inline-block;
3994
+ flex: none;
3995
+ width: var(--Avatar-icon-size);
3996
+ height: var(--Avatar-icon-size);
3997
+ background-color: var(--Avatar-surface);
3998
+ border-radius: var(--radius-s);
3999
+
4000
+ /* The icon is centered with the margins, not with flex: the box of the
4001
+ caller can set the display of the square (the image of an EntityRow
4002
+ makes it a block), and the icon stays at the center. */
4003
+ svg {
4004
+ position: absolute;
4005
+ inset: 0;
4006
+ width: 55%;
4007
+ height: 55%;
4008
+ margin: auto;
4009
+ fill: var(--Avatar-ink);
4010
+ }
4011
+ }
4012
+ .Avatar__icon--primary {
4013
+ --Avatar-surface: var(--color--primary-soft--surface);
4014
+ --Avatar-ink: var(--color--primary-soft--ink);
4015
+ }
4018
4016
  /* The hues of the initials. They are local to the avatar, not semantic
4019
4017
  tokens. The values are the same as the field group chips. Light mode has
4020
4018
  a pale surface and a saturated ink. Dark mode has a deep surface and a
@@ -4108,6 +4106,9 @@ span.SidebarTree__node__toggle {
4108
4106
  /* token-audit-disable-next-line mismatch -- ring matches the page surface to separate stacked avatars */
4109
4107
  border: var(--Avatar-ring) solid var(--color--surface);
4110
4108
  }
4109
+ .Avatar--xlarge {
4110
+ --Avatar-size: 48px;
4111
+ }
4111
4112
  /* One look for all the sizes: the outline covers the ring of the regular and
4112
4113
  the large avatars, and goes around the small avatar, which has no ring. */
4113
4114
  .Avatar.is-active {
@@ -4416,6 +4417,10 @@ span.SidebarTree__node__toggle {
4416
4417
  display: flex;
4417
4418
  flex: 1 1 auto;
4418
4419
  flex-direction: column;
4420
+
4421
+ /* A thin gap between the kicker, the title and the details: the lines do
4422
+ not touch, and the three stay one block. --spacing-s is too much. */
4423
+ gap: 2px;
4419
4424
  min-width: 0;
4420
4425
  }
4421
4426
  /* For a record, the kicker is the model. It starts the line, thus a model
@@ -4634,14 +4639,30 @@ span.SidebarTree__node__toggle {
4634
4639
  }
4635
4640
  }
4636
4641
  .MediaCard {
4642
+ --MediaCard-border: var(--color--border);
4643
+
4637
4644
  position: relative;
4638
4645
  user-select: none;
4639
4646
  border-radius: var(--radius-s);
4640
- box-shadow: 0 0 0 1px var(--color--border);
4647
+ box-shadow: var(--shadow--resting);
4641
4648
  transition: box-shadow 0.1s ease-in-out;
4642
4649
 
4650
+ /* The border is a layer over the content, thus the image keeps its full
4651
+ size. The border color is translucent: it must paint over the card, not
4652
+ over the page around it (a ring in the shadow does), or the card has no
4653
+ edge in dark mode. */
4654
+ &::after {
4655
+ position: absolute;
4656
+ inset: 0;
4657
+ z-index: 2;
4658
+ pointer-events: none;
4659
+ content: "";
4660
+ border: 1px solid var(--MediaCard-border);
4661
+ border-radius: inherit;
4662
+ transition: border-color 0.1s ease-in-out;
4663
+ }
4643
4664
  &.is-selectable:hover {
4644
- box-shadow: 0 0 0 1px var(--color--border-hover);
4665
+ --MediaCard-border: var(--color--border-hover);
4645
4666
  }
4646
4667
  &.is-clickable {
4647
4668
  cursor: pointer;
@@ -4651,7 +4672,7 @@ span.SidebarTree__node__toggle {
4651
4672
 
4652
4673
  &:hover,
4653
4674
  &:focus {
4654
- box-shadow: 0 0 0 1px var(--color--border-hover);
4675
+ --MediaCard-border: var(--color--border-hover);
4655
4676
  }
4656
4677
  }
4657
4678
  &.is-dragging {
@@ -4659,18 +4680,18 @@ span.SidebarTree__node__toggle {
4659
4680
 
4660
4681
  &:hover,
4661
4682
  &:focus {
4662
- box-shadow: 0 0 0 1px var(--color--border);
4683
+ --MediaCard-border: var(--color--border);
4663
4684
  }
4664
4685
  }
4665
4686
  &:has(.MediaCard__open:focus-visible) {
4666
- box-shadow:
4667
- 0 0 0 1px var(--color--focus--border),
4668
- var(--focus-ring);
4687
+ --MediaCard-border: var(--color--focus--border);
4688
+
4689
+ box-shadow: var(--focus-ring);
4669
4690
  }
4670
4691
  /* The same ring as a selected option of a choice input */
4671
4692
  &.is-selected,
4672
4693
  &.is-selected:hover {
4673
- box-shadow: 0 0 0 1px var(--color--selected--border);
4694
+ --MediaCard-border: var(--color--selected--border);
4674
4695
  }
4675
4696
  }
4676
4697
  .MediaCard__actions {
@@ -4699,6 +4720,7 @@ span.SidebarTree__node__toggle {
4699
4720
  padding: var(--spacing-s);
4700
4721
  overflow: hidden;
4701
4722
  background-color: var(--color--surface-raised);
4723
+ border: 1px solid var(--color--border-raised);
4702
4724
  border-radius: var(--radius-m);
4703
4725
  box-shadow: var(--shadow--floating);
4704
4726
  }
@@ -4826,6 +4848,7 @@ span.SidebarTree__node__toggle {
4826
4848
  .MediaCard__actions__inner), and it keeps the ink of a ghost button. */
4827
4849
  .button--icon-only {
4828
4850
  background-color: var(--color--surface-raised);
4851
+ border: 1px solid var(--color--border-raised);
4829
4852
  box-shadow: var(--shadow--floating);
4830
4853
 
4831
4854
  svg {
@@ -5140,6 +5163,7 @@ span.SidebarTree__node__toggle {
5140
5163
  background-color: var(--color--surface-raised);
5141
5164
  border: 1px solid var(--color--border);
5142
5165
  border-radius: var(--radius-s);
5166
+ box-shadow: var(--shadow--resting);
5143
5167
  }
5144
5168
  .Table--selectable {
5145
5169
  .Table__row {
@@ -5344,23 +5368,39 @@ span.SidebarTree__node__toggle {
5344
5368
  text-align: center;
5345
5369
  }
5346
5370
  }
5371
+ /* The rows have padding above and below for the hover. The negative
5372
+ margins keep the text of the rows on the edges of the list. */
5373
+ .InfoList:has(> .InfoList__row),
5374
+ .InfoList__group__content > dl {
5375
+ margin-block: -8px;
5376
+ }
5347
5377
  /* The title is on the line of the first line of the value: a value on more
5348
5378
  lines (an address, a note under it) goes down from there */
5349
5379
  .InfoList__row {
5350
5380
  display: grid;
5351
5381
  grid-template-columns: fit-content(70%) minmax(0, 1fr);
5352
5382
  align-items: baseline;
5353
- padding-bottom: 8px;
5354
- margin-bottom: 8px;
5383
+ padding-block: 8px;
5355
5384
  line-height: 1.1;
5356
5385
  border-bottom: 1px solid var(--color--border);
5357
5386
 
5358
5387
  &:last-child {
5359
- padding-bottom: 0;
5360
- margin-bottom: 0;
5361
5388
  border-bottom: 0;
5362
5389
  }
5363
5390
  }
5391
+ /* In a wide list (600px and more, see InfoList.tsx), the value is far from
5392
+ its title: the hover helps the eye to follow the row. The padding at the
5393
+ sides keeps the text away from the edges of the hover. */
5394
+ .InfoList--wide .InfoList__row {
5395
+ padding-inline: var(--spacing-s);
5396
+ margin-inline: calc(-1 * var(--spacing-s));
5397
+
5398
+ @media (hover: hover) {
5399
+ &:hover {
5400
+ background: var(--color--surface-hover);
5401
+ }
5402
+ }
5403
+ }
5364
5404
  /* The value can get narrower than its content, so a long value (for example
5365
5405
  an ID, see .CopyableId) gets an ellipsis and does not go out of the row */
5366
5406
  .InfoList__row__content {
@@ -5410,7 +5450,7 @@ span.SidebarTree__node__toggle {
5410
5450
  gap: var(--spacing-s);
5411
5451
  align-items: center;
5412
5452
  padding-right: 8px;
5413
- font-weight: normal;
5453
+ font-weight: var(--font-weight-regular);
5414
5454
  color: var(--color--ink-subtle);
5415
5455
  white-space: nowrap;
5416
5456
  }
@@ -5444,7 +5484,7 @@ span.SidebarTree__node__toggle {
5444
5484
  min-width: 0;
5445
5485
  }
5446
5486
  .SettingsList__title {
5447
- font-weight: 600;
5487
+ font-weight: var(--font-weight-strong);
5448
5488
  }
5449
5489
  .SettingsList__description {
5450
5490
  color: var(--color--ink-subtle);
@@ -5600,6 +5640,11 @@ span.SidebarTree__node__toggle {
5600
5640
  flex: 1;
5601
5641
  }
5602
5642
  }
5643
+ /* An option with only an icon is a square, as ".button--icon-only" */
5644
+ .SegmentedControl--icon-only .SegmentedControl__button {
5645
+ width: calc(1lh + 2 * var(--button-pad-y, 0.7em));
5646
+ padding-inline: 0;
5647
+ }
5603
5648
  /* In a menu the options are on a raised surface */
5604
5649
  .Dropdown__menu .SegmentedControl {
5605
5650
  --SegmentedControl-surface-hover: var(--color--surface-raised-hover);
@@ -5913,7 +5958,7 @@ span.SidebarTree__node__toggle {
5913
5958
  /* It is the title of the second list. */
5914
5959
  .SelectInput__menu-action--back {
5915
5960
  font-size: var(--font-size-xs);
5916
- font-weight: 500;
5961
+ font-weight: var(--font-weight-strong);
5917
5962
  color: var(--color--ink-subtle);
5918
5963
  }
5919
5964
  /* .Dropdown.is-open: the menu is on the page (open or closing). Other
@@ -5965,7 +6010,7 @@ span.SidebarTree__node__toggle {
5965
6010
  --Dropdown-item-min-height: 32px;
5966
6011
  /* The height of the search field, with its bottom line */
5967
6012
  --Dropdown-search-height: 37px;
5968
- --Dropdown-group-title-height: 26px;
6013
+ --Dropdown-group-title-height: 30px;
5969
6014
  /* The position where the group titles stick. The negative value moves them
5970
6015
  up into the padding of the panel, so no option shows above them. */
5971
6016
  --Dropdown-sticky-top: calc(-1 * var(--Dropdown-padding));
@@ -5977,7 +6022,7 @@ span.SidebarTree__node__toggle {
5977
6022
  text-align: initial;
5978
6023
  scroll-padding-block: var(--Dropdown-padding);
5979
6024
  background-color: var(--color--surface-raised);
5980
- border: 1px solid var(--color--border);
6025
+ border: 1px solid var(--color--border-raised);
5981
6026
  border-radius: var(--radius-m);
5982
6027
  box-shadow: var(--shadow--floating);
5983
6028
  }
@@ -6039,8 +6084,23 @@ span.SidebarTree__node__toggle {
6039
6084
  }
6040
6085
  }
6041
6086
 
6042
- .Dropdown__menu__group + .Dropdown__menu__group {
6043
- margin-top: var(--Dropdown-padding);
6087
+ /* A line from edge to edge of the panel separates a group from the items
6088
+ above it. The negative margin and the padding move the border into the
6089
+ padding of the panel, as for .Dropdown__menu__separator. */
6090
+ :not(.Dropdown__menu__separator) + .Dropdown__menu__group {
6091
+ padding: var(--spacing-m) var(--Dropdown-padding) 0;
6092
+ margin: var(--spacing-m) calc(-1 * var(--Dropdown-padding)) 0;
6093
+ border-top: 1px solid var(--color--border);
6094
+ }
6095
+ /* These items end with their own line and the padding of the panel below
6096
+ it. The group adds the rest of the space that a group gets below its own
6097
+ line. MenuContent.tsx puts the options in a "div" after the search field
6098
+ and the title. */
6099
+ .Dropdown__menu__separator + .Dropdown__menu__group,
6100
+ :is(.Dropdown__menu__search, .Dropdown__menu__title)
6101
+ + *
6102
+ > .Dropdown__menu__group:first-child {
6103
+ padding-top: calc(var(--spacing-m) - var(--Dropdown-padding));
6044
6104
  }
6045
6105
  /* While you search, a group with no option that matches does not show its
6046
6106
  title */
@@ -6048,6 +6108,16 @@ span.SidebarTree__node__toggle {
6048
6108
  .Dropdown__menu__group:not(:has(.Dropdown__menu__option)) {
6049
6109
  display: none;
6050
6110
  }
6111
+ /* While you search, the first group that shows has no line above it, also
6112
+ when the groups above it do not show. It is below the search field. */
6113
+ .Dropdown__menu:has(.Dropdown__menu__search__input:not(:placeholder-shown))
6114
+ .Dropdown__menu__group:not(
6115
+ .Dropdown__menu__group:has(.Dropdown__menu__option) ~ *
6116
+ ) {
6117
+ padding: calc(var(--spacing-m) - var(--Dropdown-padding)) 0 0;
6118
+ margin: 0;
6119
+ border-top: none;
6120
+ }
6051
6121
  .Dropdown__menu__group__title {
6052
6122
  /* The title stays at the top while the options of its group scroll. The
6053
6123
  title of the next group pushes it away. */
@@ -6057,7 +6127,8 @@ span.SidebarTree__node__toggle {
6057
6127
  display: flex;
6058
6128
  gap: 6px;
6059
6129
  align-items: center;
6060
- padding: 6px var(--Dropdown-item-padding-x) 2px;
6130
+ padding: 4px var(--Dropdown-item-padding-x) 8px;
6131
+ container-type: scroll-state;
6061
6132
  background-color: var(--color--surface-raised);
6062
6133
 
6063
6134
  > svg {
@@ -6065,6 +6136,27 @@ span.SidebarTree__node__toggle {
6065
6136
  font-size: 12px;
6066
6137
  fill: currentColor;
6067
6138
  }
6139
+
6140
+ /* The line separates the stuck title from the options that scroll below
6141
+ it. It goes into the padding of the panel, as .Dropdown__menu__separator.
6142
+ The ::after can query the scroll state of its own element. A browser
6143
+ without scroll-state queries shows no line. */
6144
+ &::after {
6145
+ position: absolute;
6146
+ inset: auto calc(-1 * var(--Dropdown-padding)) 0;
6147
+ height: 1px;
6148
+ content: "";
6149
+ /* token-audit-disable-next-line mismatch -- 1px separator rule */
6150
+ background-color: var(--color--border);
6151
+ opacity: 0;
6152
+ transition: opacity 0.15s;
6153
+ }
6154
+
6155
+ @container scroll-state(stuck: top) {
6156
+ &::after {
6157
+ opacity: 1;
6158
+ }
6159
+ }
6068
6160
  }
6069
6161
  /* In a menu with a search field, the group titles stick below the field */
6070
6162
  .Dropdown__menu:has(> .Dropdown__menu__search) {
@@ -6287,12 +6379,6 @@ span.SidebarTree__node__toggle {
6287
6379
  > .PluginIcon.PluginIcon--svg {
6288
6380
  fill: var(--color--ink-subtle);
6289
6381
  }
6290
- > .Dropdown__menu__option__image {
6291
- flex: none;
6292
- width: 16px;
6293
- height: 16px;
6294
- border-radius: var(--radius-xs);
6295
- }
6296
6382
  /* At a 16px font size, the emoji glyph fills the box as much as an SVG
6297
6383
  icon */
6298
6384
  > .ItemTypeEmoji,
@@ -6328,6 +6414,22 @@ span.SidebarTree__node__toggle {
6328
6414
  padding-left: var(--Dropdown-gutter);
6329
6415
  }
6330
6416
  }
6417
+ .Dropdown__menu__option__shortcut {
6418
+ display: flex;
6419
+ flex: none;
6420
+ align-items: center;
6421
+ margin-left: 16px;
6422
+ font-size: var(--font-size-xs);
6423
+
6424
+ /* Keycaps compete with the label of the option, thus the keys are plain text */
6425
+ .Shortcut__key {
6426
+ min-width: 0;
6427
+ padding-inline: 0;
6428
+ color: var(--color--ink-subtle);
6429
+ background-color: transparent;
6430
+ border: none;
6431
+ }
6432
+ }
6331
6433
  .Dropdown__menu__option__icons {
6332
6434
  display: flex;
6333
6435
  align-items: center;
@@ -6466,7 +6568,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6466
6568
  padding: 8px calc(var(--Dropdown-item-padding-x) + var(--Dropdown-padding));
6467
6569
  margin: calc(-1 * var(--Dropdown-padding)) calc(-1 * var(--Dropdown-padding))
6468
6570
  var(--Dropdown-padding);
6469
- font-weight: var(--font-weight-bold);
6571
+ font-weight: var(--font-weight-strong);
6470
6572
  color: var(--color--ink);
6471
6573
  border-bottom: 1px solid var(--color--border);
6472
6574
  }
@@ -6479,8 +6581,8 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6479
6581
  in other components: Tooltip draws the box. */
6480
6582
  .Tooltip {
6481
6583
  max-width: 250px;
6482
- padding: var(--spacing-s) var(--spacing-m);
6483
- font-size: var(--font-size-s);
6584
+ padding: var(--spacing-s);
6585
+ font-size: var(--font-size-xs);
6484
6586
  line-height: 1.2;
6485
6587
  color: var(--color--tooltip--ink);
6486
6588
  text-align: center;
@@ -6488,6 +6590,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6488
6590
  background-color: var(--color--tooltip--surface);
6489
6591
  border-radius: var(--radius-s);
6490
6592
  box-shadow: var(--shadow--floating);
6593
+ animation: Tooltip__appear 0.1s var(--ease-out);
6491
6594
  p {
6492
6595
  margin-bottom: var(--spacing-s);
6493
6596
  }
@@ -6495,6 +6598,31 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6495
6598
  margin-bottom: 0;
6496
6599
  }
6497
6600
  }
6601
+ .Tooltip--closing {
6602
+ pointer-events: none;
6603
+ opacity: 0;
6604
+ scale: 0.98;
6605
+ transition: opacity 0.2s var(--ease-out);
6606
+ }
6607
+ @keyframes Tooltip__fade-in {
6608
+ 0% {
6609
+ opacity: 0;
6610
+ }
6611
+ }
6612
+ @keyframes Tooltip__appear {
6613
+ 0% {
6614
+ opacity: 0;
6615
+ scale: 0.98;
6616
+ }
6617
+ }
6618
+ @media (prefers-reduced-motion: reduce) {
6619
+ .Tooltip {
6620
+ animation-name: Tooltip__fade-in;
6621
+ }
6622
+ .Tooltip--closing {
6623
+ scale: none;
6624
+ }
6625
+ }
6498
6626
  .Tooltip--long {
6499
6627
  max-width: 360px;
6500
6628
  text-align: left;
@@ -6505,13 +6633,15 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6505
6633
  gap: var(--spacing-m);
6506
6634
  align-items: center;
6507
6635
  max-width: none;
6508
- padding: var(--spacing-s) var(--spacing-m);
6509
6636
  line-height: 1;
6510
6637
  white-space: nowrap;
6511
6638
  }
6512
6639
  .Tooltip__label {
6513
6640
  flex: 1;
6514
6641
  }
6642
+ .Tooltip .Shortcut__word {
6643
+ color: var(--color--tooltip--ink-subtle);
6644
+ }
6515
6645
  /*
6516
6646
  * The callout has a margin only at the bottom, so it can be the first item of
6517
6647
  * a page or of a form without modifiers.
@@ -6542,7 +6672,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6542
6672
  }
6543
6673
 
6544
6674
  .Callout__title {
6545
- font-weight: 600;
6675
+ font-weight: var(--font-weight-strong);
6546
6676
 
6547
6677
  &:not(:last-child) {
6548
6678
  margin-bottom: 2px;
@@ -6585,7 +6715,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6585
6715
  /* The links take the ink of the tone, so they are legible on all the
6586
6716
  * surfaces. The underline tells that they are links. */
6587
6717
  & a:not(.button) {
6588
- font-weight: 600;
6718
+ font-weight: var(--font-weight-strong);
6589
6719
  color: inherit;
6590
6720
  text-decoration: underline;
6591
6721
 
@@ -6675,11 +6805,11 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6675
6805
  .SidebarPanel__header__title {
6676
6806
  flex: 1;
6677
6807
  min-width: 0;
6678
- font-weight: 600;
6808
+ font-weight: var(--font-weight-strong);
6679
6809
  }
6680
6810
  .SidebarPanel__header__count {
6681
6811
  margin-left: var(--spacing-s);
6682
- font-weight: normal;
6812
+ font-weight: var(--font-weight-regular);
6683
6813
  color: var(--color--ink-subtle);
6684
6814
  }
6685
6815
  .SidebarPanel__content {
@@ -6819,7 +6949,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6819
6949
  overflow: hidden;
6820
6950
  text-overflow: ellipsis;
6821
6951
  font-size: var(--font-size-m);
6822
- font-weight: bold;
6952
+ font-weight: var(--font-weight-strong);
6823
6953
  line-height: 1.3;
6824
6954
  letter-spacing: 0;
6825
6955
  white-space: nowrap;
@@ -6891,7 +7021,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6891
7021
  }
6892
7022
  }
6893
7023
  a:not(.button) {
6894
- font-weight: bold;
7024
+ font-weight: var(--font-weight-strong);
6895
7025
  color: var(--color--ink-link);
6896
7026
  }
6897
7027
  code,
@@ -6970,7 +7100,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
6970
7100
  align-self: stretch;
6971
7101
  overflow: hidden;
6972
7102
  font-size: var(--font-size-m);
6973
- font-weight: bold;
7103
+ font-weight: var(--font-weight-strong);
6974
7104
  line-height: 1.3;
6975
7105
  color: var(--color--ink-subtle);
6976
7106
  white-space: nowrap;
@@ -7026,17 +7156,18 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7026
7156
  margin-left: 10px;
7027
7157
  }
7028
7158
  }
7029
- .Toolbar__search__search {
7030
- padding: 9px 9px 9px 18px;
7031
- line-height: 1;
7032
- background: none;
7033
- border: 0;
7159
+ /* The hairline takes the full height of the cells, thus the parts of a cell
7160
+ that grows (the tiles that wrap, the clear button) read as one cell. */
7161
+ .Toolbar__divider {
7162
+ flex: none;
7163
+ align-self: stretch;
7164
+ min-height: var(--control-height);
7165
+ border-left: 1px solid var(--color--border);
7034
7166
  }
7035
- input.Toolbar__search__input[type="text"] {
7036
- display: block;
7037
- width: 100%;
7038
- padding: 9px;
7039
- padding-right: 37px;
7167
+ /* The full height of the toolbar cuts the toolbar, thus a direct child keeps
7168
+ the height of a field. */
7169
+ .Toolbar > .Toolbar__divider {
7170
+ align-self: center;
7040
7171
  }
7041
7172
  .Toolbar__filter {
7042
7173
  display: flex;
@@ -7233,12 +7364,14 @@ input.Toolbar__search__input[type="text"] {
7233
7364
  /* The surface of HoverCard (ui/HoverCard). The content of the
7234
7365
  card does not draw a surface of its own. */
7235
7366
  .HoverCard {
7367
+ box-sizing: border-box;
7236
7368
  /* The Overlay sets the variable to the height that is available in the
7237
7369
  viewport. Content that is taller scrolls. */
7238
7370
  max-height: var(--Popover-available-height, none);
7239
7371
  overflow-y: auto;
7240
7372
  color: var(--color--ink);
7241
7373
  background-color: var(--color--surface-raised);
7374
+ border: 1px solid var(--color--border-raised);
7242
7375
  border-radius: var(--radius-s);
7243
7376
  box-shadow: var(--shadow--floating);
7244
7377
  }
@@ -7270,7 +7403,7 @@ input.Toolbar__search__input[type="text"] {
7270
7403
  gap: var(--spacing-s);
7271
7404
  align-items: center;
7272
7405
  padding: var(--spacing-m);
7273
- font-weight: bold;
7406
+ font-weight: var(--font-weight-strong);
7274
7407
  line-height: 1.3;
7275
7408
  background-color: var(--color--surface-raised);
7276
7409
  border-bottom: 1px solid var(--color--border);
@@ -7441,48 +7574,38 @@ input.Toolbar__search__input[type="text"] {
7441
7574
  color: var(--color--disabled-field--ink-placeholder);
7442
7575
  }
7443
7576
  }
7444
- /* Both are kbd elements: the normalize sheet gives a kbd the monospace font */
7445
- .HotKey,
7446
- .HotKey__key {
7577
+ /* All are kbd elements: the normalize sheet gives a kbd the monospace font */
7578
+ .Shortcut,
7579
+ .Shortcut__key {
7447
7580
  font-family: inherit;
7448
7581
  }
7449
- .HotKey {
7582
+ /* The sizes are in em, because the spacing scale has no step under
7583
+ --spacing-s. The key keeps the same proportions at each font size. */
7584
+ .Shortcut,
7585
+ .Shortcut__keys {
7450
7586
  display: inline-flex;
7451
- gap: var(--spacing-s);
7587
+ gap: 0.25em;
7588
+ align-items: center;
7589
+ font-size: var(--font-size-xs);
7452
7590
  }
7453
- .HotKey__key {
7591
+ /* A neutral keycap: the keys must not compete with the name of the action
7592
+ next to them */
7593
+ .Shortcut__key {
7594
+ box-sizing: border-box;
7454
7595
  display: flex;
7455
7596
  align-items: center;
7456
- padding: var(--spacing-s);
7597
+ justify-content: center;
7598
+ min-width: 1.6em;
7599
+ height: 1.6em;
7600
+ padding-inline: 0.3em;
7457
7601
  line-height: 1;
7458
- color: var(--color--primary-soft--ink);
7459
- background-color: var(--color--primary-soft--surface);
7460
- border-radius: var(--radius-s);
7461
- }
7462
- .HotKeyManagerInfo {
7463
- position: fixed;
7464
- top: 0;
7465
- left: 50%;
7466
- padding: var(--spacing-l);
7467
- color: var(--color--ink);
7602
+ color: var(--color--ink-subtle);
7468
7603
  background-color: var(--color--surface-raised);
7469
7604
  border: 1px solid var(--color--border);
7470
- border-bottom-right-radius: var(--radius-m);
7471
- border-bottom-left-radius: var(--radius-m);
7472
- transform: translateX(-50%);
7473
- }
7474
- .HotKeyManagerInfo__title {
7475
- margin-bottom: var(--spacing-m);
7476
- font-weight: bold;
7477
- }
7478
- .HotKeyManagerInfo__hotkey {
7479
- display: flex;
7480
- gap: var(--spacing-l);
7481
- align-items: center;
7482
- margin-bottom: var(--spacing-m);
7605
+ border-radius: var(--radius-s);
7483
7606
  }
7484
- .HotKeyManagerInfo__hotkey__description {
7485
- flex: 1;
7607
+ .Shortcut__word {
7608
+ color: var(--color--ink-subtle);
7486
7609
  }
7487
7610
  .Pane {
7488
7611
  position: absolute;
@@ -7933,7 +8056,7 @@ input.Toolbar__search__input[type="text"] {
7933
8056
  font-size: 12px;
7934
8057
  color: var(--color--ink-subtle);
7935
8058
  background: var(--color--surface);
7936
- border: 1px solid var(--color--border);
8059
+ border: 1px solid var(--color--border-raised);
7937
8060
  border-radius: var(--radius-s);
7938
8061
  box-shadow: var(--shadow--floating);
7939
8062
 
@@ -8121,9 +8244,19 @@ body.SplitView--disable-select {
8121
8244
  }
8122
8245
  .SplitPaneOverlay__secondary--left {
8123
8246
  left: 0;
8247
+ border-right: 1px solid var(--color--border-raised);
8248
+
8249
+ /* The ring of the overlay is the edge of the pane that floats. A Pane in it
8250
+ has a right border of its own, which makes a double edge next to the ring.
8251
+ The same rule is in _ListDetail.css for the detail that floats. */
8252
+ > .Pane,
8253
+ > aside > .Pane {
8254
+ border-right: 0;
8255
+ }
8124
8256
  }
8125
8257
  .SplitPaneOverlay__secondary--right {
8126
8258
  right: 0;
8259
+ border-left: 1px solid var(--color--border-raised);
8127
8260
  }
8128
8261
  /* Use the <Pill> component, or <PillTrigger> for a dropdown. The pill has no
8129
8262
  margin: the parent sets the space around it. The padding is in the width,
@@ -8141,7 +8274,7 @@ body.SplitView--disable-select {
8141
8274
  margin: 0;
8142
8275
  font-family: inherit;
8143
8276
  font-size: var(--font-size-xs);
8144
- font-weight: normal;
8277
+ font-weight: var(--font-weight-regular);
8145
8278
  line-height: 1.5;
8146
8279
  vertical-align: middle;
8147
8280
  white-space: nowrap;
@@ -8215,7 +8348,6 @@ body.SplitView--disable-select {
8215
8348
  /* The title is subtle and small, thus it does not compete with the items */
8216
8349
  .group-title {
8217
8350
  font-size: var(--font-size-xs);
8218
- font-weight: 500;
8219
8351
  line-height: 18px;
8220
8352
  color: var(--color--ink-subtle);
8221
8353
  }
@@ -8349,6 +8481,7 @@ body.SplitView--disable-select {
8349
8481
  max-width: 100%;
8350
8482
  height: auto;
8351
8483
  background: var(--color--surface);
8484
+ border-left: 1px solid var(--color--border-raised);
8352
8485
  box-shadow: var(--shadow--floating);
8353
8486
  }
8354
8487
 
@@ -8375,7 +8508,7 @@ body.SplitView--disable-select {
8375
8508
  min-width: 0;
8376
8509
  }
8377
8510
  .ListDetailPanel__entity__title {
8378
- font-weight: 600;
8511
+ font-weight: var(--font-weight-strong);
8379
8512
  }
8380
8513
  .ListDetailPanel__entity__subtitle {
8381
8514
  margin-top: 2px;
@@ -8407,7 +8540,9 @@ body.SplitView--disable-select {
8407
8540
  background: var(--color--fill-danger);
8408
8541
  }
8409
8542
  }
8410
- /* Like an icon, the ring has the size of the text around it */
8543
+ /* Like an icon, the ring has the size of the text around it. Within the
8544
+ limit, the fill is gray as an icon, thus only a ring over the limit
8545
+ catches the eye. */
8411
8546
  .UsageRing {
8412
8547
  width: 1em;
8413
8548
  height: 1em;
@@ -8419,7 +8554,7 @@ body.SplitView--disable-select {
8419
8554
  stroke: var(--color--progress--track);
8420
8555
  }
8421
8556
  .UsageRing__fill {
8422
- stroke: var(--color--progress--fill);
8557
+ stroke: var(--color--ink-subtle);
8423
8558
 
8424
8559
  .UsageRing--over & {
8425
8560
  stroke: var(--color--fill-warning);
@@ -8471,7 +8606,7 @@ body.SplitView--disable-select {
8471
8606
  }
8472
8607
  }
8473
8608
  .ContextInspector__name {
8474
- font-weight: 600;
8609
+ font-weight: var(--font-weight-strong);
8475
8610
  }
8476
8611
  .ContextInspector__type {
8477
8612
  color: var(--color--ink-subtle);