From 2d4819257b72d24159cf5fa20db32c1d9e3fc1c1 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Tue, 13 Sep 2016 18:19:38 -0500 Subject: [PATCH] fix(profile_icon): Cursor and background styles --- css/_toolbars.scss | 14 +++++++++++++- modules/UI/toolbars/Toolbar.js | 4 ++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/css/_toolbars.scss b/css/_toolbars.scss index ba0f229c6..f3659d956 100644 --- a/css/_toolbars.scss +++ b/css/_toolbars.scss @@ -114,6 +114,17 @@ opacity: 0.5; } +.button.unclickable { + cursor: default; +} + +a.button.unclickable:hover, +a.button.unclickable:active, +a.button.unclickable.selected{ + cursor: default; + background: none; +} + a.button:hover, a.button:active, a.button.selected { @@ -219,6 +230,7 @@ a.button>#avatar { .slideOutExt { @include animation("slideOutExt .5s forwards"); } + /** * END of slide in animation for extended toolbar panel. - */ \ No newline at end of file + */ diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.js index 5225d78d8..d055f70aa 100644 --- a/modules/UI/toolbars/Toolbar.js +++ b/modules/UI/toolbars/Toolbar.js @@ -354,6 +354,10 @@ const Toolbar = { Toolbar._handleSideToolbarContainerToggled( containerId, isVisible); }); + + if(!APP.tokenData.isGuest) { + $("#toolbar_button_profile").addClass("unclickable"); + } }, /** * Enables / disables the toolbar.