global.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. $bg_color : #3C64DC;
  2. html,
  3. body {
  4. height: 100%;
  5. }
  6. h1,
  7. h2,
  8. h3,
  9. h4,
  10. h5,
  11. h6,
  12. p,
  13. body,
  14. html,
  15. ul,
  16. ol,
  17. li {
  18. margin: 0;
  19. padding: 0;
  20. }
  21. ul,
  22. ol,
  23. li {
  24. outline: none;
  25. list-style: none;
  26. }
  27. .overflow {
  28. overflow: hidden;
  29. white-space: nowrap;
  30. text-overflow: ellipsis;
  31. }
  32. // 前台公共样式
  33. a {
  34. color: #333333;
  35. text-decoration: none;
  36. }
  37. .center {
  38. width: 1200px;
  39. margin: 0 auto;
  40. height: 100%;
  41. }
  42. .overflow {
  43. overflow: hidden;
  44. white-space: nowrap;
  45. text-overflow: ellipsis;
  46. }
  47. .flex {
  48. display: flex;
  49. justify-content: center;
  50. align-items: center;
  51. }
  52. /*定义滚动条的样式*/
  53. ::-webkit-scrollbar {
  54. width: 10px;
  55. height: 10px;
  56. }
  57. /*定义滚动条滑块的样式*/
  58. ::-webkit-scrollbar-thumb {
  59. background: #ccc;
  60. border-radius: 10px;
  61. }
  62. /*定义滚动条轨道的背景颜色*/
  63. ::-webkit-scrollbar-track {
  64. background: #f1f1f1;
  65. }
  66. // 表格样式
  67. .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  68. background: #F9FAFE;
  69. }
  70. .el-table {
  71. th.el-table__cell.is-leaf,
  72. td.el-table__cell {
  73. border-bottom: none;
  74. }
  75. th.gutter {
  76. display: table-cell !important;
  77. }
  78. .el-table__fixed-right {
  79. height: 100% !important;
  80. }
  81. .el-table__fixed {
  82. height: 100% !important;
  83. }
  84. .el-table__header-wrapper,
  85. .el-table__fixed-header-wrapper {
  86. th {
  87. word-break: break-word;
  88. background-color: #ECEFF6;
  89. ;
  90. color: #515a6e;
  91. height: 45px;
  92. }
  93. }
  94. // 滚动条的宽度
  95. .el-table__body-wrapper::-webkit-scrollbar {
  96. width: 10px; // 横向滚动条
  97. height: 10px; // 纵向滚动条 必写
  98. }
  99. // 滚动条的滑块
  100. .el-table__body-wrapper::-webkit-scrollbar-thumb {
  101. background-color: #DDDEE0; //颜色
  102. border-radius: 5px; //圆角
  103. }
  104. .el-table__body-wrapper {
  105. position: relative;
  106. .el-table__empty-text {
  107. display: inline-block;
  108. line-height: 25px;
  109. position: absolute;
  110. left: 50%;
  111. top: 30px;
  112. transform: translateX(-50%);
  113. color: #999;
  114. overflow: hidden;
  115. }
  116. }
  117. .el-table-column--selection .cell {
  118. padding-left: 10px;
  119. }
  120. .el-table__empty-block {
  121. min-height: 150px;
  122. }
  123. }
  124. // 集团公告发布页面tip
  125. .notice-testtooltip {
  126. padding: 2px 8px;
  127. color: #666;
  128. }
  129. // 面包屑导航
  130. .app-breadcrumb.el-breadcrumb {
  131. line-height: 40px;
  132. margin-left: 20px;
  133. color: #616161;
  134. .no-redirect {
  135. color: $bg_color;
  136. cursor: text;
  137. }
  138. .el-breadcrumb__separator {
  139. color: #898989;
  140. }
  141. }
  142. // 对话框顶部样式
  143. .el-dialog__header {
  144. border-bottom: 1px solid #ddd;
  145. .el-dialog__title {
  146. font-size: 16px;
  147. font-weight: 700;
  148. &::before {
  149. content: '';
  150. width: 4px;
  151. height: 16px;
  152. margin-right: 4px;
  153. display: inline-block;
  154. vertical-align: middle;
  155. background-color: $bg_color;
  156. margin-top: -3px;
  157. }
  158. }
  159. }
  160. // 富文本编辑器样式
  161. .editor-css {
  162. ul {
  163. li {
  164. list-style: disc;
  165. }
  166. }
  167. ol {
  168. li {
  169. list-style: decimal;
  170. }
  171. }
  172. }
  173. // 公共div外部样式
  174. .common-box {
  175. padding: 20px;
  176. background-color: #fff;
  177. border-radius: 6px;
  178. }
  179. // 卡片,标题样式
  180. .common-card {
  181. position: relative;
  182. background: #fff;
  183. padding: 15px;
  184. border-radius: 6px;
  185. margin-bottom: 20px;
  186. h3 {
  187. padding-left: 5px;
  188. margin-bottom: 15px;
  189. color: #101010;
  190. font-size: 16px;
  191. font-weight: 800;
  192. border-left: 5px solid $bg_color;
  193. }
  194. .right-type {
  195. position: absolute;
  196. right: 15px;
  197. top: 10px;
  198. }
  199. }
  200. // 顶部搜索区域-有操作按钮则靠右,上边加横线
  201. .right-button {
  202. text-align: right;
  203. padding: 10px 0;
  204. border-top: 1px solid rgb(235, 238, 245);
  205. }
  206. // 对话框底部按钮居中
  207. .el-dialog__footer {
  208. text-align: center;
  209. .el-button {
  210. min-width: 80px;
  211. margin-right: 10px;
  212. letter-spacing: 0.3em;
  213. }
  214. }
  215. // 页面底部按钮统一样式居中
  216. .foot-button {
  217. width: 100%;
  218. text-align: center;
  219. margin: 20px 0;
  220. .el-button {
  221. min-width: 100px;
  222. margin: 0 25px;
  223. letter-spacing: 0.3em;
  224. }
  225. }
  226. // 底部价格展示样式
  227. .price-css {
  228. color: #333;
  229. margin-top: 20px;
  230. font-size: 14px;
  231. span {
  232. display: inline-block;
  233. width: 100px;
  234. }
  235. }
  236. // 表格式的form样式
  237. .grid-form-class {
  238. .form-body {
  239. border-top: 1px solid #cecece;
  240. &:not(.form-flow) .is-error.el-form-item .el-form-item__content {
  241. border: 1px solid #f56c6c !important;
  242. border-left: 1px solid #cecece;
  243. }
  244. .flex-css {
  245. display: flex;
  246. border-bottom: 1px solid #cecece;
  247. border-right: 1px solid #cecece;
  248. }
  249. .el-form-item {
  250. box-sizing: border-box;
  251. margin: 0;
  252. position: relative;
  253. flex: 1;
  254. }
  255. .el-form-item__label {
  256. display: flex;
  257. align-items: center;
  258. justify-content: flex-end;
  259. padding: 8px;
  260. box-sizing: border-box;
  261. background-color: #f5f7fa;
  262. border-left: 1px solid #cecece;
  263. text-align: right;
  264. font-size: 13px;
  265. color: #606266;
  266. font-weight: 400;
  267. height: 100%;
  268. }
  269. .el-form-item__content {
  270. position: relative;
  271. box-sizing: border-box;
  272. height: 100%;
  273. border-left: 1px solid #cecece;
  274. display: flex;
  275. align-items: center;
  276. flex-wrap: wrap;
  277. // 展示内容
  278. .content {
  279. line-height: 22px;
  280. color: #303133;
  281. padding: 10px;
  282. font-size: 13px;
  283. }
  284. }
  285. .el-form-item__error {
  286. position: absolute;
  287. bottom: 0;
  288. left: auto;
  289. top: auto;
  290. right: 15px;
  291. }
  292. .el-select {
  293. width: 100%;
  294. height: 100%;
  295. }
  296. .el-checkbox {
  297. margin-left: 10px;
  298. padding-top: 4px;
  299. }
  300. .el-radio {
  301. margin-left: 10px;
  302. }
  303. .el-date-editor.el-input {
  304. width: 100%;
  305. }
  306. .el-input {
  307. height: 100%;
  308. }
  309. .el-input__inner {
  310. box-sizing: border-box;
  311. height: 100%;
  312. border-radius: 0px;
  313. color: #303133;
  314. background-color: #fff;
  315. border: none;
  316. }
  317. .el-textarea__inner {
  318. border: none;
  319. margin: 8px 0;
  320. }
  321. }
  322. }
  323. // tab栏竖型分布样式
  324. .vertical-tab {
  325. .el-tabs--left .el-tabs__header.is-left {
  326. width: 100%;
  327. }
  328. .el-tabs--left .el-tabs__item.is-left {
  329. text-align: left;
  330. }
  331. .el-tabs__item.is-active {
  332. background: #ecf5ff;
  333. }
  334. .el-tabs__item:hover {
  335. background: #ecf5ff;
  336. }
  337. // 竖线靠左
  338. .el-tabs--left .el-tabs__nav-wrap.is-left::after {
  339. right: auto;
  340. left: 0;
  341. }
  342. .el-tabs--left .el-tabs__active-bar.is-left {
  343. right: auto;
  344. left: 0;
  345. }
  346. }
  347. // 左右结果布局,左边18%,右边82%
  348. .left-list-box {
  349. width: 18%;
  350. margin-right: 20px;
  351. border-radius: 6px;
  352. background-color: #fff;
  353. height: 100%;
  354. overflow-y: auto;
  355. }
  356. // 左右结果布局,左边18%,右边82%
  357. .right-common-box {
  358. width: 82%;
  359. padding: 20px;
  360. background-color: #fff;
  361. border-radius: 6px;
  362. overflow-y: auto;
  363. }
  364. // 药品信息三行显示公共样式
  365. .drug-name {
  366. white-space: nowrap;
  367. }
  368. // 按钮湖蓝色----------新增按钮
  369. .lake-Blue {
  370. background: #52C8CC;
  371. border: #52C8CC;
  372. &:hover {
  373. background: #52C8CC;
  374. border: #52C8CC;
  375. opacity: 0.8;
  376. }
  377. &:focus {
  378. background: #52C8CC;
  379. border: #52C8CC;
  380. }
  381. &.is-disabled {
  382. background: #52C8CC;
  383. border: #52C8CC;
  384. opacity: 0.8;
  385. &:hover {
  386. background: #52C8CC;
  387. border: #52C8CC;
  388. opacity: 0.8;
  389. }
  390. }
  391. }
  392. // 表格内按钮颜色---------------开始-------------------------------------------
  393. // 不加类名,默认蓝色(详情,查看,启用等)
  394. // 绿色(新增,保存等)
  395. .green {
  396. color: #67c23a;
  397. &:hover {
  398. color: #67c23a;
  399. }
  400. &:focus {
  401. color: #67c23a;
  402. }
  403. }
  404. // 青色(编辑等)
  405. .cyan {
  406. color: #52c8cc;
  407. &:hover {
  408. color: #52c8cc;
  409. opacity: 0.8;
  410. }
  411. &:focus {
  412. color: #52c8cc;
  413. }
  414. }
  415. // 红色(删除等)
  416. .red {
  417. color: #f56c6c;
  418. &:hover {
  419. color: #f56c6c;
  420. opacity: 0.8;
  421. }
  422. &:focus {
  423. color: #f56c6c;
  424. }
  425. }
  426. // 橘黄色(设置,申请退货等)
  427. .orange {
  428. color: #e6a23c;
  429. &:hover {
  430. color: #e6a23c;
  431. opacity: 0.8;
  432. }
  433. &:focus {
  434. color: #e6a23c;
  435. }
  436. }
  437. // 灰色(禁用,停用等)
  438. .grey {
  439. color: #909399;
  440. &:hover {
  441. color: #909399;
  442. opacity: 0.8;
  443. }
  444. &:focus {
  445. color: #909399;
  446. }
  447. }
  448. // 耗材信息三行显示公共样式
  449. .mcs-name {
  450. white-space: nowrap;
  451. line-height: 16px;
  452. }
  453. // -----------------------------------结束------------------------------------