Skip to content

Commit

Permalink
fix: add missing feature of [data-expand]
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed May 22, 2024
1 parent fa0c47a commit babad5e
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions styles/@layouts/mod.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,25 @@ body.layout-simple > aside > nav:only-child {
margin: 0;
}

body.layout-simple > aside:nth-of-type(1)[data-expandable] {
margin-left: -1.5rem;
margin-right: -1.5rem;
grid-area: aside1;
max-height: var(--ly-aside-size-small);
body.layout-simple > aside:nth-of-type(1):is([data-expandable], [data-expand]) {
display: block;
overflow: hidden;
max-height: var(--ly-aside-size-small);
margin-right: -1.5rem;
margin-left: -1.5rem;
grid-area: aside1;
}

body.layout-simple > aside:nth-of-type(1)[data-expand] {
max-height: none;
}

body.layout-simple > aside:nth-of-type(1)[data-expandable]::before {
content: attr(data-expandable);
display: flex;
justify-content: center;
align-items: center;
height: var(--ly-aside-size-small);
align-items: center;
justify-content: center;
content: attr(data-expandable);
cursor: pointer;
}

Expand All @@ -108,11 +112,11 @@ body.layout-simple > aside a {
display: none;
}

body.layout-simple > aside:nth-of-type(1)[data-expandable] {
margin-left: 0;
margin-right: 0;
max-height: none;
body.layout-simple > aside:nth-of-type(1):is([data-expandable], [data-expand]) {
overflow: unset;
max-height: none;
margin-right: 0;
margin-left: 0;
}

body.layout-simple:has(> aside:nth-of-type(1)) {
Expand Down

0 comments on commit babad5e

Please sign in to comment.