@xenknight/framework7 0.0.6 → 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/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 +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/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.js +8 -9
- package/components/tabs/tabs.js +5 -0
- 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 +2198 -387
- package/framework7-bundle-rtl.min.css +12 -6
- package/framework7-bundle.css +2194 -383
- package/framework7-bundle.esm.js +11 -4
- package/framework7-bundle.js +2368 -467
- 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 +2191 -380
- package/framework7-rtl.min.css +11 -5
- package/framework7.css +2189 -378
- 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
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/* === Toolbar New === */
|
|
2
|
+
@import './toolbar-vars.less';
|
|
3
|
+
|
|
4
|
+
.toolbar-new {
|
|
5
|
+
width: 100%;
|
|
6
|
+
position: relative;
|
|
7
|
+
margin: 0;
|
|
8
|
+
transform: translate3d(0, 0, 0);
|
|
9
|
+
backface-visibility: hidden;
|
|
10
|
+
z-index: 600;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
left: 0;
|
|
13
|
+
height: var(--f7-toolbar-new-height);
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
color: var(--f7-toolbar-new-text-color, var(--f7-bars-text-color));
|
|
16
|
+
font-size: var(--f7-toolbar-new-font-size);
|
|
17
|
+
|
|
18
|
+
b {
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
a {
|
|
22
|
+
color: var(--f7-toolbar-new-link-color, var(--f7-bars-link-color, var(--f7-theme-color)));
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
flex-shrink: 1;
|
|
25
|
+
position: relative;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
}
|
|
29
|
+
.link {
|
|
30
|
+
display: flex;
|
|
31
|
+
|
|
32
|
+
font-weight: var(--f7-toolbar-new-link-font-weight);
|
|
33
|
+
}
|
|
34
|
+
i.icon {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
&:after,
|
|
38
|
+
&:before {
|
|
39
|
+
backface-visibility: hidden;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.views,
|
|
43
|
+
.view,
|
|
44
|
+
.page {
|
|
45
|
+
> .toolbar-new {
|
|
46
|
+
position: absolute;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
.toolbar-new-top,
|
|
50
|
+
.ios .toolbar-new-top-ios,
|
|
51
|
+
.md .toolbar-new-top-md {
|
|
52
|
+
top: 0;
|
|
53
|
+
}
|
|
54
|
+
.toolbar-new-bottom,
|
|
55
|
+
.ios .toolbar-new-bottom-ios,
|
|
56
|
+
.md .toolbar-new-bottom-md {
|
|
57
|
+
bottom: 0;
|
|
58
|
+
height: calc(var(--f7-toolbar-new-height) + var(--f7-safe-area-bottom));
|
|
59
|
+
.toolbar-new-inner {
|
|
60
|
+
height: auto;
|
|
61
|
+
top: 0;
|
|
62
|
+
bottom: var(--f7-safe-area-bottom);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.toolbar-new-inner {
|
|
66
|
+
position: absolute;
|
|
67
|
+
z-index: 1;
|
|
68
|
+
left: 0;
|
|
69
|
+
top: 0;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
display: flex;
|
|
73
|
+
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
align-items: center;
|
|
76
|
+
align-content: center;
|
|
77
|
+
|
|
78
|
+
padding: 0 calc(var(--f7-toolbar-new-inner-padding-right) + var(--f7-safe-area-right)) 0
|
|
79
|
+
calc(var(--f7-toolbar-new-inner-padding-left) + var(--f7-safe-area-left));
|
|
80
|
+
}
|
|
81
|
+
.tabbar-new,
|
|
82
|
+
.tabbar-new-icons {
|
|
83
|
+
.views > & {
|
|
84
|
+
z-index: 5001;
|
|
85
|
+
}
|
|
86
|
+
a {
|
|
87
|
+
color: var(--f7-tabbar-new-link-inactive-color);
|
|
88
|
+
}
|
|
89
|
+
.link {
|
|
90
|
+
line-height: 1.4;
|
|
91
|
+
}
|
|
92
|
+
.tab-link,
|
|
93
|
+
.link {
|
|
94
|
+
height: 100%;
|
|
95
|
+
width: 100%;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
display: flex;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
align-items: center;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
text-transform: var(--f7-tabbar-new-link-text-transform);
|
|
102
|
+
font-weight: var(--f7-tabbar-new-link-font-weight);
|
|
103
|
+
letter-spacing: var(--f7-tabbar-new-link-letter-spacing);
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
.tab-link-active {
|
|
107
|
+
color: var(--f7-tabbar-new-link-active-color, var(--f7-theme-color));
|
|
108
|
+
background-color: var(--f7-tabbar-new-link-active-bg-color, transparent);
|
|
109
|
+
}
|
|
110
|
+
i.icon {
|
|
111
|
+
font-size: var(--f7-tabbar-new-icon-size);
|
|
112
|
+
height: var(--f7-tabbar-new-icon-size);
|
|
113
|
+
line-height: var(--f7-tabbar-new-icon-size);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.tabbar-new-icons {
|
|
117
|
+
--f7-toolbar-new-height: var(--f7-tabbar-new-icons-height);
|
|
118
|
+
.tab-link,
|
|
119
|
+
.link {
|
|
120
|
+
height: 100%;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
}
|
|
124
|
+
.tabbar-new-label {
|
|
125
|
+
display: block;
|
|
126
|
+
line-height: 1;
|
|
127
|
+
margin: 0;
|
|
128
|
+
position: relative;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
font-size: var(--f7-tabbar-new-label-font-size);
|
|
132
|
+
text-transform: var(--f7-tabbar-new-label-text-transform);
|
|
133
|
+
font-weight: var(--f7-tabbar-new-label-font-weight);
|
|
134
|
+
letter-spacing: var(--f7-tabbar-new-label-letter-spacing);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@media (min-width: 768px) and (min-height: 600px) {
|
|
138
|
+
:root {
|
|
139
|
+
--f7-tabbar-new-icons-height: var(--f7-tabbar-new-icons-tablet-height);
|
|
140
|
+
--f7-tabbar-new-label-font-size: var(--f7-tabbar-new-label-tablet-font-size);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.tabbar-new-scrollable {
|
|
144
|
+
.toolbar-new-inner {
|
|
145
|
+
justify-content: flex-start;
|
|
146
|
+
.scrollable();
|
|
147
|
+
.no-scrollbar();
|
|
148
|
+
}
|
|
149
|
+
.tab-link,
|
|
150
|
+
.link {
|
|
151
|
+
width: auto;
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
// Transitions
|
|
156
|
+
.toolbar-new-transitioning,
|
|
157
|
+
.navbar-new-transitioning + .toolbar-new,
|
|
158
|
+
.navbar-new-transitioning ~ * .toolbar-new {
|
|
159
|
+
transition-duration: var(--f7-toolbar-new-hide-show-transition-duration);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Relation with page
|
|
163
|
+
.toolbar-new-bottom,
|
|
164
|
+
.ios .toolbar-new-bottom-ios,
|
|
165
|
+
.md .toolbar-new-bottom-md {
|
|
166
|
+
~ * {
|
|
167
|
+
--f7-page-toolbar-new-bottom-offset: var(--f7-toolbar-new-height);
|
|
168
|
+
}
|
|
169
|
+
&.tabbar-new-icons ~ * {
|
|
170
|
+
--f7-page-toolbar-new-bottom-offset: var(--f7-tabbar-new-icons-height);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
.toolbar-new-bottom,
|
|
174
|
+
.ios .toolbar-new-bottom-ios,
|
|
175
|
+
.md .toolbar-new-bottom-md {
|
|
176
|
+
&.toolbar-new-hidden {
|
|
177
|
+
transform: translate3d(0, 100%, 0);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
.toolbar-new-top,
|
|
181
|
+
.ios .toolbar-new-top-ios,
|
|
182
|
+
.md .toolbar-new-top-md,
|
|
183
|
+
.sheet-modal-bottom > .toolbar-new:not(.toolbar-new-bottom) {
|
|
184
|
+
~ * {
|
|
185
|
+
--f7-page-toolbar-new-top-offset: var(--f7-toolbar-new-height);
|
|
186
|
+
}
|
|
187
|
+
&.tabbar-new-icons ~ * {
|
|
188
|
+
--f7-page-toolbar-new-top-offset: var(--f7-tabbar-new-icons-height);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
.toolbar-new-top,
|
|
192
|
+
.ios .toolbar-new-top-ios,
|
|
193
|
+
.md .toolbar-new-top-md {
|
|
194
|
+
&.toolbar-new-hidden {
|
|
195
|
+
transform: translate3d(0, -100%, 0);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.navbar-new ~ .toolbar-new-top,
|
|
200
|
+
.navbars-new ~ .toolbar-new-top,
|
|
201
|
+
.ios .navbar-new ~ .toolbar-new-top-ios,
|
|
202
|
+
.ios .navbars-new ~ .toolbar-new-top-ios,
|
|
203
|
+
.md .navbar-new ~ .toolbar-new-top-md,
|
|
204
|
+
.navbar-new ~ * .toolbar-new-top,
|
|
205
|
+
.navbars-new ~ * .toolbar-new-top,
|
|
206
|
+
.ios .navbar-new ~ * .toolbar-new-top-ios,
|
|
207
|
+
.ios .navbars-new ~ * .toolbar-new-top-ios,
|
|
208
|
+
.md .navbar-new ~ * .toolbar-new-top-md,
|
|
209
|
+
.navbar-new ~ .page:not(.no-navbar-new) .toolbar-new-top,
|
|
210
|
+
.navbars-new ~ .page:not(.no-navbar-new) .toolbar-new-top,
|
|
211
|
+
.ios .navbar-new ~ .page:not(.no-navbar-new) .toolbar-new-top-ios,
|
|
212
|
+
.ios .navbars-new ~ .page:not(.no-navbar-new) .toolbar-new-top-ios,
|
|
213
|
+
.md .navbar-new ~ .page:not(.no-navbar-new) .toolbar-new-top-md {
|
|
214
|
+
top: calc(var(--f7-navbar-new-height) + var(--f7-safe-area-top));
|
|
215
|
+
&.toolbar-new-hidden {
|
|
216
|
+
transform: translate3d(
|
|
217
|
+
0,
|
|
218
|
+
calc(
|
|
219
|
+
-1 * (var(--f7-navbar-new-height) + var(--f7-toolbar-new-height) + var(--f7-safe-area-top))
|
|
220
|
+
),
|
|
221
|
+
0
|
|
222
|
+
);
|
|
223
|
+
&.tabbar-new-icons {
|
|
224
|
+
transform: translate3d(
|
|
225
|
+
0,
|
|
226
|
+
calc(
|
|
227
|
+
-1 * (var(--f7-navbar-new-height) + var(--f7-tabbar-new-icons-height) +
|
|
228
|
+
var(--f7-safe-area-top))
|
|
229
|
+
),
|
|
230
|
+
0
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
.navbar-new-hidden + .toolbar-new-top:not(.toolbar-new-hidden),
|
|
236
|
+
.ios .navbar-new-hidden + .toolbar-new-top-ios:not(.toolbar-new-hidden),
|
|
237
|
+
.md .navbar-new-hidden + .toolbar-new-top-md:not(.toolbar-new-hidden),
|
|
238
|
+
.navbar-new-hidden ~ * .toolbar-new-top:not(.toolbar-new-hidden),
|
|
239
|
+
.ios .navbar-new-hidden ~ * .toolbar-new-top-ios:not(.toolbar-new-hidden),
|
|
240
|
+
.md .navbar-new-hidden ~ * .toolbar-new-top-md:not(.toolbar-new-hidden) {
|
|
241
|
+
transform: translate3d(0, calc(0px - var(--f7-navbar-new-height)), 0);
|
|
242
|
+
}
|
|
243
|
+
.navbar-new-large-hidden + .toolbar-new-top:not(.toolbar-new-hidden),
|
|
244
|
+
.ios .navbar-new-large-hidden + .toolbar-new-top-ios:not(.toolbar-new-hidden),
|
|
245
|
+
.md .navbar-new-large-hidden + .toolbar-new-top-md:not(.toolbar-new-hidden),
|
|
246
|
+
.navbar-new-large-hidden ~ * .toolbar-new-top:not(.toolbar-new-hidden),
|
|
247
|
+
.ios .navbar-new-large-hidden ~ * .toolbar-new-top-ios:not(.toolbar-new-hidden),
|
|
248
|
+
.md .navbar-new-large-hidden ~ * .toolbar-new-top-md:not(.toolbar-new-hidden) {
|
|
249
|
+
transform: translate3d(
|
|
250
|
+
0,
|
|
251
|
+
calc(0px - var(--f7-navbar-new-height) - var(--f7-navbar-new-large-title-height)),
|
|
252
|
+
0
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.if-ios-theme({
|
|
257
|
+
@import './toolbar-ios.less';
|
|
258
|
+
});
|
|
259
|
+
.if-md-theme({
|
|
260
|
+
@import './toolbar-md.less';
|
|
261
|
+
});
|