123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- .msg-repeal-item{
- padding: 7px 7px 0;
- text-align: center;
- font-size: 12px;
- }
- .msg-item {
- padding: 0 7px;
- margin: 10px 0;
- &:hover {
- .toolbtn {
- display: block;
- }
- .time {
- visibility: visible;
- }
- }
- pre {
- text-align: left;
- margin: 0;
- font-family: inherit;
- font-size: inherit;
- white-space: pre-wrap;
- word-break: normal;
- -ms-word-break: break-all;
- word-break: break-all;
- }
- .avatar {
- width: 32px;
- height: 32px;
- margin-top: 4px;
- line-height: 32px;
- text-align: center;
- border-radius: 3px;
- cursor: pointer;
- &::before {
- content: attr(data-name);
- color: #ffffff;
- font-size: 14px;
- }
- }
- .bubble {
- min-height: 1em;
- max-width: 100%;
- display: inline-block;
- vertical-align: top;
- position: relative;
- text-align: left;
- font-size: 14px;
- border-radius: 3px;
- line-height: 1.6;
- padding: 8px 10px;
- margin-top: 4px;
- &::before {
- position: absolute;
- width: 0;
- height: 0;
- top: 14px;
- border: 6px solid transparent;
- content: "";
- }
- a {
- word-break: break-all;
- }
- }
- .metabar {
- position: relative;
- }
- .time {
- float: left;
- visibility: hidden;
- margin-left: 10px;
- font-size: 12px;
- line-height: 14px;
- color: #bababa;
- vertical-align: top;
- }
- .name {
- float: left;
- font-size: 12px;
- color: #999999;
- vertical-align: top;
- }
- .content {
- position: relative;
- min-height: 40px;
- max-width: 80%;
- }
- .toolbtn {
- position: absolute;
- right: -30px;
- bottom: 0;
- width: 23px;
- height: 17px;
- background: url("./img/chat-item-icon.png") no-repeat;
- display: none;
- cursor: pointer;
- box-shadow: 1px 1px 50px rgba(212, 180, 180, 0.3);
- &:hover {
- opacity: 0.6;
- }
- }
- .toolbar {
- position: absolute;
- background: #ffffff;
- border-radius: 5px;
- overflow: hidden;
- box-shadow: 1px 1px 50px rgba(212, 180, 180, 0.3);
- z-index: 11;
- width: 60px;
- user-select: none;
- li {
- width: 60px;
- line-height: 36px;
- text-align: center;
- font-size: 14px;
- color: #333333;
- position: relative;
- cursor: pointer;
- &.split-line{
- &:after {
- content: "";
- height: 1px;
- left: 5px;
- right: 5px;
- bottom: 0;
- position: absolute;
- background: #dfdfdf;
- }
- }
- &:hover {
- background: #dfdfdf;
- }
- }
- }
- }
- .you {
- .loading-icon{
- right: -24px;
- }
- .error-icon{
- right: -24px;
- }
- .avatar {
- float: left;
- }
- .content {
- float: left;
- margin-left: 12px;
- }
- .bubble {
- background-color: #ffffff;
- &::before {
- top: 12px;
- border-right-color: #ffffff;
- border-right-width: 6px;
- right: 100%;
- }
- &.focus{
- background-color: #fafafa;
- &::before{
- border-right-color: #fafafa;
- }
- }
- }
- }
- .me {
- .loading-icon{
- left: -24px;
- }
- .error-icon{
- left: -24px;
- }
- .avatar {
- float: right;
- }
- .time {
- float: right;
- margin-right: 10px;
- }
- .name{
- float: right;
- }
- .link {
- color: #005392;
- cursor: pointer;
- &:hover {
- text-decoration: underline;
- }
- }
- .content {
- float: right;
- margin-right: 12px;
- text-align: right;
- }
- .bubble {
- background-color: #83c0ee;
- &::before {
- top: 6px;
- border-left-color: #83c0ee;
- border-left-width: 6px;
- left: 100%;
- }
- &.focus{
- background-color: #4fa8eb;
- &::before{
- border-left-color: #4fa8eb;
- }
- }
- }
- .toolbtn {
- right: initial;
- left: -30px;
- }
- }
- .loading-icon{
- position: absolute;
- background: url('../../assets/msg-loading-icon.png') no-repeat;
- background-size: 100%;
- width: 20px;
- height: 20px;
- top: 50%;
- margin-top: -10px;
- animation: rotate 2s linear infinite;
- }
- .error-icon{
- position: absolute;
- background: url('../../assets/msg-error-icon.png') no-repeat;
- background-size: 100%;
- width: 20px;
- height: 20px;
- top: 50%;
- margin-top: -10px;
- cursor: pointer;
- }
- .img-msg{
- display: block;
- max-width: 100%;
- max-height: 250px;
- width: auto;
- height: auto;
- border-radius: 4px;
- cursor: pointer;
- }
- .video-msg{
- display: block;
- max-width: 100%;
- max-height: 300px;
- border-radius: 4px;
- &.limit-height{
- width: 100%;
- height: 50px;
- }
- }
|