uni.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. /* 主题变量 */
  2. .theme-light {
  3. --list-background-color: #ffffff;
  4. --background-color: #f8f8f8;
  5. --active-color:#a0a0a0;
  6. --active-background-color: #f8f8f8;
  7. --text-color: #333333;
  8. --border-color: rgba(0, 0, 0, .06);
  9. }
  10. .theme-dark {
  11. --list-background-color: #2d2d2d;
  12. --background-color: #1a1a1a;
  13. --active-color:#8f8f8f;
  14. --active-background-color: #3b3b3b;
  15. --text-color: #ffffff;
  16. --border-color: rgba(255, 255, 255, 0.1);
  17. }
  18. .uni-padding-wrap {
  19. padding: 0 15px;
  20. }
  21. .uni-title {
  22. padding: 10px 0;
  23. }
  24. .uni-title-text {
  25. font-size: 15px;
  26. font-weight: bold;
  27. color: var(--text-color, #333333);
  28. }
  29. .uni-subtitle-text {
  30. color: #888;
  31. font-size: 12px;
  32. font-weight: bold;
  33. margin-top: 5px;
  34. }
  35. .uni-common-mb {
  36. margin-bottom: 15px;
  37. }
  38. .uni-common-pb {
  39. padding-bottom: 15px;
  40. }
  41. .uni-common-pl {
  42. padding-left: 15px;
  43. }
  44. .uni-common-mt {
  45. margin-top: 15px;
  46. }
  47. .uni-hello-text {
  48. color: var(--text-color,#333333);
  49. line-height: 22px;
  50. }
  51. .uni-list {
  52. background-color: var(--list-background-color,#ffffff);
  53. position: relative;
  54. display: flex;
  55. flex-direction: column;
  56. border-bottom: 1px solid #c8c7cc;
  57. }
  58. .uni-list-cell {
  59. position: relative;
  60. display: flex;
  61. flex-direction: row;
  62. justify-content: space-between;
  63. align-items: center;
  64. }
  65. .uni-list-cell-padding {
  66. padding: 10px 15px;
  67. }
  68. .uni-list-cell-line {
  69. border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, .06));
  70. }
  71. .uni-list-cell-hover {
  72. background-color: var(--active-background-color,#f8f8f8);
  73. }
  74. .uni-list-cell-pd {
  75. padding: 11px 15px 11px 0;
  76. }
  77. .uni-list-cell-left {
  78. padding: 0 15px 0 10px;
  79. }
  80. .uni-list-cell-db,
  81. .uni-list-cell-right {
  82. flex: 1;
  83. }
  84. .uni-list-cell-db-text {
  85. width: 100%;
  86. /* #ifdef WEB || MP */
  87. word-break: break-all;
  88. /* #endif */
  89. }
  90. .uni-label {
  91. width: 105px;
  92. }
  93. .uni-input {
  94. height: 25px;
  95. padding: 8px 13px;
  96. /* line-height: 25px; */
  97. font-size: 14px;
  98. background: var(--list-background-color,#ffffff);
  99. flex: 1;
  100. box-sizing: content-box;
  101. }
  102. .uni-flex {
  103. /* #ifdef WEB || MP */
  104. display: flex;
  105. /* #endif */
  106. flex-direction: row;
  107. }
  108. .uni-flex-item {
  109. flex: 1;
  110. }
  111. .uni-row {
  112. flex-direction: row;
  113. }
  114. .uni-column {
  115. flex-direction: column;
  116. }
  117. .uni-bg-red {
  118. background: #F76260;
  119. }
  120. .uni-bg-green {
  121. background: #09BB07;
  122. }
  123. .uni-bg-blue {
  124. background: #007AFF;
  125. }
  126. .uni-btn-v {
  127. padding: 5px 0;
  128. }
  129. .uni-btn {
  130. margin-top: 10px;
  131. }
  132. .uni-link {
  133. color: #576B95;
  134. font-size: 13px;
  135. }
  136. .uni-center {
  137. flex-direction: row;
  138. justify-content: center;
  139. }
  140. .uni-textarea {
  141. padding: 9px;
  142. line-height: 1.6;
  143. font-size: 14px;
  144. }
  145. .uni-icon-size {
  146. width: 14px;
  147. height: 14px;
  148. }
  149. .uni-container {
  150. padding: 15px;
  151. background-color: var(--background-color,#f8f8f8);
  152. }
  153. .uni-header-logo {
  154. padding: 15px 15px;
  155. flex-direction: column;
  156. justify-content: center;
  157. align-items: center;
  158. margin-top: 5px;
  159. }
  160. .uni-header-image {
  161. width: 80px;
  162. height: 80px;
  163. }
  164. .uni-text-box {
  165. margin-bottom: 20px;
  166. }
  167. .hello-text {
  168. color: var(--text-color);
  169. font-size: 14px;
  170. line-height: 20px;
  171. }
  172. .uni-panel {
  173. margin-bottom: 12px;
  174. }
  175. .text-disabled {
  176. color: var(--active-color)!important;
  177. }
  178. /* --tab-bar-begin-- */
  179. .uni-panel-h {
  180. background-color: var(--list-background-color);
  181. flex-direction: row !important;
  182. justify-content: space-between !important;
  183. align-items: center !important;
  184. padding: 12px;
  185. }
  186. .uni-panel-h-on {
  187. background-color: #f0f0f0;
  188. }
  189. .uni-panel-text {
  190. color: var(--text-color);
  191. font-size: 14px;
  192. font-weight: normal;
  193. }
  194. .uni-navigate-item {
  195. flex-direction: row;
  196. align-items: center;
  197. background-color: var(--list-background-color);
  198. border-top-style: solid;
  199. border-top-color: #f0f0f0;
  200. border-top-width: 1px;
  201. padding: 12px;
  202. justify-content: space-between;
  203. /* #ifdef WEB */
  204. /* cursor: pointer; */
  205. /* #endif */
  206. }
  207. .is--active {
  208. background-color: var(--active-background-color);
  209. }
  210. .uni-navigate-text {
  211. color: var(--text-color);
  212. font-size: 14px;
  213. font-weight: normal;
  214. }
  215. /* left-windows */
  216. .left-win-active {
  217. color: #007AFF !important;
  218. }
  219. /* --tab-bar-end-- */
  220. .uni-container ::v-deep .uni-collapse-item .uni-collapse-item__title{
  221. background-color: var(--list-background-color)!important;
  222. }
  223. .uni-container ::v-deep .uni-collapse-item .uni-collapse-item__title .uni-collapse-item__title-text{
  224. color: var(--text-color)!important;
  225. }
  226. .uni-container ::v-deep .uni-collapse-item .uni-collapse-item__title .uni-collapse-item__title-text.open--active{
  227. color: var(--active-color)!important;
  228. }
  229. /* #ifdef APP */
  230. .page-scroll-view {
  231. flex: 1;
  232. }
  233. /* #endif */
  234. /* web端适配暗黑主题 */
  235. /* #ifdef WEB */
  236. @media (prefers-color-scheme: dark) {
  237. body,
  238. uni-page-body {
  239. color: rgba(0, 0, 0, 0.9);
  240. }
  241. .uni-top-window .tab-bar-flex :deep(.uni-tabbar){
  242. background-color: #2d2d2d!important;
  243. }
  244. /* 设置滚动条整体宽度和背景色 */
  245. ::-webkit-scrollbar {
  246. width: 8px;
  247. background: #464646;
  248. }
  249. /* 设置滚动条滑块颜色 */
  250. ::-webkit-scrollbar-thumb {
  251. background: #aaaaaa;
  252. border-radius: 4px;
  253. }
  254. /* 鼠标悬停在滑块上时的颜色 */
  255. ::-webkit-scrollbar-thumb:hover {
  256. background: #818181;
  257. }
  258. /* 滚动条轨道颜色 */
  259. ::-webkit-scrollbar-track {
  260. background: #464646;
  261. border-radius: 4px;
  262. }
  263. }
  264. /* #endif */
  265. /* #ifdef MP */
  266. page {
  267. color: rgba(0, 0, 0, 0.9);
  268. }
  269. /* #endif */