123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531 |
- @charset "UTF-8";
- $chatBg: #34363c;
- $chatContBg: #eeeeee;
- $chatUiFont: #ffffff;
- $offsetBottom: 5px;
- $offsetRight: 5px;
- @keyframes tipFade{
- 0%{
- opacity: 1;
- transform: scale(1);
- }
- 100%{
- opacity: 0.4;
- transform: scale(1.1);
- }
- }
- .group-set-icon{
- position: absolute;
- right: 0;
- top: 0;
- height: px2rem(90);
- width: px2rem(100);
- text-align: center;
- font-size: px2rem(42);
- line-height: px2rem(90);
- color: #333333;
- }
- .mini-body{
- height: 100%;
- box-sizing: border-box;
- padding: 10px 2px 2px;
- background: rgba($color: $chatBg, $alpha: 0.9);
- }
- .box{
- position: relative;
- height: 100%;
- display: flex;
- flex-direction: column;
- }
- .box-hd{
- height: 26px;
- position: relative;
- .btn-menu{
- position: absolute;
- cursor: pointer;
- left: 0;
- top: -2px;
- width: 20px;
- height: 20px;
- background: url("./img/icon-menu.png") center no-repeat;
- &.active{
- &::before{
- display: block;
- }
- }
- &::before{
- content: "";
- position: absolute;
- top: 2px;
- right: 0;
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: #ff0000;
- display: none;
- }
- }
- .btn-close{
- position: absolute;
- cursor: pointer;
- right: 0;
- top: -2px;
- width: 20px;
- height: 20px;
- background: url("./img/icon-close.png") center no-repeat;
- &:hover{
- background-color: #2a2b30;
- }
- }
- .menu-extra{
- position: absolute;
- top: 24px;
- z-index: 10;
- left: 4px;
- background: #ffffff;
- border-radius: 2px;
- box-shadow: 0px 1px 5px 1px #cdcdcd;
- .info {
- padding: 8px 0;
- margin: 0 10px;
- .avatar {
- float: left;
- width: 36px;
- height: 36px;
- margin-right: 6px;
- margin-top: 6px;
- border-radius: 4px;
- border: 1px solid rgba(0,0,0,0.1);
- }
- .avatar-bg{
- background-color: #f5882b;
- text-align: center;
- line-height: 32px;
- color: #ffffff;
- font-size: 14px;
- }
- .account-info{
- float: left;
- margin-top: 5px;
- line-height: 18px;
- }
- em {
- font-size: 12px;
- color: #000000;
- }
- }
- .icon-arrow{
- display: inline-block;
- vertical-align: middle;
- margin-left: 10px;
- background: url('../chatMini/img/icon-arrow.png') no-repeat;
- width: 8px;
- height: 12px;
- }
- .login-out{
- display: block;
- line-height: 1.5;
- color: #7194c3;
- font-size: 12px;
- cursor: pointer;
- }
- li{
- line-height: 30px;
- font-size: 12px;
- padding: 0 10px;
- display: block;
- &:hover{
- background: #dcdddf;
- }
- em{
- display: inline-block;
- background: #ff0000;
- color: #fff;
- font-size: 12px;
- padding: 2px 5px;
- border-radius: 12px;
- z-index: 99;
- line-height: 1;
- margin-left: 4px;
- }
- }
- a{
- color: #333333;
- display: block;
- text-decoration: none;
- border-top: 1px solid #eeeeee;
- span{
- color: #7194c3;
- text-decoration:underline;
- }
- }
- }
- .box-title{
- min-width: 200px;
- text-align: left;
- padding-left: 25px;
- margin: 0 auto;
- font-size: 14px;
- color: $chatUiFont;
- cursor:pointer;
- }
- .user-tips{
- position: absolute;
- top: -2px;
- right: 30px;
- max-width: 50px;
- height: 20px;
- line-height: 20px;
- font-size: 0;
- text-align: right;
- cursor: pointer;
- padding-left: 20px;
- background: url(./img/icon-service.png) 0 center / 13px auto no-repeat;
- text-decoration: none;
- &.active{
- &:before{
- display: block;
- }
- }
- &:before{
- position: absolute;
- top: -6px;
- right: -17px;
- z-index: 2;
- width: 14px;
- height: 12px;
- background: url(./img/icon-msg-tip.png) 0 center/100% no-repeat;
- animation:tipFade .2s infinite alternate;
- display: none;
- }
- em{
- vertical-align: middle;
- color: $chatUiFont;
- font-size: 12px;
- }
- }
- }
- .box-bd{
- height: 0;
- flex: 1;
- position: relative;
- background: $chatContBg;
- .msg-unread{
- position: absolute;
- width: 120px;
- left: 50%;
- bottom: 10px;
- border-radius: 20px;
- background: rgba(#000000, 0.5);
- padding: 0 5px;
- text-align: center;
- line-height: 32px;
- margin-left: -65px;
- cursor: pointer;
- &:hover{
- background: rgba(#000000, 0.3);
- }
- em{
- color: #ffffff;
- font-size: 14px;
- }
- i{
- transform: rotate(90deg);
- margin-right: 5px;
- }
- }
- }
- .scroller{
- height: 100%;
- overflow-x: hidden;
- overflow-y: scroll;
- -webkit-overflow-scrolling: touch;
- &::-webkit-scrollbar {
- width: 8px;
- height: 6px;
- }
- &::-webkit-scrollbar-thumb {
- border-radius: 3px;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
- background-color: rgba($color: #8d8a8a, $alpha: 0.2);
- }
- &::-webkit-scrollbar-track {
- background-color: transparent;
- }
- }
- .box-ft{
- position: relative;
- background: $chatContBg;
- border-top: 1px solid #d6d6d6;
- .input-con{
- position: relative;
- display: flex;
- align-items: flex-end;
- background-color: #fafafa;
- padding: 6px 0;
- }
- .input-wrap{
- flex: 1;
- padding: 10px 0;
- background-color: #ffffff;
- border-radius: 4px;
- }
- .more-icon{
- width: 38px;
- height: 38px;
- background: url('../../assets/more-icon.png') center center no-repeat;
- background-size: 22px 22px;
- cursor: pointer;
- &:hover{
- opacity: .6;
- }
- }
- .emoji-icon{
- width: 38px;
- height: 38px;
- background: url('../../assets/m-face-icon.png') center center no-repeat;
- background-size: 22px 22px;
- cursor: pointer;
- &:hover{
- opacity: .6;
- }
- }
- // .btn-file{
- // width: 32px;
- // height: 37px;
- // background: url("../../assets/icon-file.png") center center no-repeat;
- // background-size: 21px 21px;
- // position: relative;
- // &:hover{
- // opacity: 0.7;
- // }
- // input[type=file] {
- // opacity: 0;
- // position: absolute;
- // top: 0;
- // left: 0;
- // width: 100%;
- // height: 100%;
- // cursor: pointer;
- // }
- // }
- // .btn-emoji{
- // width: 32px;
- // cursor: pointer;
- // height: 37px;
- // background: url("../../assets/icon-face.png") center center no-repeat;
- // background-size: 21px 21px;
- // &:hover{
- // opacity: 0.7;
- // }
- // }
- // .icon-packet{
- // width: 32px;
- // cursor: pointer;
- // height: 37px;
- // background: url("../../assets/icon-packet.png") center center no-repeat;
- // background-size: 21px 21px;
- // &:hover{
- // opacity: 0.7;
- // }
- // }
- .btn-send{
- margin-right: 4px;
- font-size: 12px;
- color: #ffffff;
- padding: 0 10px;
- height: 28px;
- line-height: 28px;
- margin-bottom: 3px;
- background: #2b9ff6;
- border-radius: 3px;
- cursor: pointer;
- &:hover{
- opacity: 0.8;
- }
- }
- form{
- @include flex(1);
- }
- textarea {
- display: block;
- width: 100%;
- height: 18px;
- max-height: 175px;
- font-size: 14px;
- color: #000000;
- line-height: 16px;
- padding: 1px;
- padding-left: 8px;
- margin: 0;
- border: none;
- outline: none;
- background: none;
- box-sizing: border-box;
- resize: none;
- }
- .emoji-wrap{
- // position: absolute;
- // left: 0;
- // right: 0;
- // bottom: 52px;
- // background: #ffffff;
- // box-shadow: 1px 1px 50px rgba(0,0,0,.3);
- // z-index: 10;
- }
- .input-ctrl{
- span{
- width: 120px;
- margin: 4px auto;
- height: 30px;
- line-height: 30px;
- color: #ffffff;
- font-size: 12px;
- text-align: center;
- display: block;
- background-image: -webkit-linear-gradient( 90deg, rgb(25,145,235) 0%, rgb(46,161,248) 100%);
- border-radius: 3px;
- &.enable{
- cursor: pointer;
- &:hover{
- opacity: 0.7;
- }
- }
- }
- }
- }
- .mini-control{
- position: fixed;
- right: $offsetBottom;
- bottom: $offsetRight;
- user-select: none;
- .at-tip{
- position: absolute;
- left: -9px;
- top: -9px;
- width: 18px;
- height: 18px;
- background: #e0273a;
- border-radius: 50%;
- overflow: hidden;
- font-size: 12px;
- line-height: 18px;
- color: #fff;
- text-align: center;
- }
- ul{
- @include webkitbox(1);
- background: $chatBg;
- opacity: .9;
- border-radius: 4px;
- overflow: hidden;
- }
- li{
- width: 60px;
- height: 40px;
- line-height: 40px;
- text-align: center;
- font-size: 0;
- cursor: pointer;
- &:hover{
- background: #42454c;
- }
- em{
- font-size: 12px;
- color: $chatUiFont;
- vertical-align: middle;
- padding-left: 4px;
- }
- }
- .msg-tips{
- &:before{
- content: "";
- background: url("./img/icon-meechat.png") center center no-repeat;
- background-size: 100%;
- width: 22px;
- height: 20px;
- display: inline-block;
- vertical-align: middle;
- }
- }
- }
- .user-tips{
- &:before{
- content: "";
- background: url("./img/icon-user.png") no-repeat;
- background-size: 100%;
- width: 8px;
- height: 9px;
- display: inline-block;
- vertical-align: middle;
- margin-right: 4px;
- }
- }
- .meechat-icon {
- width: 46px;
- height: 40px;
- background: url('./img/meechat-bg.png') center center no-repeat;
- background-size: 100%;
- text-align: center;
- border-radius: 4px;
- cursor: pointer;
- padding-top: 14px;
- box-sizing: border-box;
- &:hover{
- opacity: .8;
- }
- em{
- color: #ffffff;
- font-size: 12px;
- }
- }
- .msg-wrap{
- padding-bottom: 16px;
- }
- .msg-top-more{
- margin-top: 10px;
- text-align: center;
- i{
- font-size: 30px;
- }
- em{
- font-size: 12px;
- line-height: 20px;
- color: #999999;
- }
- }
- .msg-loading-icon{
- display: block;
- background: url('../../assets/loading-icon.png') no-repeat;
- background-size: 100%;
- width: 16px;
- height: 16px;
- margin: 12px auto;
- animation: rotate 2s linear infinite;
- }
- .h5-wrap{
- .msg-wrap{
- box-sizing: border-box;
- height: 100%;
- display: flex;
- flex-direction: column;
- justify-content: flex-end;
- overflow: hidden;
- }
- }
|