Skip to content

Commit

Permalink
MOBI: Table of contents cannot be clicked (fix #539) (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
dac514 authored May 14, 2019
1 parent 3e6354e commit 075b4b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/buckram/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

- Fix `td` border variable functionality: [#504](https://github.com/pressbooks/pressbooks-book/pull/504)
- Remove running content from blank pages on post introduction front matter: [#522](https://github.com/pressbooks/pressbooks-book/pull/522)
- Add 'if-map-get' to dt-color variable to fix parse error: [#528](https://github.com/pressbooks/pressbooks-book/pull/528)
- Fix: MOBI Table of Contents cannot be clicked: [#543](https://github.com/pressbooks/pressbooks-book/pull/543)

## 1.3.3

Expand Down
13 changes: 13 additions & 0 deletions packages/buckram/assets/styles/components/toc/_mobi.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
////

@if $type == 'epub' {

@media amzn-kf8 {
#toc .toc-chapter-title {
/* CSS property in content is not supported. Table of contents cannot be clicked. */
position: static;
}
}

@media amzn-mobi {
#toc {
font-style: normal;
Expand All @@ -17,6 +25,11 @@
font-weight: normal;
}

#toc .toc-chapter-title {
/* CSS property in content is not supported. Table of contents cannot be clicked. */
position: static;
}

span.chapter-author {
display: none;
}
Expand Down

0 comments on commit 075b4b3

Please sign in to comment.