/******************** 这里放组件样式 ********************/ /***** uni组件颜色覆盖 *****/ // select选项面包 确定按钮 .uni-picker-container .uni-picker-action.uni-picker-action-confirm{color: #30c190!important;} .uni-calendar-item__weeks-box .uni-calendar-item--checked{background-color: #30c190!important;} .uni-date-changed .uni-datetime-picker--btn{background-color: #30c190!important;} /***** view *****/ view{box-sizing: border-box;} /***** 对齐方式 *****/ .ezy-tl{text-align: left;} .ezy-tc{text-align: center;} .ezy-tr{text-align: right;} /***** 状态栏 *****/ .phone-status-bar{height: var(--status-bar-height);width: 100%;} /***** 超出省略 *****/ // 文本超出省略号显示 (一行) @mixin single-line-ellipsis() {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;} // 文本超出省略号显示 (多行) @mixin multi-line-ellipsis($rows: 3){-webkit-line-clamp:$rows;text-overflow: ellipsis;-o-text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;display: -webkit-box;white-space: normal !important;-webkit-box-orient: vertical;} /***** 页面背景图 *****/ // no-repeat cover @mixin ezy-no-repeat-cover($position: center) { background-position: $position;background-size: cover;background-repeat: no-repeat; } // no-repeat contain @mixin ezy-no-repeat-contain($position: center) { background-position: $position;background-size: contain;background-repeat: no-repeat; } /***** 富文本处理 *****/ @mixin ezy-rich-text() { white-space: pre-wrap;text-align: justify; div,p,span{margin: 0;padding: 0;} img{max-width: 100%;} .ql-align-center{text-align: center} .ql-align-right{text-align: right} // 9号字 .ql-size-9px{font-size: 18rpx;} // 12号字 .ql-size-12px{font-size: 24rpx;} // 14号字 .ql-size-14px{font-size: 28rpx;} // 16号字 .ql-size-16px{font-size: 32rpx;} // 18号字 .ql-size-18px{font-size: 36rpx;} // 24号字 .ql-size-24px{font-size: 48rpx;} // 32号字 .ql-size-32px{font-size: 64rpx;} // 单倍行距 .line-height-lineHeight1{line-height: 1;} // 1.5倍行距 .line-height-lineHeight1-5{line-height: 1.5;} // 2倍行距 .line-height-lineHeight2{line-height: 2;} // 2.5倍行距 .line-height-lineHeight2-5{line-height: 2.5;} // 3倍行距 .line-height-lineHeight3{line-height: 3;} } /***** 按钮 *****/ // 按钮 .phone-green-btn[type='default']{background-color: #3fd2a1;color: #fff;} .phone-white-btn[type='default']{background-color: #fff;color: #3fd2a1;border: 1rpx solid #3fd2a1;} .phone-white-btn[type='default']:after{display: none;} .phone-green-btn[type='default']:hover{background-color: #34c595;color: #fff;} /***** 标题栏 *****/ // 三个元素 .phone-navBar-box{ display: flex;align-items: center;justify-content: space-between;background-color: #fff; padding: calc(20rpx + var(--status-bar-height)) 20rpx 20rpx;box-sizing: border-box;position: relative; .nav-bar-icon{ width: 24rpx;height: 38rpx; background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover(); } .nav-bar-title{font-size: 36rpx;color: #333;} // 考试数字 .nav-bar-other{ font-size: 30rpx;color: #fff;margin-right: 2%; .key-note{color: #ffff01;} } // 文字按钮 .text-btn{font-size: 26rpx;color: #666;padding-top: 4rpx;box-sizing: border-box;} // 图标 .nav-bar-icon-box{ .nav-bar-right-icon{font-size: 42rpx;color: #666;} .nav-bar-right-icon + .nav-bar-right-icon{margin-left: 24rpx;} } } // 两个元素 .icon-title-navBar-box,.icon-title-bjcolor-navBar-box{ display: flex;align-items: center;justify-content: center;background-color: #fff; padding: calc(20rpx + var(--status-bar-height)) 20rpx 20rpx;box-sizing: border-box;position: relative; .nav-bar-title{ font-size: 32rpx;height: 63rpx;line-height: 63rpx;color: #333;max-width: 70%; } .nav-bar-icon{ width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: calc(32rpx + var(--status-bar-height)); background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover(); } .bar-ml10{margin-left: 10rpx;} .nav-bar-btn{font-size: 24rpx;position: absolute;right: 20rpx; line-height: 50rpx;border-radius: 8rpx;padding: 0 10rpx;} } // 仅一个返回按钮 .phone-nav-bar-icon{width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: var(--status-bar-height); background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover(); }