| 1 | .SuspenseRectsContainer { |
| 2 | padding: .25rem; |
| 3 | outline-color: transparent; |
| 4 | outline-style: solid; |
| 5 | outline-width: 1px; |
| 6 | border-radius: 0.25rem; |
| 7 | } |
| 8 | |
| 9 | .SuspenseRectsRoot { |
| 10 | cursor: pointer; |
| 11 | outline-color: var(--color-transition); |
| 12 | background-color: color-mix(in srgb, var(--color-transition) 5%, transparent); |
| 13 | } |
| 14 | |
| 15 | .SuspenseRectsRootOutline { |
| 16 | outline-width: 4px; |
| 17 | border-radius: 0.125rem; |
| 18 | } |
| 19 | |
| 20 | .SuspenseRectsRoot[data-hovered='true'] { |
| 21 | background-color: color-mix(in srgb, var(--color-transition) 15%, transparent); |
| 22 | } |
| 23 | |
| 24 | .SuspenseRectsViewBox { |
| 25 | position: relative; |
| 26 | } |
| 27 | |
| 28 | .SuspenseRectsBoundary { |
| 29 | pointer-events: all; |
| 30 | border-radius: 0.125rem; |
| 31 | } |
| 32 | |
| 33 | .SuspenseRectsBoundary[data-visible='false'] { |
| 34 | background-color: transparent; |
| 35 | } |
| 36 | |
| 37 | .SuspenseRectsBoundaryChildren { |
| 38 | pointer-events: none; |
| 39 | } |
| 40 | |
| 41 | .SuspenseRectsTitle { |
| 42 | pointer-events: none; |
| 43 | color: color-mix(in srgb, var(--color-suspense) 50%, var(--color-text)); |
| 44 | overflow: hidden; |
| 45 | text-overflow: ellipsis; |
| 46 | font-family: var(--font-family-sans); |
| 47 | font-size: var(--font-size-sans-small); |
| 48 | line-height: var(--line-height-data); |
| 49 | padding: 0 .25rem; |
| 50 | container-type: size; |
| 51 | container-name: title; |
| 52 | } |
| 53 | |
| 54 | @container title (width < 30px) or (height < 18px) { |
| 55 | .SuspenseRectsTitle > span { |
| 56 | display: none; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | .SuspenseRectsScaledRect[data-visible='false'] > .SuspenseRectsBoundaryChildren { |
| 61 | overflow: initial; |
| 62 | } |
| 63 | |
| 64 | .SuspenseRectsRect { |
| 65 | box-shadow: var(--elevation-4); |
| 66 | pointer-events: all; |
| 67 | cursor: pointer; |
| 68 | border-radius: 0.125rem; |
| 69 | background-color: color-mix(in srgb, var(--color-background) 50%, var(--color-suspense) 25%); |
| 70 | backdrop-filter: grayscale(100%); |
| 71 | transition: background-color 0.2s ease-in; |
| 72 | outline-color: var(--color-suspense); |
| 73 | outline-style: solid; |
| 74 | outline-width: 1px; |
| 75 | } |
| 76 | |
| 77 | .SuspenseRectsScaledRect { |
| 78 | position: absolute; |
| 79 | } |
| 80 | |
| 81 | .SuspenseRectsScaledRect[data-visible='false'] { |
| 82 | pointer-events: none; |
| 83 | outline-width: 0; |
| 84 | } |
| 85 | |
| 86 | .SuspenseRectsBoundary[data-suspended='true'] { |
| 87 | opacity: 0.33; |
| 88 | } |
| 89 | |
| 90 | /* highlight this boundary */ |
| 91 | .SuspenseRectsBoundary[data-hovered='true'] > .SuspenseRectsRect { |
| 92 | background-color: color-mix(in srgb, var(--color-background) 50%, var(--color-suspense) 50%); |
| 93 | transition: background-color 0.2s ease-out; |
| 94 | } |
| 95 | |
| 96 | .SuspenseRectsBoundary[data-selected='true'][data-visible='true'] { |
| 97 | box-shadow: var(--elevation-4); |
| 98 | } |
| 99 | |
| 100 | .SuspenseRectOutline { |
| 101 | outline-color: var(--color-suspense); |
| 102 | outline-style: solid; |
| 103 | outline-width: 4px; |
| 104 | border-radius: 0.125rem; |
| 105 | pointer-events: none; |
| 106 | } |
| 107 | |
| 108 | .SuspenseRectsBoundary[data-selected='true'] > .SuspenseRectsRect { |
| 109 | box-shadow: none; |
| 110 | } |