FluidbookMenu.prototype = {
init: function () {
- this.index = new FluidbookIndex(this.fluidbook);
var $this = this;
- $(document).on('click', ".mview .back", function () {
+ // Note: iOS won't catch click events unless the element has a cursor:pointer style
+ // This was added for #viewOverlay in the CSS
+ // More details: https://stackoverflow.com/a/16006333
+ $(document).on('click', ".mview .back, #viewOverlay", function () {
var currentHash = window.location.hash;
window.location.hash = '/page/' + $this.fluidbook.currentPage;
if (window.location.hash == currentHash) {
}
- /* Search */
- .highlight0 {
- background-color: #00ff00;
- }
-
- .highlight1 {
- background-color: #ffff00;
- }
-
- .highlight2 {
- background-color: #00ffff;
- }
-
- .highlight3 {
- background-color: #ff00ff;
- }
-
- .highlight4 {
- background-color: #ff0000;
- }
-
/* Share */
-ul.chapters.shareList a.level0 img {
+ul.chapters.shareList a.level0 .svg-icon {
height: 25px;
- margin: 2px 10px 0 0;
- position: relative;
- top: 3px;
-}
+ width: 25px;
+ display: inline-block;
+ vertical-align: middle;
+ margin: 0 10px 6px 0;
-.rtl ul.chapters.shareList a.level0 img {
- margin: 2px 0 0 10px;
+ .rtl & {
+ margin: 0 0 6px 10px;
+ }
}
/* Help */