uni.css 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. /* 全局公共样式 */
  2. body,
  3. html {
  4. -webkit-user-select: auto;
  5. user-select: auto;
  6. font-size: 16px;
  7. }
  8. /* #ifdef H5 */
  9. .uni-app--showleftwindow uni-main {
  10. position: relative;
  11. background-color: #f5f5f5;
  12. }
  13. .uni-mask + .uni-left-window,
  14. .uni-mask + .uni-right-window {
  15. position: fixed;
  16. }
  17. .uni-app--showleftwindow uni-page-head .uni-page-head {
  18. color: #333 !important;
  19. /* margin-right: 15px; */
  20. }
  21. uni-page-head .uni-btn-icon {
  22. color: #333 !important;
  23. }
  24. .uni-app--showleftwindow
  25. uni-page-head[uni-page-head-type="default"]
  26. ~ uni-page-wrapper {
  27. height: auto;
  28. padding-top: 44px;
  29. }
  30. .uni-app--showleftwindow uni-page-head ~ uni-page-wrapper uni-page-body {
  31. /* padding-top: 44px; */
  32. }
  33. .uni-app--showleftwindow uni-page-wrapper {
  34. position: absolute;
  35. width: 100%;
  36. top: 0;
  37. bottom: 0;
  38. padding: 15px;
  39. overflow-y: auto;
  40. box-sizing: border-box;
  41. background-color: #f5f5f5;
  42. }
  43. .uni-app--showleftwindow uni-page-body {
  44. width: 100%;
  45. min-height: 100%;
  46. box-sizing: border-box;
  47. border-radius: 5px;
  48. box-shadow: -1px -1px 5px 0 rgba(0, 0, 0, 0.1);
  49. background-color: #fff;
  50. }
  51. .uni-app--showleftwindow .uni-container .uni-forms {
  52. padding: 15px;
  53. max-width: 650px;
  54. }
  55. /* #endif */
  56. /* #ifndef H5 */
  57. .uni-nav-menu {
  58. height: 100vh;
  59. }
  60. /* #endif */
  61. .pointer {
  62. cursor: pointer;
  63. }
  64. .uni-top-window {
  65. z-index: 999;
  66. overflow: visible;
  67. }
  68. .uni-tips {
  69. font-size: 12px;
  70. color: #666;
  71. }
  72. /* 容器 */
  73. .uni-container {
  74. padding: 15px;
  75. box-sizing: border-box;
  76. }
  77. /* 标题栏 */
  78. .uni-header {
  79. padding: 0 15px;
  80. display: flex;
  81. min-height: 55px;
  82. align-items: center;
  83. justify-content: space-between;
  84. border-bottom: 1px #f5f5f5 solid;
  85. flex-wrap: wrap;
  86. }
  87. .uni-title {
  88. margin-right: 10px;
  89. font-size: 16px;
  90. font-weight: 500;
  91. color: #333;
  92. }
  93. .uni-sub-title {
  94. margin-top: 3px;
  95. font-size: 14px;
  96. color: #999;
  97. }
  98. .uni-link {
  99. color: #3a8ee6;
  100. cursor: pointer;
  101. text-decoration: underline;
  102. }
  103. .uni-group {
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. flex-wrap: wrap;
  108. word-break: keep-all;
  109. }
  110. /* 按钮样式 */
  111. .uni-button-group {
  112. margin-top: 30px;
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. }
  117. .uni-button {
  118. padding: 10px 20px;
  119. font-size: 14px;
  120. border-radius: 4px;
  121. line-height: 1;
  122. margin: 0;
  123. box-sizing: border-box;
  124. overflow: initial;
  125. }
  126. .uni-group .uni-button {
  127. margin: 10px;
  128. }
  129. .uni-group .uni-search {
  130. margin: 10px;
  131. }
  132. .uni-group > .uni-button:first-child {
  133. margin-left: 0;
  134. }
  135. .uni-button:hover,
  136. .uni-button:focus {
  137. opacity: 0.9;
  138. }
  139. .uni-button:active {
  140. opacity: 1;
  141. }
  142. .uni-button-full {
  143. width: 100%;
  144. }
  145. /* 搜索框样式 */
  146. .uni-search {
  147. width: 268px;
  148. height: 28px;
  149. line-height: 28px;
  150. font-size: 12px;
  151. color: #606266;
  152. padding: 0 10px;
  153. border: 1px #dcdfe6 solid;
  154. /* margin-right: 10px; */
  155. border-radius: 3px;
  156. }
  157. /* 分页容器 */
  158. .uni-pagination-box {
  159. margin-top: 20px;
  160. }
  161. .uni-input-border,
  162. .uni-textarea-border {
  163. width: 100%;
  164. font-size: 14px;
  165. color: #666;
  166. border: 1px #e5e5e5 solid;
  167. border-radius: 5px;
  168. box-sizing: border-box;
  169. }
  170. .uni-input-border {
  171. padding: 0 10px;
  172. height: 35px;
  173. }
  174. .uni-textarea-border {
  175. padding: 10px;
  176. height: 80px;
  177. }
  178. .uni-disabled {
  179. background-color: #f5f7fa;
  180. color: #c0c4cc;
  181. }
  182. .uni-icon-password-eye {
  183. position: absolute;
  184. right: 8px;
  185. top: 6px;
  186. font-family: uniicons;
  187. font-size: 20px;
  188. font-weight: normal;
  189. font-style: normal;
  190. width: 24px;
  191. height: 24px;
  192. line-height: 24px;
  193. color: #999999;
  194. }
  195. .uni-eye-active {
  196. color: #007aff;
  197. }
  198. .uni-tabs__header {
  199. position: relative;
  200. background-color: #f5f7fa;
  201. border-bottom: 1px solid #e4e7ed;
  202. }
  203. .uni-tabs__nav-wrap {
  204. overflow: hidden;
  205. margin-bottom: -1px;
  206. position: relative;
  207. }
  208. .uni-tabs__nav-scroll {
  209. overflow: hidden;
  210. }
  211. .uni-tabs__nav {
  212. position: relative;
  213. white-space: nowrap;
  214. }
  215. .uni-tabs__item {
  216. position: relative;
  217. padding: 0 20px;
  218. height: 40px;
  219. box-sizing: border-box;
  220. line-height: 40px;
  221. display: inline-block;
  222. list-style: none;
  223. font-size: 14px;
  224. font-weight: 500;
  225. color: #909399;
  226. margin-top: -1px;
  227. margin-left: -1px;
  228. border: 1px solid transparent;
  229. cursor: pointer;
  230. }
  231. .uni-tabs__item.is-active {
  232. color: $uni-color-primary;
  233. background-color: #fff;
  234. border-right-color: #dcdfe6;
  235. border-left-color: #dcdfe6;
  236. }
  237. .uni-form-item-tips {
  238. color: #999;
  239. font-size: 12px;
  240. margin-top: 10px;
  241. /* position: absolute; */
  242. /* top: 40px; */
  243. }
  244. .uni-form-item-empty {
  245. color: #999;
  246. min-height: 36px;
  247. line-height: 36px;
  248. }
  249. ::v-deep .uni-forms-item__label .label-text {
  250. color: #606266 !important;
  251. }
  252. ::v-deep .flex-center-x .uni-forms-item__content {
  253. display: flex;
  254. align-items: center;
  255. flex-wrap: wrap;
  256. }
  257. .link-btn {
  258. line-height: 26px;
  259. margin-top: 5px;
  260. color: #007aff !important;
  261. text-decoration: underline;
  262. cursor: pointer;
  263. }
  264. /* button 重置样式 */
  265. ::v-deep button[size="mini"] {
  266. line-height: 2.4;
  267. font-size: 12px;
  268. border-radius: 3px;
  269. }
  270. button {
  271. background: #fff;
  272. border: 1px solid #dcdfe6;
  273. color: #606266;
  274. box-sizing: border-box;
  275. }
  276. button[type="primary"] {
  277. background-color: #409eff;
  278. border-color: #409eff;
  279. border-width: 0;
  280. }
  281. button[type="warn"] {
  282. background-color: #f56c6c;
  283. border-color: #f56c6c;
  284. border-width: 0;
  285. }
  286. button[type="default"] {
  287. background: #fff;
  288. border: 1px solid #dcdfe6;
  289. color: #606266;
  290. box-sizing: border-box;
  291. }
  292. button[type="primary"][plain] {
  293. border-color: #409eff;
  294. color: #409eff;
  295. }
  296. button[type="warn"][plain] {
  297. border-color: #f56c6c;
  298. color: #f56c6c;
  299. }
  300. button[type="default"][plain] {
  301. border-color: #dcdfe6;
  302. color: #606266;
  303. }
  304. button[plain] {
  305. border-color: #dcdfe6;
  306. color: #606266;
  307. }
  308. button:after {
  309. border-width: 0;
  310. }
  311. .uni-input-placeholder {
  312. color: #999;
  313. }
  314. .uni-pagination-box {
  315. display: flex;
  316. align-items: center;
  317. justify-content: center;
  318. }
  319. .select-picker {
  320. margin-right: 20px;
  321. }
  322. .select-picker button {
  323. margin-top: 5px;
  324. line-height: 29px;
  325. font-size: 14px;
  326. }
  327. .select-picker button text {
  328. color: #999;
  329. }
  330. .select-picker-icon {
  331. margin-left: 8px;
  332. }
  333. /* stat style start */
  334. .m-m {
  335. margin: 15px !important;
  336. }
  337. .mb-s {
  338. margin-bottom: 5px;
  339. }
  340. .mb-m {
  341. margin-bottom: 15px !important;
  342. }
  343. .mb-l {
  344. margin-bottom: 30px !important;
  345. }
  346. .ml-s {
  347. margin-left: 5px;
  348. }
  349. .ml-m {
  350. margin-left: 15px !important;
  351. }
  352. .ml-l {
  353. margin-left: 30px !important;
  354. }
  355. .p-m {
  356. padding: 15px;
  357. }
  358. .uni-charts-box {
  359. width: 100%;
  360. height: 350px;
  361. }
  362. .uni-stat--x {
  363. border-radius: 4px;
  364. box-shadow: -1px -1px 5px 0 rgba(0, 0, 0, 0.1);
  365. margin-bottom: 15px;
  366. }
  367. .uni-stat__actived {
  368. /* outline: 1px solid #2979ff; */
  369. }
  370. .flex {
  371. display: flex;
  372. flex-wrap: wrap;
  373. align-items: center;
  374. }
  375. .label-text {
  376. font-size: 14px;
  377. font-weight: bold;
  378. color: #555;
  379. margin: auto 0;
  380. margin-right: 5px;
  381. }
  382. .uni-stat-edit--x {
  383. display: flex;
  384. justify-content: space-between;
  385. }
  386. .uni-stat-edit--btn {
  387. cursor: pointer;
  388. }
  389. .uni-stat-datetime-picker {
  390. margin: 15px;
  391. }
  392. /* uni-popup modal start */
  393. .modal {
  394. /* width: 100%; */
  395. max-width: calc(100vw - 200px);
  396. min-width: 600px;
  397. margin: 0 auto;
  398. background-color: #ffffff;
  399. }
  400. .modal-header {
  401. padding: 20px 0;
  402. text-align: center;
  403. border-bottom: 1px solid #eee;
  404. }
  405. .modal-footer {
  406. padding: 20px;
  407. display: flex;
  408. justify-content: flex-end;
  409. align-items: center;
  410. /* border-top: 1px solid #eee; */
  411. }
  412. .modal-content {
  413. padding: 15px;
  414. height: 600px;
  415. box-sizing: border-box;
  416. }
  417. /* uni-popup modal end */
  418. .uni-stat-tooltip-s {
  419. width: 160px;
  420. white-space: normal;
  421. }
  422. /* #ifndef APP-NVUE */
  423. @media screen and (max-width: 500px) {
  424. .hide-on-phone {
  425. display: none !important;
  426. }
  427. .uni-charts-box {
  428. width: 100%;
  429. height: 220px;
  430. }
  431. .uni-group .uni-search {
  432. height: 32px;
  433. line-height: 32px;
  434. width: 100%;
  435. margin: 20px 20px 10px 20px;
  436. }
  437. .uni-header {
  438. padding-left: 0px;
  439. padding-right: 0px;
  440. border: unset;
  441. }
  442. .uni-group {
  443. width: 100%;
  444. }
  445. .uni-stat-breadcrumb-on-phone {
  446. padding: 0 20px !important;
  447. border-bottom: 1px #f5f5f5 solid;
  448. }
  449. .flex {
  450. width: 100%;
  451. display: flex;
  452. flex-wrap: wrap;
  453. align-items: center;
  454. }
  455. }
  456. @media screen and (min-width: 500px) {
  457. .dispaly-grid {
  458. display: grid;
  459. /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
  460. grid-template-columns: 1fr 1fr;
  461. /* grid-template-rows: 1fr 1fr; */
  462. column-gap: 15px;
  463. }
  464. .pc-flex-wrap {
  465. display: flex;
  466. flex-wrap: wrap;
  467. align-items: center;
  468. }
  469. .uni-stat-datetime-picker {
  470. max-width: 350px;
  471. }
  472. ::v-deep .uni-pagination-picker-show .uni-picker-container .uni-picker-custom {
  473. width: 100px;
  474. margin: 0 86px;
  475. }
  476. ::v-deep .uni-pagination-picker-show .uni-picker-container .uni-picker-custom .uni-picker-select + div {
  477. left: 50% !important;
  478. }
  479. }
  480. /* #endif */
  481. /* #ifdef H5 */
  482. /* fix 弹出层被遮盖 */
  483. ::v-deep .uni-table-scroll {
  484. min-height: calc(100vh - 237px);
  485. box-sizing: border-box;
  486. }
  487. ::v-deep .uni-table .tr-table--border {
  488. border-left: 1px #ebeef5 solid;
  489. }
  490. /* #endif */
  491. /* #ifdef H5 */
  492. /* fix 弹出层被遮盖 */
  493. ::v-deep .uni-table-scroll {
  494. min-height: calc(100vh - 237px);
  495. box-sizing: border-box;
  496. }
  497. ::v-deep .uni-table .tr-table--border {
  498. border-left: 1px #ebeef5 solid;
  499. }
  500. /* #endif */
  501. /* #ifndef H5 */
  502. .fix-top-window {
  503. margin-top: 85px;
  504. }
  505. /* #endif */