Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
256 lines (214 loc) · 5.56 KB
/
Copy pathstyle.css
File metadata and controls
256 lines (214 loc) · 5.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
body {
background-color: "white";
max-height: 100vh;
overflow: hidden;
}
/* Visually hide an element while keeping it available to assistive tech.
Used for the document-level <h1> in index.html (the visible UI uses
MUI panel headings at H3). */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Keyboard "skip to main content" link. Hidden until focused so it
doesn't disturb the visual layout but is the first stop in tab order. */
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: #3557d4;
color: #fff;
padding: 8px 16px;
z-index: 100000;
text-decoration: none;
font-family: "Roboto", sans-serif;
border-radius: 0 0 4px 0;
}
.skip-link:focus {
top: 0;
outline: 2px solid #fff;
outline-offset: -4px;
}
/* The three-region workspace (code / widgets / cycles) is laid out and
sized entirely by the WorkspaceLayout component via MUI `sx`, including
its resizable split and the mobile stacked fallback. Only the page-level
scroll behaviour lives here (see the `body` rules above and the
responsive block below). */
::-webkit-scrollbar {
width: 8px;
height: 8px;
background-color: transparent;
}
::-webkit-scrollbar-thumb {
background-color: rgba(100, 116, 139, 0.45);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(100, 116, 139, 0.7);
}
textarea {
font-family: monospace;
width: 100%;
min-height: 100px;
height: 200px;
border: 0;
color: rgba(0, 0, 0, 0.87);
resize: vertical;
}
/* Controls */
div#controls {
margin: 0.5em 0;
}
div#controls > input {
padding: 0.5em;
margin: 0 0.5em;
}
div#pipeline td {
padding: 0.1em 12px;
}
td.instructionName {
width: 11em;
}
/* CSS classes for pipeline stages */
.stageIf {
background-color: var(--pipeline-stage-if, rgba(255, 255, 0, 0.5));
}
.stageId {
background-color: var(--pipeline-stage-id, rgba(0, 0, 255, 0.5));
}
.stageEx {
background-color: var(--pipeline-stage-ex, rgba(255, 0, 0, 0.5));
}
.stageMem {
background-color: var(--pipeline-stage-mem, rgba(0, 255, 0, 0.5));
}
.stageWb {
background-color: var(--pipeline-stage-wb, rgba(255, 0, 255, 0.5));
}
.stageFPAdder {
background-color: var(--pipeline-stage-fp-adder, rgba(0, 128, 0, 0.5));
}
.stageFPMultiplier {
background-color: var(--pipeline-stage-fp-multiplier, rgba(0, 128, 128, 0.5));
}
.stageFPDivider {
background-color: var(--pipeline-stage-fp-divider, rgba(128, 128, 0, 0.5));
}
#errorCount {
color: #cc6054;
}
#warningCount {
color: #e6ba79;
}
#nojs {
width: 22em;
position: absolute;
left: 50%;
margin-left: -11em;
color: red;
background-color: white;
border: 1px solid red;
padding: 4px;
font-family: sans-serif;
}
footer {
color: rgb(167, 167, 167);
text-align: right;
}
#memory-view {
box-sizing: border-box;
margin: 5px 0;
}
div.error-list-item {
min-width: unset;
margin-right: 10px;
}
/* ---------- Data tables (Registers / Memory) ---------- */
#registers,
#memory {
width: 100%;
border-collapse: collapse;
font-variant-numeric: tabular-nums;
}
#registers td,
#memory td,
#memory th {
border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
#registers tr:hover,
#memory tbody tr:hover {
background-color: rgba(53, 87, 212, 0.06);
}
#registers td.registerName {
font-size: 0.75rem;
font-weight: 600;
color: #5b6577;
padding: 0 4px;
}
#memory th {
font-size: 0.75rem;
font-weight: 600;
color: #5b6577;
}
html[data-theme="dark"] #registers td,
html[data-theme="dark"] #memory td,
html[data-theme="dark"] #memory th {
border-bottom-color: rgba(148, 163, 184, 0.1);
}
html[data-theme="dark"] #registers tr:hover,
html[data-theme="dark"] #memory tbody tr:hover {
background-color: rgba(141, 166, 255, 0.08);
}
html[data-theme="dark"] #registers td.registerName,
html[data-theme="dark"] #memory th {
color: #97a3b8;
}
div.error-accordion {
position: sticky;
top: 0;
/* Keep the sticky Issues accordion above sibling accordions in the
right panel, but well below MUI overlays such as the Help dialog
(default modal z-index = 1300) and tooltips/popovers. The previous
value (10000) leaked through every overlay because sticky + z-index
creates a stacking context that outranks MUI portals. */
z-index: 2;
border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}
/* ---------- Responsive layout (tablets and phones) ----------
Below ~900px the desktop-style two-column layout is too cramped:
the right-panel widgets (Registers/Memory) have no horizontal room
and the editor becomes unreadable. Stack the panels vertically and
let the page scroll naturally. */
@media (max-width: 900px) {
body {
/* The desktop layout pins the page to the viewport (no scroll) so
Monaco can fill the left pane. On small viewports the WorkspaceLayout
stacks the regions, so allow the document to scroll. */
max-height: none;
overflow: auto;
}
}
/* Dark Mode Specific Styles
Driven by the app's resolved theme (the data-theme attribute set on <html>
from the MUI palette mode), NOT the OS `prefers-color-scheme` media query,
so these stay in sync when the user overrides the theme in Settings. */
html[data-theme="dark"] div.error-accordion {
border-bottom-color: rgba(255, 255, 255, 0.188);
}
html[data-theme="dark"] textarea {
background: transparent;
color: white;
}
html[data-theme="dark"] ::-webkit-scrollbar {
background-color: #1e1e1e;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
background-color: rgb(97, 97, 97);
}