Skip to content

Commit

Permalink
fix: word-break n the sidebar optimized. Do not break the ::before el…
Browse files Browse the repository at this point in the history
…ement.

This was brought up in #169.
  • Loading branch information
redimp committed Jan 18, 2025
1 parent 970ea6a commit ecfe061
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions otterwiki/static/css/partials/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ a.sidebar-toc-6 { padding-left: calc(7 * var(--spacing) - var(--radius) - 13px);
padding-left : calc(2 * var(--spacing) - var(--radius) + 0.5rem);
color: rgba(0,0,0,.7);
padding-top: 0.5rem;
word-break: break-all;
box-sizing: border-box;
}

.sidebarmenu li > div.summary-details {
box-sizing: inherit;
word-break: break-all;
list-style: none;
}

.sidebarmenu li > div.summary-details > a {
word-break: break-all;
}

.parent-sidebar-menu > li {
Expand All @@ -103,20 +115,20 @@ a.sidebar-toc-6 { padding-left: calc(7 * var(--spacing) - var(--radius) - 13px);
}

.sidebarmenu details > summary::before {
width: 13px;
width: 1.3rem;
display: inline-block;
content: '▹ ';
vertical-align: text-top;
}

.sidebarmenu details[open] > summary::before {
width: 13px;
width: 1.3rem;
display: inline-block;
content: '▿ ';
}

.sidebar-menu .summary-details::before {
width: 13px;
width: 1.3rem;
display: inline-block;
content: '□ ';
font-size: 0.5rem;
Expand Down

0 comments on commit ecfe061

Please sign in to comment.