@@ -200,7 +200,8 @@ export const container = style([
200200 } ) ,
201201 selectors : {
202202 [ `${ android } &` ] : {
203- padding : "0 1rem" ,
203+ paddingLeft : globalVars . appBar . containerPadding ,
204+ paddingRight : globalVars . appBar . containerPadding ,
204205 } ,
205206 } ,
206207 } ,
@@ -211,16 +212,13 @@ export const left = style([
211212 f . fullHeight ,
212213 appBarMinHeight ,
213214 {
215+ paddingRight : globalVars . appBar . itemGap ,
214216 ":empty" : {
215217 display : "none" ,
216218 } ,
217219 selectors : {
218- [ `${ android } &` ] : {
219- paddingRight : "1rem" ,
220- } ,
221220 [ `${ cupertino } &` ] : {
222- paddingLeft : "1rem" ,
223- paddingRight : "1rem" ,
221+ paddingLeft : globalVars . appBar . containerPadding ,
224222 } ,
225223 } ,
226224 } ,
@@ -237,8 +235,8 @@ export const backButton = style([
237235 opacity : "300ms" ,
238236 color : globalVars . appBar . iconColorTransitionDuration ,
239237 } ) ,
240- padding : ".5rem" ,
241- margin : "-.5rem" ,
238+ padding : globalVars . appBar . hitSlop ,
239+ margin : `calc(-1 * ${ globalVars . appBar . hitSlop } )` ,
242240 ":active" : {
243241 opacity : "0.2" ,
244242 transition : transitions ( {
@@ -254,8 +252,11 @@ export const closeButton = style([backButton]);
254252export const center = style ( [ f . flexAlignCenter , f . flex1 , appBarMinHeight ] ) ;
255253
256254export const centerMain = style ( {
257- width : vars . appBar . center . mainWidth ,
255+ display : "flex" ,
258256 color : globalVars . appBar . textColor ,
257+ fontSize : globalVars . appBar . fontSize ,
258+ lineHeight : globalVars . appBar . lineHeight ,
259+ fontWeight : "bold" ,
259260 transition : transitions ( {
260261 height : globalVars . appBar . heightTransitionDuration ,
261262 color : globalVars . appBar . textColorTransitionDuration ,
@@ -264,20 +265,15 @@ export const centerMain = style({
264265 [ `${ android } &` ] : {
265266 width : "100%" ,
266267 justifyContent : "flex-start" ,
267- fontSize : "1.125rem" ,
268- lineHeight : "1.5" ,
269- fontWeight : "bold" ,
270268 boxSizing : "border-box" ,
271269 } ,
272270 [ `${ cupertino } &` ] : {
271+ width : vars . appBar . center . mainWidth ,
273272 position : "absolute" ,
274- display : "flex" ,
275273 alignItems : "center" ,
276274 justifyContent : "center" ,
277275 textAlign : "center" ,
278276 fontFamily : "-apple-system, BlinkMacSystemFont" ,
279- fontWeight : "bold" ,
280- fontSize : "1.125rem" ,
281277 left : "50%" ,
282278 transform : "translate(-50%)" ,
283279 height : globalVars . appBar . height ,
@@ -296,9 +292,9 @@ export const centerMainEdge = style([
296292 f . cursorPointer ,
297293 {
298294 left : "50%" ,
299- height : "1.25rem" ,
295+ height : globalVars . appBar . fontSize ,
300296 transform : "translate(-50%)" ,
301- maxWidth : "5rem" ,
297+ maxWidth : `calc( ${ globalVars . appBar . fontSize } * 5)` ,
302298 display : "none" ,
303299 width : vars . appBar . center . mainWidth ,
304300 selectors : {
@@ -326,17 +322,13 @@ export const right = style([
326322 f . posRel ,
327323 appBarMinHeight ,
328324 {
329- marginLeft : "auto" ,
325+ paddingLeft : globalVars . appBar . itemGap ,
330326 ":empty" : {
331327 display : "none" ,
332328 } ,
333329 selectors : {
334- [ `${ android } &` ] : {
335- paddingLeft : "1rem" ,
336- } ,
337330 [ `${ cupertino } &` ] : {
338- paddingLeft : "1rem" ,
339- paddingRight : "1rem" ,
331+ paddingRight : globalVars . appBar . containerPadding ,
340332 } ,
341333 } ,
342334 } ,
0 commit comments