탐색

v2.1.0
탐색

독

반투명 유리 트레이에 놓인 실행 항목의 줄로, 포인터 쪽이 렌즈처럼 커집니다.

이 페이지의 내용

독은 반투명 유리 트레이에 실행 항목을 한 줄로 늘어놓은 컴포넌트입니다. 각 항목은 이미지나 아이콘을 담은 정사각형 타일이며 링크나 버튼으로 동작합니다. 포인터를 올리면 타일이 렌즈를 댄 듯 커집니다. 포인터 아래의 타일은 크기가 절반만큼 늘어나고, 양옆의 첫 번째 타일은 4분의 1보다 조금 더, 두 번째 타일은 10분의 1만큼 커져 줄 전체가 포인터 쪽으로 부드럽게 휘어 보입니다. 타일 위에는 잉크 색상의 레이블이 떠오르고, 현재 항목은 타일 아래의 점으로 표시합니다. 이 동작은 모두 CSS로 구현합니다. :hover, 인접 형제 결합자, :has()로 이웃 타일을 찾으므로 스크립트로 포인터 위치를 측정할 필요가 없습니다.

독

<nav class="dock" aria-label="Spaces">  <a class="dock-item" href="#harbor" aria-current="page">    <img class="dock-image" src="/demo/harbor.svg" alt><span class="dock-label">Harbor</span>  </a>  <a class="dock-item" href="#dunes">    <img class="dock-image" src="/demo/dunes.svg" alt><span class="dock-label">Dunes</span>  </a>  <a class="dock-item" href="#pines">    <img class="dock-image" src="/demo/pines.svg" alt><span class="dock-label">Pines</span>  </a>  <a class="dock-item" href="#lighthouse">    <img class="dock-image" src="/demo/lighthouse.svg" alt><span class="dock-label">Lighthouse</span>  </a>  <span class="dock-divider" role="separator" aria-orientation="vertical"></span>  <button type="button" class="dock-item">    <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">      <circle cx="8.75" cy="8.75" r="5.75" /><path d="M12.8159 12.8159L17.5 17.5" />    </svg><span class="dock-label">Search</span>  </button>  <button type="button" class="dock-item">    <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">      <rect x="2.5" y="2.9167" width="15" height="4.1667" rx="1" /><path d="M4.1667 7.0833L4.1667 15.8333A1.25 1.25 0 0 0 5.4167 17.0833L14.5833 17.0833A1.25 1.25 0 0 0 15.8333 15.8333L15.8333 7.0833" /><path d="M7.5 10.4167L12.5 10.4167" />    </svg><span class="dock-label">Archive</span>  </button></nav>
import SearchIcon from '@master/icons-react/native/20/soft/search'import ArchiveIcon from '@master/icons-react/native/20/soft/archive'<nav className="dock" aria-label="Spaces">  <a className="dock-item" href="#harbor" aria-current="page">    <img className="dock-image" src="/demo/harbor.svg" alt="" /><span className="dock-label">Harbor</span>  </a>  <a className="dock-item" href="#dunes">    <img className="dock-image" src="/demo/dunes.svg" alt="" /><span className="dock-label">Dunes</span>  </a>  <a className="dock-item" href="#pines">    <img className="dock-image" src="/demo/pines.svg" alt="" /><span className="dock-label">Pines</span>  </a>  <a className="dock-item" href="#lighthouse">    <img className="dock-image" src="/demo/lighthouse.svg" alt="" /><span className="dock-label">Lighthouse</span>  </a>  <span className="dock-divider" role="separator" aria-orientation="vertical"></span>  <button type="button" className="dock-item">    <SearchIcon className="icon" /><span className="dock-label">Search</span>  </button>  <button type="button" className="dock-item">    <ArchiveIcon className="icon" /><span className="dock-label">Archive</span>  </button></nav>
<script>  import SearchIcon from '@master/icons-svelte/native/20/soft/search'  import ArchiveIcon from '@master/icons-svelte/native/20/soft/archive'</script><nav class="dock" aria-label="Spaces">  <a class="dock-item" href="#harbor" aria-current="page">    <img class="dock-image" src="/demo/harbor.svg" alt><span class="dock-label">Harbor</span>  </a>  <a class="dock-item" href="#dunes">    <img class="dock-image" src="/demo/dunes.svg" alt><span class="dock-label">Dunes</span>  </a>  <a class="dock-item" href="#pines">    <img class="dock-image" src="/demo/pines.svg" alt><span class="dock-label">Pines</span>  </a>  <a class="dock-item" href="#lighthouse">    <img class="dock-image" src="/demo/lighthouse.svg" alt><span class="dock-label">Lighthouse</span>  </a>  <span class="dock-divider" role="separator" aria-orientation="vertical"></span>  <button type="button" class="dock-item">    <SearchIcon class="icon" /><span class="dock-label">Search</span>  </button>  <button type="button" class="dock-item">    <ArchiveIcon class="icon" /><span class="dock-label">Archive</span>  </button></nav>
<script setup>import SearchIcon from '@master/icons-vue/native/20/soft/search'import ArchiveIcon from '@master/icons-vue/native/20/soft/archive'</script><template>  <nav class="dock" aria-label="Spaces">    <a class="dock-item" href="#harbor" aria-current="page">      <img class="dock-image" src="/demo/harbor.svg" alt><span class="dock-label">Harbor</span>    </a>    <a class="dock-item" href="#dunes">      <img class="dock-image" src="/demo/dunes.svg" alt><span class="dock-label">Dunes</span>    </a>    <a class="dock-item" href="#pines">      <img class="dock-image" src="/demo/pines.svg" alt><span class="dock-label">Pines</span>    </a>    <a class="dock-item" href="#lighthouse">      <img class="dock-image" src="/demo/lighthouse.svg" alt><span class="dock-label">Lighthouse</span>    </a>    <span class="dock-divider" role="separator" aria-orientation="vertical"></span>    <button type="button" class="dock-item">      <SearchIcon class="icon" /><span class="dock-label">Search</span>    </button>    <button type="button" class="dock-item">      <ArchiveIcon class="icon" /><span class="dock-label">Archive</span>    </button>  </nav></template>
포인터를 독 위에서 움직이거나 Tab 키로 독에 포커스를 옮겨 보세요.

