@ionic/core 9.0.11-dev.11793705116.185a3203 → 9.0.11-dev.11793719937.1e883321
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/ion-content.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/{p-BCYVFy50.js → p-CseHeZbU.js} +1 -1
- package/components/p-Da8LCPwo.js +4 -0
- package/dist/cjs/ion-app_8.cjs.entry.js +13 -5
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/content/content.ionic.css +352 -0
- package/dist/collection/components/content/{content.css → content.ios.css} +65 -41
- package/dist/collection/components/content/content.js +9 -5
- package/dist/collection/components/content/content.md.css +347 -0
- package/dist/docs.json +127 -10
- package/dist/esm/ion-app_8.entry.js +13 -5
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-39e3be74.entry.js +4 -0
- package/hydrate/index.js +14 -6
- package/hydrate/index.mjs +14 -6
- package/package.json +1 -1
- package/components/p-ByE0slik.js +0 -4
- package/dist/ionic/p-b30b468d.entry.js +0 -4
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A heuristic that applies CSS to tablet
|
|
3
|
+
* viewports.
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* @include tablet-viewport() {
|
|
7
|
+
* :host {
|
|
8
|
+
* background-color: green;
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A heuristic that applies CSS to mobile
|
|
14
|
+
* viewports (i.e. phones, not tablets).
|
|
15
|
+
*
|
|
16
|
+
* Usage:
|
|
17
|
+
* @include mobile-viewport() {
|
|
18
|
+
* :host {
|
|
19
|
+
* background-color: blue;
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
:host {
|
|
24
|
+
/**
|
|
25
|
+
* @prop --background: Background of the content
|
|
26
|
+
*
|
|
27
|
+
* @prop --color: Color of the content
|
|
28
|
+
*
|
|
29
|
+
* @prop --padding-top: Top padding of the content
|
|
30
|
+
* @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content
|
|
31
|
+
* @prop --padding-bottom: Bottom padding of the content
|
|
32
|
+
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content
|
|
33
|
+
*
|
|
34
|
+
* @prop --keyboard-offset: Keyboard offset of the content
|
|
35
|
+
*
|
|
36
|
+
* @prop --offset-top: Offset top of the content
|
|
37
|
+
* @prop --offset-bottom: Offset bottom of the content
|
|
38
|
+
*/
|
|
39
|
+
--padding-top: 0px;
|
|
40
|
+
--padding-bottom: 0px;
|
|
41
|
+
--padding-start: 0px;
|
|
42
|
+
--padding-end: 0px;
|
|
43
|
+
--keyboard-offset: 0px;
|
|
44
|
+
--offset-top: 0px;
|
|
45
|
+
--offset-bottom: 0px;
|
|
46
|
+
--overflow: auto;
|
|
47
|
+
display: block;
|
|
48
|
+
position: relative;
|
|
49
|
+
flex: 1;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
/* stylelint-disable */
|
|
53
|
+
margin: 0 !important;
|
|
54
|
+
padding: 0 !important;
|
|
55
|
+
/* stylelint-enable */
|
|
56
|
+
font-family: var(--ion-font-family, inherit);
|
|
57
|
+
contain: size style;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host(.ion-color) .inner-scroll {
|
|
61
|
+
background: var(--ion-color-base);
|
|
62
|
+
color: var(--ion-color-contrast);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#background-content {
|
|
66
|
+
right: 0px;
|
|
67
|
+
left: 0px;
|
|
68
|
+
top: calc(var(--offset-top) * -1);
|
|
69
|
+
bottom: calc(var(--offset-bottom) * -1);
|
|
70
|
+
position: absolute;
|
|
71
|
+
background: var(--background);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.inner-scroll {
|
|
75
|
+
right: 0px;
|
|
76
|
+
left: 0px;
|
|
77
|
+
top: calc(var(--offset-top) * -1);
|
|
78
|
+
bottom: calc(var(--offset-bottom) * -1);
|
|
79
|
+
-webkit-padding-start: var(--padding-start);
|
|
80
|
+
padding-inline-start: var(--padding-start);
|
|
81
|
+
-webkit-padding-end: var(--padding-end);
|
|
82
|
+
padding-inline-end: var(--padding-end);
|
|
83
|
+
padding-top: calc(var(--padding-top) + var(--offset-top));
|
|
84
|
+
padding-bottom: calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));
|
|
85
|
+
position: absolute;
|
|
86
|
+
color: var(--color);
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
/**
|
|
90
|
+
* touch-action: manipulation is an alias
|
|
91
|
+
* for this, but WebKit has an issue
|
|
92
|
+
* where pointercancel events are not fired
|
|
93
|
+
* when scrolling: https://bugs.webkit.org/show_bug.cgi?id=240917
|
|
94
|
+
* Using the long form below avoids the issue.
|
|
95
|
+
*/
|
|
96
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.scroll-y,
|
|
100
|
+
.scroll-x {
|
|
101
|
+
-webkit-overflow-scrolling: touch;
|
|
102
|
+
/**
|
|
103
|
+
* This adds `.inner-scroll` as part of the
|
|
104
|
+
* stacking context in WebKit. Without it,
|
|
105
|
+
* children of ion-content are treated as
|
|
106
|
+
* siblings rather than descendants. This
|
|
107
|
+
* can result in the children being put
|
|
108
|
+
* into their own layers, degrading
|
|
109
|
+
* scrolling performance.
|
|
110
|
+
*
|
|
111
|
+
* An optimization called "layer backing
|
|
112
|
+
* sharing" usually kicks in to prevent
|
|
113
|
+
* this, but having translate3d defeats
|
|
114
|
+
* this optimization.
|
|
115
|
+
*
|
|
116
|
+
* See: https://bugs.webkit.org/show_bug.cgi?id=216701
|
|
117
|
+
*/
|
|
118
|
+
z-index: 0;
|
|
119
|
+
will-change: scroll-position;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.scroll-y {
|
|
123
|
+
overflow-y: var(--overflow);
|
|
124
|
+
overscroll-behavior-y: contain;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.scroll-x {
|
|
128
|
+
overflow-x: var(--overflow);
|
|
129
|
+
overscroll-behavior-x: contain;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.overscroll::before,
|
|
133
|
+
.overscroll::after {
|
|
134
|
+
position: absolute;
|
|
135
|
+
width: 1px;
|
|
136
|
+
height: 1px;
|
|
137
|
+
content: "";
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.overscroll::before {
|
|
141
|
+
bottom: -1px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.overscroll::after {
|
|
145
|
+
top: -1px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host(.content-sizing) {
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
/**
|
|
152
|
+
* This resolves a sizing issue in popovers where extra long content
|
|
153
|
+
* would overflow the popover's height, preventing scrolling. It's a
|
|
154
|
+
* quirk of flexbox that forces the content to shrink to fit.
|
|
155
|
+
*
|
|
156
|
+
* overflow: hidden can't be used here because it prevents the visual
|
|
157
|
+
* effect from showing on translucent headers.
|
|
158
|
+
*/
|
|
159
|
+
min-height: 0;
|
|
160
|
+
contain: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:host(.content-sizing) .inner-scroll {
|
|
164
|
+
position: relative;
|
|
165
|
+
/**
|
|
166
|
+
* Because the outer content has display: flex here (to help enable
|
|
167
|
+
* scrolling in a popover), offsetting via `top` (such as when using
|
|
168
|
+
* a translucent header) creates white space under the content. Use
|
|
169
|
+
* a negative margin instead to keep the bottom in place. (A similar
|
|
170
|
+
* thing happens with `bottom` and footers.)
|
|
171
|
+
*/
|
|
172
|
+
top: 0;
|
|
173
|
+
bottom: 0;
|
|
174
|
+
margin-top: calc(var(--offset-top) * -1);
|
|
175
|
+
margin-bottom: calc(var(--offset-bottom) * -1);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.transition-effect {
|
|
179
|
+
display: none;
|
|
180
|
+
position: absolute;
|
|
181
|
+
width: 100%;
|
|
182
|
+
height: 100vh;
|
|
183
|
+
opacity: 0;
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host(.content-ltr) .transition-effect {
|
|
188
|
+
/* stylelint-disable property-disallowed-list */
|
|
189
|
+
left: -100%;
|
|
190
|
+
/* stylelint-enable property-disallowed-list */
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host(.content-rtl) .transition-effect {
|
|
194
|
+
/* stylelint-disable property-disallowed-list */
|
|
195
|
+
right: -100%;
|
|
196
|
+
/* stylelint-enable property-disallowed-list */
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.transition-cover {
|
|
200
|
+
position: absolute;
|
|
201
|
+
/* stylelint-disable property-disallowed-list */
|
|
202
|
+
right: 0;
|
|
203
|
+
/* stylelint-enable property-disallowed-list */
|
|
204
|
+
width: 100%;
|
|
205
|
+
height: 100%;
|
|
206
|
+
background: black;
|
|
207
|
+
opacity: 0.1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.transition-shadow {
|
|
211
|
+
display: block;
|
|
212
|
+
position: absolute;
|
|
213
|
+
width: 100%;
|
|
214
|
+
height: 100%;
|
|
215
|
+
box-shadow: inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
:host(.content-ltr) .transition-shadow {
|
|
219
|
+
/* stylelint-disable property-disallowed-list */
|
|
220
|
+
right: 0;
|
|
221
|
+
/* stylelint-enable property-disallowed-list */
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:host(.content-rtl) .transition-shadow {
|
|
225
|
+
/* stylelint-disable property-disallowed-list */
|
|
226
|
+
left: 0;
|
|
227
|
+
/* stylelint-enable property-disallowed-list */
|
|
228
|
+
transform: scaleX(-1);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
::slotted([slot=fixed]) {
|
|
232
|
+
position: absolute;
|
|
233
|
+
/**
|
|
234
|
+
* When presenting ion-content inside of an ion-modal, the .inner-scroll
|
|
235
|
+
* element is composited. In WebKit, the fixed content is not composited
|
|
236
|
+
* causing it to appear under the main scrollable content as a result.
|
|
237
|
+
* The fixed content is correctly composited in other browsers. Adding
|
|
238
|
+
* the translateZ forces the fixed content to be composited so it correctly
|
|
239
|
+
* shows on top of the scrollable content. Setting a negative z-index will
|
|
240
|
+
* still allow the fixed content to appear under the scroll content if specified.
|
|
241
|
+
*/
|
|
242
|
+
transform: translateZ(0);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll {
|
|
246
|
+
transition: transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll {
|
|
250
|
+
height: calc(100% + var(--internal-header-hide-height, 0px));
|
|
251
|
+
transform: translateY(calc(-1 * var(--internal-header-hide-height, 0px)));
|
|
252
|
+
transition: transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll {
|
|
256
|
+
transition: height 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll {
|
|
260
|
+
height: calc(100% + var(--internal-footer-hide-height, 0px));
|
|
261
|
+
transition: height 350ms cubic-bezier(0.4, 0, 1, 1);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll {
|
|
265
|
+
transition: height 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll {
|
|
269
|
+
height: calc(100% + var(--internal-tab-bar-hide-height, 0px));
|
|
270
|
+
transition: height 350ms cubic-bezier(0.4, 0, 1, 1);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@media (prefers-reduced-motion: reduce) {
|
|
274
|
+
:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,
|
|
275
|
+
:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,
|
|
276
|
+
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,
|
|
277
|
+
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,
|
|
278
|
+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,
|
|
279
|
+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll {
|
|
280
|
+
transition: none;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Convert a pixels given value into rem
|
|
285
|
+
*
|
|
286
|
+
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
287
|
+
* @param context (optional) - Baseline value
|
|
288
|
+
*/
|
|
289
|
+
/**
|
|
290
|
+
* Convert a font size to a dynamic font size.
|
|
291
|
+
* Fonts that participate in Dynamic Type should use
|
|
292
|
+
* dynamic font sizes.
|
|
293
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
294
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
295
|
+
* convert to a unit other than $baselineUnit.
|
|
296
|
+
*/
|
|
297
|
+
/**
|
|
298
|
+
* Convert a font size to a dynamic font size but impose
|
|
299
|
+
* a maximum font size.
|
|
300
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
301
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
302
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
303
|
+
* convert to a unit other than $baselineUnit.
|
|
304
|
+
*/
|
|
305
|
+
/**
|
|
306
|
+
* Convert a font size to a dynamic font size but impose
|
|
307
|
+
* a minimum font size.
|
|
308
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
309
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
310
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
311
|
+
* convert to a unit other than $baselineUnit.
|
|
312
|
+
*/
|
|
313
|
+
/**
|
|
314
|
+
* Convert a font size to a dynamic font size but impose
|
|
315
|
+
* maximum and minimum font sizes.
|
|
316
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
317
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
318
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
319
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
320
|
+
* convert to a unit other than $baselineUnit.
|
|
321
|
+
*/
|
|
322
|
+
/**
|
|
323
|
+
* A heuristic that applies CSS to tablet
|
|
324
|
+
* viewports.
|
|
325
|
+
*
|
|
326
|
+
* Usage:
|
|
327
|
+
* @include tablet-viewport() {
|
|
328
|
+
* :host {
|
|
329
|
+
* background-color: green;
|
|
330
|
+
* }
|
|
331
|
+
* }
|
|
332
|
+
*/
|
|
333
|
+
/**
|
|
334
|
+
* A heuristic that applies CSS to mobile
|
|
335
|
+
* viewports (i.e. phones, not tablets).
|
|
336
|
+
*
|
|
337
|
+
* Usage:
|
|
338
|
+
* @include mobile-viewport() {
|
|
339
|
+
* :host {
|
|
340
|
+
* background-color: blue;
|
|
341
|
+
* }
|
|
342
|
+
* }
|
|
343
|
+
*/
|
|
344
|
+
:host {
|
|
345
|
+
--background: var(--ion-background-color, #fff);
|
|
346
|
+
--color: var(--ion-text-color, #000);
|
|
347
|
+
}
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-11-
|
|
2
|
+
"timestamp": "2026-11-03T15:35:17",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
@@ -10737,47 +10737,164 @@
|
|
|
10737
10737
|
{
|
|
10738
10738
|
"name": "--background",
|
|
10739
10739
|
"annotation": "prop",
|
|
10740
|
-
"docs": "Background of the content"
|
|
10740
|
+
"docs": "Background of the content",
|
|
10741
|
+
"mode": "ionic"
|
|
10742
|
+
},
|
|
10743
|
+
{
|
|
10744
|
+
"name": "--background",
|
|
10745
|
+
"annotation": "prop",
|
|
10746
|
+
"docs": "Background of the content",
|
|
10747
|
+
"mode": "ios"
|
|
10748
|
+
},
|
|
10749
|
+
{
|
|
10750
|
+
"name": "--background",
|
|
10751
|
+
"annotation": "prop",
|
|
10752
|
+
"docs": "Background of the content",
|
|
10753
|
+
"mode": "md"
|
|
10741
10754
|
},
|
|
10742
10755
|
{
|
|
10743
10756
|
"name": "--color",
|
|
10744
10757
|
"annotation": "prop",
|
|
10745
|
-
"docs": "Color of the content"
|
|
10758
|
+
"docs": "Color of the content",
|
|
10759
|
+
"mode": "ionic"
|
|
10760
|
+
},
|
|
10761
|
+
{
|
|
10762
|
+
"name": "--color",
|
|
10763
|
+
"annotation": "prop",
|
|
10764
|
+
"docs": "Color of the content",
|
|
10765
|
+
"mode": "ios"
|
|
10766
|
+
},
|
|
10767
|
+
{
|
|
10768
|
+
"name": "--color",
|
|
10769
|
+
"annotation": "prop",
|
|
10770
|
+
"docs": "Color of the content",
|
|
10771
|
+
"mode": "md"
|
|
10772
|
+
},
|
|
10773
|
+
{
|
|
10774
|
+
"name": "--keyboard-offset",
|
|
10775
|
+
"annotation": "prop",
|
|
10776
|
+
"docs": "Keyboard offset of the content",
|
|
10777
|
+
"mode": "ionic"
|
|
10746
10778
|
},
|
|
10747
10779
|
{
|
|
10748
10780
|
"name": "--keyboard-offset",
|
|
10749
10781
|
"annotation": "prop",
|
|
10750
|
-
"docs": "Keyboard offset of the content"
|
|
10782
|
+
"docs": "Keyboard offset of the content",
|
|
10783
|
+
"mode": "ios"
|
|
10784
|
+
},
|
|
10785
|
+
{
|
|
10786
|
+
"name": "--keyboard-offset",
|
|
10787
|
+
"annotation": "prop",
|
|
10788
|
+
"docs": "Keyboard offset of the content",
|
|
10789
|
+
"mode": "md"
|
|
10751
10790
|
},
|
|
10752
10791
|
{
|
|
10753
10792
|
"name": "--offset-bottom",
|
|
10754
10793
|
"annotation": "prop",
|
|
10755
|
-
"docs": "Offset bottom of the content"
|
|
10794
|
+
"docs": "Offset bottom of the content",
|
|
10795
|
+
"mode": "ionic"
|
|
10796
|
+
},
|
|
10797
|
+
{
|
|
10798
|
+
"name": "--offset-bottom",
|
|
10799
|
+
"annotation": "prop",
|
|
10800
|
+
"docs": "Offset bottom of the content",
|
|
10801
|
+
"mode": "ios"
|
|
10802
|
+
},
|
|
10803
|
+
{
|
|
10804
|
+
"name": "--offset-bottom",
|
|
10805
|
+
"annotation": "prop",
|
|
10806
|
+
"docs": "Offset bottom of the content",
|
|
10807
|
+
"mode": "md"
|
|
10756
10808
|
},
|
|
10757
10809
|
{
|
|
10758
10810
|
"name": "--offset-top",
|
|
10759
10811
|
"annotation": "prop",
|
|
10760
|
-
"docs": "Offset top of the content"
|
|
10812
|
+
"docs": "Offset top of the content",
|
|
10813
|
+
"mode": "ionic"
|
|
10814
|
+
},
|
|
10815
|
+
{
|
|
10816
|
+
"name": "--offset-top",
|
|
10817
|
+
"annotation": "prop",
|
|
10818
|
+
"docs": "Offset top of the content",
|
|
10819
|
+
"mode": "ios"
|
|
10820
|
+
},
|
|
10821
|
+
{
|
|
10822
|
+
"name": "--offset-top",
|
|
10823
|
+
"annotation": "prop",
|
|
10824
|
+
"docs": "Offset top of the content",
|
|
10825
|
+
"mode": "md"
|
|
10761
10826
|
},
|
|
10762
10827
|
{
|
|
10763
10828
|
"name": "--padding-bottom",
|
|
10764
10829
|
"annotation": "prop",
|
|
10765
|
-
"docs": "Bottom padding of the content"
|
|
10830
|
+
"docs": "Bottom padding of the content",
|
|
10831
|
+
"mode": "ionic"
|
|
10832
|
+
},
|
|
10833
|
+
{
|
|
10834
|
+
"name": "--padding-bottom",
|
|
10835
|
+
"annotation": "prop",
|
|
10836
|
+
"docs": "Bottom padding of the content",
|
|
10837
|
+
"mode": "ios"
|
|
10838
|
+
},
|
|
10839
|
+
{
|
|
10840
|
+
"name": "--padding-bottom",
|
|
10841
|
+
"annotation": "prop",
|
|
10842
|
+
"docs": "Bottom padding of the content",
|
|
10843
|
+
"mode": "md"
|
|
10844
|
+
},
|
|
10845
|
+
{
|
|
10846
|
+
"name": "--padding-end",
|
|
10847
|
+
"annotation": "prop",
|
|
10848
|
+
"docs": "Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content",
|
|
10849
|
+
"mode": "ionic"
|
|
10766
10850
|
},
|
|
10767
10851
|
{
|
|
10768
10852
|
"name": "--padding-end",
|
|
10769
10853
|
"annotation": "prop",
|
|
10770
|
-
"docs": "Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content"
|
|
10854
|
+
"docs": "Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content",
|
|
10855
|
+
"mode": "ios"
|
|
10856
|
+
},
|
|
10857
|
+
{
|
|
10858
|
+
"name": "--padding-end",
|
|
10859
|
+
"annotation": "prop",
|
|
10860
|
+
"docs": "Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content",
|
|
10861
|
+
"mode": "md"
|
|
10862
|
+
},
|
|
10863
|
+
{
|
|
10864
|
+
"name": "--padding-start",
|
|
10865
|
+
"annotation": "prop",
|
|
10866
|
+
"docs": "Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content",
|
|
10867
|
+
"mode": "ionic"
|
|
10868
|
+
},
|
|
10869
|
+
{
|
|
10870
|
+
"name": "--padding-start",
|
|
10871
|
+
"annotation": "prop",
|
|
10872
|
+
"docs": "Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content",
|
|
10873
|
+
"mode": "ios"
|
|
10771
10874
|
},
|
|
10772
10875
|
{
|
|
10773
10876
|
"name": "--padding-start",
|
|
10774
10877
|
"annotation": "prop",
|
|
10775
|
-
"docs": "Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content"
|
|
10878
|
+
"docs": "Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content",
|
|
10879
|
+
"mode": "md"
|
|
10880
|
+
},
|
|
10881
|
+
{
|
|
10882
|
+
"name": "--padding-top",
|
|
10883
|
+
"annotation": "prop",
|
|
10884
|
+
"docs": "Top padding of the content",
|
|
10885
|
+
"mode": "ionic"
|
|
10776
10886
|
},
|
|
10777
10887
|
{
|
|
10778
10888
|
"name": "--padding-top",
|
|
10779
10889
|
"annotation": "prop",
|
|
10780
|
-
"docs": "Top padding of the content"
|
|
10890
|
+
"docs": "Top padding of the content",
|
|
10891
|
+
"mode": "ios"
|
|
10892
|
+
},
|
|
10893
|
+
{
|
|
10894
|
+
"name": "--padding-top",
|
|
10895
|
+
"annotation": "prop",
|
|
10896
|
+
"docs": "Top padding of the content",
|
|
10897
|
+
"mode": "md"
|
|
10781
10898
|
}
|
|
10782
10899
|
],
|
|
10783
10900
|
"slots": [
|
|
@@ -92,7 +92,11 @@ Buttons.style = {
|
|
|
92
92
|
md: buttonsMdCss()
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
const
|
|
95
|
+
const contentIonicCss = () => `:host{--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}#background-content{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-header-hide-height, 0px));-webkit-transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));-webkit-transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-footer-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-tab-bar-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}@media (prefers-reduced-motion: reduce){:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{-webkit-transition:none;transition:none}}:host{--background:var(--ion-background-color, var(--token-bg-body, var(--token-primitives-base-white, #ffffff)));--color:currentColor}`;
|
|
96
|
+
|
|
97
|
+
const contentIosCss = () => `:host{--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}#background-content{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-header-hide-height, 0px));-webkit-transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));-webkit-transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-footer-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-tab-bar-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}@media (prefers-reduced-motion: reduce){:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{-webkit-transition:none;transition:none}}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000)}`;
|
|
98
|
+
|
|
99
|
+
const contentMdCss = () => `:host{--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}#background-content{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-header-hide-height, 0px));-webkit-transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));-webkit-transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-footer-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-tab-bar-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}@media (prefers-reduced-motion: reduce){:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{-webkit-transition:none;transition:none}}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000)}`;
|
|
96
100
|
|
|
97
101
|
const Content = class {
|
|
98
102
|
constructor(hostRef) {
|
|
@@ -550,7 +554,7 @@ const Content = class {
|
|
|
550
554
|
const forceOverscroll = this.shouldForceOverscroll(mode);
|
|
551
555
|
const transitionShadow = theme === 'ios';
|
|
552
556
|
this.resize();
|
|
553
|
-
return (h(Host, { key: '
|
|
557
|
+
return (h(Host, { key: '6cdef99e2396f9b451240ee739800b6d4a0df9fa', role: isMainContent ? 'main' : undefined, class: createColorClasses(this.color, {
|
|
554
558
|
[theme]: true,
|
|
555
559
|
'content-fullscreen': this.fullscreen,
|
|
556
560
|
'content-sizing': this.sizeToContent,
|
|
@@ -559,12 +563,12 @@ const Content = class {
|
|
|
559
563
|
}), style: {
|
|
560
564
|
'--offset-top': `${this.cTop}px`,
|
|
561
565
|
'--offset-bottom': `${this.cBottom}px`,
|
|
562
|
-
}, ...inheritedAttributes }, h("div", { key: '
|
|
566
|
+
}, ...inheritedAttributes }, h("div", { key: 'bbd9b4bf3fc97404cd42bb7824fc20e031f77922', ref: (el) => (this.backgroundContentEl = el), id: "background-content", part: "background" }), fixedSlotPlacement === 'before' ? h("slot", { name: "fixed" }) : null, h("div", { key: '4d4747e2495645da20a0718275a77f44fdbdd82d', class: {
|
|
563
567
|
'inner-scroll': true,
|
|
564
568
|
'scroll-x': scrollX,
|
|
565
569
|
'scroll-y': scrollY,
|
|
566
570
|
overscroll: (scrollX || scrollY) && forceOverscroll,
|
|
567
|
-
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '
|
|
571
|
+
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: 'fbafdcfd579732945a3f375fb6cc9777651f41f5' })), transitionShadow ? (h("div", { class: "transition-effect" }, h("div", { class: "transition-cover" }), h("div", { class: "transition-shadow" }))) : null, fixedSlotPlacement === 'after' ? h("slot", { name: "fixed" }) : null));
|
|
568
572
|
}
|
|
569
573
|
get el() { return getElement(this); }
|
|
570
574
|
static get watchers() { return {
|
|
@@ -628,7 +632,11 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
|
|
|
628
632
|
detail.velocityY = velocityY * 0.7 + detail.velocityY * 0.3;
|
|
629
633
|
}
|
|
630
634
|
};
|
|
631
|
-
Content.style =
|
|
635
|
+
Content.style = {
|
|
636
|
+
ionic: contentIonicCss(),
|
|
637
|
+
ios: contentIosCss(),
|
|
638
|
+
md: contentMdCss()
|
|
639
|
+
};
|
|
632
640
|
|
|
633
641
|
const handleFooterFade = (scrollEl, baseEl) => {
|
|
634
642
|
readTask(() => {
|