shelving 1.328.1 → 1.328.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shelving",
3
- "version": "1.328.1",
3
+ "version": "1.328.2",
4
4
  "author": "Dave Houlbrooke <dave@shax.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -6,11 +6,15 @@
6
6
  @layer components {
7
7
  .notices {
8
8
  position: fixed;
9
- right: calc(var(--notices-offset, var(--space-normal)) + env(safe-area-inset-right, 0px));
10
- left: calc(var(--notices-offset, var(--space-normal)) + env(safe-area-inset-left, 0px));
9
+ right: calc(var(--notices-offset, var(--space-normal)) - var(--space-normal) + env(safe-area-inset-right, 0px));
10
+ left: calc(var(--notices-offset, var(--space-normal)) - var(--space-normal) + env(safe-area-inset-left, 0px));
11
11
  z-index: 1000;
12
12
  display: flex;
13
- max-width: var(--notices-width, var(--width-narrow));
13
+ box-sizing: border-box;
14
+ max-width: calc(var(--notices-width, var(--width-narrow)) + 2 * var(--space-normal));
15
+
16
+ /* Room for the shadows inside the list's own box. The list has its own view transition layer, and Safari clips a named element to its box, so a shadow outside it is cut off. The offsets above take this room back off. */
17
+ padding: var(--space-normal);
14
18
  flex-direction: column;
15
19
  gap: var(--notices-gap, var(--space-small));
16
20
 
@@ -33,11 +37,11 @@
33
37
 
34
38
  /* Places. The list keeps `--notices-offset` clear of the edges, plus the safe area of the device. */
35
39
  .top {
36
- top: calc(var(--notices-offset, var(--space-normal)) + env(safe-area-inset-top, 0px));
40
+ top: calc(var(--notices-offset, var(--space-normal)) - var(--space-normal) + env(safe-area-inset-top, 0px));
37
41
  }
38
42
 
39
43
  .bottom {
40
- bottom: calc(var(--notices-offset, var(--space-normal)) + env(safe-area-inset-bottom, 0px));
44
+ bottom: calc(var(--notices-offset, var(--space-normal)) - var(--space-normal) + env(safe-area-inset-bottom, 0px));
41
45
  }
42
46
 
43
47
  .left {