framework7 9.1.2 → 9.1.3
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/button/button.less +18 -7
- package/components/toggle/toggle-ios.less +4 -2
- package/components/toggle/toggle-rtl.css +1 -1
- package/framework7-bundle-rtl.css +6 -6
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +2 -2
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +2 -2
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +2 -2
- package/framework7-bundle.min.js +2 -2
- package/framework7-lite-bundle.esm.js +2 -2
- package/framework7-lite.esm.js +2 -2
- package/framework7-rtl.css +4 -4
- package/framework7-rtl.min.css +3 -3
- package/framework7.css +2 -2
- package/framework7.esm.js +2 -2
- package/framework7.less +2 -2
- package/framework7.min.css +2 -2
- package/package.json +2 -2
|
@@ -279,17 +279,28 @@ button {
|
|
|
279
279
|
background-color: var(--f7-segmented-strong-button-active-bg-color);
|
|
280
280
|
border-radius: var(--f7-button-border-radius);
|
|
281
281
|
box-shadow: var(--f7-segmented-strong-button-active-box-shadow);
|
|
282
|
-
left: var(--f7-segmented-strong-padding);
|
|
282
|
+
.ltr({ left: var(--f7-segmented-strong-padding); });
|
|
283
|
+
.rtl({ right: var(--f7-segmented-strong-padding); });
|
|
283
284
|
top: var(--f7-segmented-strong-padding);
|
|
284
285
|
height: calc(100% - var(--f7-segmented-strong-padding) * 2);
|
|
285
286
|
width: var(--f7-segmented-highlight-width);
|
|
286
287
|
z-index: 0;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
var(--f7-segmented-highlight-
|
|
291
|
-
|
|
292
|
-
|
|
288
|
+
.ltr({
|
|
289
|
+
transform: translateX(
|
|
290
|
+
calc(
|
|
291
|
+
var(--f7-segmented-highlight-active) * 100% + var(--f7-segmented-highlight-active) *
|
|
292
|
+
var(--f7-segmented-highlight-between)
|
|
293
|
+
)
|
|
294
|
+
);
|
|
295
|
+
});
|
|
296
|
+
.rtl({
|
|
297
|
+
transform: translateX(
|
|
298
|
+
calc(
|
|
299
|
+
var(--f7-segmented-highlight-active) * -100% - var(--f7-segmented-highlight-active) *
|
|
300
|
+
var(--f7-segmented-highlight-between)
|
|
301
|
+
)
|
|
302
|
+
);
|
|
303
|
+
});
|
|
293
304
|
transition: 200ms;
|
|
294
305
|
}
|
|
295
306
|
}
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
46
46
|
border-radius: calc(var(--f7-toggle-height) - 4px);
|
|
47
47
|
transition-duration: 300ms;
|
|
48
|
-
transform: translateX(var(--f7-toggle-knob-tx)) scale(1);
|
|
48
|
+
.ltr({ transform: translateX(var(--f7-toggle-knob-tx)) scale(1); });
|
|
49
|
+
.rtl({ transform: translateX(calc(var(--f7-toggle-knob-tx) * -1)) scale(1); });
|
|
49
50
|
position: relative;
|
|
50
51
|
z-index: 1;
|
|
51
52
|
transform-origin: center;
|
|
@@ -76,7 +77,8 @@
|
|
|
76
77
|
}
|
|
77
78
|
.toggle-icon {
|
|
78
79
|
background: transparent;
|
|
79
|
-
transform: translateX(var(--f7-toggle-knob-tx)) scale(1.4);
|
|
80
|
+
.ltr({ transform: translateX(var(--f7-toggle-knob-tx)) scale(1.4); });
|
|
81
|
+
.rtl({ transform: translateX(calc(var(--f7-toggle-knob-tx) * -1)) scale(1.4); });
|
|
80
82
|
&::before {
|
|
81
83
|
opacity: 1;
|
|
82
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ios{--f7-toggle-width:64px;--f7-toggle-height:28px;--f7-toggle-inactive-knob-bg-color:#fff;--f7-toggle-active-knob-bg-color:#fff;--f7-toggle-inactive-border-color:#e5e5e5;--f7-toggle-inactive-bg-color:#fff}.ios .dark,.ios.dark{--f7-toggle-inactive-border-color:#555;--f7-toggle-inactive-bg-color:#555}.md{--f7-toggle-width:52px;--f7-toggle-height:32px}.md,.md .dark,.md [class*=color-]{--f7-toggle-inactive-bg-color:var(--f7-md-surface-variant);--f7-toggle-active-bg-color:var(--f7-theme-color);--f7-toggle-inactive-knob-bg-color:var(--f7-md-outline);--f7-toggle-active-knob-bg-color:var(--f7-md-on-primary);--f7-toggle-inactive-border-color:var(--f7-md-outline);--f7-toggle-active-border-color:var(--f7-theme-color)}.toggle,.toggle-icon{border-radius:var(--f7-toggle-height);height:var(--f7-toggle-height);width:var(--f7-toggle-width)}.toggle{align-self:center;box-sizing:border-box;display:inline-block;position:relative;-webkit-user-select:none;user-select:none;vertical-align:middle}.toggle input[type=checkbox]{display:none}.toggle input[disabled]~.toggle-icon{pointer-events:none}.toggle-icon{appearance:none;border:none;box-sizing:border-box;cursor:pointer;display:block;margin:0;padding:0;position:relative;transition:.3s;z-index:0}.toggle-icon:after,.toggle-icon:before{content:""}.toggle-icon:after{position:absolute;transform:translateX(0);transition-duration:.3s;z-index:2}.ios .toggle{--f7-toggle-knob-tx:0px}.ios .toggle:before{border-radius:inherit;inset:0}.ios .toggle:after,.ios .toggle:before{background:var(--f7-toggle-inactive-border-color);content:"";position:absolute;transition-duration:.3s;z-index:0}.ios .toggle:after{border-radius:var(--f7-toggle-height);height:var(--f7-toggle-height);left:0;top:0;transform:translateX(calc(var(--f7-toggle-width) - var(--f7-toggle-height)));width:var(--f7-toggle-height)}.ios .toggle:has(input[type=checkbox]:checked){--f7-toggle-knob-tx:calc(var(--f7-toggle-width) - 42px)}.ios .toggle:has(input[type=checkbox]:checked):after,.ios .toggle:has(input[type=checkbox]:checked):before{background:var(--f7-toggle-active-bg-color,var(--f7-theme-color))}.ios .toggle:has(input[type=checkbox]:checked):after{transform:translateX(0)}.ios .toggle-icon{background:var(--f7-toggle-inactive-knob-bg-color);border-radius:calc(var(--f7-toggle-height) - 4px);box-shadow:0 2px 4px #0000004d;height:calc(var(--f7-toggle-height) - 4px);position:relative;right:2px;top:2px;transform:translateX(var(--f7-toggle-knob-tx)) scale(1);transform-origin:center;transition-duration:.3s;width:38px;z-index:1}.ios .toggle-icon:before{box-shadow:0 0 40px 15px rgba(var(--f7-theme-color-rgb),.75);height:1px;left:50%;top:50%;width:1px}.ios .toggle-icon:after,.ios .toggle-icon:before{content:"";opacity:0;position:absolute;transition-duration:.3s}.ios .toggle-icon:after{border-radius:inherit;box-shadow:var(--f7-glass-shadow-thumb);inset:0}.ios .toggle-active-state:before{transform:scale(.75)}.ios .toggle-active-state .toggle-icon{background:#0000;transform:translateX(var(--f7-toggle-knob-tx)) scale(1.4)}.ios .toggle-active-state .toggle-icon:after,.ios .toggle-active-state .toggle-icon:before{opacity:1}.md .toggle input[type=checkbox]:checked+.toggle-icon{background:var(--f7-toggle-active-bg-color);border-color:var(--f7-toggle-active-border-color)}.md .toggle input[type=checkbox]:checked+.toggle-icon:after{background:var(--f7-toggle-active-knob-bg-color);transform:translateX(calc((var(--f7-toggle-width) - var(--f7-toggle-height))*-1)) scale(1)}.md .toggle.active-state input[type=checkbox]:checked+.toggle-icon:after{transform:translateX(calc((var(--f7-toggle-width) - var(--f7-toggle-height))*-1)) scale(1.1)}.md .toggle-icon{background:var(--f7-toggle-inactive-bg-color);border:2px solid var(--f7-toggle-inactive-border-color)}.md .toggle-icon:after{background:var(--f7-toggle-inactive-knob-bg-color);border-radius:var(--f7-toggle-height);height:calc(var(--f7-toggle-height) - 8px);right:2px;top:2px;transform:scale(.666);width:calc(var(--f7-toggle-height) - 8px)}.md .toggle-icon.active-state:after{transform:scale(1.1)}
|
|
1
|
+
.ios{--f7-toggle-width:64px;--f7-toggle-height:28px;--f7-toggle-inactive-knob-bg-color:#fff;--f7-toggle-active-knob-bg-color:#fff;--f7-toggle-inactive-border-color:#e5e5e5;--f7-toggle-inactive-bg-color:#fff}.ios .dark,.ios.dark{--f7-toggle-inactive-border-color:#555;--f7-toggle-inactive-bg-color:#555}.md{--f7-toggle-width:52px;--f7-toggle-height:32px}.md,.md .dark,.md [class*=color-]{--f7-toggle-inactive-bg-color:var(--f7-md-surface-variant);--f7-toggle-active-bg-color:var(--f7-theme-color);--f7-toggle-inactive-knob-bg-color:var(--f7-md-outline);--f7-toggle-active-knob-bg-color:var(--f7-md-on-primary);--f7-toggle-inactive-border-color:var(--f7-md-outline);--f7-toggle-active-border-color:var(--f7-theme-color)}.toggle,.toggle-icon{border-radius:var(--f7-toggle-height);height:var(--f7-toggle-height);width:var(--f7-toggle-width)}.toggle{align-self:center;box-sizing:border-box;display:inline-block;position:relative;-webkit-user-select:none;user-select:none;vertical-align:middle}.toggle input[type=checkbox]{display:none}.toggle input[disabled]~.toggle-icon{pointer-events:none}.toggle-icon{appearance:none;border:none;box-sizing:border-box;cursor:pointer;display:block;margin:0;padding:0;position:relative;transition:.3s;z-index:0}.toggle-icon:after,.toggle-icon:before{content:""}.toggle-icon:after{position:absolute;transform:translateX(0);transition-duration:.3s;z-index:2}.ios .toggle{--f7-toggle-knob-tx:0px}.ios .toggle:before{border-radius:inherit;inset:0}.ios .toggle:after,.ios .toggle:before{background:var(--f7-toggle-inactive-border-color);content:"";position:absolute;transition-duration:.3s;z-index:0}.ios .toggle:after{border-radius:var(--f7-toggle-height);height:var(--f7-toggle-height);left:0;top:0;transform:translateX(calc(var(--f7-toggle-width) - var(--f7-toggle-height)));width:var(--f7-toggle-height)}.ios .toggle:has(input[type=checkbox]:checked){--f7-toggle-knob-tx:calc(var(--f7-toggle-width) - 42px)}.ios .toggle:has(input[type=checkbox]:checked):after,.ios .toggle:has(input[type=checkbox]:checked):before{background:var(--f7-toggle-active-bg-color,var(--f7-theme-color))}.ios .toggle:has(input[type=checkbox]:checked):after{transform:translateX(0)}.ios .toggle-icon{background:var(--f7-toggle-inactive-knob-bg-color);border-radius:calc(var(--f7-toggle-height) - 4px);box-shadow:0 2px 4px #0000004d;height:calc(var(--f7-toggle-height) - 4px);position:relative;right:2px;top:2px;transform:translateX(calc(var(--f7-toggle-knob-tx)*-1)) scale(1);transform-origin:center;transition-duration:.3s;width:38px;z-index:1}.ios .toggle-icon:before{box-shadow:0 0 40px 15px rgba(var(--f7-theme-color-rgb),.75);height:1px;left:50%;top:50%;width:1px}.ios .toggle-icon:after,.ios .toggle-icon:before{content:"";opacity:0;position:absolute;transition-duration:.3s}.ios .toggle-icon:after{border-radius:inherit;box-shadow:var(--f7-glass-shadow-thumb);inset:0}.ios .toggle-active-state:before{transform:scale(.75)}.ios .toggle-active-state .toggle-icon{background:#0000;transform:translateX(calc(var(--f7-toggle-knob-tx)*-1)) scale(1.4)}.ios .toggle-active-state .toggle-icon:after,.ios .toggle-active-state .toggle-icon:before{opacity:1}.md .toggle input[type=checkbox]:checked+.toggle-icon{background:var(--f7-toggle-active-bg-color);border-color:var(--f7-toggle-active-border-color)}.md .toggle input[type=checkbox]:checked+.toggle-icon:after{background:var(--f7-toggle-active-knob-bg-color);transform:translateX(calc((var(--f7-toggle-width) - var(--f7-toggle-height))*-1)) scale(1)}.md .toggle.active-state input[type=checkbox]:checked+.toggle-icon:after{transform:translateX(calc((var(--f7-toggle-width) - var(--f7-toggle-height))*-1)) scale(1.1)}.md .toggle-icon{background:var(--f7-toggle-inactive-bg-color);border:2px solid var(--f7-toggle-inactive-border-color)}.md .toggle-icon:after{background:var(--f7-toggle-inactive-knob-bg-color);border-radius:var(--f7-toggle-height);height:calc(var(--f7-toggle-height) - 8px);right:2px;top:2px;transform:scale(.666);width:calc(var(--f7-toggle-height) - 8px)}.md .toggle-icon.active-state:after{transform:scale(1.1)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 9.1.
|
|
2
|
+
* Framework7 9.1.3
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: August 25, 2026
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/*====================
|
|
@@ -4499,12 +4499,12 @@ input[type='reset'].button {
|
|
|
4499
4499
|
background-color: var(--f7-segmented-strong-button-active-bg-color);
|
|
4500
4500
|
border-radius: var(--f7-button-border-radius);
|
|
4501
4501
|
box-shadow: var(--f7-segmented-strong-button-active-box-shadow);
|
|
4502
|
-
|
|
4502
|
+
right: var(--f7-segmented-strong-padding);
|
|
4503
4503
|
top: var(--f7-segmented-strong-padding);
|
|
4504
4504
|
height: calc(100% - var(--f7-segmented-strong-padding) * 2);
|
|
4505
4505
|
width: var(--f7-segmented-highlight-width);
|
|
4506
4506
|
z-index: 0;
|
|
4507
|
-
transform: translateX(calc(var(--f7-segmented-highlight-active) * 100%
|
|
4507
|
+
transform: translateX(calc(var(--f7-segmented-highlight-active) * -100% - var(--f7-segmented-highlight-active) * var(--f7-segmented-highlight-between)));
|
|
4508
4508
|
transition: 200ms;
|
|
4509
4509
|
}
|
|
4510
4510
|
.button:nth-child(2) ~ .segmented-highlight {
|
|
@@ -10454,7 +10454,7 @@ label.item-radio.disabled,
|
|
|
10454
10454
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
10455
10455
|
border-radius: calc(var(--f7-toggle-height) - 4px);
|
|
10456
10456
|
transition-duration: 300ms;
|
|
10457
|
-
transform: translateX(var(--f7-toggle-knob-tx)) scale(1);
|
|
10457
|
+
transform: translateX(calc(var(--f7-toggle-knob-tx) * -1)) scale(1);
|
|
10458
10458
|
position: relative;
|
|
10459
10459
|
z-index: 1;
|
|
10460
10460
|
transform-origin: center;
|
|
@@ -10484,7 +10484,7 @@ label.item-radio.disabled,
|
|
|
10484
10484
|
}
|
|
10485
10485
|
.ios .toggle-active-state .toggle-icon {
|
|
10486
10486
|
background: transparent;
|
|
10487
|
-
transform: translateX(var(--f7-toggle-knob-tx)) scale(1.4);
|
|
10487
|
+
transform: translateX(calc(var(--f7-toggle-knob-tx) * -1)) scale(1.4);
|
|
10488
10488
|
}
|
|
10489
10489
|
.ios .toggle-active-state .toggle-icon::before {
|
|
10490
10490
|
opacity: 1;
|