forked from zombieFox/nightTab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodal.css
More file actions
executable file
·82 lines (71 loc) · 1.56 KB
/
Copy pathmodal.css
File metadata and controls
executable file
·82 lines (71 loc) · 1.56 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
.modal {
position: fixed;
top: 50%;
left: 50%;
font-size: 1em;
width: 45em;
max-width: calc(100% - 2em);
min-width: 10em;
transform: translate(-50%, -50%);
opacity: 0;
perspective: 1000px;
transition: opacity var(--layout-timing-extra-fast);
z-index: var(--z-index-modal);
}
.modal-large {
width: 65em;
max-width: calc(100% - 2em);
}
.modal-small {
width: 30em;
}
.modal-wrapper {
background-color: rgb(var(--theme-color-01));
border-radius: var(--theme-radius);
box-shadow: var(--theme-shadow-bottom-large);
position: relative;
max-height: calc(100vh - 2em);
overflow-y: auto;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr auto;
justify-items: stretch;
align-items: stretch;
transition: opacity var(--layout-timing-extra-fast);
}
.modal-wrapper .container {
max-width: 100%;
}
.modal-body {
border-radius: var(--theme-radius) var(--theme-radius) 0 0;
overflow-y: auto;
box-sizing: border-box;
z-index: 1;
position: relative;
}
.modal-body-spacer {
margin: 2em;
}
.modal-heading:focus {
outline: none;
}
.modal-controls {
background-color: rgb(var(--theme-color-01));
border-radius: 0 0 var(--theme-radius) var(--theme-radius);
position: relative;
z-index: 2;
display: flex;
}
.modal-button {
background-color: transparent;
margin: 0;
padding-top: 1.5em;
padding-bottom: 1.5em;
flex-basis: 50%;
}
.modal-controls .modal-button:first-child {
border-radius: 0 0 0 var(--theme-radius);
}
.modal-controls .modal-button:last-child {
border-radius: 0 0 var(--theme-radius) 0
}