From aeeaa167edba70146e9f5a36b07cfaeadccaff47 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 Apr 2016 20:28:35 +0530 Subject: [PATCH] Position both flow mode continue indicators on the right edge, less chance of overlap with text that way --- src/pyj/read_book/flow_mode.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/flow_mode.pyj b/src/pyj/read_book/flow_mode.pyj index d5247cecfe..ec93522dea 100644 --- a/src/pyj/read_book/flow_mode.pyj +++ b/src/pyj/read_book/flow_mode.pyj @@ -16,7 +16,7 @@ def setup_flow_indicators(style): nonlocal flow_previous_indicator, flow_next_indicator sel = 'flow-indicator-' + uid flow_previous_indicator = E.div( - style='left:0; top:0;', '⬅ ' + _('prev page'), title=_('Go to the previous page'), + style='right:0; top:0;', '⬅ ' + _('prev page'), title=_('Go to the previous page'), onclick=def(): get_boss().send_message('next_spine_item', previous=True) ) @@ -33,7 +33,7 @@ def setup_flow_indicators(style): update_flow_mode_scroll_indicators() style.push(build_rule( '.' + sel, position='fixed', z_index='2147483647', padding='1ex 1em', margin='1em', border_radius='8px', - background_color='rgba(255, 255, 255, 0.7)', color='blue', cursor='pointer', font_size='larger', font_family='sans-serif', + background_color='#eee', color='#0070FF', cursor='pointer', font_size='larger', font_family='sans-serif', transition='opacity 0.5s ease-in', opacity='0' )) style.push(build_rule('.' + sel + ':hover', color='red'))