common.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. @import "./variable.scss";
  2. page {
  3. color: var(--content);
  4. background-color: var(--bg-color);
  5. -webkit-font-smoothing: antialiased;
  6. font-size: var(--content-size);
  7. line-height: 1.5;
  8. box-sizing: border-box;
  9. min-height: 100%;
  10. }
  11. view {
  12. box-sizing: border-box;
  13. }
  14. ::-webkit-scrollbar {
  15. display: none;
  16. }
  17. .primary {
  18. color: var(--primary);
  19. }
  20. .success {
  21. color: var(--success);
  22. }
  23. .info {
  24. color: var(--info);
  25. }
  26. .warning {
  27. color: var(--warning);
  28. }
  29. .danger {
  30. color: var(--danger);
  31. }
  32. .gray {
  33. color: var(--gray);
  34. }
  35. .bg-default {
  36. background-color: var(--border-color);
  37. }
  38. .bg-primary {
  39. background-color: var(--primary);
  40. }
  41. .bg-success {
  42. background-color: var(--success);
  43. }
  44. .bg-info {
  45. background-color: var(--info);
  46. }
  47. .bg-warning {
  48. background-color: var(--warning);
  49. }
  50. .bg-danger {
  51. background-color: var(--danger);
  52. }
  53. .bg-gray {
  54. background-color: var(--gray);
  55. }
  56. .bg-white {
  57. background-color: #fff;
  58. }
  59. .layout-box {
  60. padding: var(--gutter);
  61. background-color: #fff;
  62. }
  63. .radius {
  64. border-radius: 8rpx;
  65. }
  66. .radius-lg {
  67. border-radius: 16rpx;
  68. }
  69. .bdt {
  70. border-top: 1px solid var(--border-color);
  71. }
  72. .bdb {
  73. border-bottom: 1px solid var(--border-color);
  74. }
  75. .bdt-dashed {
  76. border-top: 1px dashed var(--border-color);
  77. }
  78. .bdb-dashed {
  79. border-bottom: 1px dashed var(--border-color);
  80. }
  81. .xc-border {
  82. border: 1px solid var(--border-color);
  83. }
  84. .gutter-v {
  85. margin-bottom: var(--gutter-v);
  86. }
  87. .text-center {
  88. text-align: center;
  89. }
  90. .text-left {
  91. text-align: left;
  92. }
  93. .text-right {
  94. text-align: right;
  95. }
  96. .text-justify {
  97. text-align-last: justify;
  98. }
  99. .underline {
  100. text-decoration: underline;
  101. }
  102. .line-through {
  103. text-decoration: line-through;
  104. }
  105. .flex {
  106. display: flex;
  107. }
  108. .flex-grow {
  109. flex-grow: 1;
  110. }
  111. .justify-center {
  112. justify-content: center;
  113. }
  114. .justify-between {
  115. justify-content: space-between;
  116. }
  117. .justify-end {
  118. justify-content: flex-end;
  119. }
  120. .align-end {
  121. align-items: flex-end;
  122. }
  123. .align-center {
  124. align-items: center;
  125. }
  126. .direction-row {
  127. flex-direction: row;
  128. }
  129. .direction-column {
  130. flex-direction: column;
  131. }
  132. .shadow {
  133. box-shadow: 0 0 10px 2px rgba(65, 65, 70, 0.2);
  134. }
  135. .card-shadow {
  136. box-shadow: 0 0 20rpx 8rpx rgba(65, 65, 70, 0.07);
  137. border-radius: 12rpx;
  138. overflow: hidden;
  139. }
  140. .title {
  141. font-size: var(--title-size);
  142. color: var(--title);
  143. }
  144. .content {
  145. font-size: var(--content-size);
  146. color: var(--content);
  147. }
  148. .sub {
  149. font-size: var(--sub-size);
  150. color: var(--sub);
  151. }
  152. .bold {
  153. font-weight: bold;
  154. }
  155. .line0 {
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. white-space: nowrap;
  159. }
  160. .line1 {
  161. max-height: 42px;
  162. overflow: hidden;
  163. text-overflow: ellipsis;
  164. display: -webkit-box;
  165. -webkit-line-clamp: 1;
  166. -webkit-box-orient: vertical;
  167. }
  168. .line2 {
  169. max-height: 42px;
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. display: -webkit-box;
  173. -webkit-line-clamp: 2;
  174. -webkit-box-orient: vertical;
  175. }
  176. .line3 {
  177. max-height: 62px;
  178. overflow: hidden;
  179. text-overflow: ellipsis;
  180. display: -webkit-box;
  181. -webkit-line-clamp: 3;
  182. -webkit-box-orient: vertical;
  183. }
  184. .container {
  185. display: flex;
  186. flex-direction: column;
  187. height: calc(100vh - var(--window-top));
  188. }
  189. .container-box {
  190. display: flex;
  191. flex-direction: column;
  192. height: 100%;
  193. }
  194. .main {
  195. flex: 1;
  196. overflow-x: hidden;
  197. overflow-y: auto;
  198. -webkit-overflow-scrolling: touch;
  199. }
  200. .title-hd {
  201. padding: 20rpx;
  202. position: relative;
  203. }
  204. .title-hd::before {
  205. position: absolute;
  206. content: "";
  207. width: 3px;
  208. height: 13px;
  209. background-color: var(--primary);
  210. left: 0;
  211. top: 50%;
  212. transform: translateY(-50%);
  213. }
  214. .inline-block {
  215. display: inline-block;
  216. }
  217. .block {
  218. display: block;
  219. }
  220. .vm {
  221. vertical-align: middle;
  222. }
  223. .fs12 {
  224. font-size: 12px;
  225. }
  226. .pr {
  227. position: relative;
  228. }
  229. .pa {
  230. position: absolute;
  231. }
  232. .pf {
  233. position: fixed;
  234. }
  235. .sticky {
  236. position: sticky;
  237. top: 0;
  238. z-index: 1;
  239. }
  240. .fs-list {
  241. padding: var(--gutter);
  242. &-item {
  243. background-color: #fff;
  244. padding: var(--gutter);
  245. border-radius: 8rpx;
  246. position: relative;
  247. &.border {
  248. border-left: 6rpx solid var(--primary);
  249. }
  250. & + & {
  251. margin-top: var(--gutter);
  252. }
  253. &-sub {
  254. display: flex;
  255. & + & {
  256. margin-top: 10rpx;
  257. }
  258. }
  259. &-left {
  260. color: #78869c;
  261. width: 55px;
  262. text-align-last: justify;
  263. position: relative;
  264. font-size: var(--content-size);
  265. margin-right: 20rpx;
  266. white-space: nowrap;
  267. flex-shrink: 0;
  268. &::after {
  269. position: absolute;
  270. content: ":";
  271. color: #78869c;
  272. }
  273. }
  274. }
  275. }
  276. .fs-cell-right {
  277. height: 100%;
  278. display: flex;
  279. flex-direction: column;
  280. justify-content: space-between;
  281. }
  282. .w-full {
  283. width: 100%;
  284. }
  285. .h-full {
  286. height: 100%;
  287. }
  288. .wrapper {
  289. min-height: 100vh;
  290. }
  291. .footer-btn {
  292. padding: 30rpx 0;
  293. }
  294. .p-30 {
  295. padding: 30rpx;
  296. }
  297. .p-x-30 {
  298. padding-left: 30rpx;
  299. padding-right: 30rpx;
  300. }
  301. .p-y-30 {
  302. padding-top: 30rpx;
  303. padding-bottom: 30rpx;
  304. }
  305. .m-t-30 {
  306. margin-top: 30rpx;
  307. }
  308. .m-10 {
  309. margin: 10rpx;
  310. }
  311. .empty {
  312. .empty_text {
  313. font-size: 30rpx;
  314. color: #666;
  315. text-align: center;
  316. }
  317. }
  318. .title-line {
  319. position: relative;
  320. text,
  321. .text {
  322. position: relative;
  323. z-index: 1;
  324. font-size: 32rpx;
  325. color: #333;
  326. font-weight: 700;
  327. }
  328. .num {
  329. font-size: 32rpx;
  330. color: #4479ff;
  331. margin-left: 2rpx;
  332. }
  333. &::after {
  334. content: "";
  335. position: absolute;
  336. z-index: 0;
  337. left: 0;
  338. bottom: 0;
  339. width: 150rpx;
  340. height: 14rpx;
  341. background: linear-gradient(-76deg, #fff, #00eea8, #0871ff);
  342. opacity: 0.5;
  343. }
  344. }
  345. .color-font {
  346. background: linear-gradient(
  347. -76deg,
  348. #b193ff 0%,
  349. #1cb2ff 53.0029296875%,
  350. #0871ff 100%
  351. );
  352. -webkit-background-clip: text;
  353. -webkit-text-fill-color: transparent;
  354. }
  355. .rich-img {
  356. max-width: 100% !important;
  357. object-fit: cover;
  358. }
  359. /* #ifdef H5 */
  360. uni-page-head {
  361. display: none;
  362. }
  363. .fs-mask {
  364. top: 0 !important;
  365. }
  366. .fs-popup {
  367. .bottom {
  368. bottom: 0 !important;
  369. }
  370. }
  371. /* #endif */
  372. .page-top-bg-class {
  373. background-image: url("@/static/images/page-top-bg.png");
  374. background-position: top center;
  375. background-repeat: no-repeat;
  376. background-size: 100% 290rpx;
  377. box-sizing: border-box;
  378. padding: 30rpx;
  379. }