Skip to content

CSS: spacing

.--p-md — Ngā taputapu tahua me te tāpai — .--m<side>-<step> / .--margin-<side>-<step> me .--p<side>-<step> / .--padding-<side>-<step> i runga i te taumata wāhi (ngā taha t/b/s/e/x/y, kāore rānei, tuhituhi poto, tuhituhi roa rānei — hei tauira --mb-sm me --margin-bottom-small he ture kotahi; ka taea hoki e te tahua te tango i auto). Ka taea te whakamahi mā te tuku anake, mā te hono rānei ki tētahi wāhanga (hei tauira class="instui-view --mb-sm").

Source: index.ts

Ngā Whakamahi

css
@import "@pantoken/components/utilities.css";

Whakaaturanga

Ngā tauira

html
<div class="--p-md --mt-lg">Padded box with a large top margin.</div>

Ngā Kaitī

KaiwhakatikatikaWhakamārama
.--p-mdKa whakauru i te tāpai waenganui ki ngā taha katoa.
.--m*Ngā taputapu tahua mō ngā tuhituhi poto, tuhituhi-roa tawhito, me ngā tuhituhi-roa katoa.
.--p*Ngā taputapu tāpai mō ngā tuhituhi poto, tuhituhi-roa tawhito, me ngā tuhituhi-roa katoa.

Ngā tohu i whakamahia

TokenMomoUara
--instui-component-shared-tokens-spacing-general-space-none<length>0rem
--instui-spacing-space-lg<length>1rem
--instui-spacing-space-md<length>0.75rem
--instui-spacing-space-sm<length>0.5rem
--instui-spacing-space-xl<length>1.5rem
--instui-spacing-space-xs<length>0.25rem
--instui-spacing-space2xl<length>2rem
--instui-spacing-space2xs<length>0.125rem