@xenknight/framework7 0.0.8 → 0.0.10
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/navbar-new/navbar-ios.less +135 -135
- package/components/navbar-new/navbar-md.less +105 -105
- package/components/navbar-new/navbar-vars.less +78 -78
- package/components/navbar-new/navbar.d.ts +77 -77
- package/components/navbar-new/navbar.less +268 -268
- package/components/page/page.less +4 -2
- package/components/searchbar-new/searchbar-ios.less +131 -131
- package/components/searchbar-new/searchbar-md.less +154 -153
- package/components/searchbar-new/searchbar-new-class.js +32 -20
- package/components/searchbar-new/searchbar-vars.less +75 -75
- package/components/searchbar-new/searchbar.less +336 -331
- package/components/subnavbar-new/subnavbar-new-ios.less +67 -0
- package/components/subnavbar-new/subnavbar-new-md.less +48 -0
- package/components/subnavbar-new/subnavbar-new-vars.less +42 -0
- package/components/subnavbar-new/subnavbar-new.d.ts +12 -0
- package/components/subnavbar-new/subnavbar-new.js +20 -0
- package/components/subnavbar-new/subnavbar-new.less +151 -0
- package/components/toolbar-new/tabbar-highlight.js +29 -9
- package/components/toolbar-new/toolbar-ios.less +193 -193
- package/components/toolbar-new/toolbar-md.less +152 -152
- package/components/toolbar-new/toolbar-vars.less +77 -77
- package/components/toolbar-new/toolbar.less +261 -261
- package/framework7-bundle-rtl.css +260 -9
- package/framework7-bundle-rtl.min.css +5 -5
- package/framework7-bundle.css +260 -9
- package/framework7-bundle.esm.js +5 -3
- package/framework7-bundle.js +84 -32
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +3 -2
- package/framework7-bundle.min.css +5 -5
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +5 -3
- package/framework7-lite.esm.js +5 -3
- package/framework7-lite.js +3 -1
- package/framework7-rtl.css +260 -9
- package/framework7-rtl.min.css +5 -5
- package/framework7-types.d.ts +5 -1
- package/framework7.css +260 -9
- package/framework7.d.ts +4 -0
- package/framework7.esm.js +5 -3
- package/framework7.js +3 -1
- package/framework7.less +3 -2
- package/framework7.min.css +5 -5
- package/package.json +1 -1
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/*
|
|
3
|
-
--f7-toolbar-new-bg-color: var(--f7-bars-bg-color);
|
|
4
|
-
--f7-toolbar-new-bg-color-rgb: var(--f7-bars-bg-color-rgb);
|
|
5
|
-
--f7-toolbar-new-border-color: var(--f7-bars-border-color);
|
|
6
|
-
--f7-toolbar-new-text-color: var(--f7-bars-text-color);
|
|
7
|
-
*/
|
|
8
|
-
--f7-tabbar-new-link-active-bg-color: transparent;
|
|
9
|
-
--f7-tabbar-new-label-text-transform: none;
|
|
10
|
-
--f7-toolbar-new-hide-show-transition-duration: 400ms;
|
|
11
|
-
}
|
|
12
|
-
.ios-vars({
|
|
13
|
-
--f7-toolbar-new-height: 64px;
|
|
14
|
-
--f7-toolbar-new-font-size: 17px;
|
|
15
|
-
--f7-toolbar-new-inner-padding-left: 16px;
|
|
16
|
-
--f7-toolbar-new-inner-padding-right: 16px;
|
|
17
|
-
--f7-toolbar-new-link-font-weight: 400;
|
|
18
|
-
--f7-toolbar-new-link-color: var(--f7-bars-text-color);
|
|
19
|
-
--f7-tabbar-new-link-inactive-color: var(--f7-bars-text-color);
|
|
20
|
-
/*
|
|
21
|
-
--f7-toolbar-new-link-height: var(--f7-toolbar-new-height);
|
|
22
|
-
--f7-toolbar-new-link-line-height: var(--f7-toolbar-new-height);
|
|
23
|
-
--f7-tabbar-new-link-active-color: var(--f7-theme-color);
|
|
24
|
-
*/
|
|
25
|
-
--f7-tabbar-new-icons-height: 80px;
|
|
26
|
-
--f7-tabbar-new-icons-tablet-height: 80px;
|
|
27
|
-
--f7-tabbar-new-icon-size: 28px;
|
|
28
|
-
--f7-tabbar-new-link-text-transform: none;
|
|
29
|
-
--f7-tabbar-new-link-font-weight: 400;
|
|
30
|
-
--f7-tabbar-new-link-letter-spacing: 0;
|
|
31
|
-
|
|
32
|
-
--f7-tabbar-new-label-font-size: 12px;
|
|
33
|
-
--f7-tabbar-new-label-tablet-font-size: 14px;
|
|
34
|
-
--f7-tabbar-new-label-font-weight: 500;
|
|
35
|
-
--f7-tabbar-new-label-letter-spacing: 0.01;
|
|
36
|
-
.dark-vars({
|
|
37
|
-
--f7-tabbar-new-link-highlight-bg-color: rgba(255,255,255,0.15);
|
|
38
|
-
--f7-tabbar-new-link-highlight-active-bg-color: rgba(255,255,255,0.1);
|
|
39
|
-
--f7-toolbar-new-bars-bg-color: rgba(0, 0, 0, 0.5);
|
|
40
|
-
});
|
|
41
|
-
.light-vars({
|
|
42
|
-
--f7-tabbar-new-link-highlight-bg-color: rgba(0,0,0,0.1);
|
|
43
|
-
--f7-tabbar-new-link-highlight-active-bg-color: rgba(0,0,0,0.05);
|
|
44
|
-
--f7-toolbar-new-bars-bg-color: #efeff4;
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
});
|
|
48
|
-
.md-vars({
|
|
49
|
-
--f7-toolbar-new-height: 56px;
|
|
50
|
-
--f7-toolbar-new-font-size: 14px;
|
|
51
|
-
--f7-toolbar-new-inner-padding-left: 0px;
|
|
52
|
-
--f7-toolbar-new-inner-padding-right: 0px;
|
|
53
|
-
/*
|
|
54
|
-
--f7-toolbar-new-link-color: var(--f7-bars-link-color);
|
|
55
|
-
--f7-toolbar-new-link-height: var(--f7-toolbar-new-height);
|
|
56
|
-
--f7-toolbar-new-link-line-height: var(--f7-toolbar-new-height);
|
|
57
|
-
*/
|
|
58
|
-
--f7-tabbar-new-icons-height: 80px;
|
|
59
|
-
--f7-tabbar-new-icons-tablet-height: 80px;
|
|
60
|
-
--f7-tabbar-new-icon-size: 24px;
|
|
61
|
-
--f7-tabbar-new-link-text-transform: none;
|
|
62
|
-
--f7-tabbar-new-link-font-weight: 500;
|
|
63
|
-
--f7-tabbar-new-link-letter-spacing: 0;
|
|
64
|
-
--f7-toolbar-new-link-font-weight: 500;
|
|
65
|
-
|
|
66
|
-
--f7-tabbar-new-label-font-size: 12px;
|
|
67
|
-
--f7-tabbar-new-label-tablet-font-size: 12px;
|
|
68
|
-
--f7-tabbar-new-label-font-weight: 500;
|
|
69
|
-
--f7-tabbar-new-label-letter-spacing: 0;
|
|
70
|
-
|
|
71
|
-
});
|
|
72
|
-
.md-color-vars({
|
|
73
|
-
--f7-tabbar-new-link-active-color: var(--f7-md-on-secondary-container);
|
|
74
|
-
--f7-tabbar-new-link-active-border-color: var(--f7-md-primary);
|
|
75
|
-
--f7-tabbar-new-link-inactive-color: var(--f7-md-on-surface-variant);
|
|
76
|
-
--f7-tabbar-new-link-active-icon-bg-color: var(--f7-md-secondary-container);
|
|
77
|
-
});
|
|
1
|
+
:root {
|
|
2
|
+
/*
|
|
3
|
+
--f7-toolbar-new-bg-color: var(--f7-bars-bg-color);
|
|
4
|
+
--f7-toolbar-new-bg-color-rgb: var(--f7-bars-bg-color-rgb);
|
|
5
|
+
--f7-toolbar-new-border-color: var(--f7-bars-border-color);
|
|
6
|
+
--f7-toolbar-new-text-color: var(--f7-bars-text-color);
|
|
7
|
+
*/
|
|
8
|
+
--f7-tabbar-new-link-active-bg-color: transparent;
|
|
9
|
+
--f7-tabbar-new-label-text-transform: none;
|
|
10
|
+
--f7-toolbar-new-hide-show-transition-duration: 400ms;
|
|
11
|
+
}
|
|
12
|
+
.ios-vars({
|
|
13
|
+
--f7-toolbar-new-height: 64px;
|
|
14
|
+
--f7-toolbar-new-font-size: 17px;
|
|
15
|
+
--f7-toolbar-new-inner-padding-left: 16px;
|
|
16
|
+
--f7-toolbar-new-inner-padding-right: 16px;
|
|
17
|
+
--f7-toolbar-new-link-font-weight: 400;
|
|
18
|
+
--f7-toolbar-new-link-color: var(--f7-bars-text-color);
|
|
19
|
+
--f7-tabbar-new-link-inactive-color: var(--f7-bars-text-color);
|
|
20
|
+
/*
|
|
21
|
+
--f7-toolbar-new-link-height: var(--f7-toolbar-new-height);
|
|
22
|
+
--f7-toolbar-new-link-line-height: var(--f7-toolbar-new-height);
|
|
23
|
+
--f7-tabbar-new-link-active-color: var(--f7-theme-color);
|
|
24
|
+
*/
|
|
25
|
+
--f7-tabbar-new-icons-height: 80px;
|
|
26
|
+
--f7-tabbar-new-icons-tablet-height: 80px;
|
|
27
|
+
--f7-tabbar-new-icon-size: 28px;
|
|
28
|
+
--f7-tabbar-new-link-text-transform: none;
|
|
29
|
+
--f7-tabbar-new-link-font-weight: 400;
|
|
30
|
+
--f7-tabbar-new-link-letter-spacing: 0;
|
|
31
|
+
|
|
32
|
+
--f7-tabbar-new-label-font-size: 12px;
|
|
33
|
+
--f7-tabbar-new-label-tablet-font-size: 14px;
|
|
34
|
+
--f7-tabbar-new-label-font-weight: 500;
|
|
35
|
+
--f7-tabbar-new-label-letter-spacing: 0.01;
|
|
36
|
+
.dark-vars({
|
|
37
|
+
--f7-tabbar-new-link-highlight-bg-color: rgba(255,255,255,0.15);
|
|
38
|
+
--f7-tabbar-new-link-highlight-active-bg-color: rgba(255,255,255,0.1);
|
|
39
|
+
--f7-toolbar-new-bars-bg-color: rgba(0, 0, 0, 0.5);
|
|
40
|
+
});
|
|
41
|
+
.light-vars({
|
|
42
|
+
--f7-tabbar-new-link-highlight-bg-color: rgba(0,0,0,0.1);
|
|
43
|
+
--f7-tabbar-new-link-highlight-active-bg-color: rgba(0,0,0,0.05);
|
|
44
|
+
--f7-toolbar-new-bars-bg-color: #efeff4;
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
});
|
|
48
|
+
.md-vars({
|
|
49
|
+
--f7-toolbar-new-height: 56px;
|
|
50
|
+
--f7-toolbar-new-font-size: 14px;
|
|
51
|
+
--f7-toolbar-new-inner-padding-left: 0px;
|
|
52
|
+
--f7-toolbar-new-inner-padding-right: 0px;
|
|
53
|
+
/*
|
|
54
|
+
--f7-toolbar-new-link-color: var(--f7-bars-link-color);
|
|
55
|
+
--f7-toolbar-new-link-height: var(--f7-toolbar-new-height);
|
|
56
|
+
--f7-toolbar-new-link-line-height: var(--f7-toolbar-new-height);
|
|
57
|
+
*/
|
|
58
|
+
--f7-tabbar-new-icons-height: 80px;
|
|
59
|
+
--f7-tabbar-new-icons-tablet-height: 80px;
|
|
60
|
+
--f7-tabbar-new-icon-size: 24px;
|
|
61
|
+
--f7-tabbar-new-link-text-transform: none;
|
|
62
|
+
--f7-tabbar-new-link-font-weight: 500;
|
|
63
|
+
--f7-tabbar-new-link-letter-spacing: 0;
|
|
64
|
+
--f7-toolbar-new-link-font-weight: 500;
|
|
65
|
+
|
|
66
|
+
--f7-tabbar-new-label-font-size: 12px;
|
|
67
|
+
--f7-tabbar-new-label-tablet-font-size: 12px;
|
|
68
|
+
--f7-tabbar-new-label-font-weight: 500;
|
|
69
|
+
--f7-tabbar-new-label-letter-spacing: 0;
|
|
70
|
+
|
|
71
|
+
});
|
|
72
|
+
.md-color-vars({
|
|
73
|
+
--f7-tabbar-new-link-active-color: var(--f7-md-on-secondary-container);
|
|
74
|
+
--f7-tabbar-new-link-active-border-color: var(--f7-md-primary);
|
|
75
|
+
--f7-tabbar-new-link-inactive-color: var(--f7-md-on-surface-variant);
|
|
76
|
+
--f7-tabbar-new-link-active-icon-bg-color: var(--f7-md-secondary-container);
|
|
77
|
+
});
|
|
@@ -1,261 +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
|
-
});
|
|
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
|
+
});
|