base.scss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. /* reset */
  2. body,
  3. div,
  4. ul,
  5. ol,
  6. li,
  7. h1,
  8. h2,
  9. h3,
  10. h4,
  11. h5,
  12. h6,
  13. input,
  14. p,
  15. tr,
  16. th,
  17. td,
  18. span,
  19. a,
  20. header,
  21. footer,
  22. i {
  23. margin: 0;
  24. padding: 0;
  25. box-sizing: border-box;
  26. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  27. }
  28. li {
  29. list-style: none;
  30. }
  31. em,
  32. i,
  33. u {
  34. font-style: normal;
  35. }
  36. input {
  37. outline: none;
  38. border: none;
  39. background: rgba(245, 245, 245, 1);
  40. font-family: $--font-family;
  41. }
  42. input::-webkit-input-placeholder,
  43. input::-moz-placeholder,
  44. input:-ms-input-placeholder,
  45. input:-moz-placeholder {
  46. font-size: 12px;
  47. font-weight: bold;
  48. color: $--color-text-gray-4;
  49. }
  50. button,
  51. textarea {
  52. font-family: $--font-family;
  53. }
  54. h1,
  55. h2,
  56. h3,
  57. h4,
  58. h5,
  59. h6 {
  60. font-size: 100%;
  61. }
  62. fieldset,
  63. img {
  64. border: 0;
  65. }
  66. abbr {
  67. border: 0;
  68. font-variant: normal;
  69. }
  70. a {
  71. text-decoration: none;
  72. color: inherit;
  73. *color: $--color-text-gray-3;
  74. }
  75. img {
  76. vertical-align: middle;
  77. }
  78. /* common-style */
  79. input:-webkit-autofill {
  80. box-shadow: 0 0 0 1000px white inset;
  81. }
  82. input[type="text"]:focus,
  83. input[type="password"]:focus,
  84. input[type="number"]:focus,
  85. textarea:focus {
  86. box-shadow: 0 0 0 1000px white inset;
  87. }
  88. /* browse style */
  89. ::-webkit-scrollbar {
  90. width: 8px;
  91. height: 8px;
  92. background: transparent;
  93. }
  94. ::-webkit-scrollbar-button {
  95. display: none;
  96. }
  97. ::-webkit-scrollbar-track {
  98. background: transparent;
  99. }
  100. ::-webkit-scrollbar-thumb {
  101. border-radius: 8px;
  102. background: #666;
  103. }
  104. ::-webkit-scrollbar-corner {
  105. background: transparent;
  106. }
  107. ::-webkit-scrollbar-resizer {
  108. background: transparent;
  109. }
  110. body {
  111. font-family: $--font-family;
  112. -webkit-font-smoothing: antialiased;
  113. -moz-osx-font-smoothing: grayscale;
  114. font-size: $--font-size-base;
  115. color: $--color-text-dark-1;
  116. }
  117. /* part */
  118. .part-box {
  119. margin-bottom: 20px;
  120. background-color: #fff;
  121. border-radius: $--border-radius;
  122. &-border {
  123. border: 1px solid $--color-border;
  124. }
  125. &-pad {
  126. padding: 20px;
  127. }
  128. &-filter {
  129. padding: 20px 20px 5px 20px;
  130. .el-form-item {
  131. margin-bottom: 15px;
  132. }
  133. .el-form-item__label {
  134. display: none;
  135. }
  136. }
  137. &-flex {
  138. display: flex;
  139. align-items: stretch;
  140. justify-content: space-between;
  141. }
  142. &-action {
  143. padding-bottom: 15px;
  144. white-space: nowrap;
  145. display: flex;
  146. align-items: flex-end;
  147. }
  148. &-tips {
  149. font-size: 16px;
  150. line-height: 25px;
  151. color: $--color-text-gray-2;
  152. margin-bottom: 15px;
  153. }
  154. &-head {
  155. display: flex;
  156. align-items: stretch;
  157. justify-content: space-between;
  158. min-height: 30px;
  159. margin: -10px 0 10px -10px;
  160. color: $--color-text-dark;
  161. > h3 {
  162. font-size: 17px;
  163. }
  164. .el-icon-question {
  165. margin-left: 10px;
  166. font-size: 16px;
  167. color: $--color-text-gray-5;
  168. cursor: pointer;
  169. &:hover {
  170. color: #fe8652;
  171. }
  172. }
  173. }
  174. }
  175. .part-title {
  176. font-size: 16px;
  177. font-weight: bold;
  178. padding: 15px 20px;
  179. line-height: 30px;
  180. overflow: hidden;
  181. h2 {
  182. float: left;
  183. }
  184. &-infos {
  185. float: right;
  186. }
  187. }
  188. .part-body {
  189. padding: 25px;
  190. }
  191. .part-page {
  192. margin-top: 15px;
  193. text-align: right;
  194. }
  195. .part-none {
  196. padding: 100px;
  197. font-size: 20px;
  198. color: $--color-text-gray-3;
  199. text-align: center;
  200. }
  201. // box-justify
  202. .box-justify {
  203. display: flex;
  204. align-items: center;
  205. justify-content: space-between;
  206. }
  207. // page-head
  208. .page-head {
  209. margin-bottom: 20px;
  210. color: $--color-text-dark;
  211. &-flex {
  212. display: flex;
  213. align-items: stretch;
  214. justify-content: space-between;
  215. }
  216. > h2 {
  217. font-size: 20px;
  218. }
  219. .el-icon-question {
  220. margin-left: 10px;
  221. font-size: 16px;
  222. color: $--color-text-gray-5;
  223. cursor: pointer;
  224. &:hover {
  225. color: #fe8652;
  226. }
  227. }
  228. }
  229. /* table */
  230. .table {
  231. width: 100%;
  232. border-spacing: 0;
  233. border-collapse: collapse;
  234. text-align: left;
  235. th {
  236. padding: 14px;
  237. line-height: 1.2;
  238. letter-spacing: 1px;
  239. color: $--color-text-gray-2;
  240. border: 1px solid $--color-border;
  241. }
  242. td {
  243. padding: 14px;
  244. line-height: 1.2;
  245. color: $--color-text-dark;
  246. border: 1px solid $--color-border;
  247. &.td-link {
  248. span {
  249. cursor: pointer;
  250. &:hover {
  251. color: $--color-text-gray;
  252. }
  253. }
  254. }
  255. }
  256. .td-th {
  257. font-weight: 600;
  258. color: $--color-text-gray;
  259. }
  260. }
  261. /* list */
  262. .list-lr-right {
  263. float: right;
  264. width: 300px;
  265. }
  266. .list-lr-left {
  267. margin-right: 320px;
  268. }
  269. .vlcode {
  270. height: 36px;
  271. }
  272. .vlcode-left {
  273. margin-right: 135px;
  274. }
  275. .vlcode-right {
  276. float: right;
  277. width: 120px;
  278. }
  279. // color
  280. .color-primary {
  281. color: $--color-primary !important;
  282. }
  283. .color-success {
  284. color: $--color-success;
  285. }
  286. .color-warning {
  287. color: $--color-warning;
  288. }
  289. .color-danger {
  290. color: $--color-danger;
  291. }
  292. .color-info {
  293. color: $--color-text-gray-1;
  294. }
  295. .color-dark {
  296. color: $--color-dark;
  297. }
  298. .color-gray {
  299. color: $--color-text-gray;
  300. }
  301. .color-white {
  302. color: #fff;
  303. }
  304. // text
  305. .text-center {
  306. text-align: center;
  307. }
  308. .text-left {
  309. text-align: left;
  310. }
  311. .text-right {
  312. text-align: right;
  313. }
  314. // other
  315. .btn-danger {
  316. &.el-button--text {
  317. color: $--color-danger !important;
  318. &:hover {
  319. font-weight: 600;
  320. color: mix(#000, $--color-danger, 20%) !important;
  321. }
  322. }
  323. }
  324. .btn-primary {
  325. &.el-button--text {
  326. color: $--color-text-dark-1 !important;
  327. &:hover {
  328. font-weight: 600;
  329. color: $--color-primary !important;
  330. }
  331. }
  332. }
  333. .btn-white {
  334. background-color: #fff !important;
  335. color: #999 !important;
  336. }
  337. .font-bold {
  338. font-weight: bold;
  339. }
  340. .table-head-bg {
  341. th {
  342. background-color: #f6f6f6;
  343. color: $--color-text-gray;
  344. }
  345. }
  346. .btn-act {
  347. background: rgba(28, 208, 161, 1) !important;
  348. box-shadow: 5px 5px 4px 0px rgba(28, 208, 161, 0.3);
  349. border-radius: 10px;
  350. }
  351. .cont-link {
  352. color: $--color-primary;
  353. cursor: pointer;
  354. &:hover {
  355. color: $--color-success;
  356. }
  357. }
  358. .ml-1 {
  359. margin-left: 5px;
  360. }
  361. .ml-2 {
  362. margin-left: 10px;
  363. }
  364. .mr-1 {
  365. margin-right: 5px;
  366. }
  367. .mr-2 {
  368. margin-right: 10px;
  369. }
  370. .mr-4 {
  371. margin-right: 20px;
  372. }
  373. .mb-0 {
  374. margin-bottom: 0;
  375. }
  376. .mb-2 {
  377. margin-bottom: 10px;
  378. }
  379. .mb-4 {
  380. margin-bottom: 20px;
  381. }
  382. // other
  383. .tips-info {
  384. font-size: 12px;
  385. line-height: 25px;
  386. color: $--color-text-gray-3;
  387. }
  388. .tips-dark {
  389. color: $--color-text-gray;
  390. }
  391. .tips-error {
  392. color: $--color-danger;
  393. }
  394. .tips-icon {
  395. display: inline-block;
  396. vertical-align: middle;
  397. color: $--color-text-gray-3;
  398. font-size: 18px;
  399. margin: 0 10px;
  400. cursor: pointer;
  401. }
  402. .form-item-content {
  403. color: $--color-text-gray-2;
  404. }
  405. .inline-block {
  406. display: inline-block;
  407. vertical-align: top;
  408. }
  409. .custom-tree-node {
  410. flex: 1;
  411. display: flex;
  412. align-items: center;
  413. justify-content: space-between;
  414. font-size: 12px;
  415. padding-right: 8px;
  416. }