Skip to content

CSS: drawer-layout.tray

.tray — An painéal taobh in aice leis an bpríomh-ábhar, le rogha cur i bhfeidhm os cionn agus modhnóirí dromchla cosúil le tráid.

Úsáideann suíomh inset-inline-start/inset-inline (ní riamh left/right), mar sin tá -placement-end daingnithe ag an imeall dheireanach i LTR agus RTL.

Inrochtaineacht

Má úsáidtear mar nascleanúint, fill na naisc i <nav> shéamanta agus cuir ainm inacmhainne leo.

Úsáid

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

Samplaí

html
<div class="instui-drawer-layout" open>
  <aside class="tray" aria-label="Course navigation">
    <a class="instui-link" href="#">Modules</a>
  </aside>
  <main class="content" role="region">Main content</main>
</div>

Struchtúr

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;

Modhnóirí

ModhnóirCur síos
.-placement-endDaingnigh an tráid seo ag an deireadh inlíne nuair atá mód os cionn gníomhach.
.-without-borderBain teorann imeall an phainéil.
.-without-shadowBain an ardú nuair atá mód os cionn gníomhach.

Coinníollacha

CineálCeistCur síos
containerpantoken-drawer-layout (max-width: 46em)

Tóicíní a úsáideadh

TokenCineálLuach
--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>#

Gaolmhar