Skip to content

Commit

Permalink
CSS for MathJax Images (#566)
Browse files Browse the repository at this point in the history
(and remove custom prince css from Epubs and webbook)
  • Loading branch information
dac514 authored Jun 14, 2019
1 parent 2c46b3a commit 8357b6e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"/scripts/jquery.localScroll.js": "/scripts/jquery.localScroll.js?id=75f2414f7a6394497c86",
"/scripts/jquery.scrollTo.js": "/scripts/jquery.scrollTo.js?id=525edcc52fe856518628",
"/styles/lity.css": "/styles/lity.css?id=2cca2f9fd7e0c7c24ac4"
}
}
1 change: 1 addition & 0 deletions packages/buckram/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Minor Changes

- Add img.mathjax CSS: [#566](https://github.com/pressbooks/pressbooks-book/pull/566)
- Add `.landscape` class to add landscape option for large tables that overflow: [#563](https://github.com/pressbooks/pressbooks-book/pull/563)

### Patches
Expand Down
11 changes: 6 additions & 5 deletions packages/buckram/assets/styles/components/elements/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@

@import '../utilities';

// stylelint-disable property-no-unknown
@page landscape_table {
prince-rotate-body: 270deg;
}
// stylelint-enable property-no-unknown
@if $type == 'prince' {
@page landscape_table {
/* stylelint-disable-next-line property-no-unknown */
prince-rotate-body: 270deg;
}
}

@if $type != 'web' {
table {
Expand Down
19 changes: 18 additions & 1 deletion packages/buckram/assets/styles/components/media/_images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
page-break-inside: avoid !important;
}

img.mathjax {
vertical-align: middle;
border: none;
background: none;
}

.wp-caption,
.wp-nocaption {
height: auto;
Expand Down Expand Up @@ -139,6 +145,12 @@
prince-image-resolution: $prince-image-resolution;
}

img.mathjax {
vertical-align: middle;
border: none;
background: none;
}

.wp-caption,
.wp-nocaption {
height: auto;
Expand Down Expand Up @@ -235,7 +247,12 @@
max-width: 100%;
padding: 0;
page-break-inside: avoid !important;
prince-image-resolution: $prince-image-resolution;
}

img.mathjax {
vertical-align: middle;
border: none;
background: none;
}

.wp-caption,
Expand Down

0 comments on commit 8357b6e

Please sign in to comment.