123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- /******************** 这里放组件样式 ********************/
- /***** 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;
- }
- /***** tabbar *****/
- .phone-custom-tabbar{
- width: 100%;height: 130rpx;background-color: #fff;border-top: 1rpx solid #e5e4e4;z-index: 9;
- position: fixed;left: var(-window-left);right: var(-window right);bottom: var(--window-bottom);
- box-sizing: border-box;padding-bottom: env(safe-area-inset-bottom);display: flex;justify-content: space-around;align-items: center;
- .tabbar-item{text-align: center;width: 160rpx;}
- .tabbar-item-icon{width: 50rpx;height: 50rpx;display: block;@include ezy-no-repeat-cover();margin: 0 auto 8rpx;}
- .tabbar-item-text{font-size: 28rpx;color: #333;}
- }
- /***** list列表滚动 *****/
- .phone-scroll-view{
- .uni-load-more{margin-bottom:var(--status-bar-height);}
- }
- /***** 富文本处理 *****/
- @mixin ezy-rich-text() {
- div,p,span{margin: 0;padding: 0;}
- img{max-width: 100%;}
- }
- /***** 按钮 *****/
- // 按钮
- .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: 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;}
- }
- // 两个元素
- .icon-title-navBar-box,.icon-title-bjcolor-navBar-box{
- display: flex;align-items: center;justify-content: center;background-color: #fff;
- padding: var(--status-bar-height) 20rpx 20rpx;box-sizing: border-box;position: relative;
- .nav-bar-title{
- font-size: 36rpx;height: 63rpx;line-height: 63rpx;color: #333;max-width: 70%;
- }
- .nav-bar-icon{
- width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: calc(12rpx + var(--status-bar-height));;
- background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
- }
- }
- // 带背景色
- .icon-title-bjcolor-navBar-box{
- background-color: #3fd2a1;
- .nav-bar-title{color: #fff;}
- .nav-bar-icon{background-image: url("@/static/images/common/nav-white-bar-jt.svg");}
- }
- // 仅一个返回按钮
- .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();
- }
-
- /***** 查询框 *****/
- .phone-search-box{
- width: 100%;height: 110rpx;background-color:#f4f6fa;
- padding: 20rpx 42rpx;box-sizing: border-box;
- position: relative;
-
- .search-input {
- height: 70rpx;line-height: 70rpx;font-size: 28rpx;background-color:#fff;
- border-radius: 35rpx;padding: 0 70rpx 0 20rpx;
- }
- .uni-input-placeholder{color:#a4a4a4;}
- .search-icon {
- width: 100rpx;height: 60rpx;line-height: 60rpx;text-align: center;
- position: absolute;right: 52rpx;top: 25rpx;
- background-color: #3fd2a1;
- border-radius: 40rpx;
- }
- }
- // 前面带线的标题
- .phone-line-title {display: block;color: #333;font-size: 36rpx;line-height: 1;}
- .phone-line-title:before{content: ' ';width: 4rpx;height: 36rpx;background-color:#3fd2a1;
- margin-right: 18rpx;display: inline-block;vertical-align: middle;}
- /***** 试题---题干 *****/
- .phone-shiti-question{
- font-size: 32rpx;color: #333;line-height: 1.6;margin-bottom: 24rpx;
- text-align: justify;word-wrap: break-word;word-break: break-all;display: block;@include ezy-rich-text;
- display: flex;flex-direction: row;justify-content: flex-start;
- }
- /***** 单选题 *****/
- .phone-danxuan-box{
- margin: 0 10rpx;overflow: auto;height: calc(100vh - 420rpx - var(--status-bar-height));
- .danxuan-option-box{
- width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
- font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
- display: flex;
- .option-change{
- width: 48rpx;height: 48rpx;line-height: 48rpx;box-sizing: border-box;
- flex-shrink: 0;border-radius: 50%;border: 1rpx solid;margin-right: 16rpx;
- display: flex;align-items: center;justify-content: center;
- }
- .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 6rpx;@include ezy-rich-text;
- text-align: justify;word-wrap: break-word;word-break: break-all;display: block;}
- }
- .danxuan-option-box.active .option-change{color: #FFF;background-color:#cbcbcb;border-color:#cbcbcb;}
- .danxuan-option-box.showError .option-change{color: #FFF;background-color:#ff5757;border-color:#ff5757;}
- .danxuan-option-box.active_right .option-change{color: #FFF;background-color:#1ac136;border-color:#1ac136;}
- }
- /***** 判断题 *****/
- .phone-duoxuan-box{
- margin: 0 10rpx;
- .duoxuan-option-box{
- width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
- font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
- display: flex;
- .option-change{
- width: 48rpx;height: 48rpx;line-height: 48rpx;box-sizing: border-box;
- flex-shrink: 0;border-radius: 50%;border: 1rpx solid;margin-right: 16rpx;
- display: flex;align-items: center;justify-content: center;
- }
- .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 6rpx;@include ezy-rich-text;
- text-align: justify;word-wrap: break-word;word-break: break-all;display: block;}
- }
- // active background-color:#0589e9;
- .duoxuan-option-box.active .option-change{color: #FFF;background-color:#cbcbcb;border-color:#cbcbcb;}
- .duoxuan-option-box.showError .option-change{color: #FFF;background-color:#ff5757;border-color:#ff5757;}
- .duoxuan-option-box.active_right .option-change{color: #FFF;background-color:#1ac136;border-color:#1ac136;}
- }
- /***** 判断题 *****/
- .phone-panduan-box{
- margin: 0 10rpx;
- .panduan-option-box{
- width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
- font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
- .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 16rpx;margin-bottom: 24rpx;
- text-align: justify;word-wrap: break-word;word-break: break-all;display: flex;
- .uni-radio-input{margin-right: 20rpx;}
- }
- }
- // active background-color:#0589e9;
- .option-question.active .uni-radio-input{color: #FFF;background-color:#cbcbcb!important;border-color:#cbcbcb!important;}
- .option-question.showError .uni-radio-input{color: #FFF;background-color:#ff5757!important;border-color:#ff5757!important;}
- .option-question.active_right .uni-radio-input{color: #FFF;background-color:#1ac136!important;border-color:#1ac136!important;}
- }
- /***** 填空题 *****/
- .phone-tiankong-box{
- .tiankong-option-box{
- padding:0 40rpx;box-sizing: border-box;margin-bottom: 36rpx;
- .option-question{font-size: 30rpx;color: #333;}
- .option-question-text{font-size: 30rpx;color: #333;margin-top: 16rpx;background: #f0f0f0;padding: 10px;border-radius: 4px;}
- }
-
- }
- /***** 考试须知 *****/
- .phone-ksxz-dialog{
- .uni-dialog-title{
- padding: 24rpx 0!important;font-size: 30rpx;border-bottom: 1px solid #f5f5f5;
- .uni-popup__info{color: #333!important;}
- }
- .uni-dialog-content{
- justify-content: flex-start!important;
- }
-
- .uni-dialog-button-text{color: #999!important;}
- .uni-dialog-button-text.uni-button-color{color: #3fd2a1!important;}
-
- .ksxz-content-box{
- font-size: 28rpx;color: #333;
- >view{margin-bottom: 12rpx;line-height: 1.6;}
- .ksms-row{margin-bottom: 12rpx;}
- .ksms-intro{color: #666;}
- }
-
- }
|