mirror of
https://github.com/picocss/pico.git
synced 2025-11-09 00:13:28 -05:00
only min-content when card has closed details
This commit is contained in:
parent
ea30e5eee7
commit
28b95e4fd5
@ -7,7 +7,6 @@
|
||||
*/
|
||||
|
||||
#{$parent-selector} article {
|
||||
height: min-content;
|
||||
margin-bottom: var(#{$css-var-prefix}block-spacing-vertical);
|
||||
padding: var(#{$css-var-prefix}block-spacing-vertical)
|
||||
var(#{$css-var-prefix}block-spacing-horizontal);
|
||||
@ -15,6 +14,10 @@
|
||||
background: var(#{$css-var-prefix}card-background-color);
|
||||
box-shadow: var(#{$css-var-prefix}card-box-shadow);
|
||||
|
||||
&:not(:has(details[open])) {
|
||||
height: min-content;
|
||||
}
|
||||
|
||||
> header,
|
||||
> footer,
|
||||
> details > summary > header,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user