app.base.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // 全局css基础样式
  2. .card-shadow {
  3. box-shadow: 0rpx 0rpx 24rpx rgba(0, 0, 0, 0.08);
  4. }
  5. .bg-white {
  6. background-color: #fff;
  7. }
  8. .load-text {
  9. padding: 0 0 20rpx 0;
  10. text-align: center;
  11. color: #999;
  12. font-size: 24rpx;
  13. }
  14. .e-fixed {
  15. position: fixed;
  16. left: 0;
  17. /* #ifndef H5 */
  18. top: 0;
  19. /* #endif */
  20. /* #ifdef H5 */
  21. top: 88rpx;
  22. /* #endif */
  23. right: 0;
  24. z-index: 6;
  25. }
  26. .e-loading-icon {
  27. animation: eLoading 0.8s linear infinite;
  28. }
  29. @keyframes eLoading {
  30. 0% {
  31. transform: rotateZ(0deg);
  32. }
  33. 100% {
  34. transform: rotateZ(360deg);
  35. }
  36. }
  37. // 自定义广告
  38. .ad-card {
  39. position: relative;
  40. box-sizing: border-box;
  41. padding: 24rpx;
  42. box-shadow: 0rpx 4rpx 24rpx rgba(0, 0, 0, 0.03);
  43. background-color: #ffffff;
  44. border-radius: 12rpx;
  45. &.is-lr {
  46. display: flex;
  47. .ad-card_tip {
  48. top: initial;
  49. left: 288rpx;
  50. bottom: 24rpx;
  51. // right: 160rpx;
  52. padding: 4rpx 20rpx;
  53. background-color: transparent;
  54. border: 2rpx solid #607d8b;
  55. color: #607d8b;
  56. }
  57. .ad-card_cover {
  58. width: 240rpx;
  59. height: 180rpx;
  60. animation: adLinkAni 1s ease-in-out infinite;
  61. }
  62. .ad-card_info {
  63. width: 0;
  64. flex-grow: 1;
  65. padding-left: 24rpx;
  66. &-title {
  67. margin-top: 0;
  68. width: 100%;
  69. font-size: 30rpx;
  70. }
  71. &-link {
  72. top: initial;
  73. // right: 150rpx;
  74. bottom: 0;
  75. transform: scale(1);
  76. }
  77. }
  78. }
  79. &_tip {
  80. position: absolute;
  81. left: 36rpx;
  82. top: 36rpx;
  83. display: inline-flex;
  84. box-sizing: border-box;
  85. border-radius: 6rpx;
  86. padding: 4rpx 10rpx;
  87. background-color: rgba(0, 0, 0, 0.3);
  88. color: #ffffff;
  89. font-size: 24rpx;
  90. z-index: 2;
  91. }
  92. &_cover {
  93. width: 100%;
  94. height: 300rpx;
  95. border-radius: 6rpx;
  96. }
  97. &_info {
  98. display: flex;
  99. flex-direction: column;
  100. box-sizing: border-box;
  101. position: relative;
  102. &-title {
  103. width: calc(100% - 120rpx);
  104. font-size: 28rpx;
  105. font-weight: bold;
  106. margin-top: 8rpx;
  107. white-space: nowrap;
  108. overflow: hidden;
  109. text-overflow: ellipsis;
  110. color: #333;
  111. }
  112. &-desc {
  113. margin-top: 6rpx;
  114. font-size: 24rpx;
  115. color: #616161;
  116. line-height: 1.8;
  117. overflow: hidden;
  118. text-overflow: ellipsis;
  119. display: -webkit-box;
  120. -webkit-box-orient: vertical;
  121. -webkit-line-clamp: 2;
  122. }
  123. &-link {
  124. position: absolute;
  125. right: 0;
  126. top: 6rpx;
  127. display: inline-flex;
  128. box-sizing: border-box;
  129. border-radius: 6rpx;
  130. padding: 4rpx 10rpx;
  131. border: 2rpx solid #03a9f4;
  132. color: #03a9f4;
  133. font-size: 24rpx;
  134. transform: scale(0.93);
  135. // animation: adLinkAni 0.8s ease-in-out infinite;
  136. }
  137. }
  138. }
  139. @keyframes adLinkAni {
  140. 0% {
  141. transform: scale(1);
  142. }
  143. 50% {
  144. transform: scale(1.02);
  145. }
  146. 100% {
  147. transform: scale(1);
  148. }
  149. }
  150. /* 文本省略样式 开始 */
  151. .text-sub-one {
  152. overflow: hidden;
  153. text-overflow: ellipsis;
  154. white-space: nowrap;
  155. }
  156. /* 多行文本省略 */
  157. @for $i from 2 through 30 {
  158. .text-sub-more-#{$i} {
  159. display: -webkit-box;
  160. -webkit-box-orient: vertical;
  161. -webkit-line-clamp: $i;
  162. overflow: hidden;
  163. }
  164. }
  165. /* 文本省略样式 结束 */