forked from dotnet/aspire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.css
More file actions
448 lines (363 loc) · 12.1 KB
/
app.css
File metadata and controls
448 lines (363 loc) · 12.1 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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
fluent-toolbar fluent-switch,
fluent-toolbar p {
margin-inline-end: 15px;
}
fluent-toolbar[orientation=horizontal] {
width: 100%;
}
/* Hide any web components that haven't been */
:not(:defined),
.before-upgrade {
visibility: hidden;
}
.col-long-content {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 100%;
}
.trace-tag-icon {
margin-right: 3px;
}
:root {
--log-critical: #F8ECEB;
--log-error: #F8ECEB;
--log-warning: #FBF3DD;
--info: #717171 !important;
--warning: #E85E36 !important;
--success: #108310 !important;
--badge-fill-error: var(--error);
--badge-fill-warning: var(--warning);
--badge-color-error: var(--foreground-on-accent-rest);
--foreground-subtext-rest: #5D5D5D;
--foreground-subtext-hover: #6C6C6C;
--error-ui-foreground-color: #131313;
--error-ui-accent-foreground-color: #1d00d0;
--reconnection-ui-bg: rgb(255, 255, 255);
--error-counter-badge-foreground-color: var(--neutral-fill-rest);
--kbd-background-color: var(--neutral-layer-4);
--messagebar-warning-background-color: #FDF6F3;
--messagebar-warning-border-color: #f4bfab;
--layout-toolbar-padding: calc(var(--design-unit) * 1.5px);
}
[data-theme="dark"] {
--log-critical: #493634;
--log-error: #493634;
--log-warning: #3F3A2B;
--foreground-subtext-rest: #8D8D8D;
--foreground-subtext-hover: #A1A1A1;
--error-ui-foreground-color: #000000;
--error-ui-accent-foreground-color: #512bd4;
--reconnection-ui-bg: #D6D6D6;
--error-counter-badge-foreground-color: #ffffff;
--kbd-background-color: var(--fill-color);
--messagebar-warning-background-color: #411200;
--messagebar-warning-border-color: #DA3B01;
/* overrides of default fluentui-blazor styling */
--error: #E10B11 !important;
color-scheme: dark;
}
[data-theme="light"] {
color-scheme: light;
}
fluent-select.resource-list {
/* overrides of default fluentui-blazor styling */
--disabled-opacity: 0.7;
}
[data-theme="dark"] fluent-select.resource-list {
/* overrides of default fluentui-blazor styling */
--disabled-opacity: 0.85;
}
h1 {
font-size: var(--type-ramp-plus-4-font-size);
line-height: var(--type-ramp-plus-4-line-height);
margin-top: 0.25rem;
margin-bottom: 0.5rem;
}
#components-reconnect-modal :is(h5, p) {
color: var(--error-ui-foreground-color);
}
#components-reconnect-modal a {
color: var(--error-ui-accent-foreground-color);
}
#components-reconnect-modal {
/* avoid making modal take the entire screen dimensions */
inset: unset !important;
/* force modal to be compact, centered, slightly padded, and towards the top - media queries below adjust the width and height of the modal for
mobile and desktop screens
*/
top: 5% !important;
padding: 2px;
/* add a slight shadow */
box-shadow: 2px 2px 2px var(--neutral-fill-secondary-rest);
/* avoid modal being see-through */
opacity: 1 !important;
/* ensure sufficient contrast between all elements in the modal and its background */
background-color: var(--reconnection-ui-bg) !important;
}
@media (max-width: 768px) {
#components-reconnect-modal {
left: 15% !important;
right: 15% !important;
height: 130px;
}
/* we want less padding on mobile screens to preserve screen height for other elements */
.page-header {
padding: calc(var(--design-unit) * 1.5px) calc(var(--design-unit) * 0.5px);
}
}
@media (min-width: 768px) {
#components-reconnect-modal {
left: 30% !important;
right: 30% !important;
height: 105px;
}
.page-header {
padding: calc(var(--design-unit) * 1.5px) calc(var(--design-unit) * 2.5px);
}
}
.datagrid-overflow-area,
.parent-details-container {
/*
Height of the browser - static height for other content
TODO: Is there a better way to do this?
*/
height: 100%;
min-width: 100%;
overflow: auto;
}
fluent-data-grid .empty-content-cell,
fluent-data-grid .loading-content-cell {
padding: calc(var(--design-unit) * 5px);
display: flex;
align-items: center;
}
/*
Default LoadingContent template has align-items set to start, so the
text doesn't line up with the spinner properly. It is set via inline style
so we need to use !important to override it.
*/
fluent-data-grid .loading-content-cell .stack-horizontal {
align-items: center !important;
column-gap: calc(var(--design-unit) * 2px) !important;
}
.custom-body-content {
margin-right: 10px;
}
.top-messagebar {
padding: calc(var(--design-unit) * 2px);
padding-bottom: 0;
}
.fluent-messagebar.intent-warning {
background-color: var(--messagebar-warning-background-color) !important;
border: 1px solid var(--messagebar-warning-border-color) !important;
}
/* The fluent dialog's default fill color is too dark in our current dark theme.
Setting it to the floating layer allows it to stand out more and doesn't impact light theme. */
fluent-dialog::part(control) {
background: var(--neutral-layer-floating);
}
fluent-dialog fluent-toolbar {
background-color: var(--neutral-layer-floating);
}
/* Changing the dialog's fill color means stealth buttons on the dialog have the wrong background,
so change it to match */
fluent-dialog fluent-button[appearance=stealth]:not(:hover)::part(control),
fluent-dialog fluent-button[appearance=lightweight]:not(:hover)::part(control),
fluent-dialog fluent-anchor[appearance=stealth]:not(:hover)::part(control),
fluent-dialog fluent-anchor[appearance=lightweight]:not(:hover)::part(control) {
background: var(--neutral-layer-floating);
}
/* But changing the stealth button's background in dialogs means the stealth buttons used as headers for grid cells
now have the wrong background. So change that back */
fluent-dialog fluent-data-grid-cell[cell-type=columnheader] fluent-button[appearance=stealth]:not(:hover)::part(control) {
background: var(--fill-layer);
}
.pane-details-subtext {
color: var(--foreground-subtext-rest);
padding-left: 0.5rem;
font-size: 12px;
}
fluent-data-grid-row {
align-items: center;
}
fluent-data-grid-cell .long-inner-content {
width: inherit;
overflow: hidden;
text-overflow: ellipsis;
}
.parent-details-container {
display: grid;
grid-template-rows: 1fr;
gap: calc(var(--design-unit) * 2px);
}
.version {
text-align: end;
font-size: small;
}
.anchor-no-padding::part(control) {
padding: 0;
flex-grow: 0;
}
.ellipsis-overflow {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.fluent-popover-header,
.fluent-popover-body {
color: var(--neutral-foreground-rest);
}
.subtext {
color: var(--foreground-subtext-rest);
}
.selected-row .subtext {
color: var(--neutral-foreground-rest);
}
.validation-message {
color: var(--error);
}
.selected-row,
.selected-row fluent-button[appearance=lightweight]:not(:hover)::part(control),
.selected-row fluent-anchor[appearance=lightweight]:not(:hover)::part(control) {
background-color: var(--neutral-fill-secondary-rest); /* Same color as the menu hover */
}
.selected-row fluent-button[appearance=lightweight]:hover::part(control),
.selected-row fluent-anchor[appearance=lightweight]:hover::part(control){
background-color: var(--neutral-fill-stealth-rest); /* Essentially inverts the hover compared to an unselected row */
}
.severity-icon {
vertical-align: text-bottom;
margin-right: 3px;
}
.align-text-bottom {
vertical-align: text-bottom;
}
.visually-hidden {
top: 0;
left: -2px;
width: 1px;
height: 1px;
position: absolute;
overflow: hidden;
}
split-panels::part(handle) {
display: none;
}
div.error-counter-badge {
padding: 3px 3px;
color: var(--error-counter-badge-foreground-color) !important; /* color is applied directly to div style, so !important to override since we can't use a more specific selector */
}
.layout >.header > .header-gutters {
margin: 0 1.5rem 0 0;
}
layout > .header {
font-size: var(--type-ramp-base-font-size);
}
.flex-filler {
flex-grow: 1;
}
kbd {
color: unset;
background-color: var(--kbd-background-color);
}
fluent-switch.table-switch::part(label) {
width: 160px;
}
.property-grid-container {
grid-area: main;
overflow: auto;
width: 100%;
height: 100%;
padding: calc(var(--design-unit) * 1px);
padding-top: 0;
}
.property-grid-container fluent-accordion {
gap: calc(var(--design-unit) * 2px);
--fill-color: var(--neutral-layer-1);
}
/* Under the current light theme, --neutral-layer-1 is too white, so we'll
use something that's halfway between --neutral-layer-2 and --neutral-layer1.
*/
[data-theme="light"] .property-grid-container fluent-accordion {
--fill-color: var(--neutral-fill-rest);
}
.property-grid-container fluent-accordion-item,
.property-grid-container fluent-accordion-item::part(region) {
background-color: var(--fill-color);
}
/* This is a hack because we can't do a selector that selects inside of a ::part,
which is what we'd need to do to access `::part(heading):not(:hover) .icon`.
So instead we just change the color token the non-hovered state uses.
*/
[data-theme="light"] .property-grid-container fluent-accordion-item::part(icon) {
--neutral-fill-stealth-rest-on-neutral-fill-layer-rest: var(--fill-color);
}
.property-grid-container fluent-accordion-item::part(region) {
padding-bottom: 0;
}
.property-grid-container fluent-accordion-item::part(heading-content) {
font-weight: 600;
font-size: var(--type-ramp-plus-1-font-size);
}
.property-grid-container fluent-accordion fluent-data-grid-row:last-of-type {
border-bottom: none;
}
.property-grid-container fluent-accordion fluent-data-grid fluent-button[appearance=stealth]:not(:hover)::part(control),
.property-grid-container fluent-accordion fluent-data-grid fluent-button[appearance=lightweight]:not(:hover)::part(control) {
background-color: var(--fill-color);
}
.property-grid-container fluent-accordion fluent-data-grid fluent-button[appearance=stealth]:hover::part(control),
.property-grid-container fluent-accordion fluent-data-grid fluent-button[appearance=lightweight]:hover::part(control) {
background-color: var(--neutral-fill-stealth-hover-on-neutral-fill-layer-rest);
}
/* Under the current dark theme, the fluent-badge background color was too dark on --neutral-layer-1 */
[data-theme="dark"] .property-grid-container fluent-accordion-item fluent-badge::part(control) {
background-color: var(--neutral-fill-active);
}
.total-items-footer {
padding-top: calc(var(--design-unit) * 2.5px);
padding-left: calc(var(--design-unit) * 2.5px);
padding-bottom: calc(var(--design-unit) * 2.5px);
}
/* Align the toast with the top of the body/bottom of the header
and the right edge of the filter box
*/
.layout .fluent-toast-provider.position-topright {
top: 50px;
right: calc(var(--design-unit) * 1.5px);
}
/* Some of the data-columns (e.g. logs and details in the resource page)
should not have ellipsis as this is unnecessary and a bit distracting.
!important is required to override the fluentui-blazor styling.
*/
fluent-data-grid-cell.no-ellipsis {
text-overflow: unset !important;
}
.endpoint-overflow {
overflow-x: visible !important;
}
.endpoint-overflow .fluent-overflow-more {
display: flex;
}
.endpoint-button {
height: unset;
font-size: var(--type-ramp-minus-1-font-size);
line-height: var(--type-ramp-minus-1-line-height);
}
.endpoint-button::part(control) {
padding: calc(((var(--design-unit) * 0.5) - var(--stroke-width)) * 1px) calc((var(--design-unit) - var(--stroke-width)) * 1px);
}
.column-header {
/*
fluent-data-grid-cells have a height of 100%, which should correspond to
the height of their parent fluent-data-grid-row.
On Safari only, this is not the case; height actually computes to the grid height.
We can force column headers to take the height of their parent by inheriting height
of their row.
*/
height: inherit !important;
}
.single-line-toolbar-button {
margin-top: 5px;
}