page { background: #fafaf9; } /* H5 渲染树里没有 page 元素,令牌必须同时声明在真实根节点 body 上,双端按钮高度才一致。 */ page, body { --brand-button-height: 88px; --brand-button-compact-height: 46px; } body { margin: 0; } view, text, image, input, textarea, button { box-sizing: border-box; } button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--brand-button-height); text-align: center; appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; line-height: 1.5; background: transparent; color: inherit; font: inherit; } button::after { border: 0; } image { display: block; } .editor-target-selected { outline: 3px solid #1677ff; outline-offset: -3px; cursor: pointer; } .runtime-state { min-height: 70vh; padding: 80px 32px; color: #78716c; font-size: 28px; text-align: center; } .runtime-state button { margin-top: 24px; } .preview-context { padding: 12px 32px; color: #78716c; background: #fff; border-bottom: 1px solid #eee; font-size: 22px; } /* postcss-pxtransform disable */ /* H5 导航固定在视口底部,滚动页面必须保留真实像素的避让空间。 */ .taro_tabbar_page { box-sizing: border-box; padding-bottom: calc(66px + env(safe-area-inset-bottom)); } @media (min-width: 430px) { html { font-size: 22.933333px !important; background: #e7e5e4; } body { max-width: 430px; margin: 0 auto; } #app { background: #fafaf9; } .taro-tabbar__tabbar, .food-detail .bar, .editorial-detail .bar { width: 430px; left: 50%; right: auto; transform: translateX(-50%); } } /* postcss-pxtransform enable */