Skip to content

CSS: drawer-layout.tray ​

.tray — He papa taha i te taha o te ihirangi matua, me ngā whakarerekētanga kōwhiringa pērā i te ūru (overlay) me ngā mata rite-ipu (tray-like).

Ko te tūnga e whakamahi ana i inset-inline-start/inset-inline (kāore e whakamahi i left/right), nō reira ka taurite a -placement-end ki te pito hiku tūturu i roto i te LTR me te RTL.

Wātea mō te katoa ​

Mēnā ka whakamahia hei whakatere (navigation), whakawhiwhia ngā hononga ki roto i tētahi <nav> ā-tikanga, ā, hoatu he ingoa e taea te uru ai ki te katoa.

Ngā Whakamahi ​

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/drawer-layout.tray.css";

Ngā tauira ​

html
<div class="instui-drawer-layout" open>
  <aside class="tray" aria-label="Course navigation">
    <a class="instui-link" href="#">Ngā Kōwae</a>
  </aside>
  <main class="content" role="region">Ihirangi matua</main>
</div>

Hanganga ​

text
@scope (@component drawer-layout)
  .tray
    ‹content›
flowchart TD subgraph sg0 ["@scope (@component drawer-layout)"] n1(".tray"):::cssdoc-part n2[/"‹content›"/]:::cssdoc-slot end n1 --> n2 classDef cssdoc-root stroke-width:1px; classDef cssdoc-part stroke-width:1px; classDef cssdoc-slot stroke-width:1px; classDef cssdoc-component stroke-width:1px;

Ngā Kaitī ​

KaiwhakatikatikaWhakamārama
.-placement-endTautokohia tēnei rīhi ki te inline-end ina kua whakahoatuhia te aratau ūru (overlay).
.-without-borderTangohia te tāpare (border) o te mata o te panui.
.-without-shadowWhakaitia te pikinga (elevation) ina whakahoatuhia te aratau ūru (overlay).

Ngā Conditions ​

MomoPātaiWhakamārama
containerpantoken-drawer-layout (max-width: 64em)—

Ngā tohu i whakamahia ​

TokenMomoUara
--drawer-layout-tray-width——
--instui-border-width-sm<length>0.0625rem
--instui-color-background-elevated-surface-base<color>LightDarklight-dark(#ffffff, #171B21)
--instui-color-stroke-base<color>LightDarklight-dark(#8D959F, #6A7883)
--instui-component-tray-width-xs<length>16em
--instui-component-tray-z-index<integer>9999
--instui-elevation-topmostnone | <shadow>#—

Hono ​