Skip to content

Commit 7761e77

Browse files
committed
catch up to latexml v0.8.8 CSS changes
1 parent c121bbb commit 7761e77

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

css/ar5iv.css

+27-5
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,9 @@ div.ltx_keywords:empty:before {
689689
display: none !important;
690690
opacity: 0 !important;
691691
}
692+
693+
.ltx_note.ltx_marginpar_left { display:none; }
694+
692695
/*======================================================================
693696
Document Structure; Titles & Frontmatter */
694697

@@ -911,7 +914,7 @@ span.ltx_font_bold > .ltx_break:last-child {
911914

912915
/* Bibliographies */
913916
.ltx_bibliography dt { margin-right:0.5em; float:left; }
914-
.ltx_bibliography dd { margin-left: 3em; }
917+
.ltx_bibliography dd { margin-left: clamp(1em, 4.5%, 3em); }
915918

916919
.ltx_bibitem {
917920
display:table;
@@ -1467,8 +1470,6 @@ foreignObject .ltx_text {
14671470
display: inline-block; }
14681471
/* floats, such as Algorithm listings */
14691472
.ltx_minipage {
1470-
/* !important needed due to use of element "style" attributes in latexml */
1471-
/* width: auto !important; */
14721473
align-self: normal;
14731474
display: inline-block;
14741475
}
@@ -1533,6 +1534,7 @@ foreignObject .ltx_text {
15331534
width:1rem;
15341535
display: inline-block;
15351536
}
1537+
.ltx_lst_space { white-space: pre; }
15361538
/* for now hide the download button for listings,
15371539
needs some styling thought and also ensuring it works. */
15381540
.ltx_listing_data { display: none; }
@@ -1662,12 +1664,14 @@ span.ltx_transformed_inner {
16621664
.ltx_mathvariant_sans-serif { font-family: sans-serif; }
16631665
.ltx_mathvariant-bold-sans-serif { font-family: sans-serif; font-weight: bold; }
16641666
.ltx_mathvariant-sans-serif-italic { font-family: sans-serif; font-style: italic; }
1665-
.ltx_mathvariant-bold-sans-serif-italic { font-family: sans-serif; font-style: italic; font-weight: bold; }
1667+
.ltx_mathvariant-bold-sans-serif-italic {
1668+
font-family: sans-serif; font-style: italic; font-weight: bold; }
16661669
.ltx_mathvariant_monospace { font-family: monospace; }
16671670
/* Can we say anything generic about double-struck, script or fraktur ? */
16681671
.ltx_mathvariant_double-struck { font-weight: bold; }
16691672
.ltx_mathvariant_script { font-family: var(--math-caligraphic-font-family), cursive; }
1670-
.ltx_mathvariant_bold-script { font-family: var(--math-caligraphic-font-family), cursive; font-weight: bold; }
1673+
.ltx_mathvariant_bold-script {
1674+
font-family: var(--math-caligraphic-font-family), cursive; font-weight: bold; }
16711675
/* .ltx_mathvariant-fraktur { } ??? */
16721676
.ltx_mathvariant_bold-fraktur { font-weight: bold; }
16731677

@@ -1815,13 +1819,30 @@ dl.ltx_description dl.ltx_description dd {
18151819
.ltx_th { display:table-cell; }
18161820

18171821
.ltx_framed { border:0.063rem solid var(--border-color);}
1822+
/* avoid padding/margin collapse */
1823+
span.ltx_framed { display:inline-block; text-indent:0; }
1824+
18181825
.ltx_tabular .ltx_td,
18191826
.ltx_tabular .ltx_th {
18201827
padding:0.1em 0.5em;
18211828
max-width: var(--main-width);
18221829
word-wrap: break-word;
18231830
white-space: normal;
18241831
}
1832+
.ltx_tabular .ltx_td.ltx_nopad_l,
1833+
.ltx_tabular .ltx_th.ltx_nopad_l { padding-left:0; }
1834+
.ltx_tabular .ltx_td.ltx_nopad_r,
1835+
.ltx_tabular .ltx_th.ltx_nopad_r { padding-right:0; }
1836+
1837+
/* min-height does NOT apply to tr! */
1838+
.ltx_tabular .ltx_tr td:first-child::after,
1839+
.ltx_tabular .ltx_tr th:first-child::after {
1840+
content: "";
1841+
display: inline-block;
1842+
vertical-align: top;
1843+
min-height: 1em;
1844+
}
1845+
18251846
/* see the last table in 1607.01446 for why
18261847
th should be nowrap;
18271848
TODO: Maybe our latexml data model needs to evolve to add classes,
@@ -1892,6 +1913,7 @@ dl.ltx_description dl.ltx_description dd {
18921913
.ltx_FATAL { font-weight: normal; color:var(--fatal-text-color); }
18931914
.ltx_rdf { display:none; }
18941915
.ltx_missing, .ltx_nounicode { color:var(--error-text-color);}
1916+
.ltx_nodisplay { display:none; }
18951917
.ltx_missing_label { color: var(--warning-text-color); }
18961918

18971919
/* math specific */

0 commit comments

Comments
 (0)