From 99f83d9ca3464315ae17a6bd66d576804850e41f Mon Sep 17 00:00:00 2001 From: Hedgehog Date: Thu, 20 Mar 2014 05:58:46 +0400 Subject: [PATCH] update added dynamic button in modal profile window instead static --- css/profile.css | 16 ++++++++++++---- css/style.css | 1 + following.html | 1 + js/calm.js | 19 ++++++++++--------- js/interface_common.js | 8 +++++++- js/twister_actions.js | 2 +- 6 files changed, 32 insertions(+), 15 deletions(-) diff --git a/css/profile.css b/css/profile.css index dcac5c7..0825ce5 100644 --- a/css/profile.css +++ b/css/profile.css @@ -66,7 +66,8 @@ } .profile-card .direct-messages, .profile-card .direct-messages-with-user, -.profile-card .follow +.profile-card .follow, +.profile-card .profileUnfollow { display: block; position: absolute; @@ -81,13 +82,15 @@ border: none; transition: all .2s linear; } -.profile-card .follow +.profile-card .follow, +.profile-card .profileUnfollow { right: 128px; } .profile-card .direct-messages:hover, .profile-card .direct-messages-with-user:hover, -.profile-card .follow:hover +.profile-card .follow:hover, +.profile-card .profileUnfollow:hover { background: rgba( 0, 0, 0, .3 ); } @@ -251,6 +254,10 @@ button.follow:hover { background: #b2d67b; color: #fff; } +.profile-card .profileUnfollow:hover { + background: #e18882; + color: #fff; +} .profile-modal button.direct-messages-with-user:hover { background: #b2d67b; color: #fff; @@ -305,7 +312,8 @@ button.follow:hover { */ .profile-modal .direct-messages, .profile-modal .direct-messages-with-user, -.profile-modal .follow +.profile-modal .follow, +.profile-card .profileUnfollow { bottom: 10px; } diff --git a/css/style.css b/css/style.css index 86038dc..344f82b 100644 --- a/css/style.css +++ b/css/style.css @@ -1984,6 +1984,7 @@ ul.dropdown-menu > li > a { clear: both; font: 13px/20px "Open Sans", sans-serif; white-space: nowrap; + cursor: pointer; -webkit-transition: all 200ms; -moz-transition: all 200ms; -ms-transition: all 200ms; diff --git a/following.html b/following.html index 70079ef..a57e6d4 100644 --- a/following.html +++ b/following.html @@ -22,6 +22,7 @@ +