mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DropdownMenu component is meant as a way to describe the content of menus.
Syntax:
```
<DropdownMenu as |dm|>
<dm.item class="test">
First
</dm.item>
<dm.divider class="foo" />
<dm.item class="bar">
Second
</dm.item>
</DropdownMenu>
```
18 lines
221 B
SCSS
18 lines
221 B
SCSS
.dropdown-menu {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
|
|
&__item {
|
|
.btn {
|
|
padding: 0.65rem 1rem;
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
&__divider {
|
|
margin: 0rem;
|
|
}
|
|
}
|