-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodal.css
96 lines (95 loc) · 1.88 KB
/
modal.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
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
:root {
--margin-1: 00.5rem;
}
.modal-board{
position: fixed;
z-index: 100;
background-color: rgba(0, 0, 0, 0.406);
width: 100vw;
height: 100vh;
display: none;
justify-content: center;
align-items: center;
}
.modal{
width: 25rem;
max-height: calc(100vh - 4rem);
position: relative;
background-color: white;
border-radius: var(--margin-1);
font-size: 0.8rem;
display: none;
color: black;
overflow: auto;
}
.modal.modal-danger{
--color-button: var(--color-red-1);
}
.modal.modal-info{
width: 28rem;
}
.modal input,button{
font-size: 0.8rem;
}
.modal-header{
display: grid;
grid-template-columns: 1fr [close-button] 1.25rem;
justify-content: flex-start;
align-items: center;
padding: var(--margin-1);
background-color: var(--color-grey-1);
color: white;
border-radius: var(--margin-1);
font-weight: 700;
}
.modal-danger .modal-header{
background-color: var(--color-red-1);
}
.modal-close-button{
grid-column: close-button;
width: 100%;
/* height: 100%; */
aspect-ratio: 1;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.modal-body{
margin: var(--margin-1);
padding: var(--margin-1);
position: relative;
max-height: 100%;
box-sizing: border-box;
}
.modal-options{
padding: var(--margin-1);
display: flex;
justify-content: flex-end;
align-items: center;
gap: var(--margin-1);
}
.text-button{
padding: calc(var(--margin-1) / 2);
border-radius: var(--margin-1);
min-width: 2rem;
}
.danger-button{
--color-button: var(--color-red-1);
}
h1,h2,h3{
margin: 0.5rem 0;
}
.data-sources{
font-size: 0.5rem;
}
.autors{
font-size: 0.75rem;
}
.autors a{
display: inline-flex;
justify-content: flex-start;
align-items: center;
gap: 5px;
}