Skip to content

Commit c8e8a16

Browse files
committed
スタイルを調整し同階層を表す縦線を追加
1 parent 69c4050 commit c8e8a16

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

src/client/components/SidebarArticles.tsx

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,44 @@ const articleDetailsStyle = css({
178178
"&[open] > summary::before": {
179179
content: "'expand_more'",
180180
},
181-
// nested lists: give visual indentation for hierarchy
181+
// nested lists: draw vertical guide lines inside the padded area
182182
"& ul": {
183183
listStyle: "none",
184184
margin: 0,
185-
paddingLeft: 0,
185+
paddingLeft: getSpace(1),
186186
},
187187
"& ul ul": {
188-
paddingLeft: getSpace(4),
188+
position: "relative",
189+
paddingLeft: getSpace(3),
190+
},
191+
"& ul ul::before": {
192+
content: "''",
193+
position: "absolute",
194+
left: getSpace(3),
195+
top: 0,
196+
bottom: 0,
197+
width: 1,
198+
backgroundColor: Colors.gray20,
199+
},
200+
"& ul ul > li": {
201+
paddingLeft: getSpace(1.5),
189202
},
190203
"& ul ul ul": {
204+
position: "relative",
191205
paddingLeft: getSpace(4),
192206
},
207+
"& ul ul ul::before": {
208+
content: "''",
209+
position: "absolute",
210+
left: getSpace(3),
211+
top: 0,
212+
bottom: 0,
213+
width: 1,
214+
backgroundColor: Colors.gray20,
215+
},
216+
"& ul ul ul > li": {
217+
paddingLeft: getSpace(1.5),
218+
},
193219
});
194220

195221
const articleSummaryStyle = css({

0 commit comments

Comments
 (0)