123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- /******************** 公共组件样式 ********************/
- /***** view *****/
- view{box-sizing: border-box;}
- /***** 对齐方式 *****/
- .ezy-tl{text-align: left;}
- .ezy-tc{text-align: center;}
- .ezy-tr{text-align: right;}
- /***** 超出省略 *****/
- // 文本超出省略号显示 (一行)
- @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-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();
- }
- /******************** 网站组件样式 ********************/
- .dljt-navBar-box{
- width: 100%;height: 140rpx;@include ezy-no-repeat-cover();
- display: flex;align-items: center;justify-content: space-between;
- background-image: url("@/static/images/common/dljt-navBar-bj.png");
- .uni-navbar--shadow{box-shadow: none;border-bottom: 0;}
- .uni-navbar__header-btns{display: none;}
- .uni-navbar__header-container{justify-content: space-between;align-items: center;width: 100%;}
- .dljt-logo-box{
- width: 495rpx;height: 110rpx;@include ezy-no-repeat-cover();
- background-image: url("@/static/images/common/website-logo.gif");
- }
- .dljt-menu-box{
- width: 60rpx;height: 44rpx;@include ezy-no-repeat-cover();
- background-image: url("@/static/images/common/menu-icon.png");
- }
- }
- .head-collapse-box{
- width: 100%;height: 100vh!important;background-color: #0041b7!important;
- .uni-collapse-item__title-box{background-color: #0041b7!important;font-size: 32rpx;color: #fff;}
- .uni-collapse-item--animation{
- transform: rotate(270deg);
- .uni-icons{font-size: 32rpx!important;color: #fff!important;}
- }
- .uni-collapse-item__title-arrow-active{transform: rotate(360deg);}
- .head-collapse-item{
- margin: 0 16rpx;
- .uni-collapse-item__title-text{font-size: 32rpx;}
- .uni-collapse-item__title{padding: 16rpx 0;}
- .open{padding-bottom: 16rpx;}
- .uni-collapse-item__wrap{background-color: #0041b7!important;}
- }
- .head-item-text{background-color: #45bcf4;margin:0 16rpx 16rpx;font-size: 32rpx;
- border-radius: 8rpx;color: #fff;padding: 32rpx 16rpx;box-sizing: border-box;}
- }
|