not-bulma 1.2.62 → 1.2.64
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/package.json
CHANGED
package/src/elements/common.js
CHANGED
|
@@ -4,6 +4,7 @@ export default class UICommon {
|
|
|
4
4
|
static DEFAULT_REDIRECT_TIMEOUT = 3000;
|
|
5
5
|
static CLASS_OK = "is-success";
|
|
6
6
|
static CLASS_ERR = "is-danger";
|
|
7
|
+
static SCROLL_DISABLER_CLASS = "remove-scroll";
|
|
7
8
|
static FILLER = "_";
|
|
8
9
|
|
|
9
10
|
static SCROLL_OPTIONS = {
|
|
@@ -11,6 +12,32 @@ export default class UICommon {
|
|
|
11
12
|
behavior: "smooth",
|
|
12
13
|
};
|
|
13
14
|
|
|
15
|
+
static MOBILE_WIDTH_BREAK_POINT = 760;
|
|
16
|
+
|
|
17
|
+
static isMobile() {
|
|
18
|
+
const testMobile = window.matchMedia || window.msMatchMedia;
|
|
19
|
+
if (testMobile) {
|
|
20
|
+
let testQuery = "(pointer:coarse)";
|
|
21
|
+
if (arguments.length) {
|
|
22
|
+
const max_width =
|
|
23
|
+
typeof arguments[0] === "boolean"
|
|
24
|
+
? this.MOBILE_WIDTH_BREAK_POINT
|
|
25
|
+
: arguments[0];
|
|
26
|
+
testQuery = `only screen and (max-width: ${max_width}px)`;
|
|
27
|
+
}
|
|
28
|
+
return testMobile(testQuery).matches;
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static removeBodyScroll() {
|
|
34
|
+
document.body.classList.add(this.SCROLL_DISABLER_CLASS);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static restoreBodyScroll() {
|
|
38
|
+
document.body.classList.remove(this.SCROLL_DISABLER_CLASS);
|
|
39
|
+
}
|
|
40
|
+
|
|
14
41
|
/**
|
|
15
42
|
* Reformats input from any string to strict phone format
|
|
16
43
|
* @param {string} val free style phone number
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
{#if buttonsPosition === "bottom"}
|
|
56
56
|
<UIButtonsRow
|
|
57
|
-
classes={buttonsClasses || "is-footer"}
|
|
57
|
+
classes={buttonsClasses || "is-footer is-mobile"}
|
|
58
58
|
left={closeButton ? [closeButton] : []}
|
|
59
59
|
right={applyButton ? [applyButton] : []}
|
|
60
60
|
></UIButtonsRow>
|
package/src/scss/_card.scss
CHANGED
package/src/scss/_overlay.scss
CHANGED
|
@@ -10,7 +10,35 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.child-overflow {
|
|
14
|
+
background-color: var(--bulma-scheme-main);
|
|
15
|
+
position: fixed !important;
|
|
16
|
+
top: 0px;
|
|
17
|
+
left: 0px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
margin: 0px;
|
|
21
|
+
display: block;
|
|
22
|
+
opacity: 1;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
z-index: 100;
|
|
25
|
+
}
|
|
26
|
+
|
|
13
27
|
.stop-scrolling {
|
|
14
28
|
height: 100%;
|
|
15
29
|
overflow: hidden;
|
|
16
30
|
}
|
|
31
|
+
|
|
32
|
+
html:has(body.remove-scroll) {
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.remove-scroll {
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
scrollbar-width: none;
|
|
39
|
+
-ms-overflow-style: none; /* for Internet Explorer, Edge */
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.remove-scroll ::-webkit-scrollbar {
|
|
43
|
+
display: none; /* for Chrome, Safari, and Opera */
|
|
44
|
+
}
|
package/src/scss/style.scss
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
@import "bulma/sass/utilities/_index.scss";
|
|
2
2
|
|
|
3
3
|
@import "./_buttons.scss";
|
|
4
|
+
@import "./_card.scss";
|
|
4
5
|
@import "./_helpers.scss";
|
|
5
6
|
@import "./_menu.scss";
|
|
6
7
|
@import "./_position.scss";
|
|
7
8
|
@import "./_forms.scss";
|
|
8
9
|
@import "./_loader.scss";
|
|
9
10
|
@import "./_padding.scss";
|
|
11
|
+
@import "./_pagination.scss";
|
|
10
12
|
@import "./_overlay.scss";
|
|
11
13
|
@import "./_breadcrumbs.scss";
|
|
12
14
|
|