mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-16 06:15:08 -05:00
559 lines
11 KiB
Stylus
559 lines
11 KiB
Stylus
@import '../_variables'
|
|
@import '../_mixins'
|
|
|
|
.page.chat
|
|
padding-top: 0px
|
|
borderbox()
|
|
overflow-y: auto
|
|
overflow-x: hidden
|
|
|
|
.conversation
|
|
padding: 0px
|
|
overflow: hidden
|
|
borderbox()
|
|
|
|
header
|
|
padding: 0px
|
|
position: fixed
|
|
top: 0px
|
|
right: 0px
|
|
left: 220px
|
|
right: 90px
|
|
height: 55px
|
|
z-index: 101
|
|
|
|
.avatar
|
|
margin-right: 5px
|
|
avatar()
|
|
position: absolute
|
|
top: 11px
|
|
left: 11px
|
|
vertical-align: top
|
|
|
|
h1
|
|
padding: 0px
|
|
margin: 0px
|
|
top: 0px
|
|
white-space: nowrap
|
|
display: inline-block
|
|
height: 53px
|
|
|
|
.prefix, .name, .user_presence, .channel_actions, .status
|
|
display: inline-block
|
|
color: $gray-dark
|
|
padding: 0px
|
|
text-rendering: optimizelegibility
|
|
top: 0px
|
|
vertical-align: middle
|
|
|
|
.prefix
|
|
color: $gray
|
|
font-size: $font-size-h2
|
|
font-weight: $font-weight-classic
|
|
margin-left: 25px
|
|
line-height: 53px
|
|
cursor: default
|
|
|
|
.name
|
|
font-size: $font-size-h2
|
|
font-weight: $font-weight-bolder
|
|
overflow: hidden
|
|
text-overflow: ellipsis
|
|
padding-left: 3px
|
|
line-height: 53px
|
|
cursor: default
|
|
|
|
.user_presence, .channel_actions
|
|
color: $gray
|
|
padding-left: 8px
|
|
line-height: 53px
|
|
cursor: default
|
|
|
|
.user_presence
|
|
padding-top: 5px
|
|
font-size: $font-size-small
|
|
|
|
&.online
|
|
color: $green
|
|
opacity: 1
|
|
|
|
&.offline
|
|
color: $gray-dark
|
|
opacity: 0.5
|
|
|
|
&.dnd
|
|
color: $red
|
|
|
|
&.away, &.xa
|
|
color: $orange
|
|
|
|
&.composing
|
|
animation: pulsate 1.5s infinite ease-in
|
|
-webkit-animation: pulsate 1.5s infinite ease-in
|
|
-moz-animation: pulsate 1.5s infinite ease-in
|
|
|
|
&.paused:before
|
|
color: lighten($gray-dark, 30%)
|
|
|
|
&.idle:before
|
|
background: transparent
|
|
|
|
.channel_actions
|
|
opacity: 1
|
|
font-size: 20px
|
|
|
|
.status
|
|
color: $gray
|
|
font-weight: $font-weight-classic
|
|
font-size: $font-size-h3
|
|
line-height: 18px
|
|
margin-left: 15px
|
|
padding-top: 5px
|
|
white-space: nowrap
|
|
overflow: hidden
|
|
text-overflow: ellipsis
|
|
transition: all .25s
|
|
allowselect()
|
|
|
|
&:empty:before
|
|
content: ''
|
|
|
|
&:focus
|
|
border-radius: 0.25rem
|
|
border: 1px solid $gray
|
|
padding: 5px
|
|
outline: none
|
|
|
|
.tzo:not(:empty)
|
|
position: absolute
|
|
right: 15px
|
|
top: 18px
|
|
height: 20px
|
|
margin-top: -10px
|
|
padding: 0 5px
|
|
roundall(3px)
|
|
font-size: $font-size-small
|
|
font-weight: $font-weight-bold
|
|
line-height: 20px
|
|
color: lighten($gray, 30%)
|
|
background: $gray-lighter
|
|
border: 1px solid darken($gray-lighter, 10%)
|
|
|
|
&:before
|
|
content: 'Current Time: '
|
|
font-weight: bold
|
|
|
|
.call
|
|
display: none
|
|
width: 50px
|
|
height: 38px
|
|
position: absolute
|
|
top: 0px
|
|
right: 11px
|
|
|
|
.activeCall
|
|
display: none
|
|
transition(height 250ms)
|
|
height: 0px
|
|
position: absolute
|
|
bottom: 4rem
|
|
width: 100%
|
|
min-width: 610px
|
|
box-sizing: border-box
|
|
padding: 0px 73px 0px 24px
|
|
|
|
.container
|
|
width: 100%
|
|
height: 100%
|
|
border: 1px solid $gray-lighter
|
|
border-bottom: none
|
|
border-radius: 0.2rem 0.2rem 0 0
|
|
background-color: $gray-lighter
|
|
|
|
.remote
|
|
position: absolute
|
|
top: 20px
|
|
left: 40px
|
|
height: 65%
|
|
border: 2px solid $gray-light
|
|
|
|
.local
|
|
position: absolute
|
|
bottom: 10px
|
|
right: 80px
|
|
height: 20%
|
|
border: 2px solid $gray-light
|
|
transform(scaleX(-1))
|
|
|
|
.button-wrap
|
|
position: absolute
|
|
left: 118px
|
|
bottom: 26px
|
|
|
|
.button-group
|
|
margin-left: 5px
|
|
&.onCall
|
|
.activeCall
|
|
display: block
|
|
height: 20rem
|
|
.messages
|
|
bottom: 24rem
|
|
|
|
.chatBox
|
|
background-color: #fff
|
|
bottom: 0px
|
|
position: fixed
|
|
right: 0px
|
|
left: 221px
|
|
height: 4rem
|
|
z-index: 302
|
|
transition: none
|
|
-webkit-transition: none
|
|
|
|
.formwrap
|
|
transition: none
|
|
-webkit-transition: none
|
|
position: relative
|
|
height:38px
|
|
left: 24px
|
|
margin-right: 50px
|
|
|
|
textarea
|
|
display: inline-block
|
|
vertical-align: middle
|
|
background: none repeat scroll 0% 0% padding-box #fff
|
|
font-size: $font-size-base
|
|
border-width: 2px
|
|
border-style: solid
|
|
border-color: $gray-lighter
|
|
border-image: none
|
|
border-radius: 0px 0.2rem 0.2rem 0px
|
|
font-family: "Lato",sans-serif
|
|
margin: 0
|
|
color: #3D3C40
|
|
overflow-y: hidden
|
|
box-shadow: none
|
|
outline: 0px none
|
|
position: absolute
|
|
bottom: 0px
|
|
height: 38px
|
|
padding: 9px 5px 9px 8px
|
|
max-height: 10rem
|
|
resize: none !important
|
|
|
|
&.editing
|
|
background-color: #fffcea
|
|
border: 1px solid #efe391
|
|
color: #d2bd2d
|
|
&:focus
|
|
box-shadow: none
|
|
|
|
.messages
|
|
margin: 0px
|
|
padding: 0px 1.5rem
|
|
overflow-y: auto
|
|
overflow-x: hidden
|
|
position: absolute
|
|
top: 0px
|
|
right: 0px
|
|
bottom: 4rem
|
|
margin-top: 54px
|
|
width: 100%
|
|
borderbox()
|
|
-webkit-overflow-scrolling: touch
|
|
|
|
li.day_divider
|
|
display: block
|
|
background: none repeat scroll 0% 0% #fff
|
|
font-size: 1rem
|
|
color: #555459
|
|
font-weight: 900
|
|
text-align: center
|
|
cursor: default
|
|
clear: both
|
|
position: relative
|
|
line-height: 1.2rem
|
|
margin: 1.5rem 0px
|
|
padding: 0
|
|
min-height: 0
|
|
|
|
hr
|
|
position: absolute
|
|
width: 100%
|
|
top: 0.6rem
|
|
margin: 0px
|
|
border-width: 1px 0px 0px 0px
|
|
border-style: solid none
|
|
border-color: #ddd
|
|
|
|
.day_divider_name
|
|
background: none repeat scroll 0% 0% #fff
|
|
text-transform: capitalize
|
|
text-align: center
|
|
padding: 0px 1rem
|
|
display: inline-block
|
|
margin: 0px auto
|
|
position: relative
|
|
|
|
li
|
|
position: relative
|
|
list-style: none
|
|
padding: 10px 0
|
|
width: 100%
|
|
min-height: 50px
|
|
display: table
|
|
display: table-row
|
|
|
|
&:last-of-type
|
|
border: none
|
|
|
|
.messageAvatar
|
|
display: inline-block
|
|
outline: none
|
|
|
|
img
|
|
avatar()
|
|
|
|
.name
|
|
text-indent: -9999em
|
|
position: absolute
|
|
width: 1px
|
|
|
|
p a
|
|
display: inline
|
|
word-wrap: break-word
|
|
word-break: break-all
|
|
|
|
p img
|
|
margin: 5px 0
|
|
border-radius: 5px
|
|
box-shadow: rgba(0, 0, 0, .25) 0 2px 3px
|
|
|
|
.sender
|
|
font-size: 12px
|
|
font-weight: bold
|
|
color: $gray
|
|
text-align: right
|
|
white-space: nowrap
|
|
vertical-align: top
|
|
margin-top: 5px
|
|
|
|
.name
|
|
padding-left: 10px
|
|
vertical-align: middle
|
|
|
|
.messageWrapper
|
|
display: table-cell
|
|
padding: 0px 0px 12px 15px
|
|
width: 99%
|
|
vertical-align: top
|
|
|
|
.message_header
|
|
|
|
.name
|
|
display: inline-block
|
|
font-weight: $font-weight-bolder
|
|
font-size: $font-size-message
|
|
color: $black
|
|
line-height: 22px
|
|
cursor: pointer
|
|
|
|
.date
|
|
display: inline-block
|
|
margin-left: 0.25rem
|
|
color: $gray-light
|
|
font-size: $font-size-small
|
|
width: 60px
|
|
line-height: 22px
|
|
text-transform: uppercase
|
|
cursor: pointer
|
|
|
|
.message
|
|
font-size: $font-size-message
|
|
line-height: 22px
|
|
color: $black
|
|
margin: 0px 0px 2px 0px
|
|
display: block
|
|
min-width: 20px
|
|
width: 100%
|
|
borderbox()
|
|
|
|
&:not(.mine)
|
|
color: $gray-dark
|
|
|
|
&.pending
|
|
color: lighten($gray, 50%)
|
|
|
|
&.meAction
|
|
font-style: italic
|
|
color: $blue
|
|
background-color: $blue-lighter
|
|
padding: 2px
|
|
padding-left: 8px
|
|
padding-right: 3px
|
|
border-radius: 2px
|
|
|
|
&:before
|
|
content: '\2022 '
|
|
font-style: normal
|
|
|
|
.timestamp
|
|
font-style: normal
|
|
color: $blue-light
|
|
|
|
.body
|
|
display: inline
|
|
word-break: break-word
|
|
|
|
.mention
|
|
color: $pink
|
|
background-color: $pink-lighter
|
|
padding: 1px
|
|
font-weight: bold
|
|
border-radius: 4px
|
|
border: 1px solid darken($pink-lighter, 25%)
|
|
|
|
.timestamp
|
|
font-size: $font-size-smaller
|
|
color: lighten($blue, 50%)
|
|
float: right
|
|
display: block
|
|
|
|
&:after
|
|
width: 12px
|
|
content: ''
|
|
display: inline-block
|
|
text-align: center
|
|
|
|
.sender
|
|
display: block
|
|
|
|
.group.conversation
|
|
h1
|
|
.status
|
|
&:empty:before
|
|
content: 'No subject'
|
|
/*
|
|
.chatBox .formwrap
|
|
margin-right: 35px
|
|
*/
|
|
#members_toggle
|
|
position: absolute
|
|
top: 60px
|
|
right: 20px
|
|
cursor: pointer
|
|
color: $gray
|
|
font-size: $font-size-h3
|
|
|
|
&:hover
|
|
color: #439FE0
|
|
|
|
#members_toggle_count
|
|
margin-left: 5px
|
|
|
|
.groupRoster
|
|
width: 150px
|
|
margin: 0px
|
|
padding: 0px
|
|
overflow-y: auto
|
|
overflow-x: hidden
|
|
position: absolute
|
|
top: 80px
|
|
right: 20px
|
|
borderbox()
|
|
box-shadow: 0px 2px 10px rgba(64, 54, 63, 0.25)
|
|
-webkit-overflow-scrolling: touch
|
|
border: 1px solid #ddd
|
|
border-radius: 0.25rem
|
|
background-color: #fff
|
|
z-index: 100
|
|
visibility: hidden
|
|
padding: 5px 30px 5px 5px
|
|
|
|
li
|
|
padding: 3px
|
|
margin: 0px
|
|
border-radius: 0.25rem
|
|
position: relative
|
|
cursor: pointer
|
|
|
|
&:hover
|
|
background-color: #439FE0
|
|
|
|
.name
|
|
color: #fff
|
|
|
|
.name
|
|
padding-left: 14px
|
|
color: $gray
|
|
font-size: 14px
|
|
font-weight: bold
|
|
|
|
&:before
|
|
content: ''
|
|
position: absolute
|
|
left: 4px
|
|
top: 12px
|
|
height: 4px
|
|
width: 4px
|
|
margin-top: -3px
|
|
border: 2px solid transparent
|
|
roundall(10px)
|
|
|
|
&.online,
|
|
&.chat
|
|
&:before
|
|
background: $green
|
|
border-color: $green
|
|
&:not(:hover) .name
|
|
color: $gray-dark
|
|
|
|
&:not(:hover).active .name
|
|
color $red
|
|
|
|
&.dnd:before
|
|
background: $red
|
|
border-color: $red
|
|
|
|
&.away:before,
|
|
&.xa:before
|
|
background: $orange
|
|
border-color: $orange
|
|
|
|
&.offline:before
|
|
background: $gray-dark
|
|
border-color: $gray-dark
|
|
|
|
&.composing:before
|
|
animation: pulsate 1.5s infinite ease-in
|
|
-webkit-animation: pulsate 1.5s infinite ease-in
|
|
-moz-animation: pulsate 1.5s infinite ease-in
|
|
|
|
&.paused:before
|
|
background: lighten($gray-light, 30%)
|
|
border-color: lighten($gray-light, 30%)
|
|
|
|
&.idle:before
|
|
background: transparent
|
|
|
|
.embeds
|
|
margin: 0px
|
|
padding: 0px
|
|
display: none
|
|
|
|
.embed
|
|
width: 500px
|
|
max-width: 500px
|
|
margin-bottom: 20px
|
|
|
|
p, p:hover
|
|
margin: 0px
|
|
padding: 6px
|
|
background-color: #E6EAEF
|
|
|
|
a, a:hover
|
|
color: #34465a
|
|
|
|
a.source
|
|
display: none
|