-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDialog.css
More file actions
122 lines (107 loc) · 2.14 KB
/
Dialog.css
File metadata and controls
122 lines (107 loc) · 2.14 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
dialog {
position: fixed;
width: 100%;
height: 100%;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
margin: 0px;
padding: 0px;
background: rgba(0,0,0,0.5);
/* transform: translate(0%, -100%); */
transition: all 250ms ease-out;
pointer-events: none;
opacity: 0;
z-index: 30;
}
dialog,
dialog[data-layout="flow"] {
display: block flow-root;
flex-direction: unset;
align-items: unset;
justify-content: unset;
}
dialog[data-layout="flex"] {
display: block flex;
flex-direction: column;
align-items: center;
justify-content: start;
}
dialog[data-layout="grid"] {
display: block grid;
align-items: unset;
justify-content: unset;
}
dialog[open] {
transform: translate(0%, 0%);
opacity: 1;
pointer-events: all;
}
dialog article {
display: block;
position: fixed;
width: auto;
height: auto;
top: 50%;
right: auto;
bottom: auto;
left: 50%;
transform: translate(-50%, -50%);
transition: all 250ms ease-out;
color: var(--article-color);
background: var(--article-background);
border: 1px solid var(--article-border);
border-radius: 8px;
z-index: 31;
}
dialog article h3 {
display: block;
position: static;
margin: 0px;
padding: 8px 8px;
font-family: 'cantarell';
font-weight: bold;
font-size: 16px;
text-align: center;
color: var(--header-color);
background: var(--header-background);
border-radius: 8px 8px 0px 0px;
user-select: none;
}
dialog article button[data-action="close"] {
display: block;
position: absolute;
width: auto;
top: 4px;
right: 4px;
margin: 0px;
padding: 4px 6px;
}
dialog article button[data-action="close"]:before {
margin: 0px;
}
dialog article fieldset {
margin: 16px;
}
dialog article table {
margin: 16px;
}
dialog article table tbody td {
padding: 0px 8px;
font-family: 'vera-mono';
font-weight: normal;
font-size: 16px;
line-height: 30px;
vertical-align: middle;
}
dialog article table tbody td:first-of-type {
border-bottom: 1px solid var(--input-default-border);
}
dialog article table tbody td:last-of-type {
border-left: 1px solid var(--input-default-border);
border-bottom: 1px solid var(--input-default-border);
}
dialog article table tbody td input {
vertical-align: middle;
}