Skip to content

Commit

Permalink
update to 0.8.8 stylesheets, less white bgcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
flammie committed Jun 1, 2024
1 parent dc6df1a commit 0f978b4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 32 deletions.
60 changes: 29 additions & 31 deletions latexml/LaTeXML.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@

.ltx_outdent { margin-left: -2em; }

/* .ltx_chapter_title, etc should be in ltx-article.css etc.
*/
.ltx_page_main { margin:0px; padding:1em 3em 1em 2em; }
/* .ltx_chapter_title, etc should be in ltx-article.css etc. */
.ltx_page_main { margin:0px auto;
padding:1em 3em 1em 2em;
padding:min(1em,1.5%) min(3em,4.5%) min(1em,1.5%) min(2em, 3%); }
.ltx_tocentry { list-style-type:none; }

/* support for common author block layouts.*/
Expand Down Expand Up @@ -126,7 +127,8 @@ td.ltx_subfloat { width:50%; }

/* avoid padding when aligning adjacent columns, e.g. for split decimals */
.ltx_norightpad { padding-right:0!important; }
.ltx_noleftpad { padding-left:0!important; }
.ltx_noleftpad { padding-left:0!important; }
.ltx_nopad { padding:0!important; }

/* equations in non-aligned mode (not normally used) */
.ltx_eqn_div { display:block; width:95%; text-align:center; }
Expand Down Expand Up @@ -242,16 +244,25 @@ span.ltx_rowspan { position:absolute; top:0; bottom:0; }

/*======================================================================
Columns */
.ltx_page_column1 {
width:44%; float:left; } /* IE uses % of wrong container*/
.ltx_page_columns {
display: flex; }
.ltx_page_column1,
.ltx_page_column2 {
width:44%; float:right; }
.ltx_page_columns > .ltx_page_column1 {
width:48%; float:left; }
.ltx_page_columns > .ltx_page_column2 {
width:48%; float:right; }
.ltx_page_columns:after {
content:"."; display:block; height:0; clear:both; visibility:hidden; }
flex:100%;
margin: 0 20px;
}
@media screen and (max-width: 60em){
.ltx_page_columns {
flex-direction: column; }
.ltx_page_column1 > ul,
.ltx_page_column1 > ol,
.ltx_page_column1 > dl {
margin-bottom: 0; }
.ltx_page_column2 > ul,
.ltx_page_column2 > ol,
.ltx_page_column2 > dl {
margin-top: 0; }
}

/*======================================================================
Borders and such */
Expand Down Expand Up @@ -345,12 +356,7 @@ span.ltx_rowspan { position:absolute; top:0; bottom:0; }
.ltx_font_upright { font-style: normal; font-variant:normal; }
.ltx_font_slanted { font-style: oblique; font-variant:normal; }
.ltx_font_smallcaps { font-variant: small-caps; font-style:normal; }
.ltx_font_oldstyle { font-variant: oldstyle-nums; /* experimental css3 ? Doesn't seem to work!*/
font-style:normal;
-moz-font-feature-settings: "onum";
-ms-font-feature-settings: "onum";
-webkit-font-feature-settings: "onum";
font-variant-numeric: oldstyle-nums; }
.ltx_font_oldstyle { font-variant-numeric: oldstyle-nums; }
.ltx_font_mathcaligraphic { font-family: "Lucida Calligraphy", "Zapf Chancery","URW Chancery L"; }
/*
Expand All @@ -367,20 +373,10 @@ cite { font-style: normal; }
/* Dubious stuff */
.ltx_hflipped {
display:inline-block;
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-fliter: "FlipH"; }
transform: scaleX(-1); }
.ltx_vflipped {
display:inline-block;
-moz-transform: scaleY(-1);
-o-transform: scaleY(-1);
-webkit-transform: scaleY(-1);
transform: scaleY(-1);
filter: FlipV;
-ms-fliter: "FlipV"; }
transform: scaleY(-1); }

/* .ltx_phantom handled in xslt */

Expand All @@ -393,6 +389,8 @@ body {
background-attachment: fixed;
background-position: top left;
background-opacity: 50%;
background-color: lightgray;
color: black;
}

/* From:
Expand Down
2 changes: 1 addition & 1 deletion latexml/ltx-article.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.ltx_title_acknowledgements,
.ltx_title_keywords,
.ltx_title_classification {
text-align:left; font-size: 100%; font-weight:bold; margin:0.5 0 0 0; }
text-align:left; font-size: 100%; font-weight:bold; margin:0.5em 0 0 0; }

.ltx_appendix,
.ltx_section,
Expand Down

0 comments on commit 0f978b4

Please sign in to comment.