1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-15 22:05:09 -05:00
kaiwa/public/css/pages/roster.styl
2015-02-09 16:30:04 +01:00

257 lines
4.4 KiB
Stylus

@import '../_variables'
@import '../_mixins'
#menu
position: fixed
top: 0px
bottom: 0px
left: 0px
width: 270px
background-color: $blue-saturated-darker
border-right: 1px solid $gray-lighter
z-index: 300
overflow-y: auto;
overflow-x: hidden;
webkit-transition-fix()
noselect()
.main
margin: 10px 0 0 0
text-align: center
li
display: inline-block
&:last-of-type
a
margin-left: 5px
padding-left: 30px
svg
position: absolute
top: 50%
left: 5px
margin-top: -13px
fill: white
a
position: relative
h1
font-size: $font-size-small
margin: 0
padding: 20px 10px
color: white
text-transform: uppercase
#roster,
#bookmarks
#contactrequests
margin: 0px
padding-left: 0px
background: $blue-saturated
.jid
display: inline-block
width: 100%
text-align: center
.approve, .deny
display: inline-block
margin-top: 10px
#addcontact,
#joinmuc
margin: 0px 10px 5px 10px
padding: 0px 10px
width: 178px
height: 25px
font-size: $font-size-small
li
list-style-type: none
padding: 7px 10px 7px 10px
margin: 0px
position: relative
min-height: 40px
font-size: $font-size-small
color: #fff
cursor: pointer
transition: all .3s ease-in 0
-webkit-transition: all .3s ease-in 0
-moz-transition: all .3s ease-in 0
width: 100%
borderbox()
.wrap
vertical-align: middle
padding-left: 40px
&:hover
background: $blue-saturated
&.online, &.chat, &.dnd, &.away, &.xa
&:after
content: ''
position: absolute
top: 50%
right: 15px
height: 6px
width: 6px
margin-top: -4px
border: 1px solid transparent
roundall(10px)
&.online,
&.chat
&:after
background: $green
border-color: $green
&.dnd
&:after
background: $red
border-color: $red
&.away,
&.xa
&:after
background: $orange
border-color: $orange
&.offline:not(:hover)
.name
color: darken($gray-light, 40%)
.status
color: darken($gray-light, 65%)
img
opacity: .25
&.activeContact, &.offline.activeContact
background: white
font-weight: $font-weight-bold
.name
color: $gray
&.composing
&:after
animation: pulsate 1.5s infinite ease-in
-webkit-animation: pulsate 1.5s infinite ease-in
-moz-animation: pulsate 1.5s infinite ease-in
&.paused
&:after
background: lighten($gray-light, 30%)
border-color: lighten($gray-light, 30%)
&.idle
padding-right: 15px
&:after
background: transparent
.name
color: $gray-light
max-width: 60%
.user
width: 95%
img
opacity: 1
.avatar
vertical-align: top
margin-right: 5px
margin-top: -15px
position: absolute
left: 10px
top: 20px
avatar()
noselect()
.user
color: white
width: 100%
line-height: 100%
overflow: hidden
text-overflow: ellipsis
.status
color: $gray-light
font-size: $font-size-small
font-weight: 400
line-height: 12px
margin: 0
.idleTime
display: inline-block
margin-left: 5px
font-size: $font-size-small
color: darken($gray-light, 50%)
.name
display: inline-block
text-overflow: ellipsis
overflow: hidden
&.persistent
.name
color: red
.unread
display: none
color: white
height: 22px
width: 30px
padding-top: 8px
roundall(30px)
position: absolute
top: 5px
left: 10px
font-size: $font-size-small
font-weight: $font-weight-bold
text-align: center
background: rgba(0, 174, 239, .8)
.unread:not(:empty)
display: block
button
margin: -15px 0px 0px 5px
.leaveRoom
display: none
.joinRoom
display: inline-block
&.joined
.joinRoom
display: none
.leaveRoom
display: inline-block
#roster
.name
width: 180px
#bookmarks
.name
width: 120px
padding: 5px 10px 5px 40px
@keyframes pulsate
0%
opacity: 1.0
50%
opacity: 0.5
100%
opacity: 1.0