-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdialog.scss
More file actions
103 lines (87 loc) · 2.8 KB
/
dialog.scss
File metadata and controls
103 lines (87 loc) · 2.8 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
@use "sass:math";
// our vars
$eccgui-size-modal-tiny-width: math.div(4, 16) * 100vw !default;
$eccgui-size-modal-tiny-height: math.div(1, 9) * 100vh !default;
$eccgui-size-modal-small-width: math.div(5, 16) * 100vw !default;
$eccgui-size-modal-small-height: math.div(2, 9) * 100vh !default;
$eccgui-size-modal-regular-width: math.div(6, 16) * 100vw !default;
$eccgui-size-modal-regular-height: math.div(3, 9) * 100vh !default;
$eccgui-size-modal-large-width: math.div(9, 16) * 100vw !default;
$eccgui-size-modal-large-height: math.div(6, 9) * 100vh !default;
$eccgui-size-modal-xlarge-width: math.div(12, 16) * 100vw !default;
$eccgui-size-modal-xlarge-height: math.div(7, 9) * 100vh !default;
$eccgui-color-modal-backdrop: eccgui-color-rgba(
eccgui-color-var("identity", "background", "900"),
$eccgui-opacity-muted
) !default;
@import "~@blueprintjs/core/src/components/dialog/dialog";
.#{$ns}-portal.#{$eccgui}-dialog__portal {
z-index: $eccgui-zindex-modals;
}
.#{$ns}-overlay-start-focus-trap,
.#{$ns}-overlay-end-focus-trap {
// do not show focus on trap elements, we need to fix keeping focus on modal elements differently later
&[tabindex]:not([tabindex^="-"]):focus-visible {
@extend .focus-by-pointer;
}
}
.#{$eccgui}-dialog__backdrop {
background-color: $eccgui-color-modal-backdrop;
}
.#{$eccgui}-dialog__wrapper {
display: flex;
place-content: stretch center;
align-items: stretch;
max-width: calc(100vw - 4rem);
max-height: calc(100vh - 4rem);
margin: 2rem;
pointer-events: all;
user-select: text;
& > * {
flex-grow: 1;
flex-shrink: 1;
max-width: 100%;
}
* {
pointer-events: all;
}
.#{$prefix}--popover {
// workaround to fix the arrows in pagination when used in modal
pointer-events: none;
}
}
.#{$eccgui}-dialog__wrapper--tiny {
width: $eccgui-size-modal-tiny-width;
min-height: $eccgui-size-modal-tiny-height;
}
.#{$eccgui}-dialog__wrapper--small {
width: $eccgui-size-modal-small-width;
min-height: $eccgui-size-modal-small-height;
}
.#{$eccgui}-dialog__wrapper--regular {
width: $eccgui-size-modal-regular-width;
min-height: $eccgui-size-modal-regular-height;
}
.#{$eccgui}-dialog__wrapper--large {
width: $eccgui-size-modal-large-width;
min-height: $eccgui-size-modal-large-height;
}
.#{$eccgui}-dialog__wrapper--xlarge {
width: $eccgui-size-modal-xlarge-width;
min-height: $eccgui-size-modal-xlarge-height;
}
.#{$eccgui}-dialog__wrapper--fullscreen {
box-sizing: border-box;
width: 100vw;
max-width: 100vw;
height: 100vh;
max-height: 100vh;
padding: $eccgui-size-block-whitespace;
margin: 0;
}
.#{$eccgui}-dialog__notifications {
&.#{$eccgui}-card__content {
flex-grow: 0;
flex-shrink: 0;
}
}