@lincyaw/design 1.0.0-rc.13 → 1.0.0-rc.14

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lincyaw/design",
3
- "version": "1.0.0-rc.13",
3
+ "version": "1.0.0-rc.14",
4
4
  "description": "Presmium's design system, shared by its outputs and its workbench: the tokens, the classes of the shared components, the fonts and the line icons, bound to no framework",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -388,6 +388,28 @@
388
388
  background: var(--pm-color-sunk);
389
389
  }
390
390
 
391
+ .pm-ui-icon-button--overlay {
392
+ width: var(--pm-size-overlay-control);
393
+ min-width: var(--pm-size-overlay-control);
394
+ min-height: var(--pm-size-overlay-control);
395
+ border: 0;
396
+ border-radius: var(--pm-radius-pill);
397
+ background: color-mix(in srgb, var(--pm-color-ink) 78%, transparent);
398
+ color: var(--pm-color-bg);
399
+ box-shadow: var(--pm-shadow-float);
400
+ }
401
+
402
+ .pm-ui-icon-button--overlay:hover:not(:disabled):not([aria-disabled='true']),
403
+ .pm-ui-icon-button--overlay:active:not(:disabled):not([aria-disabled='true']) {
404
+ background: var(--pm-color-ink);
405
+ color: var(--pm-color-bg);
406
+ }
407
+
408
+ .pm-ui-icon-button--overlay .pm-ui-icon {
409
+ width: var(--pm-size-overlay-icon);
410
+ height: var(--pm-size-overlay-icon);
411
+ }
412
+
391
413
  .pm-ui-icon-button[aria-pressed='true'],
392
414
  .pm-ui-icon-button[aria-expanded='true'] {
393
415
  border-color: var(--pm-color-accent);
package/src/tokens.css CHANGED
@@ -105,9 +105,9 @@
105
105
  /* The mascot's frame is 4:3; these are its widths: small beside a line of text, and full size. */
106
106
  --pm-size-mascot-sm: 3.5rem;
107
107
  --pm-size-mascot: 7rem;
108
- /* The button that starts a lecture the browser would not autoplay. */
109
- --pm-size-start: 5rem;
110
- --pm-size-start-icon: 2rem;
108
+ /* A control laid over media (the overlay icon button) and its icon. */
109
+ --pm-size-overlay-control: 5rem;
110
+ --pm-size-overlay-icon: 2rem;
111
111
  --pm-size-badge: 1.25rem;
112
112
  --pm-size-avatar: 1.75rem;
113
113
  --pm-size-divider: 1.25rem;