From 8893643da065fb12bf9b60e3d31f65cf64c6754b Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 16 Nov 2013 19:48:45 -0800 Subject: more photo menu positioning work for varying photo sizes --- view/theme/redbasic/css/style.css | 7 ++++--- view/theme/redbasic/php/style.php | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'view') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 572eafdfb..f7d641e6b 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -882,7 +882,7 @@ footer { } .wall-item-photo-wrapper { - margin-top: 10px; + margin-top: 0px; margin-left: 10px; margin-bottom: 10px; width: 100px; @@ -907,7 +907,8 @@ footer { border: 2px solid #444444; background: #FFFFFF; position: absolute; - left: 10px; top: 90px; + left: 10px; + top: $top_photo; display: none; z-index: 10000; } @@ -917,7 +918,7 @@ footer { .comment .wall-item-photo-menu-button { top: $pmenu_reply;} -.comment .wall-item-photo-menu { top: 60px; } +.comment .wall-item-photo-menu { top: $reply_photo; } .wallwall .wwto { left: 50px; diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 515356cb6..1eb5abfbb 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -93,13 +93,13 @@ $converse_width="1024px"; if(! $top_photo) $top_photo = '64px'; - $pmenu_top = intval($top_photo) - 6 . 'px'; - $wwtop = intval($top_photo) - 5 . 'px'; + $pmenu_top = intval($top_photo) - 16 . 'px'; + $wwtop = intval($top_photo) - 15 . 'px'; $comment_indent = intval($top_photo) + 10 . 'px'; if(! $reply_photo) $reply_photo = '32px'; - $pmenu_reply = intval($reply_photo) - 6 . 'px'; + $pmenu_reply = intval($reply_photo) - 16 . 'px'; if($nav_min_opacity === false || $nav_min_opacity === '') { $nav_float_min_opacity = 1.0; -- cgit v1.2.3