| 1 | .Components { |
| 2 | position: relative; |
| 3 | width: 100%; |
| 4 | height: 100%; |
| 5 | display: flex; |
| 6 | flex-direction: row; |
| 7 | background-color: var(--color-background); |
| 8 | color: var(--color-text); |
| 9 | font-family: var(--font-family-sans); |
| 10 | } |
| 11 | |
| 12 | .Components, .Components * { |
| 13 | box-sizing: border-box; |
| 14 | -webkit-font-smoothing: var(--font-smoothing); |
| 15 | } |
| 16 | |
| 17 | .TreeWrapper { |
| 18 | flex: 0 0 var(--horizontal-resize-percentage); |
| 19 | } |
| 20 | |
| 21 | .InspectedElementWrapper { |
| 22 | flex: 1 1 35%; |
| 23 | overflow-x: hidden; |
| 24 | overflow-y: auto; |
| 25 | border-left: 1px solid var(--color-border); |
| 26 | } |
| 27 | |
| 28 | .ResizeBarWrapper { |
| 29 | flex: 0 0 0px; |
| 30 | position: relative; |
| 31 | } |
| 32 | |
| 33 | .ResizeBar { |
| 34 | position: absolute; |
| 35 | /* |
| 36 | * moving the bar out of its bounding box might cause its hitbox to overlap |
| 37 | * with another scrollbar creating disorienting UX where you both resize and scroll |
| 38 | * at the same time. |
| 39 | * If you adjust this value, double check that starting resize right on this edge |
| 40 | * doesn't also cause scroll |
| 41 | */ |
| 42 | left: 1px; |
| 43 | width: 5px; |
| 44 | height: 100%; |
| 45 | cursor: ew-resize; |
| 46 | } |
| 47 | |
| 48 | @container devtools (width < 600px) { |
| 49 | .Components { |
| 50 | flex-direction: column; |
| 51 | } |
| 52 | |
| 53 | .TreeWrapper { |
| 54 | flex: 0 0 var(--vertical-resize-percentage); |
| 55 | } |
| 56 | |
| 57 | .InspectedElementWrapper { |
| 58 | flex: 1 1 50%; |
| 59 | border-left: none; |
| 60 | } |
| 61 | |
| 62 | .ResizeBar { |
| 63 | top: 1px; |
| 64 | left: 0; |
| 65 | width: 100%; |
| 66 | height: 5px; |
| 67 | cursor: ns-resize; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | .Loading { |
| 72 | height: 100%; |
| 73 | padding-left: 0.5rem; |
| 74 | display: flex; |
| 75 | align-items: center; |
| 76 | justify-content: center; |
| 77 | font-size: var(--font-size-sans-large); |
| 78 | color: var(--color-dim); |
| 79 | border-left: 1px solid var(--color-border); |
| 80 | } |