Skip to content

Commit 9439d79

Browse files
committed
positions
1 parent 8fec153 commit 9439d79

1 file changed

Lines changed: 21 additions & 17 deletions

File tree

.agent/skills/popover-api/SKILL.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -120,22 +120,26 @@ What our core-css file requires is to add [data-popover] attribute to the popove
120120
from that point controlling position of popover in relation to anchor element is done via adding css class.
121121

122122
Here are classes which are available:
123-
- top
124-
- bottom
125-
- left
126-
- right
127-
- top-left
128-
- top-right
129-
- bottom-left
130-
- bottom-right
131-
- center
132-
- topleft
133-
- topright
134-
- bottomleft
135-
- bottomright
136-
- left-top
137-
- left-bottom
138-
- right-top
139-
- right-bottom
123+
- **top**: Positioned **above** the anchor, horizontally **centered**.
124+
- **bottom**: Positioned **below** the anchor, horizontally **centered**.
125+
- **left**: Positioned to the **left** of the anchor, vertically **centered**.
126+
- **right**: Positioned to the **right** of the anchor, vertically **centered**.
127+
128+
- **top-left**: Positioned **above** the anchor, its **left edge** aligned with the anchor's **left edge**.
129+
- **top-right**: Positioned **above** the anchor, its **right edge** aligned with the anchor's **right edge**.
130+
- **bottom-left**: Positioned **below** the anchor, its **left edge** aligned with the anchor's **left edge**.
131+
- **bottom-right**: Positioned **below** the anchor, its **right edge** aligned with the anchor's **right edge**.
132+
133+
- **center**: Positioned **directly over** the anchor, centered both horizontally and vertically.
134+
135+
- **topleft**: bottom right corner of the poppover touches top left corner of the anchor
136+
- **topright**: bottom left corner of the poppover touches top right corner of the anchor
137+
- **bottomleft**: top right corner of the popover touches bottom left corner of the anchor
138+
- **bottomright**: top left corner of the popover touches bottom right corner of the anchor
139+
140+
- **left-top**: Positioned to the **left** of the anchor, its **top edge** aligned with the anchor's **top edge**.
141+
- **left-bottom**: Positioned to the **left** of the anchor, its **bottom edge** aligned with the anchor's **bottom edge**.
142+
- **right-top**: Positioned to the **right** of the anchor, its **top edge** aligned with the anchor's **top edge**.
143+
- **right-bottom**: Positioned to the **right** of the anchor, its **bottom edge** aligned with the anchor's **bottom edge**.
140144

141145
</position>

0 commit comments

Comments
 (0)