more photo menu positioning work for varying photo sizes

This commit is contained in:
friendica 2013-11-16 19:48:45 -08:00
parent 2e464cb909
commit 8893643da0
2 changed files with 7 additions and 6 deletions

View File

@ -882,7 +882,7 @@ footer {
} }
.wall-item-photo-wrapper { .wall-item-photo-wrapper {
margin-top: 10px; margin-top: 0px;
margin-left: 10px; margin-left: 10px;
margin-bottom: 10px; margin-bottom: 10px;
width: 100px; width: 100px;
@ -907,7 +907,8 @@ footer {
border: 2px solid #444444; border: 2px solid #444444;
background: #FFFFFF; background: #FFFFFF;
position: absolute; position: absolute;
left: 10px; top: 90px; left: 10px;
top: $top_photo;
display: none; display: none;
z-index: 10000; z-index: 10000;
} }
@ -917,7 +918,7 @@ footer {
.comment .wall-item-photo-menu-button { top: $pmenu_reply;} .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 { .wallwall .wwto {
left: 50px; left: 50px;

View File

@ -93,13 +93,13 @@
$converse_width="1024px"; $converse_width="1024px";
if(! $top_photo) if(! $top_photo)
$top_photo = '64px'; $top_photo = '64px';
$pmenu_top = intval($top_photo) - 6 . 'px'; $pmenu_top = intval($top_photo) - 16 . 'px';
$wwtop = intval($top_photo) - 5 . 'px'; $wwtop = intval($top_photo) - 15 . 'px';
$comment_indent = intval($top_photo) + 10 . 'px'; $comment_indent = intval($top_photo) + 10 . 'px';
if(! $reply_photo) if(! $reply_photo)
$reply_photo = '32px'; $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 === '') { if($nav_min_opacity === false || $nav_min_opacity === '') {
$nav_float_min_opacity = 1.0; $nav_float_min_opacity = 1.0;