base.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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. &-gray {
  138. background-color: $--color-text-gray-7;
  139. }
  140. &-flex {
  141. display: flex;
  142. align-items: stretch;
  143. justify-content: space-between;
  144. }
  145. &-action {
  146. padding-bottom: 15px;
  147. white-space: nowrap;
  148. display: flex;
  149. align-items: flex-end;
  150. }
  151. &-tips {
  152. font-size: 16px;
  153. line-height: 25px;
  154. color: $--color-text-dark-1;
  155. margin-bottom: 15px;
  156. }
  157. &-head {
  158. display: flex;
  159. align-items: stretch;
  160. justify-content: space-between;
  161. min-height: 30px;
  162. margin: -10px 0 10px -10px;
  163. color: $--color-text-dark;
  164. > h3 {
  165. font-size: 17px;
  166. }
  167. .el-icon-question {
  168. margin-left: 10px;
  169. font-size: 16px;
  170. color: $--color-text-gray-5;
  171. cursor: pointer;
  172. &:hover {
  173. color: #fe8652;
  174. }
  175. }
  176. }
  177. }
  178. .part-title {
  179. font-size: 16px;
  180. font-weight: bold;
  181. padding: 15px 20px;
  182. line-height: 30px;
  183. overflow: hidden;
  184. h2 {
  185. float: left;
  186. }
  187. &-infos {
  188. float: right;
  189. }
  190. }
  191. .part-body {
  192. padding: 25px;
  193. }
  194. .part-page {
  195. margin-top: 15px;
  196. text-align: right;
  197. }
  198. .part-none {
  199. padding: 100px;
  200. font-size: 20px;
  201. color: $--color-text-gray-3;
  202. text-align: center;
  203. }
  204. // box-justify
  205. .box-justify {
  206. display: flex;
  207. align-items: center;
  208. justify-content: space-between;
  209. }
  210. // page-head
  211. .page-head {
  212. margin-bottom: 20px;
  213. color: $--color-text-dark;
  214. &-flex {
  215. display: flex;
  216. align-items: stretch;
  217. justify-content: space-between;
  218. }
  219. > h2 {
  220. font-size: 20px;
  221. }
  222. .el-icon-question {
  223. margin-left: 10px;
  224. font-size: 16px;
  225. color: $--color-text-gray-5;
  226. cursor: pointer;
  227. &:hover {
  228. color: #fe8652;
  229. }
  230. }
  231. }
  232. /* table */
  233. .table {
  234. width: 100%;
  235. border-spacing: 0;
  236. border-collapse: collapse;
  237. text-align: left;
  238. &.table-white {
  239. background-color: #fff;
  240. }
  241. th {
  242. padding: 12px;
  243. line-height: 1.2;
  244. letter-spacing: 1px;
  245. color: $--color-text-gray-2;
  246. border: 1px solid $--color-border;
  247. }
  248. td {
  249. padding: 14px;
  250. line-height: 1.2;
  251. color: $--color-text-dark;
  252. border: 1px solid $--color-border;
  253. &.td-link {
  254. span {
  255. cursor: pointer;
  256. &:hover {
  257. color: $--color-text-gray;
  258. }
  259. }
  260. }
  261. }
  262. .td-th {
  263. font-weight: 600;
  264. color: $--color-text-gray;
  265. }
  266. &--border {
  267. border: 1px solid $--color-border;
  268. border-radius: 10px;
  269. th {
  270. background-color: #fcfcfd;
  271. border: none;
  272. border-bottom: 1px solid $--color-border;
  273. }
  274. td {
  275. border: none;
  276. border-bottom: 1px solid $--color-border;
  277. }
  278. }
  279. }
  280. /* list */
  281. .list-lr-right {
  282. float: right;
  283. width: 300px;
  284. }
  285. .list-lr-left {
  286. margin-right: 320px;
  287. }
  288. .vlcode {
  289. height: 36px;
  290. }
  291. .vlcode-left {
  292. margin-right: 135px;
  293. }
  294. .vlcode-right {
  295. float: right;
  296. width: 120px;
  297. }
  298. // color
  299. .color-primary {
  300. color: $--color-primary !important;
  301. }
  302. .color-success {
  303. color: $--color-success;
  304. }
  305. .color-warning {
  306. color: $--color-warning;
  307. }
  308. .color-danger {
  309. color: $--color-danger;
  310. }
  311. .color-info {
  312. color: $--color-text-gray-1;
  313. }
  314. .color-dark {
  315. color: $--color-dark;
  316. }
  317. .color-gray {
  318. color: $--color-text-gray;
  319. }
  320. .color-gray-2 {
  321. color: $--color-text-gray-2;
  322. }
  323. .color-white {
  324. color: #fff;
  325. }
  326. // text
  327. .text-center {
  328. text-align: center;
  329. }
  330. .text-left {
  331. text-align: left;
  332. }
  333. .text-right {
  334. text-align: right;
  335. }
  336. // other
  337. .btn-danger {
  338. &.el-button--text {
  339. color: $--color-danger !important;
  340. &:hover {
  341. font-weight: 600;
  342. color: mix(#000, $--color-danger, 20%) !important;
  343. }
  344. }
  345. }
  346. .btn-primary {
  347. &.el-button--text {
  348. color: $--color-text-dark-1 !important;
  349. &:hover {
  350. font-weight: 600;
  351. color: $--color-primary !important;
  352. }
  353. }
  354. }
  355. .btn-white {
  356. background-color: #fff !important;
  357. color: #999 !important;
  358. }
  359. .font-bold {
  360. font-weight: bold;
  361. }
  362. .table-head-bg {
  363. th {
  364. background-color: #f6f6f6;
  365. color: $--color-text-gray;
  366. }
  367. }
  368. .tab-btns {
  369. .el-button {
  370. border-bottom-right-radius: 0;
  371. border-bottom-left-radius: 0;
  372. &:first-child {
  373. border-bottom-left-radius: 8px;
  374. }
  375. &:last-child {
  376. border-bottom-right-radius: 8px;
  377. }
  378. }
  379. .el-button + .el-button {
  380. margin-left: 10px;
  381. }
  382. }
  383. .cont-link {
  384. color: $--color-primary;
  385. cursor: pointer;
  386. &:hover {
  387. color: $--color-success;
  388. }
  389. }
  390. .ml-1 {
  391. margin-left: 5px;
  392. }
  393. .ml-2 {
  394. margin-left: 10px;
  395. }
  396. .mr-1 {
  397. margin-right: 5px;
  398. }
  399. .mr-2 {
  400. margin-right: 10px;
  401. }
  402. .mr-4 {
  403. margin-right: 20px;
  404. }
  405. .mb-0 {
  406. margin-bottom: 0;
  407. }
  408. .mb-2 {
  409. margin-bottom: 10px;
  410. }
  411. .mb-4 {
  412. margin-bottom: 20px;
  413. }
  414. // other
  415. .tips-info {
  416. font-size: 12px;
  417. line-height: 20px;
  418. color: $--color-text-gray-2;
  419. }
  420. .tips-dark {
  421. color: $--color-text-gray;
  422. }
  423. .tips-error {
  424. color: $--color-danger;
  425. }
  426. .tips-icon {
  427. display: inline-block;
  428. vertical-align: middle;
  429. color: $--color-text-gray-3;
  430. font-size: 18px;
  431. margin: 0 10px;
  432. cursor: pointer;
  433. }
  434. .form-item-content {
  435. color: $--color-text-gray-2;
  436. }
  437. .inline-block {
  438. display: inline-block;
  439. vertical-align: top;
  440. }
  441. .custom-tree-node {
  442. flex: 1;
  443. display: flex;
  444. align-items: center;
  445. justify-content: space-between;
  446. font-size: 12px;
  447. padding-right: 8px;
  448. }