kaiwa/public/css/app/roster.styl

153 lines
2.6 KiB
Stylus
Raw Normal View History

2013-09-16 05:19:07 -04:00
@import '../_variables'
@import '../_mixins'
#menu
position: fixed
top: 0px
bottom: 0px
left: 0px
width: 180px
background-color: $sidebarBg
2013-09-16 05:19:07 -04:00
z-index: 300
overflow-y: auto;
overflow-x: hidden;
webkit-transition-fix()
noselect()
.main
li
list-style-type: none
line-height: 12px
svg
position: absolute
top: 50%
left: 10px
margin-top: -13px
fill: white
2013-09-16 05:19:07 -04:00
&:hover
2013-09-21 12:16:53 -04:00
background: $activeBlue
2013-09-16 05:19:07 -04:00
a
display: block
position: relative
padding: 0 15px 0 40px
2013-09-16 05:19:07 -04:00
text-decoration: none
font-size: $fontMedium
color: white
font-weight: 600
line-height: 35px
2013-09-16 05:19:07 -04:00
h1
2013-09-21 12:16:53 -04:00
font-size: $fontSmall
margin: 0
padding: 20px 15px 10px 15px
2013-09-21 12:16:53 -04:00
color: white
text-transform: uppercase
2013-09-16 05:19:07 -04:00
2013-09-16 19:12:00 -04:00
#roster,
#bookmarks
2013-09-16 05:19:07 -04:00
li
list-style-type: none
2013-09-21 12:16:53 -04:00
padding: 7px 10px
2013-09-16 05:19:07 -04:00
margin: 0px
position: relative
min-height: 15px
2013-09-19 14:37:01 -04:00
font-size: $fontSmall
2013-09-16 05:19:07 -04:00
color: #fff
2013-09-19 10:39:07 -04:00
cursor: pointer
2013-09-21 12:16:53 -04:00
transition: all .3s ease-in 0
-webkit-transition: all .3s ease-in 0
-moz-transition: all .3s ease-in 0
2013-09-16 05:19:07 -04:00
&:nth-child(2n)
background: lighten($sidebarBg, 4%)
2013-09-16 05:19:07 -04:00
&:hover
background: $activeBlue
2013-09-16 05:19:07 -04:00
&.hasUnread .unread
display: block
&.online,
&.chat
2013-09-21 12:16:53 -04:00
border-left: 3px solid #427a00
2013-09-16 05:19:07 -04:00
&.dnd
2013-09-21 12:16:53 -04:00
border-left: 3px solid #c50041
2013-09-16 05:19:07 -04:00
&.away,
&.xa
2013-09-21 12:16:53 -04:00
border-left: 3px solid #f57900
2013-09-16 05:19:07 -04:00
&.offline
border-left: none
2013-09-21 12:16:53 -04:00
&.offline:not(:hover)
.name
color: $textSecondary
2013-09-16 05:19:07 -04:00
img
opacity: .25
.status
color: #777
2013-09-21 12:16:53 -04:00
&.activeContact, &.offline.activeContact
background: white
font-weight: bold
2013-09-16 05:19:07 -04:00
2013-09-21 12:16:53 -04:00
.name
color: $baseText
2013-09-16 05:19:07 -04:00
&.composing
border-right: 4px solid orange
&.paused
border-right: 4px solid #666
img
opacity: 1
.avatar
vertical-align: top
margin-right: 5px
margin-top: -10px
2013-09-16 05:19:07 -04:00
position: absolute
left: 10px
top: 50%
avatarSmall()
2013-09-16 05:19:07 -04:00
noselect()
.name
margin-left: 30px
line-height: 20px
2013-09-21 12:16:53 -04:00
color: white
text-overflow: ellipsis
overflow: hidden
width: 70%
2013-09-16 05:19:07 -04:00
.status
color: $textSecondary
font-size: $fontSmall-2px
margin: 0
margin-left: 30px
&:not(:empty)
margin-top: -5px
2013-09-16 05:19:07 -04:00
.unread
display: none
color: white
padding: 0 5px
roundall(20px)
2013-09-16 05:19:07 -04:00
position: absolute
top: 10px
right: 15px
2013-09-16 05:19:07 -04:00
text-align: center
font-weight: bold
background: $activeBlue