Skip to content

CSS: gap

.--gap-md — ngā taputapu Flex/grid gap i runga i te rārangi wāhenga, he kaituhi poto (--gap-sm), he kaituhi roa (--gap-small). Ka taea te whakamahi noa, ka honohono rānei ki runga i tētahi kōwae (.instui-view.--gap-sm) — ko ngā kōwae e tautuhia kē ana i ō rātou ake gap mā tētahi tohu motuhake mō te kōwae, ka taea te whakakapi.

Source: index.ts

Ngā Whakamahi

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

Whakaaturanga

Ngā tauira

html
<div class="--display-flex --gap-sm">
  <span>One</span>
  <span>Two</span>
</div>

Ngā Kaitī

KaiwhakatikatikaWhakamārama
.--gap-mdKa whakamahia te tohu wāhenga waenganui hei te āputa.
.--gap-*Ngā taputapu āputa mō ngā kaituhi wāhenga poto me te roa.

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