2013-09-16 05:19:07 -04:00
|
|
|
@import '../_variables'
|
|
|
|
@import '../_mixins'
|
|
|
|
|
|
|
|
.page.chat
|
|
|
|
padding-top: 0px
|
|
|
|
borderbox()
|
|
|
|
|
|
|
|
.conversation
|
|
|
|
position: relative
|
|
|
|
bottom: 0px
|
|
|
|
left: 0px
|
|
|
|
right: 0px
|
|
|
|
padding: 0px
|
|
|
|
width: 100%
|
|
|
|
borderbox()
|
2013-12-16 13:06:03 -05:00
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
header
|
|
|
|
padding: 5px
|
2013-10-23 13:57:46 -04:00
|
|
|
border-bottom: 2px solid $gray-lighter
|
2013-09-16 05:19:07 -04:00
|
|
|
position: fixed
|
|
|
|
right: 0px
|
2013-09-27 11:31:02 -04:00
|
|
|
left: 201px
|
2013-09-16 05:19:07 -04:00
|
|
|
z-index: 10
|
|
|
|
borderbox()
|
2013-10-23 13:57:46 -04:00
|
|
|
background: lighten($gray-light, 93%)
|
2013-09-16 05:19:07 -04:00
|
|
|
|
2013-10-25 12:09:18 -04:00
|
|
|
.controls
|
|
|
|
float: right
|
|
|
|
|
2013-12-16 13:06:03 -05:00
|
|
|
.leaveRoom
|
|
|
|
display: none
|
|
|
|
|
|
|
|
.joinRoom
|
|
|
|
display: block
|
|
|
|
|
|
|
|
.joined
|
|
|
|
.joinRoom
|
|
|
|
display: none
|
|
|
|
|
|
|
|
.leaveRoom
|
|
|
|
display: block
|
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
.avatar
|
|
|
|
margin-right: 5px
|
2013-09-25 03:18:37 -04:00
|
|
|
avatar()
|
2013-09-16 05:19:07 -04:00
|
|
|
position: absolute
|
|
|
|
top: 11px
|
|
|
|
left: 11px
|
|
|
|
vertical-align: top
|
|
|
|
|
2013-10-15 15:52:59 -04:00
|
|
|
.name, .call
|
|
|
|
float: left
|
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
.name
|
|
|
|
margin: 15px
|
|
|
|
padding: 0px
|
|
|
|
margin-left: 45px
|
2013-10-23 13:15:38 -04:00
|
|
|
font-size: $font-size-base
|
2013-09-16 05:19:07 -04:00
|
|
|
line-height: 14px
|
2013-10-15 15:52:59 -04:00
|
|
|
max-width: 50%
|
2013-09-16 05:19:07 -04:00
|
|
|
|
2013-09-23 14:23:23 -04:00
|
|
|
.tzo:not(:empty)
|
|
|
|
position: absolute
|
|
|
|
right: 15px
|
2013-10-15 15:52:59 -04:00
|
|
|
top: 28px
|
2013-09-23 14:23:23 -04:00
|
|
|
height: 20px
|
|
|
|
margin-top: -10px
|
|
|
|
padding: 0 5px
|
|
|
|
roundall(3px)
|
|
|
|
text-transform: uppercase
|
2013-10-24 18:46:40 -04:00
|
|
|
font-size: $font-size-small
|
2013-10-23 11:15:02 -04:00
|
|
|
font-weight: $font-weight-bold
|
2013-09-23 14:23:23 -04:00
|
|
|
line-height: 20px
|
2013-10-23 13:57:46 -04:00
|
|
|
color: lighten($gray, 30%)
|
|
|
|
background: $gray-lighter
|
2013-09-23 14:23:23 -04:00
|
|
|
|
2013-10-15 15:52:59 -04:00
|
|
|
.call
|
2013-10-24 17:32:20 -04:00
|
|
|
margin-top: 9px
|
2013-10-23 08:29:45 -04:00
|
|
|
text-transform: capitalize
|
2013-10-15 15:52:59 -04:00
|
|
|
|
2013-10-15 23:06:18 -04:00
|
|
|
.activeCall
|
|
|
|
transition(height 250ms)
|
|
|
|
height: 0px
|
|
|
|
position: relative
|
|
|
|
top: 0px
|
|
|
|
|
|
|
|
.remote
|
|
|
|
position: absolute
|
|
|
|
top: 60px
|
|
|
|
left: 10px
|
|
|
|
height: 50%
|
|
|
|
|
|
|
|
.local
|
|
|
|
position: absolute
|
|
|
|
bottom: 10px
|
|
|
|
right: 10px
|
|
|
|
height: 20%
|
2013-10-23 13:57:46 -04:00
|
|
|
border: 2px solid $gray-lighter
|
2013-10-16 13:48:00 -04:00
|
|
|
transform(scaleX(-1))
|
2013-10-15 23:06:18 -04:00
|
|
|
|
2013-10-24 17:32:20 -04:00
|
|
|
.button-wrap
|
2013-10-15 23:06:18 -04:00
|
|
|
position: absolute
|
|
|
|
left: 10px
|
|
|
|
bottom: 10px
|
|
|
|
|
2013-10-24 17:32:20 -04:00
|
|
|
.button-group
|
|
|
|
margin-left: 5px
|
2013-10-15 23:06:18 -04:00
|
|
|
|
|
|
|
// while on video call the parent has
|
|
|
|
// this class so we animate the height
|
|
|
|
&.onCall
|
|
|
|
.activeCall
|
|
|
|
height: 400px
|
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
.messages
|
|
|
|
margin: 0px
|
|
|
|
padding: 0px
|
2013-09-19 10:39:07 -04:00
|
|
|
padding-top: 130px
|
2013-09-16 05:19:07 -04:00
|
|
|
overflow-y: auto
|
|
|
|
overflow-x: hidden
|
|
|
|
position: relative
|
|
|
|
bottom: 75px
|
|
|
|
width: 100%
|
2013-12-13 19:16:40 -05:00
|
|
|
display: table
|
2013-09-16 05:19:07 -04:00
|
|
|
borderbox()
|
|
|
|
|
|
|
|
li
|
|
|
|
position: relative
|
|
|
|
z-index: 1
|
|
|
|
list-style: none
|
2013-09-26 06:55:27 -04:00
|
|
|
padding: 10px 0
|
2013-09-16 05:19:07 -04:00
|
|
|
width: 100%
|
2013-09-26 07:03:35 -04:00
|
|
|
min-height: 50px
|
2013-10-23 09:52:25 -04:00
|
|
|
display: table
|
2013-09-16 05:19:07 -04:00
|
|
|
borderbox()
|
2013-10-23 13:57:46 -04:00
|
|
|
border-bottom: 1px solid $gray-lighter
|
2013-12-13 19:16:40 -05:00
|
|
|
display: table-row
|
2013-09-16 05:19:07 -04:00
|
|
|
|
2013-09-26 06:55:27 -04:00
|
|
|
&:last-of-type
|
2013-09-19 12:35:34 -04:00
|
|
|
border: none
|
|
|
|
|
2013-09-25 23:38:00 -04:00
|
|
|
.messageAvatar
|
2013-12-13 19:16:40 -05:00
|
|
|
display: inline-block
|
2013-09-25 23:38:00 -04:00
|
|
|
|
|
|
|
img
|
|
|
|
avatar()
|
2013-09-26 07:03:35 -04:00
|
|
|
|
2013-09-25 23:38:00 -04:00
|
|
|
.name
|
|
|
|
text-indent: -9999em
|
|
|
|
position: absolute
|
|
|
|
width: 1px
|
|
|
|
|
2013-12-13 19:16:40 -05:00
|
|
|
.sender
|
|
|
|
display: table-cell
|
|
|
|
font-size: 12px
|
|
|
|
font-weight: bold
|
|
|
|
color: $gray
|
2013-12-16 23:20:29 -05:00
|
|
|
padding: 5px
|
2013-12-13 19:16:40 -05:00
|
|
|
text-align: right
|
|
|
|
background-color: #f7f7f7
|
|
|
|
border-top: 1px solid #e1e1e1
|
2013-12-16 22:17:08 -05:00
|
|
|
white-space: nowrap
|
2013-12-13 19:16:40 -05:00
|
|
|
|
|
|
|
.name
|
|
|
|
padding-left: 10px
|
|
|
|
|
2013-09-25 23:38:00 -04:00
|
|
|
.messageWrapper
|
2013-10-23 09:52:25 -04:00
|
|
|
display: table-cell
|
2013-12-16 23:20:29 -05:00
|
|
|
padding: 5px
|
2013-12-13 19:16:40 -05:00
|
|
|
border-top: 1px solid #eee
|
2013-12-16 22:17:08 -05:00
|
|
|
width: 99%
|
2013-12-16 23:31:15 -05:00
|
|
|
vertical-align: top
|
2013-09-25 23:38:00 -04:00
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
.message
|
2013-10-23 13:15:38 -04:00
|
|
|
font-size: $font-size-small
|
2013-12-16 17:28:13 -05:00
|
|
|
margin: 2px
|
2013-09-16 05:19:07 -04:00
|
|
|
display: inline-block
|
|
|
|
padding-right: 11px
|
|
|
|
min-width: 20px
|
|
|
|
width: 100%
|
|
|
|
borderbox()
|
|
|
|
|
2013-09-24 07:27:58 -04:00
|
|
|
&:not(.mine)
|
2013-12-16 17:28:13 -05:00
|
|
|
color: $gray-dark
|
2013-09-24 07:27:58 -04:00
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
&.mine
|
2013-09-19 10:45:11 -04:00
|
|
|
background: white
|
2013-09-16 05:19:07 -04:00
|
|
|
|
|
|
|
.timestamp
|
2013-10-23 13:57:46 -04:00
|
|
|
color: darken($gray-lighter, 20%)
|
2013-09-16 05:19:07 -04:00
|
|
|
|
|
|
|
&.delayed
|
|
|
|
.timestamp:before
|
|
|
|
content: '@ '
|
|
|
|
|
|
|
|
&.edited
|
|
|
|
.timestamp:before
|
|
|
|
content: 'edited '
|
|
|
|
|
2013-09-24 05:05:10 -04:00
|
|
|
&.pending
|
2013-10-23 13:57:46 -04:00
|
|
|
color: lighten($gray, 50%)
|
2013-09-24 05:05:10 -04:00
|
|
|
|
2013-12-16 17:28:13 -05:00
|
|
|
&.meAction
|
|
|
|
font-style: italic
|
2013-12-16 23:20:29 -05:00
|
|
|
color: $blue
|
|
|
|
background-color: $blue-lighter
|
2013-12-16 17:28:13 -05:00
|
|
|
padding: 2px
|
|
|
|
padding-left: 8px
|
|
|
|
border-radius: 2px
|
|
|
|
|
|
|
|
&:before
|
|
|
|
content: '\2022 '
|
|
|
|
font-style: normal
|
|
|
|
|
|
|
|
.timestamp
|
|
|
|
position: relative
|
|
|
|
left: -10px
|
|
|
|
font-style: normal
|
2013-12-16 23:20:29 -05:00
|
|
|
color: $blue-light
|
2013-12-16 17:28:13 -05:00
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
.body
|
|
|
|
display: inline
|
|
|
|
word-break: break-word
|
|
|
|
|
2013-12-16 23:20:29 -05:00
|
|
|
.mention
|
|
|
|
color: $pink
|
|
|
|
background-color: $pink-lighter
|
|
|
|
padding: 1px
|
|
|
|
font-weight: bold
|
|
|
|
border-radius: 4px
|
|
|
|
border: 1px solid darken($pink-lighter, 25%)
|
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
.timestamp
|
2013-10-25 12:09:18 -04:00
|
|
|
font-size: $font-size-smaller
|
2013-10-23 13:57:46 -04:00
|
|
|
color: lighten($blue, 50%)
|
2013-09-16 05:19:07 -04:00
|
|
|
float: right
|
|
|
|
display: block
|
|
|
|
|
2013-09-24 16:24:35 -04:00
|
|
|
.sender
|
|
|
|
display: block
|
|
|
|
|
2013-09-16 05:19:07 -04:00
|
|
|
.chatBox
|
|
|
|
borderbox()
|
2013-10-23 13:57:46 -04:00
|
|
|
border-top: 1px solid $gray-lighter
|
2013-09-16 05:19:07 -04:00
|
|
|
bottom: 0px
|
|
|
|
position: fixed
|
|
|
|
right: 0px
|
2013-09-27 15:10:30 -04:00
|
|
|
left: 201px
|
2013-09-16 05:19:07 -04:00
|
|
|
z-index: 200
|
|
|
|
|
|
|
|
form
|
2013-10-23 13:57:46 -04:00
|
|
|
background: lighten($gray-light, 93%)
|
2013-09-16 05:19:07 -04:00
|
|
|
padding: 11px
|
|
|
|
|
|
|
|
.formwrap
|
|
|
|
borderbox()
|
|
|
|
width: 100%
|
|
|
|
padding-right: 80px
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
textarea
|
|
|
|
height: 30px
|
2013-10-24 18:07:43 -04:00
|
|
|
padding: 6px 10px
|
2013-09-16 05:19:07 -04:00
|
|
|
|
|
|
|
&.editing
|
2013-09-23 14:54:35 -04:00
|
|
|
background-color: #fffcea
|
|
|
|
border: 1px solid #efe391
|
|
|
|
color: #d2bd2d
|