kaiwa/public/css/pages/roster.styl

344 lines
6.3 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: 230px
2015-02-09 10:20:28 -05:00
background-color: $sidebarBg
color: $sidebarText
2013-09-16 05:19:07 -04:00
z-index: 300
webkit-transition-fix()
noselect()
2015-02-09 10:20:28 -05:00
#organization
width: 230px
2015-02-23 09:43:00 -05:00
height: 42px
background: $sidebarTopAndBottomBg
2015-02-09 10:20:28 -05:00
#orga_name
color: $topbarFg
2015-02-09 10:20:28 -05:00
font-size: $font-size-large
font-weight: $font-weight-bolder
line-height: 42px;
2015-02-09 10:20:28 -05:00
vertical-align: middle
margin-left: 20px
2015-02-23 09:43:00 -05:00
.settings
position: relative
height: 28px;
left: 5px;
2015-02-23 09:43:00 -05:00
background-color: $settingsBg
color: $settingsText
transition: none
border: 0
svg
position: absolute
top: 55%
left: 3px
margin: 0px
margin-top: -13px
fill: $settingsText
&:hover
svg
fill: $settingsHoverText
2015-02-23 12:24:16 -05:00
&.active
svg
fill: $settingsHoverText
.viewport
position: absolute
top: 42px
bottom: 22px
left: 0
right: 0
overflow-y: auto
overflow-x: hidden
padding-top: 20px
padding-bottom: 10px
2013-09-16 05:19:07 -04:00
.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
font-size: $font-size-message
margin: 0
2015-02-09 10:20:28 -05:00
padding: 4px 20px
2013-09-21 12:16:53 -04:00
text-transform: uppercase
margin-bottom: 7px;
color: $sidebarSectionTitleColor
2013-09-16 05:19:07 -04:00
2013-09-16 19:12:00 -04:00
#roster,
#bookmarks
2015-02-09 10:20:28 -05:00
margin-bottom: 25px
#contactrequests
margin: 0px
padding-left: 0px
2015-02-09 10:20:28 -05:00
li
width: 180px
height: 68px
margin-left: 20px
margin-bottom: 10px
padding-bottom: 4px
background: $sidebarRequestBg
border-radius: 0.25rem
border: 2px solid $sidebarRequestBorder
.response
text-align: center
.jid
display: inline-block
width: 100%
text-align: center
.approve, .deny
display: inline-block
margin-top: 10px
#addcontact,
#joinmuc
2015-02-09 10:20:28 -05:00
margin: 8px 20px 5px 20px
2014-11-21 19:29:14 -05:00
padding: 0px 10px
width: 178px
height: 25px
font-size: $font-size-small
2015-02-09 10:20:28 -05:00
background-color: $sidebarInputBg
border-radius: 0.25rem
border: 1px solid $sidebarInputBorder
color: $sidebarInputText
2013-09-16 05:19:07 -04:00
li
list-style-type: none
padding: 3px 10px
padding-right: 15px
2013-09-16 05:19:07 -04:00
position: relative
2015-02-09 10:20:28 -05:00
font-size: $font-size-base
2013-09-19 10:39:07 -04:00
cursor: pointer
width: 100%
borderbox()
2015-02-09 10:20:28 -05:00
color: $sidebarNames
2013-09-16 05:19:07 -04:00
&:hover
2015-02-09 10:20:28 -05:00
background: $sidebarHover
color: $sidebarHoverText
2013-09-16 05:19:07 -04:00
2015-02-09 10:20:28 -05:00
&.joined
&:hover:not(.hasUnread) .remove
visibility: visible
2013-09-16 05:19:07 -04:00
2015-02-09 10:20:28 -05:00
&:not(.joined)
&:hover:not(.hasUnread) .join
visibility: visible
2013-09-16 05:19:07 -04:00
2015-02-09 10:20:28 -05:00
&.hasUnread, &.hasUnread .prefix
font-weight: $font-weight-bolder
color: $sidebarUnreadText
2013-09-21 12:16:53 -04:00
2015-02-09 10:20:28 -05:00
&:not(.activeContact).offline,
&:not(.activeContact).chat
.presence
color: $brown-light
2013-09-16 05:19:07 -04:00
2015-02-09 10:20:28 -05:00
&:not(.activeContact).dnd
.presence
color: $red
opacity: 1
2013-09-23 14:06:42 -04:00
2015-02-09 10:20:28 -05:00
&:not(.activeContact).away,
&:not(.activeContact).xa
.presence
color: $orange
opacity: 1
2013-09-16 05:19:07 -04:00
2013-09-21 12:16:53 -04:00
&.activeContact, &.offline.activeContact
2015-02-09 10:20:28 -05:00
background: $sidebarSelectionBg
&:not(.dnd):not(.away):not(.online) .presence
color: $brown-darkerer
opacity: 1
.remove, .join
color: $sidebarSelectionText
2015-02-09 10:20:28 -05:00
.name
color: $sidebarSelectionText
2015-02-09 10:20:28 -05:00
&:not(.activeContact).online
.presence
color: $green
opacity: 1
2013-09-16 05:19:07 -04:00
2015-02-09 10:20:28 -05:00
&.online, &.dnd, &.away
2013-09-21 12:16:53 -04:00
.name
2015-02-09 10:20:28 -05:00
font-style : normal
&.activeContact
&.online .presence,
&.dnd .presence,
&.away .presence
color: #fff
opacity: 1
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
2014-01-05 05:30:26 -05:00
&:after
background: transparent
2013-09-27 00:29:45 -04:00
.name
2015-02-09 10:20:28 -05:00
color: $sidebarNames
2015-01-22 05:14:42 -05:00
font-style: italic
2013-09-27 00:29:45 -04:00
2015-02-09 10:20:28 -05:00
.presence
font-size: 10px
display: inline-block
margin-top: -10px
vertical-align: middle
position: absolute;
right: 28px;
top: 21px;
2013-09-16 05:19:07 -04:00
.user
2015-02-09 10:20:28 -05:00
display: inline-block
width: 170px
2013-12-20 15:59:53 -05:00
overflow: hidden
text-overflow: ellipsis
height: $font-size-base+6
2015-02-09 10:20:28 -05:00
font-style: italic
2013-09-16 05:19:07 -04:00
.status
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
2015-02-09 10:20:28 -05:00
color: darken($brown-light, 50%)
.avatar
width: 16px
height: 16px
roundall(0.2rem)
border-radius: 50%
margin: 0
padding: 0
margin-right: 5px
margin-top: 4px
.name
2015-02-09 10:20:28 -05:00
width: 100%
overflow: hidden
2015-02-09 10:20:28 -05:00
text-overflow: ellipsis
max-width: 140px
line-height: 23px
height: 23px
position: absolute
2013-09-16 05:19:07 -04:00
.unread
display: none
2015-02-09 10:20:28 -05:00
color: $sidebarUnreadText
height: 16px
width: 18px
roundall(5px)
2013-09-16 05:19:07 -04:00
position: absolute
2015-02-09 10:20:28 -05:00
padding-top:2px
right: 15px
top: 6px
2015-02-09 10:20:28 -05:00
font-size: $font-size-smaller
font-weight: $font-weight-bold
2013-09-16 05:19:07 -04:00
text-align: center
2015-02-09 10:20:28 -05:00
background: $sidebarUnreadBg
.unread:not(:empty)
display: block
2015-02-09 10:20:28 -05:00
.remove, .join
position: absolute
right: 10px
top: 8px
2015-02-09 10:20:28 -05:00
font-size: $font-size-base
display: inline-block
font-family: FontAwesome
visibility: hidden
button
margin: -15px 0px 0px 5px
.leaveRoom
display: none
.joinRoom
display: inline-block
&.joined
.joinRoom
display: none
.leaveRoom
display: inline-block
#roster
2015-02-09 10:20:28 -05:00
.wrap
padding-left: 14px
height: 23px;
2013-09-27 03:28:18 -04:00
2013-10-15 14:56:40 -04:00
#bookmarks
2015-02-09 10:20:28 -05:00
.wrap
2015-02-23 09:43:00 -05:00
padding-left: 14px
height: 23px
2013-10-15 14:56:40 -04:00
@keyframes pulsate
0%
opacity: 1.0
50%
opacity: 0.5
100%
opacity: 1.0
#kaiwaNotice
position: absolute
2015-04-09 09:36:48 -04:00
bottom: 8px
left: 50%
2015-04-09 09:36:48 -04:00
width: 120px
margin-left: -60px
opacity: .4
img
2015-04-09 09:36:48 -04:00
width: 36px
margin-left: 3px;