@xenknight/framework7 0.0.5 → 0.0.7
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/components/app/app.less +1 -1
- package/components/block/block-vars.less +6 -6
- package/components/button/button-vars.less +11 -10
- package/components/dialog/dialog-class.js +6 -3
- package/components/dialog/dialog-ios.less +10 -34
- package/components/dialog/dialog-md.less +2 -22
- package/components/dialog/dialog-rtl.css +1 -1
- package/components/dialog/dialog-vars.less +8 -10
- package/components/dialog/dialog.css +1 -1
- package/components/dialog/dialog.js +3 -3
- package/components/dialog/dialog.less +6 -25
- package/components/icon/icon-ios.less +9 -0
- package/components/icon/icon-md.less +9 -0
- package/components/icon/icon.less +2 -1
- package/components/list/list-vars.less +8 -6
- package/components/list/list.less +1 -1
- package/components/messagebar/messagebar-rtl.css +1 -1
- package/components/messagebar/messagebar-vars.less +1 -1
- package/components/messagebar/messagebar.css +1 -1
- package/components/messages/messages-rtl.css +1 -1
- package/components/messages/messages-vars.less +7 -7
- package/components/messages/messages.css +1 -1
- package/components/navbar-new/navbar-ios.less +135 -0
- package/components/navbar-new/navbar-md.less +105 -0
- package/components/navbar-new/navbar-vars.less +78 -0
- package/components/navbar-new/navbar.d.ts +77 -0
- package/components/navbar-new/navbar.js +568 -0
- package/components/navbar-new/navbar.less +268 -0
- package/components/notification/notification-class.js +6 -6
- package/components/notification/notification-ios.less +3 -8
- package/components/notification/notification-md.less +1 -20
- package/components/notification/notification-rtl.css +1 -1
- package/components/notification/notification-vars.less +13 -16
- package/components/notification/notification.css +1 -1
- package/components/notification/notification.less +13 -1
- package/components/popover/popover-class.js +21 -58
- package/components/popover/popover-ios.less +66 -2
- package/components/popover/popover-md.less +2 -27
- package/components/popover/popover-rtl.css +1 -1
- package/components/popover/popover-vars.less +2 -3
- package/components/popover/popover.css +1 -1
- package/components/popover/popover.d.ts +0 -2
- package/components/popover/popover.js +0 -1
- package/components/popover/popover.less +28 -50
- package/components/range/range-class.js +34 -27
- package/components/range/range-ios.less +60 -0
- package/components/range/range-md.less +67 -4
- package/components/range/range-rtl.css +1 -1
- package/components/range/range-vars.less +18 -13
- package/components/range/range.css +1 -1
- package/components/range/range.d.ts +3 -1
- package/components/range/range.less +11 -24
- package/components/searchbar-new/remove-diacritics.js +271 -0
- package/components/searchbar-new/searchbar-ios.less +131 -0
- package/components/searchbar-new/searchbar-md.less +153 -0
- package/components/searchbar-new/searchbar-new-class.js +592 -0
- package/components/searchbar-new/searchbar-vars.less +75 -0
- package/components/searchbar-new/searchbar.js +122 -0
- package/components/searchbar-new/searchbar.less +331 -0
- package/components/swipeout/swipeout-ios.less +37 -0
- package/components/swipeout/swipeout-md.less +56 -0
- package/components/swipeout/swipeout-rtl.css +1 -1
- package/components/swipeout/swipeout-vars.less +13 -2
- package/components/swipeout/swipeout.css +1 -1
- package/components/swipeout/swipeout.js +98 -23
- package/components/swipeout/swipeout.less +20 -44
- package/components/tabs/tabs.js +5 -0
- package/components/toast/toast-class.js +2 -2
- package/components/toast/toast-ios.less +2 -0
- package/components/toast/toast-rtl.css +1 -1
- package/components/toast/toast-vars.less +2 -4
- package/components/toast/toast.css +1 -1
- package/components/toast/toast.less +1 -1
- package/components/toolbar-new/tabbar-highlight.js +134 -0
- package/components/toolbar-new/toolbar-ios.less +193 -0
- package/components/toolbar-new/toolbar-md.less +152 -0
- package/components/toolbar-new/toolbar-vars.less +77 -0
- package/components/toolbar-new/toolbar.js +223 -0
- package/components/toolbar-new/toolbar.less +261 -0
- package/framework7-bundle-rtl.css +2606 -746
- package/framework7-bundle-rtl.min.css +12 -6
- package/framework7-bundle.css +2603 -743
- package/framework7-bundle.esm.js +11 -4
- package/framework7-bundle.js +4536 -1038
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +6 -3
- package/framework7-bundle.min.css +12 -6
- package/framework7-bundle.min.js +4 -4
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +11 -4
- package/framework7-lite.esm.js +11 -4
- package/framework7-lite.js +8 -1
- package/framework7-rtl.css +2212 -399
- package/framework7-rtl.min.css +11 -5
- package/framework7.css +2211 -398
- package/framework7.esm.js +11 -4
- package/framework7.js +8 -1
- package/framework7.less +6 -3
- package/framework7.min.css +11 -5
- package/package.json +1 -1
- package/shared/get-support.d.ts +0 -6
- package/shared/get-support.js +1 -20
- package/shared/material-color-utils.js +2153 -679
- package/shared/material-colors.js +97 -17
- package/shared/utils.js +18 -6
|
@@ -1,6 +1,70 @@
|
|
|
1
1
|
.ios {
|
|
2
|
+
.popover-on-top {
|
|
3
|
+
transform-origin: center bottom;
|
|
4
|
+
--f7-popover-inner-offset: translate3d(0%, 80px, 0);
|
|
5
|
+
}
|
|
6
|
+
.popover-on-top.popover-on-right {
|
|
7
|
+
transform-origin: left bottom;
|
|
8
|
+
--f7-popover-inner-offset: translate3d(50%, 80px, 0);
|
|
9
|
+
}
|
|
10
|
+
.popover-on-top.popover-on-left {
|
|
11
|
+
transform-origin: right bottom;
|
|
12
|
+
--f7-popover-inner-offset: translate3d(-50%, 80px, 0);
|
|
13
|
+
}
|
|
14
|
+
.popover-on-middle {
|
|
15
|
+
transform-origin: center center;
|
|
16
|
+
}
|
|
17
|
+
.popover-on-middle.popover-on-right {
|
|
18
|
+
transform-origin: left center;
|
|
19
|
+
--f7-popover-inner-offset: translate3d(50%, 0px, 0);
|
|
20
|
+
}
|
|
21
|
+
.popover-on-middle.popover-on-left {
|
|
22
|
+
transform-origin: right center;
|
|
23
|
+
--f7-popover-inner-offset: translate3d(-50%, 0px, 0);
|
|
24
|
+
}
|
|
25
|
+
.popover-on-bottom {
|
|
26
|
+
transform-origin: center top;
|
|
27
|
+
--f7-popover-inner-offset: translate3d(0%, -80px, 0);
|
|
28
|
+
}
|
|
29
|
+
.popover-on-bottom.popover-on-right {
|
|
30
|
+
transform-origin: left top;
|
|
31
|
+
--f7-popover-inner-offset: translate3d(50%, -80px, 0);
|
|
32
|
+
}
|
|
33
|
+
.popover-on-bottom.popover-on-left {
|
|
34
|
+
transform-origin: right top;
|
|
35
|
+
--f7-popover-inner-offset: translate3d(-50%, -80px, 0);
|
|
36
|
+
}
|
|
2
37
|
.popover {
|
|
3
|
-
transform:
|
|
4
|
-
transition-property: opacity;
|
|
38
|
+
transform: translate3d(0, 0, 0) scale(0);
|
|
39
|
+
transition-property: opacity, transform;
|
|
40
|
+
opacity: 1;
|
|
41
|
+
will-change: auto;
|
|
42
|
+
|
|
43
|
+
&.modal-in {
|
|
44
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
45
|
+
transition-timing-function: cubic-bezier(0, 1, 0.2, 1.05);
|
|
46
|
+
transition-duration: 400ms;
|
|
47
|
+
.popover-inner {
|
|
48
|
+
transition-duration: 600ms;
|
|
49
|
+
|
|
50
|
+
transition-timing-function: cubic-bezier(0, 1, 0.2, 1.05);
|
|
51
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&.modal-out {
|
|
55
|
+
opacity: 0;
|
|
56
|
+
transform: translate3d(0, 0, 0) scale(0);
|
|
57
|
+
transition-duration: 300ms;
|
|
58
|
+
.popover-inner {
|
|
59
|
+
transition-duration: 500ms;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.popover-inner {
|
|
64
|
+
background: var(--f7-glass-bg-color);
|
|
65
|
+
box-shadow: var(--f7-glass-shadow);
|
|
66
|
+
border-radius: var(--f7-popover-border-radius);
|
|
67
|
+
transform: var(--f7-popover-inner-offset);
|
|
68
|
+
.ios-glass-backdrop();
|
|
5
69
|
}
|
|
6
70
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
.popover {
|
|
3
3
|
transform: scale(0.85, 0.6);
|
|
4
4
|
transition-property: opacity, transform;
|
|
5
|
+
transition-duration: 300ms;
|
|
6
|
+
|
|
5
7
|
&.modal-in {
|
|
6
8
|
opacity: 1;
|
|
7
9
|
transform: scale(1);
|
|
@@ -11,31 +13,4 @@
|
|
|
11
13
|
transform: scale(1);
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
|
-
.popover-on-top {
|
|
15
|
-
transform-origin: center bottom;
|
|
16
|
-
}
|
|
17
|
-
.popover-on-top.popover-on-right {
|
|
18
|
-
transform-origin: left bottom;
|
|
19
|
-
}
|
|
20
|
-
.popover-on-top.popover-on-left {
|
|
21
|
-
transform-origin: right bottom;
|
|
22
|
-
}
|
|
23
|
-
.popover-on-middle {
|
|
24
|
-
transform-origin: center center;
|
|
25
|
-
}
|
|
26
|
-
.popover-on-middle.popover-on-right {
|
|
27
|
-
transform-origin: left center;
|
|
28
|
-
}
|
|
29
|
-
.popover-on-middle.popover-on-left {
|
|
30
|
-
transform-origin: right center;
|
|
31
|
-
}
|
|
32
|
-
.popover-on-bottom {
|
|
33
|
-
transform-origin: center top;
|
|
34
|
-
}
|
|
35
|
-
.popover-on-bottom.popover-on-right {
|
|
36
|
-
transform-origin: left top;
|
|
37
|
-
}
|
|
38
|
-
.popover-on-bottom.popover-on-left {
|
|
39
|
-
transform-origin: right top;
|
|
40
|
-
}
|
|
41
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--f7-popover-width:260px}.ios{--f7-popover-border-radius:
|
|
1
|
+
:root{--f7-popover-width:260px}.ios{--f7-popover-border-radius:32px;--f7-popover-actions-icon-size:28px;--f7-popover-transition-timing-function:initial;--f7-popover-bg-color:transparent;--f7-popover-actions-label-text-color:rgba(0, 0, 0, 0.45)}.ios .dark,.ios.dark{--f7-popover-actions-label-text-color:rgba(255, 255, 255, 0.55)}.md{--f7-popover-transition-timing-function:cubic-bezier(0, 0.8, 0.34, 1);--f7-popover-border-radius:28px;--f7-popover-actions-icon-size:24px}.md,.md .dark,.md [class*=color-]{--f7-popover-bg-color:var(--f7-md-surface-3);--f7-popover-actions-label-text-color:var(--f7-md-on-surface-variant)}.popover-backdrop-unique{z-index:13500}.popover{width:var(--f7-popover-width);z-index:13500;margin:0;top:0;opacity:0;left:0;position:absolute;display:none;background-color:var(--f7-popover-bg-color);border-radius:var(--f7-popover-border-radius);will-change:transform,opacity;--f7-safe-area-top:0px;--f7-safe-area-left:0px;--f7-safe-area-right:0px;--f7-safe-area-bottom:0px}.popover .list{margin:0}.popover .list ul{background:0 0}.popover .list:first-child ul:before{display:none!important}.popover .list:last-child ul:after{display:none!important}.popover .list:first-child ul{border-radius:var(--f7-popover-border-radius) var(--f7-popover-border-radius) 0 0}.popover .list:first-child li:first-child,.popover .list:first-child li:first-child a,.popover .list:first-child li:first-child>label{border-radius:var(--f7-popover-border-radius) var(--f7-popover-border-radius) 0 0}.popover .list:last-child ul{border-radius:0 0 var(--f7-popover-border-radius) var(--f7-popover-border-radius)}.popover .list:last-child li:last-child,.popover .list:last-child li:last-child a,.popover .list:last-child li:last-child>label{border-radius:0 0 var(--f7-popover-border-radius) var(--f7-popover-border-radius)}.popover .list:first-child:last-child li:first-child:last-child,.popover .list:first-child:last-child li:first-child:last-child a,.popover .list:first-child:last-child li:first-child:last-child>label,.popover .list:first-child:last-child ul{border-radius:var(--f7-popover-border-radius)}.popover .list+.list{margin-top:var(--f7-list-margin-vertical)}.popover.modal-in{opacity:1}.popover.not-animated{transition-duration:0s}.popover,.popover-backdrop{transition-timing-function:var(--f7-popover-transition-timing-function)}.popover-inner{overflow:auto;-webkit-overflow-scrolling:touch}.popover-from-actions .item-link i.icon{width:var(--f7-popover-actions-icon-size);height:var(--f7-popover-actions-icon-size);font-size:var(--f7-popover-actions-icon-size)}.ios .popover-from-actions-strong{font-weight:600}.md .popover-from-actions-strong{font-weight:500}.popover-from-actions-label{line-height:1.3;position:relative;display:flex;align-items:center;padding:var(--f7-actions-label-padding);color:var(--f7-popover-actions-label-text-color);font-size:var(--f7-actions-label-font-size);justify-content:var(--f7-actions-label-justify-content)}.popover-from-actions-label:after{content:'';position:absolute;background-color:var(--f7-list-item-border-color);display:block;z-index:15;top:auto;right:auto;bottom:0;left:0;height:1px;width:100%;transform-origin:50% 100%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.popover-from-actions-label:last-child:after{display:none!important}.md .popover-from-actions-label{justify-content:center}.popover-on-top{transform-origin:center bottom}.popover-on-top.popover-on-right{transform-origin:left bottom}.popover-on-top.popover-on-left{transform-origin:right bottom}.popover-on-middle{transform-origin:center center}.popover-on-middle.popover-on-right{transform-origin:left center}.popover-on-middle.popover-on-left{transform-origin:right center}.popover-on-bottom{transform-origin:center top}.popover-on-bottom.popover-on-right{transform-origin:left top}.popover-on-bottom.popover-on-left{transform-origin:right top}.ios .popover-on-top{transform-origin:center bottom;--f7-popover-inner-offset:translate3d(0%, 80px, 0)}.ios .popover-on-top.popover-on-right{transform-origin:left bottom;--f7-popover-inner-offset:translate3d(50%, 80px, 0)}.ios .popover-on-top.popover-on-left{transform-origin:right bottom;--f7-popover-inner-offset:translate3d(-50%, 80px, 0)}.ios .popover-on-middle{transform-origin:center center}.ios .popover-on-middle.popover-on-right{transform-origin:left center;--f7-popover-inner-offset:translate3d(50%, 0px, 0)}.ios .popover-on-middle.popover-on-left{transform-origin:right center;--f7-popover-inner-offset:translate3d(-50%, 0px, 0)}.ios .popover-on-bottom{transform-origin:center top;--f7-popover-inner-offset:translate3d(0%, -80px, 0)}.ios .popover-on-bottom.popover-on-right{transform-origin:left top;--f7-popover-inner-offset:translate3d(50%, -80px, 0)}.ios .popover-on-bottom.popover-on-left{transform-origin:right top;--f7-popover-inner-offset:translate3d(-50%, -80px, 0)}.ios .popover{transform:translate3d(0,0,0) scale(0);transition-property:opacity,transform;opacity:1;will-change:auto}.ios .popover.modal-in{transform:translate3d(0,0,0) scale(1);transition-timing-function:cubic-bezier(0,1,0.2,1.05);transition-duration:.4s}.ios .popover.modal-in .popover-inner{transition-duration:.6s;transition-timing-function:cubic-bezier(0,1,0.2,1.05);transform:translate3d(0,0,0) scale(1)}.ios .popover.modal-out{opacity:0;transform:translate3d(0,0,0) scale(0);transition-duration:.3s}.ios .popover.modal-out .popover-inner{transition-duration:.5s}.ios .popover-inner{background:var(--f7-glass-bg-color);box-shadow:var(--f7-glass-shadow);border-radius:var(--f7-popover-border-radius);transform:var(--f7-popover-inner-offset);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px)}.md .popover{transform:scale(.85,.6);transition-property:opacity,transform;transition-duration:.3s}.md .popover.modal-in{opacity:1;transform:scale(1)}.md .popover.modal-out{opacity:0;transform:scale(1)}
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
--f7-popover-width: 260px;
|
|
3
3
|
}
|
|
4
4
|
.ios-vars({
|
|
5
|
-
--f7-popover-border-radius:
|
|
5
|
+
--f7-popover-border-radius: 32px;
|
|
6
6
|
--f7-popover-actions-icon-size: 28px;
|
|
7
7
|
--f7-popover-transition-timing-function: initial;
|
|
8
|
+
--f7-popover-bg-color: transparent;
|
|
8
9
|
.light-vars({
|
|
9
|
-
--f7-popover-bg-color: rgba(255,255,255,0.95);
|
|
10
10
|
--f7-popover-actions-label-text-color: rgba(0,0,0,0.45);
|
|
11
11
|
});
|
|
12
12
|
.dark-vars({
|
|
13
|
-
--f7-popover-bg-color: rgba(30,30,30,0.95);
|
|
14
13
|
--f7-popover-actions-label-text-color: rgba(255,255,255,0.55);
|
|
15
14
|
});
|
|
16
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--f7-popover-width:260px}.ios{--f7-popover-border-radius:
|
|
1
|
+
:root{--f7-popover-width:260px}.ios{--f7-popover-border-radius:32px;--f7-popover-actions-icon-size:28px;--f7-popover-transition-timing-function:initial;--f7-popover-bg-color:transparent;--f7-popover-actions-label-text-color:rgba(0, 0, 0, 0.45)}.ios .dark,.ios.dark{--f7-popover-actions-label-text-color:rgba(255, 255, 255, 0.55)}.md{--f7-popover-transition-timing-function:cubic-bezier(0, 0.8, 0.34, 1);--f7-popover-border-radius:28px;--f7-popover-actions-icon-size:24px}.md,.md .dark,.md [class*=color-]{--f7-popover-bg-color:var(--f7-md-surface-3);--f7-popover-actions-label-text-color:var(--f7-md-on-surface-variant)}.popover-backdrop-unique{z-index:13500}.popover{width:var(--f7-popover-width);z-index:13500;margin:0;top:0;opacity:0;left:0;position:absolute;display:none;background-color:var(--f7-popover-bg-color);border-radius:var(--f7-popover-border-radius);will-change:transform,opacity;--f7-safe-area-top:0px;--f7-safe-area-left:0px;--f7-safe-area-right:0px;--f7-safe-area-bottom:0px}.popover .list{margin:0}.popover .list ul{background:0 0}.popover .list:first-child ul:before{display:none!important}.popover .list:last-child ul:after{display:none!important}.popover .list:first-child ul{border-radius:var(--f7-popover-border-radius) var(--f7-popover-border-radius) 0 0}.popover .list:first-child li:first-child,.popover .list:first-child li:first-child a,.popover .list:first-child li:first-child>label{border-radius:var(--f7-popover-border-radius) var(--f7-popover-border-radius) 0 0}.popover .list:last-child ul{border-radius:0 0 var(--f7-popover-border-radius) var(--f7-popover-border-radius)}.popover .list:last-child li:last-child,.popover .list:last-child li:last-child a,.popover .list:last-child li:last-child>label{border-radius:0 0 var(--f7-popover-border-radius) var(--f7-popover-border-radius)}.popover .list:first-child:last-child li:first-child:last-child,.popover .list:first-child:last-child li:first-child:last-child a,.popover .list:first-child:last-child li:first-child:last-child>label,.popover .list:first-child:last-child ul{border-radius:var(--f7-popover-border-radius)}.popover .list+.list{margin-top:var(--f7-list-margin-vertical)}.popover.modal-in{opacity:1}.popover.not-animated{transition-duration:0s}.popover,.popover-backdrop{transition-timing-function:var(--f7-popover-transition-timing-function)}.popover-inner{overflow:auto;-webkit-overflow-scrolling:touch}.popover-from-actions .item-link i.icon{width:var(--f7-popover-actions-icon-size);height:var(--f7-popover-actions-icon-size);font-size:var(--f7-popover-actions-icon-size)}.ios .popover-from-actions-strong{font-weight:600}.md .popover-from-actions-strong{font-weight:500}.popover-from-actions-label{line-height:1.3;position:relative;display:flex;align-items:center;padding:var(--f7-actions-label-padding);color:var(--f7-popover-actions-label-text-color);font-size:var(--f7-actions-label-font-size);justify-content:var(--f7-actions-label-justify-content)}.popover-from-actions-label:after{content:'';position:absolute;background-color:var(--f7-list-item-border-color);display:block;z-index:15;top:auto;right:auto;bottom:0;left:0;height:1px;width:100%;transform-origin:50% 100%;transform:scaleY(calc(1 / var(--f7-device-pixel-ratio)))}.popover-from-actions-label:last-child:after{display:none!important}.md .popover-from-actions-label{justify-content:center}.popover-on-top{transform-origin:center bottom}.popover-on-top.popover-on-right{transform-origin:left bottom}.popover-on-top.popover-on-left{transform-origin:right bottom}.popover-on-middle{transform-origin:center center}.popover-on-middle.popover-on-right{transform-origin:left center}.popover-on-middle.popover-on-left{transform-origin:right center}.popover-on-bottom{transform-origin:center top}.popover-on-bottom.popover-on-right{transform-origin:left top}.popover-on-bottom.popover-on-left{transform-origin:right top}.ios .popover-on-top{transform-origin:center bottom;--f7-popover-inner-offset:translate3d(0%, 80px, 0)}.ios .popover-on-top.popover-on-right{transform-origin:left bottom;--f7-popover-inner-offset:translate3d(50%, 80px, 0)}.ios .popover-on-top.popover-on-left{transform-origin:right bottom;--f7-popover-inner-offset:translate3d(-50%, 80px, 0)}.ios .popover-on-middle{transform-origin:center center}.ios .popover-on-middle.popover-on-right{transform-origin:left center;--f7-popover-inner-offset:translate3d(50%, 0px, 0)}.ios .popover-on-middle.popover-on-left{transform-origin:right center;--f7-popover-inner-offset:translate3d(-50%, 0px, 0)}.ios .popover-on-bottom{transform-origin:center top;--f7-popover-inner-offset:translate3d(0%, -80px, 0)}.ios .popover-on-bottom.popover-on-right{transform-origin:left top;--f7-popover-inner-offset:translate3d(50%, -80px, 0)}.ios .popover-on-bottom.popover-on-left{transform-origin:right top;--f7-popover-inner-offset:translate3d(-50%, -80px, 0)}.ios .popover{transform:translate3d(0,0,0) scale(0);transition-property:opacity,transform;opacity:1;will-change:auto}.ios .popover.modal-in{transform:translate3d(0,0,0) scale(1);transition-timing-function:cubic-bezier(0,1,0.2,1.05);transition-duration:.4s}.ios .popover.modal-in .popover-inner{transition-duration:.6s;transition-timing-function:cubic-bezier(0,1,0.2,1.05);transform:translate3d(0,0,0) scale(1)}.ios .popover.modal-out{opacity:0;transform:translate3d(0,0,0) scale(0);transition-duration:.3s}.ios .popover.modal-out .popover-inner{transition-duration:.5s}.ios .popover-inner{background:var(--f7-glass-bg-color);box-shadow:var(--f7-glass-shadow);border-radius:var(--f7-popover-border-radius);transform:var(--f7-popover-inner-offset);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px)}.md .popover{transform:scale(.85,.6);transition-property:opacity,transform;transition-duration:.3s}.md .popover.modal-in{opacity:1;transform:scale(1)}.md .popover.modal-out{opacity:0;transform:scale(1)}
|
|
@@ -23,8 +23,6 @@ export namespace Popover {
|
|
|
23
23
|
el?: HTMLElement | CSSSelector;
|
|
24
24
|
/** Full Popover HTML layout string. Can be useful if you want to create Popover element dynamically. */
|
|
25
25
|
content?: string;
|
|
26
|
-
/** Enables Popover arrow/corner. (default true) */
|
|
27
|
-
arrow?: boolean;
|
|
28
26
|
/** Enables Popover backdrop (dark semi transparent layer behind). (default true) */
|
|
29
27
|
backdrop?: boolean;
|
|
30
28
|
/** Backdrop element to share across instances */
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
left: 0;
|
|
16
16
|
position: absolute;
|
|
17
17
|
display: none;
|
|
18
|
-
transition-duration: 300ms;
|
|
19
18
|
background-color: var(--f7-popover-bg-color);
|
|
20
19
|
border-radius: var(--f7-popover-border-radius);
|
|
21
20
|
will-change: transform, opacity;
|
|
@@ -110,56 +109,35 @@
|
|
|
110
109
|
justify-content: center;
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
top: 0;
|
|
129
|
-
border-radius: 3px;
|
|
130
|
-
transform: rotate(45deg);
|
|
131
|
-
}
|
|
132
|
-
&.on-left {
|
|
133
|
-
left: -26px;
|
|
134
|
-
&:after {
|
|
135
|
-
left: 19px;
|
|
136
|
-
top: 0;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
&.on-right {
|
|
140
|
-
left: 100%;
|
|
141
|
-
&:after {
|
|
142
|
-
left: -19px;
|
|
143
|
-
top: 0;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
&.on-top {
|
|
147
|
-
left: 0;
|
|
148
|
-
top: -26px;
|
|
149
|
-
&:after {
|
|
150
|
-
left: 0;
|
|
151
|
-
top: 19px;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
&.on-bottom {
|
|
155
|
-
left: 0;
|
|
156
|
-
top: 100%;
|
|
157
|
-
&:after {
|
|
158
|
-
left: 0;
|
|
159
|
-
top: -19px;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
112
|
+
|
|
113
|
+
.popover-on-top {
|
|
114
|
+
transform-origin: center bottom;
|
|
115
|
+
}
|
|
116
|
+
.popover-on-top.popover-on-right {
|
|
117
|
+
transform-origin: left bottom;
|
|
118
|
+
}
|
|
119
|
+
.popover-on-top.popover-on-left {
|
|
120
|
+
transform-origin: right bottom;
|
|
121
|
+
}
|
|
122
|
+
.popover-on-middle {
|
|
123
|
+
transform-origin: center center;
|
|
124
|
+
}
|
|
125
|
+
.popover-on-middle.popover-on-right {
|
|
126
|
+
transform-origin: left center;
|
|
162
127
|
}
|
|
128
|
+
.popover-on-middle.popover-on-left {
|
|
129
|
+
transform-origin: right center;
|
|
130
|
+
}
|
|
131
|
+
.popover-on-bottom {
|
|
132
|
+
transform-origin: center top;
|
|
133
|
+
}
|
|
134
|
+
.popover-on-bottom.popover-on-right {
|
|
135
|
+
transform-origin: left top;
|
|
136
|
+
}
|
|
137
|
+
.popover-on-bottom.popover-on-left {
|
|
138
|
+
transform-origin: right top;
|
|
139
|
+
}
|
|
140
|
+
|
|
163
141
|
.if-ios-theme({
|
|
164
142
|
@import './popover-ios.less';
|
|
165
143
|
});
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import $ from '../../shared/dom7.js';
|
|
2
2
|
import { extend, nextTick, deleteProps } from '../../shared/utils.js';
|
|
3
3
|
import Framework7Class from '../../shared/class.js';
|
|
4
|
-
import { getSupport } from '../../shared/get-support.js';
|
|
5
4
|
class Range extends Framework7Class {
|
|
6
5
|
constructor(app, params) {
|
|
7
6
|
super(params, [app]);
|
|
8
7
|
const range = this;
|
|
9
|
-
const support = getSupport();
|
|
10
8
|
const defaults = {
|
|
11
9
|
el: null,
|
|
12
10
|
inputEl: null,
|
|
@@ -24,7 +22,8 @@ class Range extends Framework7Class {
|
|
|
24
22
|
scaleSteps: 5,
|
|
25
23
|
scaleSubSteps: 0,
|
|
26
24
|
formatScaleLabel: null,
|
|
27
|
-
limitKnobPosition:
|
|
25
|
+
limitKnobPosition: true,
|
|
26
|
+
limitBarPosition: app.theme === 'md'
|
|
28
27
|
};
|
|
29
28
|
|
|
30
29
|
// Extend defaults with modules params
|
|
@@ -72,7 +71,8 @@ class Range extends Framework7Class {
|
|
|
72
71
|
scale,
|
|
73
72
|
scaleSteps,
|
|
74
73
|
scaleSubSteps,
|
|
75
|
-
limitKnobPosition
|
|
74
|
+
limitKnobPosition,
|
|
75
|
+
limitBarPosition
|
|
76
76
|
} = range.params;
|
|
77
77
|
extend(range, {
|
|
78
78
|
app,
|
|
@@ -92,7 +92,8 @@ class Range extends Framework7Class {
|
|
|
92
92
|
scale,
|
|
93
93
|
scaleSteps,
|
|
94
94
|
scaleSubSteps,
|
|
95
|
-
limitKnobPosition
|
|
95
|
+
limitKnobPosition,
|
|
96
|
+
limitBarPosition
|
|
96
97
|
});
|
|
97
98
|
if ($inputEl) {
|
|
98
99
|
'step min max'.split(' ').forEach(paramName => {
|
|
@@ -208,13 +209,15 @@ class Range extends Framework7Class {
|
|
|
208
209
|
rangeOffsetLeft = rangeOffset.left;
|
|
209
210
|
rangeOffsetTop = rangeOffset.top;
|
|
210
211
|
let progress;
|
|
212
|
+
const knobSize = range.vertical ? range.knobHeight : range.knobWidth;
|
|
213
|
+
const progressModify = limitKnobPosition ? knobSize : 0;
|
|
211
214
|
if (range.vertical) {
|
|
212
|
-
progress = (touchesStart.y - rangeOffsetTop) / range.rangeHeight;
|
|
215
|
+
progress = (touchesStart.y - rangeOffsetTop - progressModify / 2) / (range.rangeHeight - progressModify);
|
|
213
216
|
if (!range.verticalReversed) progress = 1 - progress;
|
|
214
217
|
} else if (range.app.rtl) {
|
|
215
|
-
progress = (rangeOffsetLeft + range.rangeWidth - touchesStart.x) / range.rangeWidth;
|
|
218
|
+
progress = (rangeOffsetLeft + range.rangeWidth + progressModify / 2 - touchesStart.x) / (range.rangeWidth - progressModify);
|
|
216
219
|
} else {
|
|
217
|
-
progress = (touchesStart.x - rangeOffsetLeft) / range.rangeWidth;
|
|
220
|
+
progress = (touchesStart.x - rangeOffsetLeft - progressModify / 2) / (range.rangeWidth - progressModify);
|
|
218
221
|
}
|
|
219
222
|
let newValue = progress * (range.max - range.min) + range.min;
|
|
220
223
|
if (range.dual) {
|
|
@@ -262,13 +265,15 @@ class Range extends Framework7Class {
|
|
|
262
265
|
}
|
|
263
266
|
e.preventDefault();
|
|
264
267
|
let progress;
|
|
268
|
+
const knobSize = range.vertical ? range.knobHeight : range.knobWidth;
|
|
269
|
+
const progressModify = limitKnobPosition ? knobSize : 0;
|
|
265
270
|
if (range.vertical) {
|
|
266
|
-
progress = (pageY - rangeOffsetTop) / range.rangeHeight;
|
|
271
|
+
progress = (pageY - rangeOffsetTop - progressModify / 2) / (range.rangeHeight - progressModify);
|
|
267
272
|
if (!range.verticalReversed) progress = 1 - progress;
|
|
268
273
|
} else if (range.app.rtl) {
|
|
269
|
-
progress = (rangeOffsetLeft + range.rangeWidth - pageX) / range.rangeWidth;
|
|
274
|
+
progress = (rangeOffsetLeft + range.rangeWidth + progressModify / 2 - pageX) / (range.rangeWidth - progressModify);
|
|
270
275
|
} else {
|
|
271
|
-
progress = (pageX - rangeOffsetLeft) / range.rangeWidth;
|
|
276
|
+
progress = (pageX - rangeOffsetLeft - progressModify / 2) / (range.rangeWidth - progressModify);
|
|
272
277
|
}
|
|
273
278
|
let newValue = progress * (range.max - range.min) + range.min;
|
|
274
279
|
if (range.dual) {
|
|
@@ -326,10 +331,9 @@ class Range extends Framework7Class {
|
|
|
326
331
|
let parentPanel;
|
|
327
332
|
let parentPage;
|
|
328
333
|
range.attachEvents = function attachEvents() {
|
|
329
|
-
|
|
334
|
+
range.$el.on(app.touchEvents.start, handleTouchStart, {
|
|
330
335
|
passive: true
|
|
331
|
-
}
|
|
332
|
-
range.$el.on(app.touchEvents.start, handleTouchStart, passive);
|
|
336
|
+
});
|
|
333
337
|
app.on('touchmove', handleTouchMove);
|
|
334
338
|
app.on('touchend:passive', handleTouchEnd);
|
|
335
339
|
app.on('tabShow', handleResize);
|
|
@@ -342,10 +346,9 @@ class Range extends Framework7Class {
|
|
|
342
346
|
parentPage.on('page:reinit', handleResize);
|
|
343
347
|
};
|
|
344
348
|
range.detachEvents = function detachEvents() {
|
|
345
|
-
|
|
349
|
+
range.$el.off(app.touchEvents.start, handleTouchStart, {
|
|
346
350
|
passive: true
|
|
347
|
-
}
|
|
348
|
-
range.$el.off(app.touchEvents.start, handleTouchStart, passive);
|
|
351
|
+
});
|
|
349
352
|
app.off('touchmove', handleTouchMove);
|
|
350
353
|
app.off('touchend:passive', handleTouchEnd);
|
|
351
354
|
app.off('tabShow', handleResize);
|
|
@@ -402,7 +405,8 @@ class Range extends Framework7Class {
|
|
|
402
405
|
labels,
|
|
403
406
|
vertical,
|
|
404
407
|
verticalReversed,
|
|
405
|
-
limitKnobPosition
|
|
408
|
+
limitKnobPosition,
|
|
409
|
+
limitBarPosition
|
|
406
410
|
} = range;
|
|
407
411
|
const knobSize = vertical ? knobHeight : knobWidth;
|
|
408
412
|
const rangeSize = vertical ? rangeHeight : rangeWidth;
|
|
@@ -410,28 +414,31 @@ class Range extends Framework7Class {
|
|
|
410
414
|
const positionProperty = vertical ? verticalReversed ? 'top' : 'bottom' : app.rtl ? 'right' : 'left';
|
|
411
415
|
if (range.dual) {
|
|
412
416
|
const progress = [(value[0] - min) / (max - min), (value[1] - min) / (max - min)];
|
|
417
|
+
const positionStartProgress = limitBarPosition ? knobSize / rangeSize : 0;
|
|
418
|
+
const barProgressModify = limitBarPosition ? (rangeSize - knobSize) / rangeSize : 1;
|
|
413
419
|
$barActiveEl.css({
|
|
414
|
-
[positionProperty]: `${progress[0] * 100}%`,
|
|
415
|
-
[vertical ? 'height' : 'width']: `${(progress[1] - progress[0]) * 100}%`
|
|
420
|
+
[positionProperty]: `${(positionStartProgress + progress[0] * barProgressModify) * 100}%`,
|
|
421
|
+
[vertical ? 'height' : 'width']: `${(progress[1] - progress[0] - positionStartProgress) * 100 * barProgressModify}%`
|
|
416
422
|
});
|
|
417
423
|
knobs.forEach(($knobEl, knobIndex) => {
|
|
418
424
|
let startPos = rangeSize * progress[knobIndex];
|
|
419
425
|
if (limitKnobPosition) {
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
|
|
426
|
+
const minPos = knobSize;
|
|
427
|
+
const maxPos = rangeSize;
|
|
428
|
+
startPos = (maxPos - minPos) * progress[knobIndex] + knobSize / 2;
|
|
423
429
|
}
|
|
424
430
|
$knobEl.css(positionProperty, `${startPos}px`);
|
|
425
431
|
if (label) labels[knobIndex].text(range.formatLabel(value[knobIndex], labels[knobIndex][0]));
|
|
426
432
|
});
|
|
427
433
|
} else {
|
|
428
434
|
const progress = (value - min) / (max - min);
|
|
429
|
-
|
|
435
|
+
const barProgressModify = limitBarPosition ? (rangeSize - knobSize) / rangeSize : 1;
|
|
436
|
+
$barActiveEl.css(vertical ? 'height' : 'width', `${progress * 100 * barProgressModify}%`);
|
|
430
437
|
let startPos = rangeSize * progress;
|
|
431
438
|
if (limitKnobPosition) {
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
|
|
439
|
+
const minPos = knobSize;
|
|
440
|
+
const maxPos = rangeSize;
|
|
441
|
+
startPos = (maxPos - minPos) * progress + knobSize / 2;
|
|
435
442
|
}
|
|
436
443
|
knobs[0].css(positionProperty, `${startPos}px`);
|
|
437
444
|
if (label) labels[0].text(range.formatLabel(value, labels[0][0]));
|
|
@@ -1,9 +1,69 @@
|
|
|
1
1
|
.ios {
|
|
2
|
+
.range-bar-active {
|
|
3
|
+
border-radius: inherit;
|
|
4
|
+
}
|
|
5
|
+
.range-knob {
|
|
6
|
+
border-radius: var(--f7-range-knob-height);
|
|
7
|
+
transition-duration: 300ms;
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 0;
|
|
10
|
+
top: 0;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
&:after {
|
|
14
|
+
content: '';
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 50%;
|
|
17
|
+
top: 50%;
|
|
18
|
+
width: 44px;
|
|
19
|
+
height: 44px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&::before,
|
|
23
|
+
&::after {
|
|
24
|
+
content: '';
|
|
25
|
+
position: absolute;
|
|
26
|
+
}
|
|
27
|
+
&::before {
|
|
28
|
+
width: 1px;
|
|
29
|
+
height: 1px;
|
|
30
|
+
opacity: 0;
|
|
31
|
+
transition-duration: 300ms;
|
|
32
|
+
box-shadow: 0px 0px 40px 15px rgba(var(--f7-theme-color-rgb), 0.75);
|
|
33
|
+
left: 50%;
|
|
34
|
+
top: 50%;
|
|
35
|
+
margin-left: -0.5px;
|
|
36
|
+
margin-top: -0.5px;
|
|
37
|
+
}
|
|
38
|
+
&::after {
|
|
39
|
+
inset: 0;
|
|
40
|
+
border-radius: inherit;
|
|
41
|
+
box-shadow: var(--f7-glass-shadow-thumb);
|
|
42
|
+
transition-duration: 300ms;
|
|
43
|
+
opacity: 0;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
2
49
|
.range-knob-label {
|
|
3
50
|
margin-bottom: 6px;
|
|
4
51
|
transform: translateX(-50%) translateY(100%) scale(0);
|
|
52
|
+
z-index: 2;
|
|
5
53
|
}
|
|
6
54
|
.range-knob-active-state .range-knob-label {
|
|
7
55
|
transform: translateX(-50%) translateY(0%) scale(1);
|
|
8
56
|
}
|
|
57
|
+
.range-knob-active-state {
|
|
58
|
+
.range-knob {
|
|
59
|
+
background: transparent;
|
|
60
|
+
transform: scale(1.4);
|
|
61
|
+
&::before {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
&::after {
|
|
65
|
+
opacity: 1;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
9
69
|
}
|
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
.md {
|
|
2
|
+
.range-knob-wrap {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
}
|
|
2
7
|
.range-knob {
|
|
3
8
|
transition-duration: 200ms;
|
|
4
9
|
transition-property: transform, background-color;
|
|
10
|
+
width: 4px;
|
|
11
|
+
height: var(--f7-range-knob-height);
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
border-radius: 4px;
|
|
5
16
|
}
|
|
17
|
+
|
|
6
18
|
.range-knob-active-state .range-knob {
|
|
7
|
-
transform:
|
|
19
|
+
transform: scaleX(0.5);
|
|
20
|
+
}
|
|
21
|
+
.range-slider-vertical .range-knob {
|
|
22
|
+
width: var(--f7-range-knob-height);
|
|
23
|
+
height: 4px;
|
|
24
|
+
}
|
|
25
|
+
.range-slider-vertical .range-knob-active-state .range-knob {
|
|
26
|
+
transform: scaleY(0.5);
|
|
8
27
|
}
|
|
9
28
|
.range-slider-min:not(.range-slider-dual) {
|
|
10
29
|
.range-knob {
|
|
@@ -33,9 +52,53 @@
|
|
|
33
52
|
.range-knob-active-state .range-knob-label {
|
|
34
53
|
transform: translateY(0%) scale(1);
|
|
35
54
|
}
|
|
36
|
-
.range-
|
|
37
|
-
|
|
38
|
-
|
|
55
|
+
.range-bar-active,
|
|
56
|
+
.range-bar-inactive {
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
}
|
|
59
|
+
.range-slider {
|
|
60
|
+
&::before,
|
|
61
|
+
&::after {
|
|
62
|
+
content: '';
|
|
63
|
+
position: absolute;
|
|
64
|
+
width: 4px;
|
|
65
|
+
height: 4px;
|
|
66
|
+
border-radius: 50%;
|
|
67
|
+
background: var(--f7-range-knob-color);
|
|
68
|
+
top: calc(50% - 2px);
|
|
69
|
+
z-index: 1;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
transition-duration: 200ms;
|
|
72
|
+
}
|
|
73
|
+
&::before {
|
|
74
|
+
left: calc(var(--f7-range-knob-width) / 2 - 2px);
|
|
75
|
+
}
|
|
76
|
+
&::after {
|
|
77
|
+
right: calc(var(--f7-range-knob-width) / 2 - 2px);
|
|
78
|
+
}
|
|
79
|
+
&:not(.range-slider-dual)::before {
|
|
80
|
+
content: none;
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
&:has(.range-knob-active-state) {
|
|
84
|
+
&::before,
|
|
85
|
+
&::after {
|
|
86
|
+
transform: scale(0.5);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
&.range-slider-vertical {
|
|
90
|
+
&::before,
|
|
91
|
+
&::after {
|
|
92
|
+
top: auto;
|
|
93
|
+
left: calc(50% - 2px);
|
|
94
|
+
right: auto;
|
|
95
|
+
}
|
|
96
|
+
&::before {
|
|
97
|
+
bottom: calc(var(--f7-range-knob-width) / 2 - 2px);
|
|
98
|
+
}
|
|
99
|
+
&::after {
|
|
100
|
+
top: calc(var(--f7-range-knob-width) / 2 - 2px);
|
|
101
|
+
}
|
|
39
102
|
}
|
|
40
103
|
}
|
|
41
104
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--f7-range-scale-step-height:5px;--f7-range-scale-substep-width:1px;--f7-range-scale-substep-height:4px
|
|
1
|
+
:root{--f7-range-scale-step-height:5px;--f7-range-scale-substep-width:1px;--f7-range-scale-substep-height:4px}.ios{--f7-range-size:28px;--f7-range-bar-size:6px;--f7-range-bar-border-radius:6px;--f7-range-knob-width:38px;--f7-range-knob-height:24px;--f7-range-knob-color:#fff;--f7-range-knob-box-shadow:0 2px 4px rgba(0, 0, 0, 0.3);--f7-range-label-size:24px;--f7-range-label-text-color:#000;--f7-range-label-bg-color:#fff;--f7-range-label-font-size:12px;--f7-range-label-font-weight:500;--f7-range-label-border-radius:5px;--f7-range-label-padding:0px 4px;--f7-range-scale-text-color:#666;--f7-range-scale-step-width:1px;--f7-range-scale-font-size:12px;--f7-range-scale-font-weight:400;--f7-range-scale-label-offset:4px;--f7-range-bar-bg-color:rgba(0, 0, 0, 0.2)}.ios .dark,.ios.dark{--f7-range-bar-bg-color:rgba(255, 255, 255, 0.2)}.md{--f7-range-size:20px;--f7-range-bar-size:16px;--f7-range-bar-border-radius:16px;--f7-range-knob-width:16px;--f7-range-knob-height:44px;--f7-range-knob-box-shadow:none;--f7-range-label-size:26px;--f7-range-label-font-weight:normal;--f7-range-label-font-size:10px;--f7-range-label-border-radius:50%;--f7-range-label-padding:0px;--f7-range-scale-step-width:2px;--f7-range-scale-font-size:12px;--f7-range-scale-font-weight:400;--f7-range-scale-label-offset:4px}.md,.md .dark,.md [class*=color-]{--f7-range-bar-bg-color:var(--f7-md-secondary-container);--f7-range-knob-color:var(--f7-theme-color);--f7-range-label-text-color:var(--f7-md-on-primary);--f7-range-label-bg-color:var(--f7-theme-color);--f7-range-scale-text-color:var(--f7-md-on-surface-variant)}.range-slider{display:block;position:relative;align-self:center;cursor:pointer;-webkit-user-select:none;user-select:none}.range-slider input[type=range]{display:none}.range-slider.range-slider-horizontal{width:100%;height:var(--f7-range-size);touch-action:pan-y}.range-slider.range-slider-vertical{height:100%;width:var(--f7-range-size);touch-action:pan-x}.range-bar{position:absolute;overflow:hidden;background:var(--f7-range-bar-bg-color);border-radius:var(--f7-range-bar-border-radius)}.range-slider-vertical .range-bar{left:50%;top:0;height:100%;width:var(--f7-range-bar-size);margin-left:calc(-1 * var(--f7-range-bar-size)/ 2)}.range-slider-horizontal .range-bar{left:0;top:50%;width:100%;height:var(--f7-range-bar-size);margin-top:calc(-1 * var(--f7-range-bar-size)/ 2)}.range-bar-active{position:absolute;background:var(--f7-range-bar-active-bg-color,var(--f7-theme-color))}.range-slider-horizontal .range-bar-active{right:0;top:0;height:100%}.range-slider-vertical .range-bar-active{left:0;bottom:0;width:100%}.range-slider-vertical-reversed .range-bar-active{top:0;bottom:auto}.range-knob-wrap{z-index:20;position:absolute;height:var(--f7-range-knob-height);width:var(--f7-range-knob-width)}.range-slider-horizontal .range-knob-wrap{top:50%;margin-top:calc(-1 * var(--f7-range-knob-height)/ 2);margin-right:calc(-1 * var(--f7-range-knob-width)/ 2);right:0}.range-slider-vertical .range-knob-wrap{left:50%;height:var(--f7-range-knob-width);width:var(--f7-range-knob-height);margin-left:calc(-1 * var(--f7-range-knob-height)/ 2);bottom:0;margin-bottom:calc(-1 * var(--f7-range-knob-width)/ 2)}.range-slider-vertical-reversed .range-knob-wrap{bottom:auto;top:0;margin-bottom:0;margin-top:calc(-1 * var(--f7-range-knob-width)/ 2)}.range-knob{box-sizing:border-box;z-index:1;background:var(--f7-range-knob-color,var(--f7-range-knob-bg-color,var(--f7-theme-color)));box-shadow:var(--f7-range-knob-box-shadow)}.range-knob-label{position:absolute;left:50%;bottom:100%;text-align:center;transition-duration:120ms;transition-property:transform;box-sizing:border-box;transform:translateY(100%) scale(0);height:var(--f7-range-label-size);line-height:var(--f7-range-label-size);min-width:var(--f7-range-label-size);color:var(--f7-range-label-text-color);background-color:var(--f7-range-label-bg-color,var(--f7-theme-color));font-size:var(--f7-range-label-font-size);font-weight:var(--f7-range-label-font-weight);border-radius:var(--f7-range-label-border-radius);padding:var(--f7-range-label-padding)}.range-knob-active-state .range-knob-label{transform:translateY(0%) scale(1)}.range-scale{position:absolute}.range-slider-horizontal .range-scale{top:50%;left:0;width:100%;margin-top:calc(var(--f7-range-bar-size)/ 2)}.range-slider-vertical .range-scale{right:50%;top:0;height:100%;margin-right:calc(var(--f7-range-bar-size)/ 2)}.range-scale-step{position:absolute;box-sizing:border-box;display:flex;font-size:var(--f7-range-scale-font-size);font-weight:var(--f7-range-scale-font-weight);color:var(--f7-range-scale-text-color,var(--f7-range-bar-bg-color));line-height:1}.range-scale-step:before{content:'';position:absolute;background:var(--f7-range-scale-step-bg-color,var(--f7-range-bar-bg-color))}.range-slider-horizontal .range-scale-step{justify-content:center;align-items:flex-start;width:var(--f7-range-scale-step-width);height:var(--f7-range-scale-step-height);padding-top:calc(var(--f7-range-scale-step-height) + var(--f7-range-scale-label-offset));top:0;margin-right:calc(-1 * var(--f7-range-scale-step-width)/ 2)}.range-slider-horizontal .range-scale-step:before{left:0;top:0;width:100%;height:var(--f7-range-scale-step-height)}.range-slider-horizontal .range-scale-step:first-child{margin-right:0}.range-slider-horizontal .range-scale-step:last-child{margin-right:calc(-1 * var(--f7-range-scale-step-width))}.range-slider-vertical .range-scale-step{line-height:1;justify-content:flex-end;align-items:center;height:var(--f7-range-scale-step-width);width:var(--f7-range-scale-step-height);padding-right:calc(var(--f7-range-scale-step-height) + var(--f7-range-scale-label-offset));right:0;margin-bottom:calc(-1 * var(--f7-range-scale-step-width)/ 2)}.range-slider-vertical .range-scale-step:first-child{margin-bottom:0}.range-slider-vertical .range-scale-step:last-child{margin-bottom:calc(-1 * var(--f7-range-scale-step-width))}.range-slider-vertical .range-scale-step:before{right:0;top:0;height:100%;width:var(--f7-range-scale-step-height)}.range-scale-substep{--f7-range-scale-step-bg-color:var(--f7-range-scale-substep-bg-color, var(--f7-range-bar-bg-color));--f7-range-scale-step-width:var(--f7-range-scale-substep-width);--f7-range-scale-step-height:var(--f7-range-scale-substep-height)}.ios .range-bar-active{border-radius:inherit}.ios .range-knob{border-radius:var(--f7-range-knob-height);transition-duration:.3s;position:absolute;left:0;top:0;width:100%;height:100%}.ios .range-knob:after{content:'';position:absolute;left:50%;top:50%;width:44px;height:44px}.ios .range-knob::after,.ios .range-knob::before{content:'';position:absolute}.ios .range-knob::before{width:1px;height:1px;opacity:0;transition-duration:.3s;box-shadow:0px 0px 40px 15px rgba(var(--f7-theme-color-rgb),.75);left:50%;top:50%;margin-left:-.5px;margin-top:-.5px}.ios .range-knob::after{inset:0;border-radius:inherit;box-shadow:var(--f7-glass-shadow-thumb);transition-duration:.3s;opacity:0;width:100%;height:100%;margin:0}.ios .range-knob-label{margin-bottom:6px;transform:translateX(-50%) translateY(100%) scale(0);z-index:2}.ios .range-knob-active-state .range-knob-label{transform:translateX(-50%) translateY(0%) scale(1)}.ios .range-knob-active-state .range-knob{background:0 0;transform:scale(1.4)}.ios .range-knob-active-state .range-knob::before{opacity:1}.ios .range-knob-active-state .range-knob::after{opacity:1}.md .range-knob-wrap{display:flex;align-items:center;justify-content:center}.md .range-knob{transition-duration:.2s;transition-property:transform,background-color;width:4px;height:var(--f7-range-knob-height);display:flex;align-items:center;justify-content:center;border-radius:4px}.md .range-knob-active-state .range-knob{transform:scaleX(.5)}.md .range-slider-vertical .range-knob{width:var(--f7-range-knob-height);height:4px}.md .range-slider-vertical .range-knob-active-state .range-knob{transform:scaleY(.5)}.md .range-slider-min:not(.range-slider-dual) .range-knob{background:#fff!important;border:2px solid var(--f7-range-bar-bg-color)}.md .range-knob-label{width:var(--f7-range-label-size);margin-left:calc(-1 * var(--f7-range-label-size)/ 2);margin-bottom:8px}.md .range-knob-label:before{content:'';left:50%;top:0px;margin-left:calc(-1 * var(--f7-range-label-size)/ 2);position:absolute;z-index:-1;width:var(--f7-range-label-size);height:var(--f7-range-label-size);background:var(--f7-range-label-bg-color,var(--f7-theme-color));transform:rotate(-45deg);border-radius:50% 50% 50% 0}.md .range-knob-active-state .range-knob-label{transform:translateY(0%) scale(1)}.md .range-bar-active,.md .range-bar-inactive{border-radius:4px}.md .range-slider::after,.md .range-slider::before{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:var(--f7-range-knob-color);top:calc(50% - 2px);z-index:1;pointer-events:none;transition-duration:.2s}.md .range-slider::before{left:calc(var(--f7-range-knob-width)/ 2 - 2px)}.md .range-slider::after{right:calc(var(--f7-range-knob-width)/ 2 - 2px)}.md .range-slider:not(.range-slider-dual)::before{content:none;display:none}.md .range-slider:has(.range-knob-active-state)::after,.md .range-slider:has(.range-knob-active-state)::before{transform:scale(.5)}.md .range-slider.range-slider-vertical::after,.md .range-slider.range-slider-vertical::before{top:auto;left:calc(50% - 2px);right:auto}.md .range-slider.range-slider-vertical::before{bottom:calc(var(--f7-range-knob-width)/ 2 - 2px)}.md .range-slider.range-slider-vertical::after{top:calc(var(--f7-range-knob-width)/ 2 - 2px)}
|