abstract out styles for menu from profile
This commit is contained in:
parent
a039da5dd1
commit
3a7850cd02
|
@ -19,7 +19,7 @@
|
||||||
).property('tab')
|
).property('tab')
|
||||||
|
|
||||||
classProfile: (->
|
classProfile: (->
|
||||||
classes = ['profile']
|
classes = ['profile menu']
|
||||||
classes.push('active') if @get('tab') == 'profile'
|
classes.push('active') if @get('tab') == 'profile'
|
||||||
classes.push(Travis.app.get('authState'))
|
classes.push(Travis.app.get('authState'))
|
||||||
classes.join(' ')
|
classes.join(' ')
|
||||||
|
|
|
@ -28,14 +28,42 @@
|
||||||
&:hover
|
&:hover
|
||||||
color: $color-link-top-highlight
|
color: $color-link-top-highlight
|
||||||
|
|
||||||
.profile
|
.menu
|
||||||
position: relative
|
position: relative
|
||||||
float: right
|
|
||||||
|
|
||||||
.handle
|
.handle
|
||||||
margin: 0
|
margin: 0
|
||||||
|
|
||||||
.signed-out, .signing-in, .signed-in
|
&:hover > ul
|
||||||
|
display: block
|
||||||
|
|
||||||
|
ul
|
||||||
|
display: none
|
||||||
|
position: absolute
|
||||||
|
z-index: 300
|
||||||
|
top: 40px
|
||||||
|
width: 100%
|
||||||
|
background-color: $color-bg-dropdown
|
||||||
|
@include border-bottom-radius(6px)
|
||||||
|
@include single-box-shadow(rgba(black, 0.3), 2px, 2px, 10px)
|
||||||
|
|
||||||
|
li
|
||||||
|
display: block
|
||||||
|
&:last-child a:hover
|
||||||
|
@include border-bottom-radius(4px)
|
||||||
|
|
||||||
|
a
|
||||||
|
display: block
|
||||||
|
line-height: 24px
|
||||||
|
white-space: nowrap
|
||||||
|
padding: 5px 25px
|
||||||
|
&:hover
|
||||||
|
background-color: $color-bg-dropdown-highlight
|
||||||
|
|
||||||
|
.menu.profile
|
||||||
|
float: right
|
||||||
|
|
||||||
|
.handle > *
|
||||||
display: none
|
display: none
|
||||||
padding: 0 15px 0 45px
|
padding: 0 15px 0 45px
|
||||||
.signed-out, .signing-in
|
.signed-out, .signing-in
|
||||||
|
@ -58,32 +86,15 @@
|
||||||
height: 22px
|
height: 22px
|
||||||
@include border-radius(3px)
|
@include border-radius(3px)
|
||||||
|
|
||||||
&.signed-in:hover > ul
|
|
||||||
display: block
|
|
||||||
|
|
||||||
ul
|
ul
|
||||||
display: none
|
|
||||||
position: absolute
|
|
||||||
z-index: 300
|
|
||||||
top: 40px
|
|
||||||
width: 100%
|
|
||||||
min-width: 145px
|
min-width: 145px
|
||||||
background-color: $color-bg-dropdown
|
|
||||||
@include border-bottom-radius(6px)
|
|
||||||
@include single-box-shadow(rgba(black, 0.3), 2px, 2px, 10px)
|
|
||||||
|
|
||||||
li
|
|
||||||
display: block
|
|
||||||
&:last-child a:hover
|
|
||||||
@include border-bottom-radius(4px)
|
|
||||||
|
|
||||||
a
|
a
|
||||||
display: block
|
|
||||||
padding: 5px 25px 5px 45px
|
padding: 5px 25px 5px 45px
|
||||||
line-height: 24px
|
|
||||||
white-space: nowrap
|
&:not(.signed-in):hover ul
|
||||||
&:hover
|
display: none
|
||||||
background-color: $color-bg-dropdown-highlight
|
|
||||||
|
|
||||||
#home #navigation .home,
|
#home #navigation .home,
|
||||||
#stats #navigation .stats,
|
#stats #navigation .stats,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user