Fix alignment for notifications count
This commit is contained in:
parent
76a5555ff4
commit
dbde681aff
@ -6,14 +6,13 @@
|
|||||||
|
|
||||||
& #notifications-refresh,
|
& #notifications-refresh,
|
||||||
& #notifications-markallread
|
& #notifications-markallread
|
||||||
float: right
|
|
||||||
color: $color-primary
|
color: $color-primary
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
padding: 8px 10px 0 10px
|
float: right
|
||||||
margin: 0
|
font-family: $font-body
|
||||||
height: initial
|
height: initial
|
||||||
font:
|
margin: 0
|
||||||
family: $font-body
|
padding: 8px 10px 0 10px
|
||||||
|
|
||||||
text:
|
text:
|
||||||
shadow: none
|
shadow: none
|
||||||
@ -21,54 +20,53 @@
|
|||||||
|
|
||||||
&:hover, &:focus
|
&:hover, &:focus
|
||||||
color: lighten($color-primary, 10%)
|
color: lighten($color-primary, 10%)
|
||||||
|
|
||||||
&:active
|
&:active
|
||||||
color: $color-secondary
|
color: $color-secondary
|
||||||
|
|
||||||
#notifications-toggle
|
#notifications-toggle
|
||||||
font-size: 1.5em
|
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
font-size: 1.5em
|
||||||
position: relative
|
position: relative
|
||||||
user-select: none
|
user-select: none
|
||||||
|
|
||||||
& .flyout-hat
|
.flyout-hat
|
||||||
width: 0
|
border-color: transparent transparent white transparent
|
||||||
height: 0
|
|
||||||
position: absolute
|
|
||||||
border-style: solid
|
border-style: solid
|
||||||
border-width: 0 8px 8px 8px
|
border-width: 0 8px 8px 8px
|
||||||
border-color: transparent transparent white transparent
|
|
||||||
bottom: -15px
|
bottom: -15px
|
||||||
|
height: 0
|
||||||
|
position: absolute
|
||||||
right: 22px
|
right: 22px
|
||||||
visibility: hidden
|
visibility: hidden
|
||||||
|
width: 0
|
||||||
|
|
||||||
&.active
|
&.active
|
||||||
& .flyout-hat
|
.flyout-hat
|
||||||
visibility: visible
|
visibility: visible
|
||||||
|
|
||||||
#notifications-count
|
#notifications-count
|
||||||
opacity: 0
|
align-items: center
|
||||||
position: absolute
|
|
||||||
top: 10px
|
|
||||||
right: 14px
|
|
||||||
width: 18px
|
|
||||||
height: 18px
|
|
||||||
background-color: $color-secondary
|
background-color: $color-secondary
|
||||||
border-radius: 50%
|
border-radius: 50%
|
||||||
text-align: center
|
|
||||||
color: white
|
color: white
|
||||||
font-size: .5em
|
display: flex
|
||||||
font:
|
font:
|
||||||
|
size: .5em
|
||||||
weight: bolder
|
weight: bolder
|
||||||
family: sans-serif
|
family: sans-serif
|
||||||
|
height: 18px
|
||||||
|
justify-content: center
|
||||||
|
opacity: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
user-select: none
|
position: absolute
|
||||||
|
right: 14px
|
||||||
|
text-align: center
|
||||||
|
top: 10px
|
||||||
transform: scale(0)
|
transform: scale(0)
|
||||||
transition: transform 250ms ease-in-out
|
transition: transform 250ms ease-in-out
|
||||||
|
user-select: none
|
||||||
span
|
width: 18px
|
||||||
position: relative
|
|
||||||
top: -2px
|
|
||||||
|
|
||||||
|
|
||||||
&.bloom
|
&.bloom
|
||||||
opacity: 1
|
opacity: 1
|
||||||
@ -77,8 +75,8 @@
|
|||||||
|
|
||||||
#notifications-list
|
#notifications-list
|
||||||
list-style-type: none
|
list-style-type: none
|
||||||
padding: 0 5px
|
|
||||||
margin: 0
|
margin: 0
|
||||||
|
padding: 0 5px
|
||||||
|
|
||||||
& .nc-item, & .nc-loading
|
& .nc-item, & .nc-loading
|
||||||
position: relative
|
position: relative
|
||||||
|
Loading…
x
Reference in New Issue
Block a user