You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

357 lines
4.9 KiB
Plaintext

.chats-page {
margin-top: 10px;
}
.chat-list {
margin-top: -6px;
margin-left: -1px;
}
.chats-list {
padding: 0;
overflow-x: hidden;
overflow-y: auto;
border-top: 1px solid @gray-lighter;
max-width: 360px;
> li {
position: relative;
clear: both;
list-style-type: none;
padding: 0.5em;
height: 80px;
.pointer;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
border-color: @gray-lighter;
&.typing {
.username:after {
visibility: visible;
}
}
&.unread {
background: lighten(@brand-primary, 35%);
border-bottom: 0;
}
.teaser-content {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 13px;
opacity: 0.8;
}
.room-name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
}
.teaser-content, .room-name {
padding-left: 80px;
}
&.bg-primary {
background: @brand-primary;
border-bottom: 0;
}
.username {
font-size: 14px;
&:after {
display: inline-block;
font-family: "FontAwesome";
content: "\f11c";
margin-left: 0.5em;
visibility: hidden;
}
}
.teaser-timestamp {
font-size: 10px;
margin-top: 10px;
}
a {
.text-ellipsis;
}
p {
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
height: 20px;
}
.status {
position: absolute;
left: 50px;
font-size: 20px;
top: 10px;
}
.leave {
opacity: 0.5;
&:hover {
opacity: 1.0;
}
}
.members {
padding-left: 1rem;
z-index: 1;
position: absolute;
bottom: 2px;
left: 53px;
li {
display: inline-block;
width: 16px;
padding: 0;
margin: 0;
&:first-child {
display: none;
}
.avatar {
border: 2px solid white;
width: 28px;
height: 28px;
line-height: 26px;
}
img {
margin-top: -4px;
}
}
}
.main-avatar {
position: absolute;
top: 0px;
left: 0px;
.avatar {
height: 80px;
width: 80px;
font-size: 40px;
border-radius: 0;
}
}
.avatar-placeholder {
height: 80px;
width: 80px;
background: @gray-lighter;
position: absolute;
top: 0px;
left: 0px;
}
}
}
.chat-modal {
z-index: 10000;
}
.expanded-chat, .chat-modal {
.modal-header {
padding: 0.25em 1em;
h4 {
font-size: 1.5rem;
font-weight: bold;
min-height: 20px;
i {
font-size: 14px;
vertical-align: center;
&.fa-keyboard-o {
.animation(topic-reply-pulse 2s ease-in infinite);
}
}
}
.close {
padding: 0.5em;
}
}
.chat-content {
.fix-lists;
height: 250px;
overflow-y: auto;
overflow-x: hidden;
resize: none;
word-wrap: break-word;
margin: 0;
padding: 0;
li.chat-message {
list-style-type: none;
font-weight: 300;
padding: 0 1.428rem;
margin-right: 1.428rem;
&:first-child {
padding-top: 1.428rem;
}
&:last-child {
padding-bottom: 1.428rem;
}
&[data-break="true"] {
padding-top: 1rem;
margin-top: 1rem;
border-top: 1px solid @gray-lighter;
}
&[data-break="true"]:first-child {
border-top: 0;
margin-top: -1.5px;
}
.chat-user-image {
.user-icon-style(32px, 1.6rem, 50%);
float: left;
}
.chat-user {
display: inline-block;
margin-left: 13px;
}
.chat-timestamp {
color: @gray-light;
font-size: 1rem;
display: inline-block;
margin-left: 10px;
.user-select(none);
}
.message-body {
margin-left: 45px;
p {
margin: 7px 0 0 0;
line-height: 2rem;
}
}
&[data-self="0"] + [data-self="0"], &[data-self="1"] + [data-self="1"] {
&[data-break="false"] {
.message-header {
display: none;
}
}
}
.controls {
display: none;
}
&:hover {
.controls {
display: block;
}
}
}
}
.chat-input {
height: 42px;
}
.user-typing {
color: @gray-light;
margin: 1.428rem 0;
}
.selected[data-since] {
font-weight: bold;
}
.modal-dialog {
margin: 0 auto;
}
textarea {
resize: none;
height: 42px;
}
.since-bar {
display: block;
padding: 1rem 0;
text-align: center;
}
.controlsToggle {
margin-right: 10px;
}
}
.expanded-chat {
h1 {
margin: 0px;
padding-bottom: 20px;
}
.chat-content {
padding-top: 10px;
}
.input-group {
z-index: 1;
}
}
[component="chat/search/list"] {
padding: 0;
overflow-x: hidden;
overflow-y: auto;
border-top: 1px solid @gray-lighter;
li {
position: relative;
clear: both;
list-style-type: none;
padding: .5em;
height: 70px;
cursor: pointer;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
border-color: #eee;
background: #fff;
i {
position: relative;
left: -30px;
font-size: 20px;
top: -20px;
}
img, .user-icon {
.user-icon-style(50px, 2.4rem, 50%);
margin-top: 4px;
margin-right: 13px;
margin-left: .5em;
}
}
}