main
css 137 lines 2.63 KB
Raw
1 .SuspenseTab {
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 .SuspenseTab, .SuspenseTab * {
13 box-sizing: border-box;
14 -webkit-font-smoothing: var(--font-smoothing);
15 }
16
17 .VRule {
18 height: 20px;
19 width: 1px;
20 flex: 0 0 1px;
21 margin: 0 0.5rem;
22 background-color: var(--color-border);
23 }
24
25 .TreeWrapper {
26 border-top: 1px solid var(--color-border);
27 flex: 1 1 65%;
28 display: flex;
29 flex-direction: row;
30 height: 100%;
31 overflow: auto;
32 }
33
34 .InspectedElementWrapper {
35 flex: 0 0 calc(100% - var(--horizontal-resize-tree-percentage));
36 overflow-x: hidden;
37 overflow-y: auto;
38 border-left: 1px solid var(--color-border);
39 }
40
41 .ResizeBarWrapper {
42 flex: 0 0 0px;
43 position: relative;
44 }
45
46 .ResizeBar {
47 position: absolute;
48 /*
49 * moving the bar out of its bounding box might cause its hitbox to overlap
50 * with another scrollbar creating disorienting UX where you both resize and scroll
51 * at the same time.
52 * If you adjust this value, double check that starting resize right on this edge
53 * doesn't also cause scroll
54 */
55 left: 1px;
56 width: 5px;
57 height: 100%;
58 cursor: ew-resize;
59 }
60
61 @container devtools (width < 600px) {
62 .SuspenseTab {
63 flex-direction: column;
64 }
65
66 .TreeWrapper {
67 border-top: 1px solid var(--color-border);
68 flex: 1 1 50%;
69 overflow: hidden;
70 }
71
72 .InspectedElementWrapper {
73 flex: 0 0 calc(100% - var(--vertical-resize-tree-percentage));
74 border-left: none;
75 }
76
77 .TreeWrapper + .ResizeBarWrapper .ResizeBar {
78 top: 1px;
79 left: 0;
80 width: 100%;
81 height: 5px;
82 cursor: ns-resize;
83 }
84
85 .ToggleInspectedElement[data-orientation="horizontal"] {
86 display: none;
87 }
88 }
89
90 @container devtools (width >= 600px) {
91 .ToggleInspectedElement[data-orientation="vertical"] {
92 display: none;
93 }
94 }
95
96 .ActivityList {
97 flex: 0 0 var(--horizontal-resize-activity-list-percentage);;
98 border-right: 1px solid var(--color-border);
99 overflow: auto;
100 }
101
102 .TreeView {
103 flex: 1 1 35%;
104 display: flex;
105 flex-direction: column;
106 height: 100%;
107 overflow: auto;
108 }
109
110 .Rects {
111 padding: 0.25rem;
112 flex-grow: 1;
113 overflow: auto;
114 }
115
116 .SuspenseTreeViewHeader {
117 flex: 0 0 42px;
118 padding: 0.5rem;
119 display: flex;
120 align-items: center;
121 border-bottom: 1px solid var(--color-border);
122 }
123
124 .SuspenseTreeViewFooter {
125 flex: 0 0 42px;
126 display: flex;
127 justify-content: end;
128 border-top: 1px solid var(--color-border);
129 padding: 0.5rem;
130 display: grid;
131 grid-template-columns: 1fr auto;
132 align-items: center;
133 }
134
135 .SuspenseTreeViewFooterButtons {
136 padding: 0.25rem;
137 }