Skip to content

CSS: toggle-details

.instui-toggle-details — 회전하는 쉐브론이 있는 스타일이 적용된 네이티브 <details> 디스크로저.

네이티브 <details> 요소를 기반으로 하므로 브라우저가 열기/닫기와 키보드 지원을 처리합니다; CSS는 기본 마커를 숨기고 회전하는 쉐브론만 제공합니다.

Source: toggle-details.css

사용법

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/toggle-details.css";

예제들

html
<details class="instui-toggle-details" open>
  <summary>What ships in this package?</summary>
  Class-based component styles, built from the Instructure tokens, plus a prose layer.
</details>

구조

text
.instui-toggle-details
  summary
flowchart TD n0[".instui-toggle-details"]:::cssdoc-root n1("summary"):::cssdoc-part n0 --> n1 classDef cssdoc-root stroke-width:1px; classDef cssdoc-part stroke-width:1px; classDef cssdoc-slot stroke-width:1px; classDef cssdoc-component stroke-width:1px;

수정자

수정자설명
.-chevron-end요약(summary) 뒤에 쉐브론을 배치하세요.
.-size-largeLarge. -size-lg의 장기형 별칭.
.-size-lg크게(Large).
.-size-sm작음(Small).
.-size-small작음(Small). -size-sm의 장기형 별칭.
.-variant-filled채워진(표면) 변형.

의사 요소

의사 요소설명
::before요약의 디스크로저 쉐브론을 그립니다. 이 마스크된 글리프는 디스크로저가 열리면 아래를 가리키도록 회전합니다.

상태

상태설명
:state(open)

사용된 토큰

Token타입
--instui-color-background-interactive-action-secondary-base<color>LightDarklight-dark(#44709F, #345B84)
--instui-component-toggle-details-content-padding-large<length>1.375rem
--instui-component-toggle-details-content-padding-medium<length>1.125rem
--instui-component-toggle-details-content-padding-small<length>1.125rem
--instui-component-toggle-details-font-family[ <font-family-name> | <generic-font-family> ]#Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif
--instui-component-toggle-details-font-size-large<length>1.25rem
--instui-component-toggle-details-font-size-medium<length>1rem
--instui-component-toggle-details-font-size-small<length>0.875rem
--instui-component-toggle-details-font-weight<integer>400
--instui-component-toggle-details-icon-margin<length>0.375rem
--instui-component-toggle-details-line-height<percentage>150%
--instui-component-toggle-details-text-color<color>LightDarklight-dark(#273540, #ffffff)
--instui-component-toggle-details-toggle-border-radius<length>0.75rem
--instui-component-toggle-details-toggle-padding<length>0.375rem
--instui-icon-chevron-right<image>url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%2018%206-6-6-6%22%2F%3E%3C%2Fsvg%3E')

관련 항목

  • toggle-group — 동일한 디스크로저의 테두리 처리된 그룹화된 형태.