mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 01:30:30 +08:00

One of the big advantages is a nicer menu on mobile. This commit also fixes a bug where the close modal action was called for any destroyed d-menu trigger, even if this specific menu was not expanding, which means it was closing a different modal than its own modal, given we can only have one modal at a time.
37 lines
490 B
SCSS
37 lines
490 B
SCSS
.fk-d-menu-modal {
|
|
&__grip {
|
|
position: absolute;
|
|
top: 2.5px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--primary-medium);
|
|
height: 5px;
|
|
width: 15vw;
|
|
max-width: 100px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.d-modal__body {
|
|
padding: 1em 0;
|
|
}
|
|
|
|
h3 {
|
|
padding-top: 0.25em;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
li a:focus-visible {
|
|
outline: 0;
|
|
}
|
|
}
|
|
|
|
li > .btn,
|
|
li > a {
|
|
padding: 0.75em 1rem;
|
|
}
|
|
|
|
li > a {
|
|
display: block;
|
|
}
|
|
}
|