diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index d5009b405b..f42802c4fc 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -74,7 +74,7 @@ def on_fmt_click(ev): parent.appendChild(E.div( E.div(_('What would you like to do with the {} format?').format(fmt)), - E.div(style='margin:1ex auto; overflow: hidden; padding: 1em 1.5em; text-align: center', + E.div(class_='button-box', create_button(_('Read {}').format(fmt), 'book', action.bind(None, read_format)), '\xa0', create_button(_('Download {}').format(fmt), 'cloud-download', action.bind(None, download_format)), diff --git a/src/pyj/dom.pyj b/src/pyj/dom.pyj index e05b311b0f..a40671fe51 100644 --- a/src/pyj/dom.pyj +++ b/src/pyj/dom.pyj @@ -13,6 +13,7 @@ simple_vendor_prefixes = { 'animation-fill-mode': v"['webkit', 'moz', 'o']", 'animation-play-state': v"['webkit', 'moz', 'o']", 'transform': v"['webkit', 'ms', 'moz', 'o']", + 'transform-origin': v"['webkit', 'ms', 'moz', 'o']", 'transition': v"['webkit', 'moz', 'o']", 'filter': v"['webkit']", 'user-select': v"['webkit', 'moz', 'ms']", diff --git a/src/pyj/modals.pyj b/src/pyj/modals.pyj index f1fe730761..fa8033ec5b 100644 --- a/src/pyj/modals.pyj +++ b/src/pyj/modals.pyj @@ -21,6 +21,10 @@ add_extra_css(def(): style += build_rule( '#modal-container a.dialog-simple-link:hover', color='red !important' ) + style += build_rule( + '.button-box', display='flex', justify_content='flex-end', padding='1rem 0rem', overflow='hidden' + ) + style += build_rule('.button-box .calibre-push-button', transform_origin='right') return style )