#렌즈 효과

타일의 기본 크기는 40px입니다. 포인터 아래의 타일은 60px, 양옆의 첫 번째 타일은 51px, 두 번째 타일은 44px이 됩니다. --dock-magnify로 가장 큰 크기를 설정하면 나머지 크기는 그 값에 따라 정해집니다. 변형 효과 대신 타일의 실제 크기가 커지므로 타일이 서로 겹치지 않고 포인터 주변에서 공간을 넓히며 트레이도 그만큼 넓어집니다. 타일은 트레이 바닥을 기준으로 위쪽 가장자리를 넘어 커지며, 테마의 이징을 따라 부드럽게 전환됩니다. 각 타일의 반응 영역은 이웃 타일과의 간격 중 절반까지 뻗어 있어 포인터가 타일 사이를 지날 때도 렌즈 효과가 이어집니다.

렌즈 효과는 호버를 지원하는 포인터에서 동작합니다. 터치 화면에서는 40px 타일이 한 줄로 나열되며, 각 타일은 간격과 트레이 바닥을 포함해 46×48px의 조작 영역이 됩니다. 동작 줄이기 설정이 켜져 있으면 타일 크기는 그대로 유지되며 레이블은 여전히 표시됩니다. 독에 타일을 배치할 공간이 부족하면 모든 타일이 정사각형을 유지한 채 작아집니다.

#타일

타일은 살짝 떠 있는 표면으로, 한 변 길이의 절반 크기인 아이콘이나 타일을 가득 채우는 dock-image를 담습니다. 이미지는 alt를 비워 둡니다. 레이블이 실행 항목의 이름을 제공하기 때문입니다. 타일의 모서리 반경은 한 변 길이의 4분의 1이므로 40px 컨트롤에서는 10px입니다. 트레이의 모서리 반경은 여기에 8px의 안쪽 여백을 더한 값이므로 모서리에서도 두 곡선 사이의 간격이 일정합니다.

