mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 19:26:14 -04:00
updated accordian and dropdown to not overlap the arrow, provide enough space for the arrow, and keep the arrow at the top when theres multi-lines for the sumary text.
Reverted back the container padding.
This commit is contained in:
parent
e8bfb763ff
commit
869da59717
4 changed files with 37 additions and 23 deletions
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
#{$parent-selector} details {
|
||||
display: block;
|
||||
margin-bottom: var(#{$css-var-prefix}spacing);
|
||||
margin-block-end: var(#{$css-var-prefix}spacing);
|
||||
|
||||
@if $enable-classes {
|
||||
&.hide-arrow > summary::after {
|
||||
|
@ -16,9 +16,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
&:not(.hide-arrow) > summary {
|
||||
padding-inline-end: calc(var(#{$css-var-prefix}nav-link-spacing-horizontal) * 3.25);
|
||||
}
|
||||
|
||||
summary {
|
||||
position: relative;
|
||||
padding-inline-end: var(#{$css-var-prefix}block-spacing-horizontal);
|
||||
//padding-inline-end: var(#{$css-var-prefix}block-spacing-horizontal);
|
||||
line-height: 1rem;
|
||||
list-style-type: none;
|
||||
cursor: pointer;
|
||||
|
@ -91,13 +95,11 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
//!
|
||||
//!
|
||||
//!
|
||||
|
||||
// Open
|
||||
&[open] {
|
||||
> summary {
|
||||
margin-bottom: var(#{$css-var-prefix}spacing);
|
||||
margin-block-end: var(#{$css-var-prefix}spacing);
|
||||
|
||||
&:not([role]) {
|
||||
&:not(:focus) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue