Add a details shortcode
This commit is contained in:
@@ -339,3 +339,23 @@ figure {
|
||||
margin: 0 0.25rem 0 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
details {
|
||||
@include bordered-block;
|
||||
padding: 0.5rem 0.5rem 0 0.5rem;
|
||||
|
||||
&[open] {
|
||||
padding-bottom: 0.5rem;
|
||||
|
||||
summary {
|
||||
border-bottom: $standard-border;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
summary {
|
||||
margin: 0 -0.5rem 0 -0.5rem;
|
||||
padding: 0.5rem;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user