Skip to content

CSS: popover ​

.instui-popover — Elevertta dovddus máŋgaš njoammár [popover]-dovddasi, positioneerad CSS anchor-positioneapmii.

Anchor-positioneapmi lea Chromium-juvvon; @supports-guardda álgguhit mavrra -placement-* galggašii aktivalaš muhto muhu ja gii UA geavahit popoveri beassat ovddaslágan muhtumin maid failašii.

Source: popover.css

Buktáhašvuohta ​

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

Exempla ​

html
<div class="instui-popover -placement-bottom" id="pop-1">
  <div class="instui-heading -level-h4">Gávdnet dát sivvu</div>
  <p class="instui-text -size-sm">Popover lea váttisvuohta buvttadeapmi mii sáhttá geavahit triggeriin. Dát geavahit nugo native <code>popover</code> atributt.</p>
</div>

Structura ​

text
.instui-popover
  heading (component)
  text (component)
    code
flowchart TD n0[".instui-popover"]:::cssdoc-root n1(["heading"]):::cssdoc-component n2(["text"]):::cssdoc-component n3("code"):::cssdoc-part n0 --> n1 n2 --> n3 n0 --> n2 click n1 "/api/css/heading.md" click n2 "/api/css/text.md" classDef cssdoc-root stroke-width:1px; classDef cssdoc-part stroke-width:1px; classDef cssdoc-slot stroke-width:1px; classDef cssdoc-component stroke-width:1px;

Modifisuvnnat ​

ModifisererDescription
.-placement-bottomLea gastta ankaris (anchor) almmu.
.-placement-endLea gastta ankaris njunni (inline‑end).
.-placement-startLea gastta ankaris dehálaš (inline‑start).
.-placement-topLea gastta ankaris ovttas.

Divottat / Kondišuvnnat ​

TypeKysimusDescription
supports(position-area: block-end)—
supports(transition-behavior: allow-discrete)—

Tokenat gaskkalit ​

TokenTypeVaššun
--instui-border-width-sm<length>0.0625rem
--instui-color-background-elevated-surface-base<color>LightDarklight-dark(#ffffff, #171B21)
--instui-color-text-base<color>LightDarklight-dark(#273540, #F2F4F5)
--instui-component-popover-border-color<color>LightDarklight-dark(#8D959F, #6A7883)
--instui-component-popover-border-radius<length>0.75rem
--instui-elevation-abovenone | <shadow>#—
--instui-spacing-space-sm<length>0.5rem

Browser support ​

  • Geavahit CSS anchor-positioneami (position-anchor/position-area) ja njuolite [popover] API:du, beabbá Chromium-juvvon čađa; @supports-guardda ávžžuhit mátkodat inertalaš dahje nannad, gos UA cealkit popoveri beassat ovddaslágan.

Almmuhuvvot komponenttat ​

Dálkkodat ​

  • tooltip — Tooltip lea násttalaš, čađa oahpáid dahje fokus-álggahit anchorejuvvon dovddus.
  • context-view — Context view lea ovddidan anchorejuvvon dovddus mii leat pointer.