1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-28 20:22:15 -05:00
kaiwa/public/css/pages/chat.styl

559 lines
11 KiB
Stylus
Raw Normal View History

2013-09-16 05:19:07 -04:00
@import '../_variables'
@import '../_mixins'
.page.chat
padding-top: 0px
borderbox()
2013-12-19 18:34:29 -05:00
overflow-y: auto
overflow-x: hidden
2013-09-16 05:19:07 -04:00
.conversation
padding: 0px
2013-12-20 06:39:06 -05:00
overflow: hidden
2013-09-16 05:19:07 -04:00
borderbox()
2013-12-16 13:06:03 -05:00
2013-09-16 05:19:07 -04:00
header
2013-12-20 02:04:14 -05:00
padding: 0px
2013-09-16 05:19:07 -04:00
position: fixed
2015-02-09 10:20:28 -05:00
top: 0px
2013-09-16 05:19:07 -04:00
right: 0px
2015-02-09 10:20:28 -05:00
left: 220px
right: 90px
height: 55px
z-index: 101
2013-09-16 05:19:07 -04:00
2015-02-09 10:20:28 -05:00
.avatar
margin-right: 5px
avatar()
2013-12-20 06:39:06 -05:00
position: absolute
2015-02-09 10:20:28 -05:00
top: 11px
left: 11px
vertical-align: top
2013-12-20 02:04:14 -05:00
2015-02-09 10:20:28 -05:00
h1
padding: 0px
margin: 0px
top: 0px
white-space: nowrap
display: inline-block
height: 53px
2013-12-20 02:04:14 -05:00
2015-02-09 10:20:28 -05:00
.prefix, .name, .user_presence, .channel_actions, .status
display: inline-block
color: $gray-dark
padding: 0px
text-rendering: optimizelegibility
top: 0px
vertical-align: middle
2013-12-20 02:04:14 -05:00
2015-02-09 10:20:28 -05:00
.prefix
color: $gray
font-size: $font-size-h2
font-weight: $font-weight-classic
margin-left: 25px
line-height: 53px
2015-01-24 10:03:12 -05:00
cursor: default
2013-12-20 02:04:14 -05:00
2015-02-09 10:20:28 -05:00
.name
font-size: $font-size-h2
font-weight: $font-weight-bolder
overflow: hidden
text-overflow: ellipsis
padding-left: 3px
line-height: 53px
2015-01-24 10:03:12 -05:00
cursor: default
2014-01-05 05:30:26 -05:00
2015-02-09 10:20:28 -05:00
.user_presence, .channel_actions
color: $gray
padding-left: 8px
line-height: 53px
2015-01-24 10:03:12 -05:00
cursor: default
2013-12-20 02:04:14 -05:00
2015-02-09 10:20:28 -05:00
.user_presence
padding-top: 5px
2015-01-24 10:03:12 -05:00
font-size: $font-size-small
2013-10-25 12:09:18 -04:00
2015-02-09 10:20:28 -05:00
&.online
color: $green
opacity: 1
2013-12-16 13:06:03 -05:00
2015-02-09 10:20:28 -05:00
&.offline
color: $gray-dark
opacity: 0.5
2013-12-16 13:06:03 -05:00
2015-02-09 10:20:28 -05:00
&.dnd
color: $red
2013-12-16 13:06:03 -05:00
2015-02-09 10:20:28 -05:00
&.away, &.xa
color: $orange
2013-12-20 02:04:14 -05:00
2015-02-09 10:20:28 -05:00
&.composing
animation: pulsate 1.5s infinite ease-in
-webkit-animation: pulsate 1.5s infinite ease-in
-moz-animation: pulsate 1.5s infinite ease-in
2013-12-16 13:06:03 -05:00
2015-02-09 10:20:28 -05:00
&.paused:before
color: lighten($gray-dark, 30%)
2013-09-16 05:19:07 -04:00
2015-02-09 10:20:28 -05:00
&.idle:before
background: transparent
2013-12-20 17:15:29 -05:00
2015-02-09 10:20:28 -05:00
.channel_actions
opacity: 1
2015-01-24 10:03:12 -05:00
font-size: 20px
2013-09-16 05:19:07 -04:00
2013-12-20 02:04:14 -05:00
.status
2015-02-09 10:20:28 -05:00
color: $gray
font-weight: $font-weight-classic
font-size: $font-size-h3
line-height: 18px
margin-left: 15px
padding-top: 5px
2013-12-20 17:15:29 -05:00
white-space: nowrap
2013-12-20 02:04:14 -05:00
overflow: hidden
text-overflow: ellipsis
2013-12-20 17:15:29 -05:00
transition: all .25s
2014-11-17 15:09:54 -05:00
allowselect()
&:empty:before
2015-02-09 10:20:28 -05:00
content: ''
2013-12-20 02:04:14 -05:00
2015-02-09 10:20:28 -05:00
&:focus
border-radius: 0.25rem
border: 1px solid $gray
padding: 5px
outline: none
2014-11-17 15:09:54 -05:00
2013-09-23 14:23:23 -04:00
.tzo:not(:empty)
position: absolute
right: 15px
2013-12-20 02:04:14 -05:00
top: 18px
2013-09-23 14:23:23 -04:00
height: 20px
margin-top: -10px
padding: 0 5px
roundall(3px)
2013-10-24 18:46:40 -04:00
font-size: $font-size-small
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-12-20 02:49:23 -05:00
border: 1px solid darken($gray-lighter, 10%)
2013-09-23 14:23:23 -04:00
2013-12-20 02:04:14 -05:00
&:before
content: 'Current Time: '
font-weight: bold
2015-02-09 10:20:28 -05:00
.call
2015-01-22 05:21:49 -05:00
display: none
2015-02-09 10:20:28 -05:00
width: 50px
height: 38px
position: absolute
2013-10-15 23:06:18 -04:00
top: 0px
2015-02-09 10:20:28 -05:00
right: 11px
2013-12-20 02:04:14 -05:00
2015-02-09 10:20:28 -05:00
.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
2013-10-15 23:06:18 -04:00
2015-02-09 10:20:28 -05:00
.local
position: absolute
bottom: 10px
right: 80px
height: 20%
border: 2px solid $gray-light
transform(scaleX(-1))
2013-10-15 23:06:18 -04:00
2015-02-09 10:20:28 -05:00
.button-wrap
position: absolute
left: 118px
bottom: 26px
2013-10-15 23:06:18 -04:00
2015-02-09 10:20:28 -05:00
.button-group
margin-left: 5px
2013-10-15 23:06:18 -04:00
&.onCall
.activeCall
display: block
2015-02-09 10:20:28 -05:00
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
2015-01-22 05:21:49 -05:00
margin-right: 50px
2015-02-09 10:20:28 -05:00
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
2013-10-15 23:06:18 -04:00
2013-09-16 05:19:07 -04:00
.messages
margin: 0px
2015-02-09 10:20:28 -05:00
padding: 0px 1.5rem
2013-09-16 05:19:07 -04:00
overflow-y: auto
overflow-x: hidden
2013-12-20 14:17:21 -05:00
position: absolute
2013-12-19 18:34:29 -05:00
top: 0px
2013-12-31 18:02:07 -05:00
right: 0px
2015-02-09 10:20:28 -05:00
bottom: 4rem
margin-top: 54px
2014-11-21 17:39:57 -05:00
width: 100%
2013-09-16 05:19:07 -04:00
borderbox()
2013-12-19 18:34:29 -05:00
-webkit-overflow-scrolling: touch
2013-09-16 05:19:07 -04:00
2015-02-09 10:20:28 -05:00
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
2013-09-16 05:19:07 -04:00
li
position: relative
list-style: none
2013-09-26 06:55:27 -04:00
padding: 10px 0
2013-09-16 05:19:07 -04:00
width: 100%
min-height: 50px
display: table
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
2015-02-09 10:20:28 -05:00
outline: none
2013-09-25 23:38:00 -04:00
img
avatar()
2013-09-25 23:38:00 -04:00
.name
text-indent: -9999em
position: absolute
width: 1px
2014-01-01 19:24:11 -05:00
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
2013-12-13 19:16:40 -05:00
.sender
font-size: 12px
font-weight: bold
color: $gray
text-align: right
2013-12-16 22:17:08 -05:00
white-space: nowrap
2015-02-09 10:20:28 -05:00
vertical-align: top
margin-top: 5px
2013-12-13 19:16:40 -05:00
.name
padding-left: 10px
2013-12-19 18:34:29 -05:00
vertical-align: middle
2013-12-13 19:16:40 -05:00
2013-09-25 23:38:00 -04:00
.messageWrapper
display: table-cell
2015-02-09 10:20:28 -05:00
padding: 0px 0px 12px 15px
2013-12-16 22:17:08 -05:00
width: 99%
2015-02-09 10:20:28 -05:00
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
2013-09-25 23:38:00 -04:00
2013-09-16 05:19:07 -04:00
.message
2015-02-09 10:20:28 -05:00
font-size: $font-size-message
line-height: 22px
color: $black
margin: 0px 0px 2px 0px
2013-09-16 05:19:07 -04:00
display: inline-block
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
&.pending
2013-10-23 13:57:46 -04:00
color: lighten($gray, 50%)
2013-12-16 17:28:13 -05:00
&.meAction
font-style: italic
color: $blue
background-color: $blue-lighter
2013-12-16 17:28:13 -05:00
padding: 2px
padding-left: 8px
padding-right: 3px
2013-12-16 17:28:13 -05:00
border-radius: 2px
&:before
content: '\2022 '
font-style: normal
.timestamp
font-style: normal
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
.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
&:after
2014-01-05 05:30:26 -05:00
width: 12px
content: ''
display: inline-block
2014-01-05 05:30:26 -05:00
text-align: center
2013-09-24 16:24:35 -04:00
.sender
display: block
2015-02-09 10:20:28 -05:00
.group.conversation
h1
.status
&:empty:before
content: 'No subject'
2015-01-22 05:21:49 -05:00
/*
2015-02-09 10:20:28 -05:00
.chatBox .formwrap
margin-right: 35px
2015-01-22 05:21:49 -05:00
*/
2015-02-09 10:20:28 -05:00
#members_toggle
position: absolute
top: 60px
right: 20px
cursor: pointer
color: $gray
font-size: $font-size-h3
2013-12-31 18:02:07 -05:00
2015-02-09 10:20:28 -05:00
&:hover
color: #439FE0
2013-12-31 18:02:07 -05:00
2015-02-09 10:20:28 -05:00
#members_toggle_count
margin-left: 5px
2013-12-31 18:02:07 -05:00
.groupRoster
width: 150px
margin: 0px
padding: 0px
overflow-y: auto
overflow-x: hidden
position: absolute
2015-02-09 10:20:28 -05:00
top: 80px
right: 20px
2013-12-31 18:02:07 -05:00
borderbox()
2015-02-09 10:20:28 -05:00
box-shadow: 0px 2px 10px rgba(64, 54, 63, 0.25)
2013-12-31 18:02:07 -05:00
-webkit-overflow-scrolling: touch
2015-02-09 10:20:28 -05:00
border: 1px solid #ddd
border-radius: 0.25rem
background-color: #fff
z-index: 100
visibility: hidden
padding: 5px 30px 5px 5px
2013-12-31 18:02:07 -05:00
li
padding: 3px
margin: 0px
2015-02-09 10:20:28 -05:00
border-radius: 0.25rem
2013-12-31 18:02:07 -05:00
position: relative
2015-02-09 10:20:28 -05:00
cursor: pointer
&:hover
background-color: #439FE0
.name
color: #fff
2013-12-31 18:02:07 -05:00
.name
2015-02-09 10:20:28 -05:00
padding-left: 14px
color: $gray
font-size: 14px
font-weight: bold
2013-12-31 18:02:07 -05:00
&:before
content: ''
position: absolute
left: 4px
2015-02-09 10:20:28 -05:00
top: 12px
2014-01-05 05:30:26 -05:00
height: 4px
width: 4px
2013-12-31 18:02:07 -05:00
margin-top: -3px
2015-02-09 10:20:28 -05:00
border: 2px solid transparent
2013-12-31 18:02:07 -05:00
roundall(10px)
&.online,
&.chat
&:before
background: $green
2014-01-05 05:30:26 -05:00
border-color: $green
2015-02-09 10:20:28 -05:00
&:not(:hover) .name
color: $gray-dark
&:not(:hover).active .name
color $red
2013-12-31 18:02:07 -05:00
&.dnd:before
background: $red
2014-01-05 05:30:26 -05:00
border-color: $red
2013-12-31 18:02:07 -05:00
&.away:before,
&.xa:before
background: $orange
2014-01-05 05:30:26 -05:00
border-color: $orange
2013-12-31 18:02:07 -05:00
&.offline:before
background: $gray-dark
2014-01-05 05:30:26 -05:00
border-color: $gray-dark
2013-12-31 18:02:07 -05:00
&.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
2014-01-05 05:30:26 -05:00
&.paused:before
2013-12-31 18:02:07 -05:00
background: lighten($gray-light, 30%)
2014-01-05 05:30:26 -05:00
border-color: lighten($gray-light, 30%)
&.idle:before
background: transparent
2014-01-02 03:52:26 -05:00
.embeds
margin: 0px
padding: 0px
display: none
2014-01-02 03:52:26 -05:00
.embed
width: 500px
2014-01-02 05:48:21 -05:00
max-width: 500px
margin-bottom: 20px
p, p:hover
margin: 0px
padding: 6px
background-color: #E6EAEF
2014-01-02 05:48:21 -05:00
a, a:hover
color: #34465a
a.source
2014-01-02 03:52:26 -05:00
display: none