uni-data-pickerview.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @charset "UTF-8";
  2. /**
  3. * 主题色配置
  4. * 默认在 uni.scss 全局引入:@import '@/theme.scss';
  5. * <script> 下使用主题变量:import x from '@/theme.scss';
  6. */
  7. .page {
  8. background-color: #f8f8f8;
  9. font-family: PingFangSC;
  10. }
  11. .safeAreaPad {
  12. padding-bottom: constant(safe-area-inset-bottom);
  13. padding-bottom: env(safe-area-inset-bottom);
  14. box-sizing: content-box;
  15. }
  16. .uni-data-pickerview {
  17. flex: 1;
  18. display: flex;
  19. flex-direction: column;
  20. overflow: hidden;
  21. height: 100%;
  22. }
  23. .error-text {
  24. color: #DD524D;
  25. }
  26. .loading-cover {
  27. position: absolute;
  28. left: 0;
  29. top: 0;
  30. right: 0;
  31. bottom: 0;
  32. background-color: rgba(255, 255, 255, 0.5);
  33. display: flex;
  34. flex-direction: column;
  35. align-items: center;
  36. z-index: 1001;
  37. }
  38. .load-more {
  39. margin: auto;
  40. }
  41. .error-message {
  42. background-color: #fff;
  43. position: absolute;
  44. left: 0;
  45. top: 0;
  46. right: 0;
  47. bottom: 0;
  48. padding: 15px;
  49. opacity: .9;
  50. z-index: 102;
  51. }
  52. .selected-list {
  53. display: flex;
  54. flex-wrap: nowrap;
  55. flex-direction: row;
  56. padding: 0 5px;
  57. border-bottom: 1px solid #f8f8f8;
  58. }
  59. .selected-item {
  60. margin-left: 10px;
  61. margin-right: 10px;
  62. text-align: center;
  63. white-space: nowrap;
  64. }
  65. .selected-item-text-overflow {
  66. width: 168px;
  67. /* fix nvue */
  68. overflow: hidden;
  69. width: 6em;
  70. white-space: nowrap;
  71. text-overflow: ellipsis;
  72. -o-text-overflow: ellipsis;
  73. }
  74. .selected-item-active {
  75. border-bottom: 2px solid #007aff;
  76. }
  77. .selected-item-text {
  78. color: #007aff;
  79. }
  80. .tab-c {
  81. position: relative;
  82. flex: 1;
  83. display: flex;
  84. flex-direction: row;
  85. overflow: hidden;
  86. }
  87. .list {
  88. flex: 1;
  89. }
  90. .item {
  91. padding: 4px 15px;
  92. /* border-bottom: 1px solid #f0f0f0; */
  93. display: flex;
  94. flex-direction: row;
  95. justify-content: space-between;
  96. }
  97. .is-disabled {
  98. opacity: .5;
  99. }
  100. .item-text {
  101. /* flex: 1; */
  102. color: #333333;
  103. }
  104. .item-text-overflow {
  105. width: 280px;
  106. /* fix nvue */
  107. overflow: hidden;
  108. width: 20em;
  109. white-space: nowrap;
  110. text-overflow: ellipsis;
  111. -o-text-overflow: ellipsis;
  112. }
  113. .check {
  114. margin-right: 5px;
  115. border: 2px solid #007aff;
  116. border-left: 0;
  117. border-top: 0;
  118. height: 12px;
  119. width: 6px;
  120. -webkit-transform-origin: center;
  121. transform-origin: center;
  122. transition: all 0.3s;
  123. -webkit-transform: rotate(45deg);
  124. transform: rotate(45deg);
  125. }