global.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .text-center {
  2. text-align: center;
  3. }
  4. .text-grey1 {
  5. color: #888;
  6. }
  7. .text-grey2 {
  8. color: #aaa;
  9. }
  10. .list-cell {
  11. position: relative;
  12. width: 100%;
  13. box-sizing: border-box;
  14. background-color: #fff;
  15. color: #333;
  16. padding: 26rpx 30rpx;
  17. }
  18. .list-cell:first-child {
  19. border-radius: 8rpx 8rpx 0 0;
  20. }
  21. .list-cell:last-child {
  22. border-radius: 0 0 8rpx 8rpx;
  23. }
  24. .list-cell::after {
  25. content: '';
  26. position: absolute;
  27. border-bottom: 1px solid #eaeef1;
  28. -webkit-transform: scaleY(0.5) translateZ(0);
  29. transform: scaleY(0.5) translateZ(0);
  30. transform-origin: 0 100%;
  31. bottom: 0;
  32. right: 0;
  33. left: 0;
  34. pointer-events: none;
  35. }
  36. .list-cell-arrow::before {
  37. content: ' ';
  38. height: 10px;
  39. width: 10px;
  40. border-width: 2px 2px 0 0;
  41. border-color: #c0c0c0;
  42. border-style: solid;
  43. -webkit-transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  44. transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  45. position: absolute;
  46. top: 50%;
  47. margin-top: -6px;
  48. right: 30rpx;
  49. }
  50. .menu-list {
  51. margin: 0.625rem 0.625rem;
  52. .menu-item {
  53. width: 100%;
  54. display: flex;
  55. align-items: center;
  56. .title {
  57. width: 80%;
  58. white-space: nowrap;
  59. overflow: hidden; //超出的文本隐藏
  60. text-overflow: ellipsis; //溢出用省略号显示
  61. }
  62. .content {
  63. width: 20%;
  64. text-align: right;
  65. white-space: nowrap;
  66. overflow: hidden; //超出的文本隐藏
  67. text-overflow: ellipsis; //溢出用省略号显示
  68. }
  69. &-icon {
  70. color: $uni-color-primary;
  71. font-size: 16px;
  72. margin: auto 5px auto 0;
  73. }
  74. &-image {
  75. margin-right: 5px;
  76. }
  77. .text-right {
  78. margin: 0 15px 0 auto;
  79. font-size: 14px;
  80. color: #909399
  81. }
  82. .button {
  83. width: 100%;
  84. text-align: center;
  85. white-space: nowrap;
  86. overflow: hidden; //超出的文本隐藏
  87. text-overflow: ellipsis; //溢出用省略号显示
  88. &.error {
  89. color: red;
  90. }
  91. }
  92. }
  93. }
  94. .textExceeds{
  95. word-wrap: break-word;
  96. word-break: break-all;
  97. }