From eb982074bab5069321a1e433a265d809ba28e1cb Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 15 Nov 2013 01:55:33 -0800 Subject: reposition the photo menu button when the author photo is resized --- view/theme/redbasic/css/style.css | 4 ++-- view/theme/redbasic/php/style.php | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'view') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index f8216dd6d..2fd624bc1 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -883,7 +883,7 @@ footer { margin: 0px; padding: 0px; width: 16px; height: 16px; - top: 74px; left:10px; + top: $pmenu_top; left:10px; overflow: hidden; text-indent: 40px; display: none; @@ -903,7 +903,7 @@ footer { .wall-item-photo-menu li a:hover { color: #FFFFFF; background: #3465A4; text-decoration: none; } -.comment .wall-item-photo-menu-button { top: 44px;} +.comment .wall-item-photo-menu-button { top: $pmenu_reply;} .comment .wall-item-photo-menu { top: 60px; } .wallwall .wwto { diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 36918874b..ceb396eec 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -90,8 +90,11 @@ $converse_width="1024px"; if(! $top_photo) $top_photo = '80px'; + $pmenu_top = intval($top_photo) - 6 . 'px'; + if(! $reply_photo) $reply_photo = '50px'; + $pmenu_reply = intval($reply_photo) - 6 . 'px'; if($nav_min_opacity === false || $nav_min_opacity === '') { $nav_float_min_opacity = 1.0; @@ -152,7 +155,9 @@ $options = array ( '$nav_float_min_opacity' => $nav_float_min_opacity, '$nav_percent_min_opacity' => $nav_percent_min_opacity, '$top_photo' => $top_photo, -'$reply_photo' => $reply_photo +'$reply_photo' => $reply_photo, +'$pmenu_top' => $pmenu_top, +'$pmenu_reply' => $pmenu_reply ); echo str_replace(array_keys($options), array_values($options), $x); -- cgit v1.2.3