123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- .msg-repeal-item{
- // padding: 7px 7px 0;
- text-align: center;
- font-size: 12px;
- line-height: 20px;
- color: #b2b2b2;
- }
- .msg-join-item{
- text-align: center;
- font-size: 12px;
- line-height: 20px;
- color: #666;
- margin: 6px 0;
- span{
- padding: 0 7px;
- display: inline-block;
- background: #d3d3d3;
- }
- }
- .msg-item {
- padding: 0 7px;
- margin: 10px 0;
- &.active{
- .bubble{
- animation: blink 3s ease;
- }
- }
- &.me.active .bubble::before{
- animation: blinkBorderLeft 3s ease;
- }
- &.you.active .bubble::before{
- animation: blinkBorderRight 3s ease;
- }
- &: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;
- &.disabled{
- user-select: none;
- }
- &::before {
- position: absolute;
- width: 0;
- height: 0;
- top: 14px;
- border: 6px solid transparent;
- content: "";
- }
- a {
- word-break: break-all;
- }
- }
- .metabar {
- position: relative;
- line-height: 20px;
- font-size: 12px;
- overflow: hidden;
- }
- .admin{
- font-size: 12px;
- color: #999999;
- i{
- display: inline-block;
- vertical-align: top;
- }
- .el-icon-star-on{
- color: #f5ab5c;
- font-size: 12px;
- }
- .icon-creator{
- background: url('../../assets/icon-creater.png') no-repeat;
- width: 12px;
- height: 11px;
- background-size: 100%;
- }
- }
- .time {
- float: left;
- visibility: hidden;
- margin-left: 10px;
- color: #bababa;
- }
- .name {
- float: left;
- color: #999999;
- max-width: 200px;
- @include ellipsis;
- }
- .content {
- position: relative;
- min-height: 40px;
- max-width: 80%;
- &::selection {
- background: #3390ff;
- }
- }
- .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;
- }
- }
- &.you {
- .loading-icon{
- right: -24px;
- }
- .error-icon{
- right: -24px;
- }
- .avatar {
- float: left;
- }
- .content {
- float: left;
- margin-left: 12px;
- }
- .admin{
- float: left;
- margin-left: 4px;
- }
- .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 {
- .admin{
- float: right;
- margin-right: 4px;
- }
- .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;
- }
- }
- }
- @keyframes blink{
- 0%,50%,100%{
- background: rgba(0, 0, 0,0.03)
- }
- 25%,75%{
- background: rgba(0, 0, 0, 0.08)
- }
- }
- @keyframes blinkBorderLeft{
- 0%,50%,100%{
- border-left-color: rgba(0, 0, 0,0.03);
- }
- 25%,75%{
- border-left-color: rgba(0, 0, 0,0.03);
- }
- }
- @keyframes blinkBorderRight{
- 0%,50%,100%{
- border-right-color: rgba(0, 0, 0,0.03);
- }
- 25%,75%{
- border-right-color: rgba(0, 0, 0, 0.08);
- }
- }
- .h5-wrap{
- .msg-item{
- margin: px2rem(18) 0;
- .avatar{
- width: px2rem(90);
- height: px2rem(90);
- line-height: px2rem(90);
- }
- .content{
- max-width: 75%
- }
- .name{
- font-size: px2rem(20);
- }
- }
- }
|