링크로 된 실행 항목이 현재 위치를 가리키면 aria-current="page"를 지정합니다. 패널을 여는 등 무언가를 켜는 버튼에는 aria-pressed를 지정합니다. 두 경우 모두 타일 아래에 잉크 색상의 점을 표시합니다. 버튼으로 구성된 독에는 role="group"과 이름을 지정하세요.

토글

<div class="dock" id="panels" role="group" aria-label="Panels">  <button type="button" class="dock-item" aria-pressed="true">    <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">      <path d="M2.5 6.0417C2.5 5.7917 2.6667 5.589 2.9583 5.4583L9.4167 2.553Q10 2.2917 10.5833 2.553L17.0417 5.4583C17.3333 5.589 17.5 5.7917 17.5 6.0417C17.5 6.2917 17.3333 6.4943 17.0417 6.625L10.5833 9.5303Q10 9.7917 9.4167 9.5303L2.9583 6.625C2.6667 6.4943 2.5 6.2917 2.5 6.0417Z" /><path d="M2.5 10C2.5 10.25 2.6667 10.4527 2.9583 10.5833L9.4167 13.4886Q10 13.75 10.5833 13.4886L17.0417 10.5833C17.3333 10.4527 17.5 10.25 17.5 10" /><path d="M2.5 13.9583C2.5 14.2083 2.6667 14.411 2.9583 14.5417L9.4167 17.447Q10 17.7083 10.5833 17.447L17.0417 14.5417C17.3333 14.411 17.5 14.2083 17.5 13.9583" />    </svg><span class="dock-label">Layers</span>  </button>  <button type="button" class="dock-item" aria-pressed="false">    <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">      <path d="M4.25 3.5L15.75 3.5A1.25 1.25 0 0 1 17 4.75L17 12.25A1.25 1.25 0 0 1 15.75 13.5L9.3379 13.5A1.25 1.25 0 0 0 8.7081 13.6703L4.8798 15.9034A1.25 1.25 0 0 1 3 14.8237L3 4.75A1.25 1.25 0 0 1 4.25 3.5Z" />    </svg><span class="dock-label">Comments</span>  </button>  <button type="button" class="dock-item" aria-pressed="false">    <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">      <path d="M3.9532 10.7535Q4.119 12.0422 4.7999 13.1487Q5.559 14.3826 6.7952 15.1379Q8.0313 15.8933 9.4756 16.0059A6.0357 6.0357 0 0 0 15.6598 11.9443Q16.1302 10.5741 15.9281 9.1396A6.0358 6.0358 0 0 0 10.6259 3.9793Q9.1864 3.8162 7.8295 4.3235Q6.6125 4.7786 5.6902 5.6937L3.3143 7.9822A0.626 0.626 0 0 1 3.0069 8.1185Q2.7352 8.0852 2.5333 7.8834Q2.3315 7.6815 2.2982 7.4098A0.6257 0.6257 0 0 1 2.4829 7.0501L4.8098 4.8063Q5.923 3.7019 7.3917 3.1527Q9.0294 2.5404 10.7666 2.7372Q12.5039 2.9341 13.963 3.8974A7.2849 7.2849 0 0 1 16.8422 12.3501Q16.2744 14.0038 15.0186 15.2202A7.2846 7.2846 0 0 1 6.1434 16.2045Q4.6515 15.2929 3.7353 13.8038Q2.9135 12.4683 2.7134 10.9131A0.625 0.625 0 0 1 3.9257 10.6341A0.6251 0.6251 0 0 1 3.9532 10.7535Z" fill="currentColor" stroke="none" fill-rule="evenodd" /><path d="M2.9167 2.9167L2.9167 7.3A0.2 0.2 0 0 0 3.1167 7.5L7.5 7.5" /><path d="M10 5.8333L10 9.893A0.2 0.2 0 0 0 10.0891 10.0594L12.5 11.6667" />    </svg><span class="dock-label">History</span>  </button>  <span class="dock-divider" role="separator" aria-orientation="vertical"></span>  <button type="button" class="dock-item">    <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">      <path d="M3 5.5L5 5.5" /><circle cx="7" cy="5.5" r="2" /><path d="M9 5.5L17 5.5" /><path d="M3 14.5L11 14.5" /><circle cx="13" cy="14.5" r="2" /><path d="M15 14.5L17 14.5" />    </svg><span class="dock-label">Settings</span>  </button></div><script>document.querySelectorAll('#panels [aria-pressed]').forEach(function (button) {  button.addEventListener('click', function () {    button.setAttribute('aria-pressed', button.getAttribute('aria-pressed') === 'true' ? 'false' : 'true')  })})</script>
타일을 눌러 해당 패널을 표시하거나 숨기세요.

