-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.scss
90 lines (83 loc) · 1.52 KB
/
dialog.scss
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
.toastContainer {
position: fixed;
top: 1em;
right: 1em;
transition: opacity ease 1s;
}
.toast {
background-color: black;
padding: 1em;
margin: 0.5em;
border: 4px solid yellow;
-webkit-transition: visibility 0s, opacity 1s linear;
transition: visibility 0s, opacity 1s linear;
}
.clickSheild {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 50;
background-color: black;
opacity: 0.5;
}
.modal {
z-index: 99;
width: 50%;
height: 50%;
background-color: #232323;
position: fixed;
top: 25%;
left: 25%;
padding: 1em;
border: 5px solid black;
border-radius: 1rem;
}
.modalText {
overflow-x: scroll;
width: 100%;
height: 100%;
}
.modalButtonContainer {
width: 100%;
height: 1.5em;
position: absolute;
bottom: 0;
right: 0;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
}
.closeModal {
background-color: orange;
padding: 1em;
margin: 1em;
cursor: pointer;
display: inline-block;
border-radius: 0.5rem;
float: right;
}
.modalButton {
background-color: black;
border: 1px solid white;
padding: 1em;
margin: 1em;
border-radius: 0.5rem;
/*width: 5em;
height: 1.5em;*/
cursor: pointer;
display: inline-block;
&.alert {
background-color: red;
@keyframes modalblinker { to { background-color: rgb(255, 94, 94); } }
animation: modalblinker 500ms ease infinite alternate;
}
&.info {
background-color: blue;
}
&.success {
background-color: lime;
}
}