Skip to content

Commit ecfe061

Browse files
committed
fix: word-break n the sidebar optimized. Do not break the ::before element.
This was brought up in #169.
1 parent 970ea6a commit ecfe061

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

otterwiki/static/css/partials/sidebar.css

+15-3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ a.sidebar-toc-6 { padding-left: calc(7 * var(--spacing) - var(--radius) - 13px);
8484
padding-left : calc(2 * var(--spacing) - var(--radius) + 0.5rem);
8585
color: rgba(0,0,0,.7);
8686
padding-top: 0.5rem;
87+
word-break: break-all;
88+
box-sizing: border-box;
89+
}
90+
91+
.sidebarmenu li > div.summary-details {
92+
box-sizing: inherit;
93+
word-break: break-all;
94+
list-style: none;
95+
}
96+
97+
.sidebarmenu li > div.summary-details > a {
98+
word-break: break-all;
8799
}
88100

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

105117
.sidebarmenu details > summary::before {
106-
width: 13px;
118+
width: 1.3rem;
107119
display: inline-block;
108120
content: '▹ ';
109121
vertical-align: text-top;
110122
}
111123

112124
.sidebarmenu details[open] > summary::before {
113-
width: 13px;
125+
width: 1.3rem;
114126
display: inline-block;
115127
content: '▿ ';
116128
}
117129

118130
.sidebar-menu .summary-details::before {
119-
width: 13px;
131+
width: 1.3rem;
120132
display: inline-block;
121133
content: '□ ';
122134
font-size: 0.5rem;

0 commit comments

Comments
 (0)