dock-divider는 짧고 가는 선으로 그룹을 구분합니다. 렌즈 효과는 이 구분선을 건너뛰고 이어집니다.

#배치

독의 위치는 페이지에서 정합니다. 보통 화면 하단 중앙의 전용 영역에 배치하거나 fixed 또는 sticky 유틸리티로 그 위치에 고정합니다. 커진 타일과 레이블이 들어갈 수 있도록 독 위에 약 48px의 공간을 남겨 두세요.

#접근성

  • 실행 항목이 페이지나 위치를 가리키는 링크라면 aria-label이 지정된 nav로 감싸세요. 버튼으로 구성된 독에는 role="group"과 레이블을 지정하세요.
  • 레이블은 각 실행 항목의 접근 가능한 이름입니다. 포인터를 올리거나 키보드로 포커스를 옮기기 전까지는 보이지 않지만, 페이지에 남아 있어 스크린 리더가 읽을 수 있습니다.
  • 모든 실행 항목은 Tab 키로 포커스를 받을 수 있으며, 포커스를 받으면 레이블과 포커스 윤곽선이 표시됩니다.
  • 실행 항목의 이름을 이미지에만 넣지 마세요. 레이블이 실행 항목의 유일한 텍스트입니다.

#클래스

클래스설명
dock높이 56px의 반투명 유리 질감을 낸 트레이입니다. aria-label이 있는 nav 또는 role="group"이 지정된 div에 적용합니다. 타일은 트레이 하단에 맞춰 배치되며, 커지면 위쪽 가장자리를 넘어갑니다. 트레이의 위치는 페이지에서 정합니다.
dock-item실행 항목은 링크 또는 버튼입니다. 아이콘이나 dock-image를 담은 한 변 40px의 떠 있는 정사각형 타일이며, 이름은 dock-label에 표시합니다. 포인터를 올리면 해당 타일은 50% 커지고 양옆의 타일은 두 개씩 그보다 적게 확대됩니다.
dock-image타일을 가득 채우는 이미지의 alt는 비워 두세요. 실행 항목의 이름은 레이블로 제공합니다.
dock-label타일에 포인터를 올리거나 타일이 포커스를 받으면 타일 위에 실행 항목의 이름이 전경색으로 표시됩니다. 접근 가능한 이름으로도 쓰이므로 화면에 보이지 않을 때도 페이지에 남습니다.
dock-divider실행 항목 그룹 사이의 짧고 아주 얇은 구분선입니다. role="separator"와 aria-orientation="vertical"을 지정합니다. 확대 효과는 이 구분선을 건너뜁니다.

#사용자 지정 속성

속성기본값설명
--dock-size2.5rem타일의 기본 한 변 길이.
--dock-magnify1.5포인터 아래 타일이 원래 크기의 몇 배로 커지는지 지정합니다. 이웃 타일은 그 증가량의 약 1/2과 1/6만큼 커집니다
--dock-inset8px타일과 트레이 가장자리 사이 간격. 트레이 모서리 반경은 타일 모서리 반경에 이 안쪽 여백을 더한 값입니다.
--dock-gap6px두 타일 사이 간격
--dock-colorvar(--color-surface-floating)유리에 입히는 색상

#소스

