kaiwa/public/css/pages/roster.styl

320 lines
6.0 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
2015-02-09 10:20:28 -05:00
width: 220px
background-color: $sidebarBg
color: $sidebarText
border-right: 1px solid $sidebarBorder
2013-09-16 05:19:07 -04:00
z-index: 300
overflow-y: auto;
overflow-x: hidden;
webkit-transition-fix()
noselect()
2015-02-09 10:20:28 -05:00
#organization
width: 220px
2015-02-23 09:43:00 -05:00
height: 42px
2015-02-09 10:20:28 -05:00
margin-bottom: 10px
#orga_name
color: $sidebarOrgaName
font-size: $font-size-large
font-weight: $font-weight-bolder
line-height: 53px;
vertical-align: middle
margin-left: 20px
2015-02-23 09:43:00 -05:00
.settings
position: relative
height: 30px
left: 0px
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
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
2015-02-09 10:20:28 -05:00
font-size: $font-size-base
margin: 0
2015-02-09 10:20:28 -05:00
padding: 4px 20px
2013-09-21 12:16:53 -04:00
text-transform: uppercase
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-right: 20px
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
2015-02-09 10:20:28 -05:00
padding: 4px 10px
2015-02-23 09:43:00 -05:00
margin: 0px 0px 0px 10px
border-radius: 0.25rem
2013-09-16 05:19:07 -04:00
position: relative
2015-02-09 10:20:28 -05:00
height: 25px
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
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: #fff
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
.prefix
color: $green-lighterer
opacity: 1
&:not(.dnd):not(.away):not(.online) .presence
color: $brown-darkerer
opacity: 1
.remove, .join
color: #fff
.name
color: #fff
&: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
opacity: 0.5
2013-09-16 05:19:07 -04:00
.user
2015-02-09 10:20:28 -05:00
display: inline-block
width: 120px
2013-10-23 09:02:08 -04:00
line-height: 100%
2013-12-20 15:59:53 -05:00
overflow: hidden
text-overflow: ellipsis
2015-02-09 10:20:28 -05:00
height: $font-size-base+3
font-style: italic
text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25)
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%)
.name
2015-02-09 10:20:28 -05:00
width: 100%
line-height: 100%
overflow: hidden
2015-02-09 10:20:28 -05:00
text-overflow: ellipsis
height: $font-size-base+3
text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3)
position: absolute
2015-02-23 09:43:00 -05:00
left: 22px
2015-02-09 10:20:28 -05:00
max-width: 140px
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: 5px
top: 3px
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: 7px
top: 5px
font-size: $font-size-base
display: inline-block
font-family: FontAwesome
visibility: hidden
.prefix
font-weight: 300
opacity: 0.5
position: relative
left: -15px
text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
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
2015-02-23 09:43:00 -05:00
padding-left: 0px
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
2013-10-15 14:56:40 -04:00
@keyframes pulsate
0%
opacity: 1.0
50%
opacity: 0.5
100%
opacity: 1.0