Skip to content

Commit 752fbe1

Browse files
committed
finetune tcolorbox with multiple itemizations
1 parent 46bccb5 commit 752fbe1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

css/ar5iv.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,9 +1442,21 @@ svg foreignObject > .ltx_foreignobject_container {
14421442
width: inherit !important;
14431443
line-height: 1;
14441444
}
1445-
& .ltx_itemize {
1446-
padding: 0.2rem 0 0.2rem 0;
1445+
& .ltx_description,
1446+
& .ltx_itemize,
1447+
& .ltx_enumerate {
1448+
margin-top: 0.2em;
1449+
margin-left: 0.2em;
14471450
}
1451+
/* In fixed-height contexts, the extra padding can lead to collding with the frame.
1452+
see https://github.com/dginev/ar5iv/issues/529 */
1453+
& .ltx_item + .ltx_item {
1454+
margin-top: 0.2em;
1455+
}
1456+
& span.ltx_p:not(:last-child) {
1457+
margin-bottom: 0.3em;
1458+
}
1459+
14481460
}
14491461
}
14501462

@@ -1816,6 +1828,7 @@ span.ltx_item .ltx_tag + span.ltx_para {
18161828
.ltx_item + .ltx_item {
18171829
margin-top: 1em;
18181830
}
1831+
18191832
/*TODO: Confusing override. maybe dt should have the ltx_tag_item class instead of ltx_item? */
18201833
dd.ltx_item + dt.ltx_item {
18211834
margin-top: 0rem;

0 commit comments

Comments
 (0)