Files
meanTorrent/modules/chat/client/less/chat.less

329 lines
10 KiB
Plaintext
Raw Normal View History

2017-05-09 19:02:22 +08:00
@import (reference) "../../../core/client/less/mt-var.less";
2017-05-10 17:52:56 +08:00
.chat-container {
2017-05-15 19:08:56 +08:00
background-color: @mt-chat-background-color;
2017-05-10 17:52:56 +08:00
}
.chat-messages {
2017-05-09 19:02:22 +08:00
height: 100%;
margin: 8px -15px 8px 0;
2017-05-15 19:08:56 +08:00
border: solid 1px lighten(@gray-light, 35%);
2017-05-09 19:02:22 +08:00
border-radius: 3px;
2017-05-10 17:52:56 +08:00
background-color: #fff;
2017-05-09 19:02:22 +08:00
.chat-title {
2017-05-15 19:08:56 +08:00
color: @gray-dark;
2017-05-09 19:02:22 +08:00
height: 40px;
padding: 10px 15px 0 15px;
2017-05-15 19:08:56 +08:00
background-color: lighten(@gray-light, 43%);
border-bottom: solid 1px lighten(@gray-light, 40%);
2017-05-09 19:02:22 +08:00
.glyphicon {
color: @mt-base-color;
}
}
.chat-body {
2017-05-10 17:52:56 +08:00
height: ~"calc(100% - 160px)";
padding: 10px 10px;
overflow-y: auto;
word-break: break-all;
word-wrap: break-word;
.chat-message-list {
2017-05-11 09:45:49 +08:00
&.me {
text-align: right;
}
2017-05-11 11:26:36 +08:00
&.status {
.chat-message-header {
display: none;
}
.chat-wrapper {
padding-left: 0;
.chat-avatar {
display: none;
}
.chat-message-item {
border: none;
&:after {
content: '';
display: none;
}
&:before {
content: '';
display: none;
}
.chat-message-body {
background-color: transparent;
padding: 0;
.chat-message-body-text {
2017-05-11 13:05:42 +08:00
font-size: 12px;
2017-05-11 11:26:36 +08:00
color: @chat-message-status-color;
}
}
}
}
}
2017-05-10 17:52:56 +08:00
&:not(:first-child) {
margin-top: 10px;
}
&:not(:last-child) {
margin-bottom: 10px;
}
.chat-message-header {
padding-left: 50px;
color: #586069;
.chat-message-header-text {
font-size: 12px;
color: lighten(@gray-base, 60%);
}
}
2017-05-11 09:45:49 +08:00
.chat-message-header-me {
padding-right: 50px;
color: #586069;
.chat-message-header-text {
font-size: 12px;
color: lighten(@gray-base, 60%);
}
}
2017-05-10 17:52:56 +08:00
.chat-wrapper {
padding-left: 50px;
max-width: 75%;
display: inline-block;
.chat-message-item {
position: relative;
border: 1px solid #d1d5da;
border-radius: 3px;
2017-05-11 09:45:49 +08:00
&:after {
content: '';
2017-05-10 17:52:56 +08:00
position: absolute;
2017-05-11 09:45:49 +08:00
border-style: solid;
border-width: 6px 6px 6px 0;
border-color: transparent lighten(@chat-message-background-default, 2%);;
2017-05-10 17:52:56 +08:00
display: block;
width: 0;
2017-05-11 09:45:49 +08:00
z-index: 1;
left: -6px;
top: 6px;
2017-05-10 17:52:56 +08:00
}
2017-05-11 09:45:49 +08:00
&:before {
content: '';
2017-05-10 17:52:56 +08:00
position: absolute;
2017-05-11 09:45:49 +08:00
border-style: solid;
border-width: 6px 6px 6px 0;
border-color: transparent #d1d5da;
2017-05-10 17:52:56 +08:00
display: block;
width: 0;
2017-05-11 09:45:49 +08:00
z-index: 0;
left: -7px;
top: 6px;
2017-05-10 17:52:56 +08:00
}
.chat-message-body {
2017-05-11 17:00:03 +08:00
padding: 6px;
2017-05-10 17:52:56 +08:00
background-color: lighten(@chat-message-background-default, 2%);
border-radius: 3px;
}
}
.chat-avatar {
img {
cursor: pointer;
float: left;
margin-left: -50px;
margin-top: -18px;
border-radius: 3px;
height: 38px;
width: 38px;
}
}
}
2017-05-11 09:45:49 +08:00
.chat-wrapper-me {
padding-right: 50px;
max-width: 75%;
display: inline-block;
.chat-message-item {
position: relative;
border: 1px solid lighten(@chat-message-me-border, 15%);
2017-05-11 09:45:49 +08:00
border-radius: 3px;
&:after {
content: '';
position: absolute;
border-style: solid;
border-width: 6px 0 6px 6px;
border-color: transparent lighten(@chat-message-me-background, 30%);
2017-05-11 09:45:49 +08:00
display: block;
width: 0;
z-index: 1;
right: -6px;
top: 6px;
}
&:before {
content: '';
position: absolute;
border-style: solid;
border-width: 6px 0 6px 6px;
border-color: transparent lighten(@chat-message-me-border, 15%);
2017-05-11 09:45:49 +08:00
display: block;
width: 0;
z-index: 0;
right: -7px;
top: 6px;
}
.chat-message-body {
2017-05-11 17:00:03 +08:00
text-align: left;
padding: 6px;
background-color: lighten(@chat-message-me-background, 30%);
2017-05-11 09:45:49 +08:00
border-radius: 3px;
}
}
.chat-avatar {
img {
cursor: pointer;
float: right;
margin-right: -50px;
margin-top: -18px;
border-radius: 3px;
height: 38px;
width: 38px;
}
}
}
2017-05-10 17:52:56 +08:00
}
2017-05-09 19:02:22 +08:00
}
.chat-footer {
2017-05-10 17:52:56 +08:00
height: 120px;
2017-05-15 19:08:56 +08:00
border-top: solid 1px lighten(@gray-light, 40%);
background-color: lighten(@gray-light, 43%);
2017-05-10 17:52:56 +08:00
.footer-function {
height: 40px;
2017-05-15 19:08:56 +08:00
border-bottom: solid 1px lighten(@gray-light, 40%);
background-color: lighten(@gray-light, 43%);
.glyphicon {
color: @mt-base-color;
margin: 12px 2px;
cursor: pointer;
&:hover {
color: darken(@mt-base-color, 10%);
}
}
.font-style-list {
label {
cursor: pointer;
font-weight: normal;
font-size: 12px;
margin-top: 10px;
&:not(:last-child) {
margin-right: 10px;
}
}
}
2017-05-10 17:52:56 +08:00
}
.footer-input {
textarea {
resize: none;
width: ~"calc(100% + 2px)";
height: 80px;
margin-left: -1px;
border-radius: 0 0 3px 3px;
}
}
2017-05-09 19:02:22 +08:00
}
}
2017-05-10 17:52:56 +08:00
.chat-users {
2017-05-09 19:02:22 +08:00
height: 100%;
margin: 8px 0;
2017-05-15 19:08:56 +08:00
border: solid 1px lighten(@gray-light, 35%);
2017-05-09 19:02:22 +08:00
border-radius: 3px;
2017-05-10 17:52:56 +08:00
background-color: #fff;
2017-05-09 19:02:22 +08:00
.user-title {
2017-05-15 19:08:56 +08:00
color: @gray-dark;
2017-05-09 19:02:22 +08:00
height: 40px;
padding: 10px 15px 0 15px;
2017-05-15 19:08:56 +08:00
background-color: lighten(@gray-light, 43%);
border-bottom: solid 1px lighten(@gray-light, 40%);
2017-05-09 19:02:22 +08:00
.glyphicon {
color: @mt-base-color;
}
}
.user-body {
2017-05-10 17:52:56 +08:00
height: ~"calc(100% - 40px)";
padding: 10px 10px;
overflow-y: auto;
word-break: break-all;
word-wrap: break-word;
.user-item-wrapper {
padding-left: 35px;
2017-05-11 17:00:03 +08:00
margin: 6px 6px;
2017-05-10 17:52:56 +08:00
&:hover {
.ban-kick {
display: inline;
}
}
.ban-kick {
background-color: #2a2730;
background-color: rgba(0, 0, 0, .5);
color: @mt-base-color;
display: none;
float: right;
position: relative;
right: -10px;
top: -26px;
padding: 9px 5px;
width: 24px;
height: 100%;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
&:hover {
background-color: #2a2730;
background-color: rgba(0, 0, 0, .7);
}
2017-05-10 17:52:56 +08:00
}
.user-item-body {
padding: 6px 10px;
border-radius: 3px;
2017-05-15 19:08:56 +08:00
background-color: lighten(@chat-message-background-default, 8%);
2017-05-10 17:52:56 +08:00
&:hover {
cursor: pointer;
2017-05-15 19:08:56 +08:00
background-color: lighten(@chat-message-background-default, 3%);
2017-05-10 17:52:56 +08:00
}
.user-item-text {
&.user-is-admin {
color: @chat-user-item-admin-color;
}
&.user-is-oper {
color: @chat-user-item-oper-color;
}
&.user-is-vip {
color: @chat-user-item-vip-color;
}
}
2017-05-10 17:52:56 +08:00
}
.user-item-avatar {
img {
cursor: pointer;
float: left;
margin-left: -35px;
border-radius: 3px;
height: 32px;
width: 32px;
}
}
}
2017-05-09 19:02:22 +08:00
}
}
.font-color-popover {
max-width: 150px;
2017-05-15 13:05:17 +08:00
max-height: 150px;
width: auto;
height: auto;
}
.color-list {
margin: 4px -14px -12px -7px;
.color-item {
cursor: pointer;
width: 30px;
height: 30px;
margin-top: -6px;
margin-right: 4px;
}
}