diff --git a/index.html b/index.html index 88a0559..32afb8d 100755 --- a/index.html +++ b/index.html @@ -183,6 +183,12 @@ var keyboard_config = { $(document).ready(function(){ + + // this is to fix some sort of bug baking things align in a wrong + // way at startup... + // XXX make this fix in the CSS -- most likely stray transition somewhere... + setTransitionDuration($('.magazine, .page'), 0) + // general window behavior... $(window) .resize(updateView) diff --git a/layout.js b/layout.js index 9247a64..f4165e3 100755 --- a/layout.js +++ b/layout.js @@ -104,6 +104,7 @@ function handleClick(evt, data){ } // Click on caption... +// XXX add inline captions... function handleCaption(evt, data){ elem = $(data.orig_event.target) if(elem.is('.image-fit-height, .image-fit') diff --git a/magazine-editor.css b/magazine-editor.css index 473c87b..ddbac67 100755 --- a/magazine-editor.css +++ b/magazine-editor.css @@ -196,11 +196,10 @@ /* allways show captions in editor's full page mode */ .full-page-view-mode.editor .current.page.image-fit .caption, -.full-page-view-mode.editor .current.page.horizontal-image-fit .caption, -.full-page-view-mode.editor .current.page.vertical-image-fit .caption { - opacity: 0.8; +.full-page-view-mode.editor .current.page.image-fit-height .caption { + opacity: 1; height: auto; - min-height: 100px; + min-height: 30px; }