浏览代码

fix(profile_icon): Cursor and background styles

master
hristoterezov 9 年前
父节点
当前提交
2d4819257b
共有 2 个文件被更改,包括 17 次插入1 次删除
  1. 13
    1
      css/_toolbars.scss
  2. 4
    0
      modules/UI/toolbars/Toolbar.js

+ 13
- 1
css/_toolbars.scss 查看文件

114
     opacity: 0.5;
114
     opacity: 0.5;
115
 }
115
 }
116
 
116
 
117
+.button.unclickable {
118
+    cursor: default;
119
+}
120
+
121
+a.button.unclickable:hover,
122
+a.button.unclickable:active,
123
+a.button.unclickable.selected{
124
+    cursor: default;
125
+    background: none;
126
+}
127
+
117
 a.button:hover,
128
 a.button:hover,
118
 a.button:active,
129
 a.button:active,
119
 a.button.selected {
130
 a.button.selected {
219
 .slideOutExt {
230
 .slideOutExt {
220
   @include animation("slideOutExt .5s forwards");
231
   @include animation("slideOutExt .5s forwards");
221
 }
232
 }
233
+
222
 /**
234
 /**
223
  * END of slide in animation for extended toolbar panel.
235
  * END of slide in animation for extended toolbar panel.
224
- */
236
+ */

+ 4
- 0
modules/UI/toolbars/Toolbar.js 查看文件

354
                 Toolbar._handleSideToolbarContainerToggled( containerId,
354
                 Toolbar._handleSideToolbarContainerToggled( containerId,
355
                                                             isVisible);
355
                                                             isVisible);
356
             });
356
             });
357
+
358
+        if(!APP.tokenData.isGuest) {
359
+            $("#toolbar_button_profile").addClass("unclickable");
360
+        }
357
     },
361
     },
358
     /**
362
     /**
359
      * Enables / disables the toolbar.
363
      * Enables / disables the toolbar.

正在加载...
取消
保存