| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- @charset "UTF-8";
- /**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
- /**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
- /* 颜色变量 */
- /* 行为相关颜色 */
- page {
- pading: 0;
- height: 100%;
- }
- .chat {
- height: 100%;
- }
- .chat .goods {
- display: flex;
- position: fixed;
- width: 600rpx;
- right: 20rpx;
- bottom: calc(120rpx + env(safe-area-inset-bottom));
- border-radius: 14rpx;
- background: #fff;
- padding: 20rpx;
- }
- .chat .goods .close {
- position: absolute;
- left: -20rpx;
- top: -20rpx;
- }
- .chat .goods .send-btn {
- padding: 8rpx 22rpx;
- }
- .chat .content {
- transition: all 0.3s;
- flex: 1;
- min-height: 0;
- }
- .chat .content .loading {
- padding: 20rpx;
- height: 40px;
- }
- .chat .content .chat-lists {
- padding: 0 20rpx 30rpx;
- overflow: hidden;
- position: relative;
- }
- .chat .content .chat-lists .chat-tips {
- padding: 4rpx 20rpx;
- border-radius: 21rpx;
- display: inline-block;
- text-align: center;
- background-color: rgba(0, 0, 0, 0.2);
- }
- .chat .content .chat-lists .chat-item {
- padding-top: 30rpx;
- }
- .chat .content .chat-lists .chat-item.visibility {
- visibility: hidden;
- }
- .chat .content .chat-lists .chat-item .chat-info {
- display: flex;
- align-items: flex-start;
- }
- .chat .content .chat-lists .chat-item.right .chat-info {
- flex-direction: row-reverse;
- }
- .chat .content .chat-lists .chat-item.right .chat-info .text-box {
- background-color: #ed5349;
- color: #fff;
- }
- .chat .content .chat-lists .chat-item .avatar {
- width: 78rpx;
- height: 78rpx;
- border-radius: 14rpx;
- flex: none;
- }
- .chat .content .chat-lists .chat-item .text-box {
- max-width: 500rpx;
- min-width: 80rpx;
- background-color: #fff;
- border-radius: 14rpx;
- padding: 16rpx 20rpx;
- margin: 0 20rpx;
- word-break: break-word;
- line-height: 40rpx;
- }
- .chat .content .chat-lists .chat-item .image-box {
- max-width: 300rpx;
- margin: 0 20rpx;
- }
- .chat .content .chat-lists .chat-item .image-box .image {
- max-width: 100%;
- }
- .chat .content .chat-lists .chat-item .goods-box {
- position: static;
- width: 510rpx;
- }
- .chat .error {
- padding: 0 30rpx 30rpx;
- }
- .chat .error .error-msg {
- color: #bbb;
- word-break: break-word;
- }
- .chat .footer {
- background: #f2f2f2;
- padding-bottom: env(safe-area-inset-bottom);
- }
- .chat .footer .footer-input {
- height: 100rpx;
- padding: 0 20rpx;
- }
- .chat .footer .footer-input .icon {
- width: 52rpx;
- height: 52rpx;
- }
- .chat .footer .footer-input .input-contain {
- margin: 0 20rpx;
- background-color: #fff;
- height: 68rpx;
- border-radius: 60rpx;
- flex: 1;
- overflow: hidden;
- padding: 0 10rpx 0 30rpx;
- }
- .chat .footer .footer-input .input-contain .text-area {
- flex: 1;
- height: 100rpx;
- word-break: break-all;
- }
- .chat .emoji-wrap {
- height: 0;
- transition: all 0.3s;
- }
- .chat .emoji-wrap.emoji-show {
- height: 200px;
- }
- .chat .send-btn {
- padding: 0 25rpx;
- color: #fff;
- background-color: #ed5349;
- border-radius: 60rpx;
- }
|