123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- @charset "UTF-8";
- /* 需要放到文件最上面 */
- /* 水平间距 */
- /* 水平间距 */
- /*
- 以下变量是默认值,如不需要修改可以不用给下面的变量重新赋值
- */
- /* 水平间距 */
- /* 设置常用元素尺寸规则 */
- view,
- textarea,
- input,
- label,
- form,
- button,
- image {
- box-sizing: border-box;
- }
- /* 按钮样式处理 */
- button {
- font-size: 28rpx;
- }
- /* 取消按钮默认的边框线效果 */
- button:after {
- border: none;
- }
- /* 设置图片默认样式,取消默认尺寸 */
- image {
- display: block;
- height: auto;
- width: auto;
- }
- /* 输入框默认字体大小 */
- textarea,
- input {
- font-size: 28rpx;
- }
- /* 列式弹性盒子 */
- .flex_col {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: flex-start;
- align-items: center;
- align-content: center;
- }
- /* 行式弹性盒子 */
- .flex_row {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- justify-content: flex-start;
- align-items: flex-start;
- align-content: flex-start;
- }
- /* 弹性盒子弹性容器 */
- .flex_col .flex_grow {
- width: 0;
- flex-grow: 1;
- }
- .flex_row .flex_grow {
- flex-grow: 1;
- }
- /* 弹性盒子允许换行 */
- .flex_col.flex_wrap {
- flex-wrap: wrap;
- }
- /* 弹性盒子居中对齐 */
- .flex_col.flex_center,
- .flex_row.flex_center {
- justify-content: center;
- }
- /* 列式弹性盒子两端对齐 */
- .flex_col.flex_space {
- justify-content: space-between;
- }
- /* 弹性盒子快速分栏 ,这里非常郁闷 uniapp 居然不支持 * 选择器 */
- .flex_col.flex_col_2 > view {
- width: 50%;
- }
- .flex_col.flex_col_3 > view {
- width: 33.33333%;
- }
- .flex_col.flex_col_4 > view {
- width: 25%;
- }
- .flex_col.flex_col_5 > view {
- width: 20%;
- }
- .flex_col.flex_col_6 > view {
- width: 16.66666%;
- }
- /* 字体颜色 */
- .color_333 {
- color: #333;
- }
- .color_666 {
- color: #666;
- }
- .color_999 {
- color: #999;
- }
- .color_ccc {
- color: #ccc;
- }
- .color_fff {
- color: #fff;
- }
- .color_6dc {
- color: #6dca6d;
- }
- .color_d51 {
- color: #d51917;
- }
- .color_09f {
- color: #0099ff;
- }
- /* 背景色*/
- .bg_fff {
- background-color: #ffffff;
- }
- /* 字体大小 */
- .size_10 {
- font-size: 20rpx;
- }
- .size_12 {
- font-size: 24rpx;
- }
- .size_14 {
- font-size: 28rpx;
- }
- .size_16 {
- font-size: 32rpx;
- }
- .size_18 {
- font-size: 36rpx;
- }
- .size_20 {
- font-size: 40rpx;
- }
- /* 字体加粗 */
- .font_b {
- font-weight: bold;
- }
- /* 对齐方式 */
- .align_c {
- text-align: center;
- }
- .align_l {
- text-align: left;
- }
- .align_r {
- text-align: right;
- }
- /* 遮罩 */
- .shade {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background-color: rgba(0, 0, 0, 0.8);
- z-index: 100;
- }
- /* 弹窗 */
- .shade_box {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- margin: auto;
- z-index: 101;
- min-width: 200rpx;
- min-height: 200rpx;
- }
- /* 加载数据提示 */
- .tips {
- position: fixed;
- left: 0;
- top: 0px;
- width: 100%;
- z-index: 9;
- background-color: rgba(0, 0, 0, 0.15);
- height: 72rpx;
- line-height: 72rpx;
- -webkit-transform: translateY(-80rpx);
- transform: translateY(-80rpx);
- transition: -webkit-transform 0.3s ease-in-out 0s;
- transition: transform 0.3s ease-in-out 0s;
- transition: transform 0.3s ease-in-out 0s, -webkit-transform 0.3s ease-in-out 0s;
- }
- .tips.show {
- -webkit-transform: translateY(0);
- transform: translateY(0);
- }
- .box-1 {
- width: 100%;
- height: auto;
- padding-bottom: 100rpx;
- box-sizing: content-box;
- /* 兼容iPhoneX */
- margin-bottom: 0;
- margin-bottom: constant(safe-area-inset-bottom);
- margin-bottom: env(safe-area-inset-bottom);
- }
- .box-2 {
- position: fixed;
- left: 0;
- width: 100%;
- bottom: 0;
- height: auto;
- z-index: 2;
- border-top: #e5e5e5 solid 1px;
- box-sizing: content-box;
- background-color: #F3F3F3;
- /* 兼容iPhoneX */
- padding-bottom: 0;
- padding-bottom: constant(safe-area-inset-bottom);
- padding-bottom: env(safe-area-inset-bottom);
- }
- .box-2 > view {
- padding: 0 20rpx;
- height: 100rpx;
- }
- .box-2 .content {
- background-color: #fff;
- height: 64rpx;
- padding: 0 20rpx;
- border-radius: 32rpx;
- font-size: 28rpx;
- }
- .box-2 .send {
- background-color: #42b983;
- color: #fff;
- height: 64rpx;
- margin-left: 20rpx;
- border-radius: 32rpx;
- padding: 0;
- width: 120rpx;
- line-height: 62rpx;
- }
- .box-2 .send:active {
- background-color: #5fc496;
- }
- .talk-list {
- padding-bottom: 20rpx;
- /* 消息项,基础类 */
- }
- .talk-list .item {
- padding: 20rpx 20rpx 0 20rpx;
- align-items: flex-start;
- align-content: flex-start;
- color: #333;
- /* 收到的消息 */
- /* 发出的消息 */
- }
- .talk-list .item .pic {
- width: 92rpx;
- height: 92rpx;
- border-radius: 50%;
- border: #fff solid 1px;
- }
- .talk-list .item .content {
- padding: 20rpx;
- border-radius: 4px;
- max-width: 500rpx;
- word-break: break-all;
- line-height: 52rpx;
- position: relative;
- }
- .talk-list .item.pull .content {
- margin-left: 32rpx;
- background-color: #fff;
- }
- .talk-list .item.pull .content::after {
- content: '';
- display: block;
- width: 0;
- height: 0;
- border-top: 16rpx solid transparent;
- border-bottom: 16rpx solid transparent;
- border-right: 20rpx solid #fff;
- position: absolute;
- top: 30rpx;
- left: -18rpx;
- }
- .talk-list .item.push {
- /* 主轴为水平方向,起点在右端。使不修改DOM结构,也能改变元素排列顺序 */
- flex-direction: row-reverse;
- }
- .talk-list .item.push .content {
- margin-right: 32rpx;
- background-color: #a0e959;
- }
- .talk-list .item.push .content::after {
- content: '';
- display: block;
- width: 0;
- height: 0;
- border-top: 16rpx solid transparent;
- border-bottom: 16rpx solid transparent;
- border-left: 20rpx solid #a0e959;
- position: absolute;
- top: 30rpx;
- right: -18rpx;
- }
|