mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-14 05:25:02 -05:00
214 lines
3.6 KiB
Stylus
214 lines
3.6 KiB
Stylus
@import '../_variables'
|
|
@import '../_mixins'
|
|
|
|
.page.chat
|
|
padding-top: 0px
|
|
borderbox()
|
|
|
|
.conversation
|
|
position: relative
|
|
bottom: 0px
|
|
left: 0px
|
|
right: 0px
|
|
padding: 0px
|
|
width: 100%
|
|
borderbox()
|
|
|
|
header
|
|
padding: 5px
|
|
border-bottom: 2px solid $gray-lighter
|
|
position: fixed
|
|
right: 0px
|
|
left: 201px
|
|
z-index: 10
|
|
borderbox()
|
|
background: lighten($gray-light, 93%)
|
|
|
|
.avatar
|
|
margin-right: 5px
|
|
avatar()
|
|
position: absolute
|
|
top: 11px
|
|
left: 11px
|
|
vertical-align: top
|
|
|
|
.name, .call
|
|
float: left
|
|
|
|
.name
|
|
margin: 15px
|
|
padding: 0px
|
|
margin-left: 45px
|
|
font-size: $font-size-base
|
|
line-height: 14px
|
|
max-width: 50%
|
|
|
|
.tzo:not(:empty)
|
|
position: absolute
|
|
right: 15px
|
|
top: 28px
|
|
height: 20px
|
|
margin-top: -10px
|
|
padding: 0 5px
|
|
roundall(3px)
|
|
text-transform: uppercase
|
|
font-size: $font-size-smaller
|
|
font-weight: $font-weight-bold
|
|
line-height: 20px
|
|
color: lighten($gray, 30%)
|
|
background: $gray-lighter
|
|
|
|
.call
|
|
margin-top: 9px
|
|
text-transform: capitalize
|
|
|
|
.activeCall
|
|
transition(height 250ms)
|
|
height: 0px
|
|
position: relative
|
|
top: 0px
|
|
|
|
.remote
|
|
position: absolute
|
|
top: 60px
|
|
left: 10px
|
|
height: 50%
|
|
border: 2px solid $gray-lighter
|
|
|
|
.local
|
|
position: absolute
|
|
bottom: 10px
|
|
right: 10px
|
|
height: 20%
|
|
border: 2px solid $gray-lighter
|
|
transform(scaleX(-1))
|
|
|
|
.button-wrap
|
|
position: absolute
|
|
left: 10px
|
|
bottom: 10px
|
|
|
|
.button-group
|
|
margin-left: 5px
|
|
|
|
// while on video call the parent has
|
|
// this class so we animate the height
|
|
&.onCall
|
|
.activeCall
|
|
height: 400px
|
|
|
|
.messages
|
|
margin: 0px
|
|
padding: 0px
|
|
padding-top: 130px
|
|
overflow-y: auto
|
|
overflow-x: hidden
|
|
position: relative
|
|
bottom: 75px
|
|
width: 100%
|
|
borderbox()
|
|
|
|
li
|
|
position: relative
|
|
z-index: 1
|
|
list-style: none
|
|
padding: 10px 0
|
|
width: 100%
|
|
min-height: 50px
|
|
display: table
|
|
borderbox()
|
|
border-bottom: 1px solid $gray-lighter
|
|
|
|
&:last-of-type
|
|
border: none
|
|
|
|
.messageAvatar
|
|
position: absolute
|
|
top: 50%
|
|
left: 10px
|
|
margin-top: -15px
|
|
|
|
img
|
|
avatar()
|
|
|
|
.name
|
|
text-indent: -9999em
|
|
position: absolute
|
|
width: 1px
|
|
|
|
.messageWrapper
|
|
padding-left: 50px
|
|
display: table-cell
|
|
vertical-align: middle
|
|
|
|
.message
|
|
font-size: $font-size-small
|
|
margin: 0px
|
|
display: inline-block
|
|
padding-right: 11px
|
|
min-width: 20px
|
|
width: 100%
|
|
borderbox()
|
|
|
|
&:not(.mine)
|
|
color: $blue
|
|
|
|
&.mine
|
|
background: white
|
|
|
|
.timestamp
|
|
color: darken($gray-lighter, 20%)
|
|
|
|
&.delayed
|
|
.timestamp:before
|
|
content: '@ '
|
|
|
|
&.edited
|
|
.timestamp:before
|
|
content: 'edited '
|
|
|
|
&.pending
|
|
color: lighten($gray, 50%)
|
|
|
|
.body
|
|
display: inline
|
|
word-break: break-word
|
|
|
|
.timestamp
|
|
font-size: $font-size-smaller
|
|
font-weight: $font-weight-bold
|
|
color: lighten($blue, 50%)
|
|
float: right
|
|
display: block
|
|
|
|
.sender
|
|
display: block
|
|
|
|
.chatBox
|
|
borderbox()
|
|
border-top: 1px solid $gray-lighter
|
|
bottom: 0px
|
|
position: fixed
|
|
right: 0px
|
|
left: 201px
|
|
z-index: 200
|
|
|
|
form
|
|
background: lighten($gray-light, 93%)
|
|
padding: 11px
|
|
|
|
.formwrap
|
|
borderbox()
|
|
width: 100%
|
|
padding-right: 80px
|
|
position: relative
|
|
|
|
textarea
|
|
height: 30px
|
|
padding: 6px 10px
|
|
|
|
&.editing
|
|
background-color: #fffcea
|
|
border: 1px solid #efe391
|
|
color: #d2bd2d
|