kaiwa/public/css/pages/roster.styl

257 lines
4.4 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: 270px
2013-10-23 13:57:46 -04:00
background-color: $blue-saturated-darker
2013-12-20 14:17:21 -05:00
border-right: 1px solid $gray-lighter
2013-09-16 05:19:07 -04:00
z-index: 300
overflow-y: auto;
overflow-x: hidden;
webkit-transition-fix()
noselect()
.main
2013-10-25 12:01:16 -04:00
margin: 10px 0 0 0
text-align: center
2013-09-16 05:19:07 -04:00
li
2013-10-25 12:01:16 -04:00
display: inline-block
2013-09-23 04:37:02 -04:00
2013-10-25 12:01:16 -04:00
&:last-of-type
a
margin-left: 5px
padding-left: 30px
2013-09-16 05:19:07 -04:00
svg
position: absolute
top: 50%
2013-10-25 12:01:16 -04:00
left: 5px
margin-top: -13px
fill: white
2013-09-16 05:19:07 -04:00
a
position: relative
2013-09-23 04:37:02 -04:00
2013-09-16 05:19:07 -04:00
h1
2013-10-23 13:15:38 -04:00
font-size: $font-size-small
margin: 0
2013-09-23 14:06:42 -04:00
padding: 20px 10px
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
#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
2014-11-21 19:29:14 -05:00
padding: 0px 10px
width: 178px
height: 25px
font-size: $font-size-small
2013-09-16 05:19:07 -04:00
li
list-style-type: none
padding: 7px 10px 7px 10px
2013-09-16 05:19:07 -04:00
margin: 0px
position: relative
min-height: 40px
font-size: $font-size-small
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
width: 100%
borderbox()
.wrap
vertical-align: middle
2013-10-23 09:02:08 -04:00
padding-left: 40px
2013-09-16 05:19:07 -04:00
&:hover
2013-10-24 18:16:34 -04:00
background: $blue-saturated
2013-09-16 05:19:07 -04:00
2014-01-05 05:30:26 -05:00
&.online, &.chat, &.dnd, &.away, &.xa
2013-09-25 02:57:46 -04:00
&:after
content: ''
position: absolute
top: 50%
right: 15px
2014-01-05 05:30:26 -05:00
height: 6px
width: 6px
2013-09-25 02:57:46 -04:00
margin-top: -4px
2014-01-05 05:30:26 -05:00
border: 1px solid transparent
2013-09-25 02:57:46 -04:00
roundall(10px)
2013-09-16 05:19:07 -04:00
&.online,
&.chat
2013-09-25 02:57:46 -04:00
&:after
2013-10-25 11:44:58 -04:00
background: $green
2014-01-05 05:30:26 -05:00
border-color: $green
2013-09-16 05:19:07 -04:00
&.dnd
2013-09-25 02:57:46 -04:00
&:after
2013-10-25 11:44:58 -04:00
background: $red
2014-01-05 05:30:26 -05:00
border-color: $red
2013-09-16 05:19:07 -04:00
&.away,
&.xa
2013-09-25 02:57:46 -04:00
&:after
2013-10-25 11:44:58 -04:00
background: $orange
2014-01-05 05:30:26 -05:00
border-color: $orange
2013-09-21 12:16:53 -04:00
&.offline:not(:hover)
.name
2013-10-23 13:57:46 -04:00
color: darken($gray-light, 40%)
2013-09-16 05:19:07 -04:00
2013-09-23 14:06:42 -04:00
.status
2013-10-23 13:57:46 -04:00
color: darken($gray-light, 65%)
2013-09-23 14:06:42 -04:00
2013-09-16 05:19:07 -04:00
img
opacity: .25
2013-09-21 12:16:53 -04:00
&.activeContact, &.offline.activeContact
background: white
font-weight: $font-weight-bold
2013-09-16 05:19:07 -04:00
2013-09-21 12:16:53 -04:00
.name
2013-10-23 13:57:46 -04:00
color: $gray
2013-09-21 12:16:53 -04:00
2013-09-16 05:19:07 -04:00
&.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
2013-09-16 05:19:07 -04:00
&.paused
&:after
2013-12-20 06:39:06 -05:00
background: lighten($gray-light, 30%)
2014-01-05 05:30:26 -05:00
border-color: lighten($gray-light, 30%)
2013-09-16 05:19:07 -04:00
2013-09-27 00:29:45 -04:00
&.idle
padding-right: 15px
2014-01-05 05:30:26 -05:00
&:after
background: transparent
2013-09-27 00:29:45 -04:00
.name
2013-10-23 13:57:46 -04:00
color: $gray-light
max-width: 60%
.user
width: 95%
2013-09-27 00:29:45 -04:00
2013-09-16 05:19:07 -04:00
img
opacity: 1
.avatar
vertical-align: top
margin-right: 5px
margin-top: -15px
2013-09-16 05:19:07 -04:00
position: absolute
left: 10px
top: 20px
avatar()
2013-09-16 05:19:07 -04:00
noselect()
.user
2013-09-21 12:16:53 -04:00
color: white
2013-12-20 15:59:53 -05:00
width: 100%
2013-10-23 09:02:08 -04:00
line-height: 100%
2013-12-20 15:59:53 -05:00
overflow: hidden
text-overflow: ellipsis
2013-09-16 05:19:07 -04:00
.status
2013-10-23 13:57:46 -04:00
color: $gray-light
2013-10-24 18:46:40 -04:00
font-size: $font-size-small
2013-09-25 04:45:23 -04:00
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
2013-09-16 05:19:07 -04:00
.unread
display: none
color: white
height: 22px
width: 30px
padding-top: 8px
roundall(30px)
2013-09-16 05:19:07 -04:00
position: absolute
top: 5px
left: 10px
2013-10-24 18:46:40 -04:00
font-size: $font-size-small
font-weight: $font-weight-bold
2013-09-16 05:19:07 -04:00
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
2013-09-27 03:28:18 -04:00
2013-10-15 14:56:40 -04:00
#bookmarks
.name
width: 120px
2013-10-23 09:05:51 -04:00
padding: 5px 10px 5px 40px
2013-10-15 14:56:40 -04:00
@keyframes pulsate
0%
opacity: 1.0
50%
opacity: 0.5
100%
opacity: 1.0