|
5 | 5 |
|
6 | 6 | :host { |
7 | 7 | /** |
8 | | - * @prop --background: Background of the content |
| 8 | + * @prop --ion-content-background: Background of the content |
9 | 9 | * |
10 | | - * @prop --color: Color of the content |
| 10 | + * @prop --ion-content-color: Color of the content |
11 | 11 | * |
12 | | - * @prop --padding-top: Top padding of the content |
13 | | - * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content |
14 | | - * @prop --padding-bottom: Bottom padding of the content |
15 | | - * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content |
| 12 | + * @prop --ion-content-overflow: Overflow behavior of the scrollable area |
16 | 13 | * |
17 | | - * @prop --keyboard-offset: Keyboard offset of the content |
| 14 | + * @prop --ion-content-padding-top: Top padding of the content |
| 15 | + * @prop --ion-content-padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content |
| 16 | + * @prop --ion-content-padding-bottom: Bottom padding of the content |
| 17 | + * @prop --ion-content-padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content |
18 | 18 | * |
19 | | - * @prop --offset-top: Offset top of the content |
20 | | - * @prop --offset-bottom: Offset bottom of the content |
| 19 | + * @prop --ion-content-transition-cover-background: Background color of the navigation transition cover overlay |
| 20 | + * @prop --ion-content-transition-cover-opacity: Opacity of the navigation transition cover overlay |
| 21 | + * |
| 22 | + * @prop --ion-content-transition-shadow: Box shadow of the navigation transition shadow |
21 | 23 | */ |
22 | | - --background: #{$background-color}; |
23 | | - --color: #{$text-color}; |
24 | | - --padding-top: 0px; |
25 | | - --padding-bottom: 0px; |
26 | | - --padding-start: 0px; |
27 | | - --padding-end: 0px; |
28 | 24 | --keyboard-offset: 0px; |
29 | 25 | --offset-top: 0px; |
30 | 26 | --offset-bottom: 0px; |
31 | | - --overflow: auto; |
32 | 27 |
|
33 | 28 | display: block; |
34 | 29 | position: relative; |
|
59 | 54 |
|
60 | 55 | position: absolute; |
61 | 56 |
|
62 | | - background: var(--background); |
| 57 | + background: var(--ion-content-background); |
63 | 58 | } |
64 | 59 |
|
65 | 60 | .inner-scroll { |
66 | 61 | @include position(calc(var(--offset-top) * -1), 0px, calc(var(--offset-bottom) * -1), 0px); |
67 | 62 | @include padding( |
68 | | - calc(var(--padding-top) + var(--offset-top)), |
69 | | - var(--padding-end), |
70 | | - calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom)), |
71 | | - var(--padding-start) |
| 63 | + calc(var(--ion-content-padding-top) + var(--offset-top)), |
| 64 | + var(--ion-content-padding-end), |
| 65 | + calc(var(--ion-content-padding-bottom) + var(--keyboard-offset) + var(--offset-bottom)), |
| 66 | + var(--ion-content-padding-start) |
72 | 67 | ); |
73 | 68 |
|
74 | 69 | position: absolute; |
75 | 70 |
|
76 | | - color: var(--color); |
| 71 | + color: var(--ion-content-color); |
77 | 72 |
|
78 | 73 | box-sizing: border-box; |
79 | 74 |
|
|
115 | 110 | } |
116 | 111 |
|
117 | 112 | .scroll-y { |
118 | | - overflow-y: var(--overflow); |
| 113 | + overflow-y: var(--ion-content-overflow); |
119 | 114 | overscroll-behavior-y: contain; |
120 | 115 | } |
121 | 116 |
|
122 | 117 | .scroll-x { |
123 | | - overflow-x: var(--overflow); |
| 118 | + overflow-x: var(--ion-content-overflow); |
124 | 119 | overscroll-behavior-x: contain; |
125 | 120 | } |
126 | 121 |
|
|
210 | 205 | width: 100%; |
211 | 206 | height: 100%; |
212 | 207 |
|
213 | | - background: black; |
| 208 | + background: var(--ion-content-transition-cover-background); |
214 | 209 |
|
215 | | - opacity: 0.1; |
| 210 | + opacity: var(--ion-content-transition-cover-opacity); |
216 | 211 | } |
217 | 212 |
|
218 | 213 | .transition-shadow { |
|
222 | 217 | width: 100%; |
223 | 218 | height: 100%; |
224 | 219 |
|
225 | | - box-shadow: inset -9px 0 9px 0 rgba(0, 0, 100, 0.03); |
| 220 | + box-shadow: var(--ion-content-transition-shadow); |
226 | 221 | } |
227 | 222 |
|
228 | 223 | :host(.content-ltr) .transition-shadow { |
|
0 commit comments