components.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /******************** 公共组件样式 ********************/
  2. /***** view *****/
  3. view{box-sizing: border-box;}
  4. /***** 对齐方式 *****/
  5. .ezy-tl{text-align: left;}
  6. .ezy-tc{text-align: center;}
  7. .ezy-tr{text-align: right;}
  8. /***** 超出省略 *****/
  9. // 文本超出省略号显示 (一行)
  10. @mixin single-line-ellipsis() {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;}
  11. // 文本超出省略号显示 (多行)
  12. @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;}
  13. /***** 页面背景图 *****/
  14. // no-repeat cover
  15. @mixin ezy-no-repeat-cover($position: center) {
  16. background-position: $position;background-size: cover;background-repeat: no-repeat;
  17. }
  18. // no-repeat contain
  19. @mixin ezy-no-repeat-contain($position: center) {
  20. background-position: $position;background-size: contain;background-repeat: no-repeat;
  21. }
  22. /***** 富文本处理 *****/
  23. @mixin ezy-rich-text() {
  24. white-space: pre-wrap;text-align: justify;
  25. div,p,span{margin: 0;padding: 0;}
  26. img{max-width: 100%;}
  27. .ql-align-center{text-align: center}
  28. .ql-align-right{text-align: right}
  29. // 9号字
  30. .ql-size-9px{font-size: 18rpx;}
  31. // 12号字
  32. .ql-size-12px{font-size: 24rpx;}
  33. // 14号字
  34. .ql-size-14px{font-size: 28rpx;}
  35. // 16号字
  36. .ql-size-16px{font-size: 32rpx;}
  37. // 18号字
  38. .ql-size-18px{font-size: 36rpx;}
  39. // 24号字
  40. .ql-size-24px{font-size: 48rpx;}
  41. // 32号字
  42. .ql-size-32px{font-size: 64rpx;}
  43. // 单倍行距
  44. .line-height-lineHeight1{line-height: 1;}
  45. // 1.5倍行距
  46. .line-height-lineHeight1-5{line-height: 1.5;}
  47. // 2倍行距
  48. .line-height-lineHeight2{line-height: 2;}
  49. // 2.5倍行距
  50. .line-height-lineHeight2-5{line-height: 2.5;}
  51. // 3倍行距
  52. .line-height-lineHeight3{line-height: 3;}
  53. }
  54. /***** 标题栏 *****/
  55. // 三个元素
  56. .phone-navBar-box{
  57. display: flex;align-items: center;justify-content: space-between;background-color: #fff;
  58. padding: calc(20rpx + var(--status-bar-height)) 20rpx 20rpx;box-sizing: border-box;position: relative;
  59. .nav-bar-icon{
  60. width: 24rpx;height: 38rpx;
  61. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  62. }
  63. .nav-bar-title{font-size: 36rpx;color: #333;}
  64. // 考试数字
  65. .nav-bar-other{
  66. font-size: 30rpx;color: #fff;margin-right: 2%;
  67. .key-note{color: #ffff01;}
  68. }
  69. // 文字按钮
  70. .text-btn{font-size: 26rpx;color: #666;padding-top: 4rpx;box-sizing: border-box;}
  71. // 图标
  72. .nav-bar-icon-box{
  73. .nav-bar-right-icon{font-size: 42rpx;color: #666;}
  74. .nav-bar-right-icon + .nav-bar-right-icon{margin-left: 24rpx;}
  75. }
  76. }
  77. // 两个元素
  78. .icon-title-navBar-box,.icon-title-bjcolor-navBar-box{
  79. display: flex;align-items: center;justify-content: center;background-color: #fff;
  80. padding: calc(20rpx + var(--status-bar-height)) 20rpx 20rpx;box-sizing: border-box;position: relative;
  81. .nav-bar-title{
  82. font-size: 32rpx;height: 63rpx;line-height: 63rpx;color: #333;max-width: 70%;
  83. }
  84. .nav-bar-icon{
  85. width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: calc(32rpx + var(--status-bar-height));
  86. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  87. }
  88. .bar-ml10{margin-left: 10rpx;}
  89. .nav-bar-btn{font-size: 24rpx;position: absolute;right: 20rpx;
  90. line-height: 50rpx;border-radius: 8rpx;padding: 0 10rpx;}
  91. }
  92. // 仅一个返回按钮
  93. .phone-nav-bar-icon{width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: var(--status-bar-height);
  94. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  95. }
  96. /******************** 网站组件样式 ********************/
  97. .dljt-navBar-box{
  98. width: 100%;height: 140rpx;@include ezy-no-repeat-cover();
  99. display: flex;align-items: center;justify-content: space-between;
  100. background-image: url("@/static/images/common/dljt-navBar-bj.png");
  101. .uni-navbar--shadow{box-shadow: none;border-bottom: 0;}
  102. .uni-navbar__header-btns{display: none;}
  103. .uni-navbar__header-container{justify-content: space-between;align-items: center;width: 100%;}
  104. .dljt-logo-box{
  105. width: 495rpx;height: 110rpx;@include ezy-no-repeat-cover();
  106. background-image: url("@/static/images/common/website-logo.gif");
  107. }
  108. .dljt-menu-box{
  109. width: 60rpx;height: 44rpx;@include ezy-no-repeat-cover();
  110. background-image: url("@/static/images/common/menu-icon.png");
  111. }
  112. }
  113. .head-collapse-box{
  114. width: 100%;height: 100vh!important;background-color: #0041b7!important;
  115. .uni-collapse-item__title-box{background-color: #0041b7!important;font-size: 32rpx;color: #fff;}
  116. .uni-collapse-item--animation{
  117. transform: rotate(270deg);
  118. .uni-icons{font-size: 32rpx!important;color: #fff!important;}
  119. }
  120. .uni-collapse-item__title-arrow-active{transform: rotate(360deg);}
  121. .head-collapse-item{
  122. margin: 0 16rpx;
  123. .uni-collapse-item__title-text{font-size: 32rpx;}
  124. .uni-collapse-item__title{padding: 16rpx 0;}
  125. .open{padding-bottom: 16rpx;}
  126. .uni-collapse-item__wrap{background-color: #0041b7!important;}
  127. }
  128. .head-item-text{background-color: #45bcf4;margin:0 16rpx 16rpx;font-size: 32rpx;
  129. border-radius: 8rpx;color: #fff;padding: 32rpx 16rpx;box-sizing: border-box;}
  130. }