set up new workflow and migrate to .forgejo dir (#5)
Some checks failed
Deploy / deploy (push) Failing after 39s

Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com>
Reviewed-on: #5
This commit is contained in:
Benjamin Palko 2026-08-11 20:55:29 -04:00
parent c37955c51b
commit f526f5c0aa
99 changed files with 1866 additions and 1470 deletions

View file

@ -1,9 +1,11 @@
### dropdown
Dropdown can open a menu or any other element when the button is clicked
[dropdown docs](https://daisyui.com/components/dropdown/)
#### Class names
- component: `dropdown`
- part: `dropdown-content`
- placement: `dropdown-start`, `dropdown-center`, `dropdown-end`, `dropdown-top`, `dropdown-bottom`, `dropdown-left`, `dropdown-right`
@ -12,20 +14,27 @@ Dropdown can open a menu or any other element when the button is clicked
#### Syntax
Using popover API
```html
<button popovertarget="{id}" style="anchor-name:--{anchor}">{button}</button>
<ul class="dropdown" popover id="{id}" style="position-anchor:--{anchor}">{CONTENT}</ul>
<ul class="dropdown" popover id="{id}" style="position-anchor:--{anchor}">
{CONTENT}
</ul>
```
Using details and summary (only opens/closes on click)
```html
<details class="dropdown">
<summary>Button</summary>
<ul class="dropdown-content">{CONTENT}</ul>
<summary>Button</summary>
<ul class="dropdown-content">
{CONTENT}
</ul>
</details>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/placement class names
- replace `{id}` and `{anchor}` with a unique name
- The content can be any HTML element (not just `<ul>`)