-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodal-style.ts
More file actions
59 lines (50 loc) · 1.11 KB
/
modal-style.ts
File metadata and controls
59 lines (50 loc) · 1.11 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
import {render} from "../../../index.js"
export const modalStyle = (): string => render`
<style>
.modal-wrapper {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: var(--modal-overlay-bg);
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}
.modal-wrapper .modal-content {
max-width: 90vw;
max-height: 90vh;
width: 90vh;
overflow-y: auto;
background-color: var(--background-color);
}
.modal {
border: 1px solid var(--shadow-color);
box-shadow: 0px 4px 16px 0px var(--shadow-color);
}
.modal .modal-header {
background-color: var(--bg-color-secondary);
font-weight: bold;
position: relative;
${lineContainerCSS}
}
.modal .modal-header p {
${lineTextCSS}
}
</style>
`
export const lineContainerCSS = `
display: flex;
height: 3rem;
min-height: 3rem;
align-items: center;
padding: 0;
`
export const lineTextCSS = `
flex-grow: 1;
padding: 2px 8px;
overflow-x: hidden;
text-overflow: ellipsis;
`