Notifications: Define selectors once and re-use

Plus some comments and simplifying the switch/adding of icons
by just adding a css class that controls it.

No functional changes
This commit is contained in:
Pablo Vazquez
2017-10-04 00:38:31 +02:00
parent a2ffb8a342
commit 389413ab8a
2 changed files with 57 additions and 34 deletions

View File

@@ -30,6 +30,18 @@
position: relative
user-select: none
> i:before
content: '\e815'
&.has-notifications
> i:before
content: '\e813'
#notifications-count
opacity: 1
transform: scale(1) !important
-webkit-transform: scale(1) !important
.flyout-hat
border-color: transparent transparent white transparent
border-style: solid
@@ -68,10 +80,6 @@
user-select: none
width: 18px
&.bloom
opacity: 1
transform: scale(1) !important
-webkit-transform: scale(1) !important
#notifications-list
list-style-type: none