mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-11 20:08:56 +00:00
A Glow Up for Dialogs That Pop Up (#1927)
* adding visual divider + padding to wa-dialog footers * adding `wa-button`-focused `.shush` to `utils.css`
This commit is contained in:
@@ -130,6 +130,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* dialogs */
|
||||||
|
wa-dialog:has([slot='footer']) [slot='footer'] {
|
||||||
|
border-block-start: var(--wa-border-width-s) solid var(--wa-color-surface-border);
|
||||||
|
flex-grow: 1; /* make footer contents span entire width of dialog */
|
||||||
|
padding-block-start: var(--wa-space-l);
|
||||||
|
}
|
||||||
|
|
||||||
/* anchor headings */
|
/* anchor headings */
|
||||||
.anchor-heading a {
|
.anchor-heading a {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -250,7 +257,6 @@
|
|||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* #endregion */
|
|
||||||
|
|
||||||
/* buttons with icon toggle on hover */
|
/* buttons with icon toggle on hover */
|
||||||
wa-button .icon-hover {
|
wa-button .icon-hover {
|
||||||
@@ -262,6 +268,13 @@
|
|||||||
wa-button:hover .icon-hover {
|
wa-button:hover .icon-hover {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* buttons that are "shushed" (visually muted) by default, but have their full presentation otherwise */
|
||||||
|
wa-button.shush {
|
||||||
|
&:not(:hover):not(active)::part(base) {
|
||||||
|
color: var(--wa-color-text-quiet);
|
||||||
|
}
|
||||||
|
}
|
||||||
/* #endregion */
|
/* #endregion */
|
||||||
|
|
||||||
/* #region resets */
|
/* #region resets */
|
||||||
|
|||||||
Reference in New Issue
Block a user