Ver código fonte

fix(profile_icon): Cursor and background styles

j8
hristoterezov 9 anos atrás
pai
commit
2d4819257b
2 arquivos alterados com 17 adições e 1 exclusões
  1. 13
    1
      css/_toolbars.scss
  2. 4
    0
      modules/UI/toolbars/Toolbar.js

+ 13
- 1
css/_toolbars.scss Ver arquivo

@@ -114,6 +114,17 @@
114 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 128
 a.button:hover,
118 129
 a.button:active,
119 130
 a.button.selected {
@@ -219,6 +230,7 @@ a.button>#avatar {
219 230
 .slideOutExt {
220 231
   @include animation("slideOutExt .5s forwards");
221 232
 }
233
+
222 234
 /**
223 235
  * END of slide in animation for extended toolbar panel.
224
- */
236
+ */

+ 4
- 0
modules/UI/toolbars/Toolbar.js Ver arquivo

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

Carregando…
Cancelar
Salvar