-
Notifications
You must be signed in to change notification settings - Fork 373
/
FluentDialog.razor.css
67 lines (58 loc) · 1.71 KB
/
FluentDialog.razor.css
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
fluent-dialog::part(control) {
--dialog-padding: calc(var(--design-unit) * 6 * 1px);
position: relative;
padding: var(--dialog-padding);
width: calc(var(--dialog-width) - 2 * var(--dialog-padding));
height: calc(var(--dialog-height) - 2 * var(--dialog-padding));
}
fluent-dialog:has(div[class~="fluent-dialog-body"]):not(:is(fluent-dialog[class~="right"], fluent-dialog[class~="left"]) )::part(control) {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto;
grid-template-areas:
'dialog-header'
'dialog-body'
'dialog-footer';
}
fluent-dialog[class~="right"]::part(control),
fluent-dialog[class~="left"]::part(control) {
display: flex;
flex-direction: column;
border-radius: unset;
border-width: 0;
--dialog-height: 100dvh;
overflow-y: auto;
}
:is(fluent-dialog[class~="right"], fluent-dialog[class~="left"]) ::deep .fluent-dialog-body {
flex-grow: 1;
overflow-y: auto;
}
fluent-dialog[class~="right"]::part(control) {
position: absolute;
right: 0;
}
fluent-dialog[class~="left"]::part(control) {
position: absolute;
left: 0;
}
fluent-dialog ::deep .fluent-dialog-header {
grid-area: dialog-header;
padding: 0 0 var(--dialog-padding) 0;
}
fluent-dialog ::deep .fluent-dialog-footer {
grid-area: dialog-footer;
margin-top: auto;
padding: var(--dialog-padding) 0 0 0;
}
fluent-dialog:has(div[class~="fluent-dialog-body"]) ::deep .fluent-dialog-footer {
grid-area: dialog-footer;
margin-top: auto;
padding-top: var(--dialog-padding);
right: 0px;
}
fluent-dialog ::deep .fluent-dialog-body {
grid-area: dialog-body;
width: 100%;
height: auto;
min-height: 80px;
}