@rpcbase/ui 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Modal/ModalForm/modal-form.scss +63 -0
- package/Modal/modal.scss +99 -0
- package/package.json +3 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@import "helpers";
|
|
2
|
+
|
|
3
|
+
@keyframes bounce {
|
|
4
|
+
0% {
|
|
5
|
+
transform: scale(1);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
50% {
|
|
9
|
+
transform: scale(1.02);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
100% {
|
|
13
|
+
transform: scale(1);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
$bounce-duration: 220ms;
|
|
18
|
+
|
|
19
|
+
.modal-form {
|
|
20
|
+
.modal-content {
|
|
21
|
+
overflow: visible;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.modal-footer {
|
|
25
|
+
border-bottom-left-radius: var(--bs-modal-border-radius);
|
|
26
|
+
border-bottom-right-radius: var(--bs-modal-border-radius);
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.modal-form-body {
|
|
31
|
+
&.is-busy {
|
|
32
|
+
// doesn't look that good, does it
|
|
33
|
+
// filter: blur(0.5px);
|
|
34
|
+
opacity: 0.8;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.modal-form-alerts {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: -40px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.alert {
|
|
44
|
+
border-radius: var(--bs-modal-border-radius);
|
|
45
|
+
box-shadow: var(--bs-modal-box-shadow);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.alert.alert-light {
|
|
49
|
+
// background: var(--bs-modal-bg) !important;
|
|
50
|
+
background: var(--bs-gray-200) !important;
|
|
51
|
+
border-color: $gray-700;
|
|
52
|
+
opacity: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.bouncy-alert {
|
|
56
|
+
transform: scale(1);
|
|
57
|
+
transition: transform $bounce-duration ease-out;
|
|
58
|
+
|
|
59
|
+
&.bounce {
|
|
60
|
+
animation: bounce $bounce-duration;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
package/Modal/modal.scss
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@import "helpers";
|
|
2
|
+
|
|
3
|
+
.modal.is-dark {
|
|
4
|
+
$border-color: $gray-800;
|
|
5
|
+
$bg-darker: darken($gray-900, 4%);
|
|
6
|
+
|
|
7
|
+
.modal-content {
|
|
8
|
+
background-color: $gray-900;
|
|
9
|
+
color: $gray-100;
|
|
10
|
+
border-color: $black;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.modal-header {
|
|
14
|
+
color: $gray-400;
|
|
15
|
+
background-color: $bg-darker;
|
|
16
|
+
border-color: $black;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.modal-footer {
|
|
20
|
+
background-color: $bg-darker;
|
|
21
|
+
border-color: $black;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.btn-close {
|
|
25
|
+
background-color: $gray-700;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.text-secondary {
|
|
29
|
+
color: $gray-600 !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
hr {
|
|
33
|
+
border-color: $gray-600;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.modal-header {
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
|
|
41
|
+
&.close-top {
|
|
42
|
+
.btn-close {
|
|
43
|
+
align-self: flex-start;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.fullsize-modal {
|
|
49
|
+
.modal-header {
|
|
50
|
+
font-size: 15px;
|
|
51
|
+
|
|
52
|
+
// padding-top: 10px;
|
|
53
|
+
// padding-bottom: 9px;
|
|
54
|
+
padding-top: 0;
|
|
55
|
+
padding-bottom: 0;
|
|
56
|
+
|
|
57
|
+
height: $navbar-height;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.modal-content {
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
border-top: none;
|
|
63
|
+
border-bottom: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.modal-dialog {
|
|
67
|
+
margin-top: 0;
|
|
68
|
+
margin-bottom: 0;
|
|
69
|
+
width: 100%;
|
|
70
|
+
max-width: calc(100vw - 82px);
|
|
71
|
+
height: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.modal-header,
|
|
75
|
+
.modal-content {
|
|
76
|
+
border-radius: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include media-breakpoint-up(lg) {
|
|
80
|
+
.modal-dialog {
|
|
81
|
+
max-width: calc(100vw - 182px) !important;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@media (height <= 599px) {
|
|
87
|
+
.modal-content.has-scroller {
|
|
88
|
+
border-color: $white !important;
|
|
89
|
+
border-radius: 0 !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.modal-dialog-centered {
|
|
93
|
+
// background: red;
|
|
94
|
+
height: 100% !important;
|
|
95
|
+
min-height: 100% !important;
|
|
96
|
+
margin-top: 0;
|
|
97
|
+
margin-bottom: 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"license": "SSPL-1.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"**/*.js",
|
|
10
|
+
"**/*.css",
|
|
11
|
+
"**/*.scss",
|
|
10
12
|
"!**/*.test.js",
|
|
11
13
|
"!.wireit/**"
|
|
12
14
|
],
|