@master/ui/components/dock.css
/* * Dock: a row of launchers that swell toward the pointer. * The dock is a tray of frosted glass, the tab bar's floating pane, holding square tiles: a raised sheet with an * icon, or a picture. The tile under the pointer grows by half and the two on each side of it by less, so the * row opens around the pointer like a lens. The tiles grow in size, not by a transform, so their neighbors move * apart instead of being covered; they grow upward from the tray's foot and over its top edge. * The growth needs a pointer that hovers and is left out with reduced motion; the dock is then a plain row. * A label in ink rises over the tile under the pointer or the keys, and a dot under a tile marks the current one. * Geometry: 40px tiles with the control's 10px corner, 8px from the tray's edge, so the tray is 56px tall, a * bar's height, and its corner is the tile's corner plus that inset. The dock places nothing: the page puts it * where it goes, usually centered along the foot of a screen. */@layer components.ui {  .dock {    --dock-size: 2.5rem;    --dock-inset: 8px;    --dock-gap: 6px;    --dock-magnify: 1.5;    --dock-color: var(--color-surface-floating);    --surface-color: var(--dock-color);    display: inline-flex;    align-items: flex-end;    gap: var(--dock-gap);    box-sizing: border-box;    max-width: 100%;    height: calc(var(--dock-size) + var(--dock-inset) * 2);    margin: 0;    padding: var(--dock-inset);    border-radius: calc(var(--dock-size) * .25 * var(--corner-scale) + var(--dock-inset));    corner-shape: var(--corner-shape);    background: color-mix(in oklab, var(--dock-color) 78%, transparent);    box-shadow: var(--shadow-floating);    backdrop-filter: blur(16px) saturate(1.7);    vertical-align: bottom;    @media (prefers-reduced-transparency: reduce) {      background: var(--dock-color);      backdrop-filter: none;    }    @media (forced-colors: active) {      outline: 1px solid CanvasText;      outline-offset: -1px;      background: Canvas;    }  }  /*   * A launcher: a link or a button, square, as large as the dock's size times its own scale. Its corner and   * its icon grow with it, so a swollen tile is the same shape, only nearer. Where the dock has less room than   * its tiles ask for, they all give some of it up and stay square.   */  .dock-item {    --dock-scale: 1;    --icon-size: 50%;    position: relative;    display: grid;    flex: 0 1 auto;    place-items: center;    width: calc(var(--dock-size) * var(--dock-scale));    min-width: 0;    aspect-ratio: 1;    margin: 0;    padding: 0;    border: 0;    /* A quarter of its side: the control's 10px corner at 40px, and the same shape at any size. */    border-radius: calc(25% * var(--corner-scale));    corner-shape: var(--corner-shape);    @apply --surface-sheet;    color: var(--color-text-strong);    box-shadow: var(--shadow-raised);    font: inherit;    text-decoration: none;    appearance: none;    cursor: pointer;    touch-action: manipulation;    user-select: none;    -webkit-user-select: none;    -webkit-tap-highlight-color: transparent;    transform-origin: bottom;    transition-property: width, scale;    transition-duration: var(--duration-base);    transition-timing-function: var(--easing-glide);    /* The pointer's reach: the tile and half the gap on each side, down to the tray's foot, so the lens holds       while the pointer crosses from one tile to the next. It is also a finger's target, 46 by 48px at rest. */    &::before {      content: '';      position: absolute;      inset: 0 calc(var(--dock-gap) / -2) calc(-1 * var(--dock-inset));    }    &:active:not(:disabled, [aria-disabled="true"]) {      scale: .92;      transition-duration: var(--duration-base), var(--duration-press);    }    &:focus-visible {      @apply --focus-ring;    }    /*     * The current one: a dot of ink under the tile, in the middle of the tray's inset. A rim of the tray keeps it     * apart from the focus ring it crosses.     */    &:is([aria-current]:not([aria-current="false"]), [aria-pressed="true"])::after {      content: '';      position: absolute;      bottom: calc(var(--dock-inset) / -2 - 2px);      left: calc(50% - 2px);      z-index: 1;      width: 4px;      height: 4px;      border-radius: 999px;      corner-shape: round;      background: var(--color-text-strong);    }    &:focus-visible::after {      box-shadow: 0 0 0 2px var(--dock-color);    }    &:is(:disabled, [aria-disabled="true"]) {      cursor: not-allowed;      opacity: .5;    }    @media (prefers-reduced-motion: reduce) {      &:active:not(:disabled, [aria-disabled="true"]) {        scale: none;      }    }    @media (forced-colors: active) {      outline: 1px solid ButtonText;      outline-offset: -1px;      &:focus-visible {        outline: 2px solid Highlight;        outline-offset: 2px;      }      &:is(:disabled, [aria-disabled="true"]) {        outline-color: GrayText;        color: GrayText;      }      /* As heavy as the dot's own rule, or its ink would turn to Canvas and the current tile lose its mark. */      &:is([aria-current]:not([aria-current="false"]), [aria-pressed="true"])::after {        background: CanvasText;      }    }  }  /*   * The lens. The tile under the pointer takes the full magnification, the next one on each side a little over   * half of it and the one after that a sixth, so the row bends smoothly instead of stepping. A divider is   * stepped over, as if it were not there. Only with a pointer that hovers, and not with reduced motion.   */  @media (hover: hover) and (prefers-reduced-motion: no-preference) {    .dock-item {      &:hover {        --dock-scale: var(--dock-magnify);      }      &:is(        .dock-item:hover + .dock-item,        .dock-item:hover + .dock-divider + .dock-item,        .dock-item:has(+ .dock-item:hover),        .dock-item:has(+ .dock-divider + .dock-item:hover)      ) {        --dock-scale: calc(1 + (var(--dock-magnify) - 1) * .55);      }      &:is(        .dock-item:hover + .dock-item + .dock-item,        .dock-item:hover + .dock-divider + .dock-item + .dock-item,        .dock-item:hover + .dock-item + .dock-divider + .dock-item,        .dock-item:has(+ .dock-item + .dock-item:hover),        .dock-item:has(+ .dock-divider + .dock-item + .dock-item:hover),        .dock-item:has(+ .dock-item + .dock-divider + .dock-item:hover)      ) {        --dock-scale: calc(1 + (var(--dock-magnify) - 1) * .18);      }    }  }  /* A picture that fills the tile, with a faint inward edge so a pale one keeps its shape. */  .dock-image {    position: absolute;    inset: 0;    width: 100%;    height: 100%;    border-radius: inherit;    corner-shape: inherit;    object-fit: cover;    outline: 1px solid var(--color-line-image);    outline-offset: -1px;  }  /*   * The name of a launcher, in ink over the tile while it is under the pointer or has focus. It is the tile's   * accessible name too, so it stays in the page while it is unseen.   */  .dock-label {    position: absolute;    bottom: calc(100% + 8px);    left: 50%;    padding: .3125rem .5rem;    border-radius: calc((var(--radius-chip) + 1px) * var(--corner-scale));    corner-shape: var(--corner-shape);    background: var(--color-surface-tip);    color: light-dark(var(--color-text-inverse), var(--color-text-strong));    box-shadow: var(--shadow-tip);    font: 400 .75rem/1.35 var(--font-family-sans);    font-feature-settings: inherit;    white-space: nowrap;    opacity: 0;    translate: -50% 2px;    pointer-events: none;    transition-property: opacity, translate;    transition-duration: var(--duration-quick);    transition-timing-function: var(--easing-glide);    /* A bridge over the 8px between the label and its tile, so a pointer crossing it still holds the tile. */    &::after {      content: '';      position: absolute;      inset: 100% 0 -8px;    }    @media (forced-colors: active) {      outline: 1px solid CanvasText;      outline-offset: -1px;    }  }  .dock-item:focus-visible .dock-label {    opacity: 1;    translate: -50% 0;  }  /*   * Shown by the pointer, the label takes the pointer too: it lies inside the tile, so moving onto it to read a long   * name keeps the tile hovered and the label where it is (WCAG 1.4.13). Unseen, it lets the pointer through.   */  @media (hover: hover) {    .dock-item:hover .dock-label {      opacity: 1;      translate: -50% 0;      pointer-events: auto;    }  }  @media (prefers-reduced-motion: reduce) {    .dock-label {      translate: -50% 0;    }  }  /* A hairline between groups of launchers, standing in the middle of the tray. */  .dock-divider {    flex: none;    align-self: center;    width: 1px;    height: calc(var(--dock-size) * .6);    margin: 0 2px;    border: 0;    background: var(--color-line-divider);    @media (forced-colors: active) {      background: CanvasText;    }  }}