app.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. /* 初始化样式
  2. ------------------------------- */
  3. * {
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. outline: none !important;
  8. }
  9. :root {
  10. --hotline-color-white: #ffffff;
  11. // 整体背景颜色
  12. --hotline-bg-main-color: #f0f4ff;
  13. --hotline-bg-color: #f5f5ff;
  14. --hotline-border-color-light: #f1f2f3;
  15. --hotline-color-primary-lighter: #ecf5ff;
  16. --hotline-color-warning-lighter: #fdf6ec;
  17. --hotline-color-danger-lighter: #fef0f0;
  18. --hotline-color-dark-hover: #0000001a;
  19. --hotline-color-menu-hover: rgba(0, 0, 0, 0.3);
  20. --hotline-color-user-hover: rgba(0, 0, 0, 0.04);
  21. --hotline-color-seting-main: #e9eef3;
  22. --hotline-color-seting-aside: #d3dce6;
  23. --hotline-color-seting-header: #b3c0d1;
  24. --hotline-bg-grey-color: #999;
  25. // 主题字体颜色
  26. --hotline-color-text-main: var(--el-text-color-primary);
  27. // 主题字体颜色淡色
  28. --hotline-color-text-main-light: #666;
  29. --hotline-overlay-color-lighter-4: rgba(0, 0, 0, 0.4);
  30. --hotline-overlay-color-lighter-3: rgba(0, 0, 0, 0.3);
  31. --hotline-color-popover: #667aed;
  32. // 列表操作图标的字体的大小
  33. --hotline-table-icon-font-size: 16px;
  34. // tagsview 按钮
  35. --hotline-tagsview-icon-color: #d4d4d4;
  36. // element主题色
  37. --el-color-danger: #f56c6c;
  38. --el-color-success: #67c23a;
  39. --el-color-warning: #e6a23c;
  40. // 工单流转记录
  41. --hotline-order-CrculationRecord-color: #eef0f4;
  42. }
  43. html,
  44. body,
  45. #app {
  46. margin: 0;
  47. padding: 0;
  48. width: 100%;
  49. height: 100%;
  50. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  51. font-weight: 400;
  52. -webkit-font-smoothing: antialiased;
  53. -webkit-tap-highlight-color: transparent;
  54. background-color: var(--hotline-bg-main-color);
  55. font-size: 14px;
  56. overflow: hidden;
  57. position: relative;
  58. }
  59. ul,
  60. li {
  61. list-style: none;
  62. }
  63. /* 主布局样式
  64. ------------------------------- */
  65. .layout-container {
  66. width: 100%;
  67. height: 100%;
  68. color: var(--hotline-color-text-main);
  69. .layout-pd {
  70. padding: 15px !important;
  71. }
  72. .layout-flex {
  73. display: flex;
  74. flex-direction: column;
  75. flex: 1;
  76. }
  77. .layout-aside {
  78. background: var(--hotline-bg-menuBar);
  79. box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
  80. height: inherit;
  81. position: relative;
  82. z-index: 1;
  83. display: flex;
  84. flex-direction: column;
  85. overflow-x: hidden !important;
  86. .el-scrollbar__view {
  87. overflow: hidden;
  88. }
  89. }
  90. .layout-header {
  91. padding: 0 !important;
  92. height: auto !important;
  93. }
  94. .layout-main {
  95. padding: 0 !important;
  96. overflow: hidden;
  97. width: 100%;
  98. background-color: var(--hotline-bg-main-color);
  99. display: flex;
  100. flex-direction: column;
  101. // 内层 el-scrollbar样式,用于界面高度自适应(main.vue)
  102. .layout-main-scroll {
  103. @extend .layout-flex;
  104. .layout-parent {
  105. @extend .layout-flex;
  106. position: relative;
  107. }
  108. }
  109. }
  110. // 用于界面高度自适应
  111. .layout-padding {
  112. @extend .layout-pd;
  113. position: absolute;
  114. left: 0;
  115. top: 0;
  116. height: 100%;
  117. overflow: hidden;
  118. @extend .layout-flex;
  119. &-auto {
  120. height: inherit;
  121. @extend .layout-flex;
  122. }
  123. &-view {
  124. background-color: var(--el-color-white);
  125. width: 100%;
  126. height: 100%;
  127. border-radius: 8px;
  128. overflow: hidden;
  129. }
  130. }
  131. // 用于界面高度自适应,主视图区 main 的内边距,用于 iframe
  132. .layout-padding-unset {
  133. padding: 0 !important;
  134. &-view {
  135. border-radius: 0 !important;
  136. border: none !important;
  137. }
  138. }
  139. // 用于设置 iframe loading 时的高度(loading 垂直居中显示)
  140. .layout-iframe {
  141. .el-loading-parent--relative {
  142. height: 100%;
  143. }
  144. }
  145. .el-scrollbar {
  146. width: 100%;
  147. }
  148. // 此字段多次用到,建议不删除,如需修改,请重写覆盖样式
  149. .layout-view-bg-white {
  150. background: var(--el-color-white);
  151. width: 100%;
  152. height: 100%;
  153. border-radius: 4px;
  154. border: 1px solid var(--el-border-color-light, #ebeef5);
  155. }
  156. .layout-el-aside-br-color {
  157. border-right: 1px solid var(--el-border-color-light, #ebeef5);
  158. }
  159. // pc端左侧导航样式
  160. .layout-aside-pc-220 {
  161. width: 220px !important;
  162. transition: width 0.3s ease;
  163. }
  164. .layout-aside-pc-64 {
  165. width: 64px !important;
  166. transition: width 0.3s ease;
  167. }
  168. .layout-aside-pc-1 {
  169. width: 1px !important;
  170. transition: width 0.3s ease;
  171. }
  172. // 手机端左侧导航样式
  173. .layout-aside-mobile {
  174. position: fixed;
  175. top: 0;
  176. left: -220px;
  177. width: 220px;
  178. z-index: 9999999;
  179. }
  180. .layout-aside-mobile-close {
  181. left: -220px;
  182. transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
  183. }
  184. .layout-aside-mobile-open {
  185. left: 0;
  186. transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  187. }
  188. .layout-aside-mobile-mode {
  189. position: fixed;
  190. top: 0;
  191. right: 0;
  192. bottom: 0;
  193. left: 0;
  194. height: 100%;
  195. background-color: rgba(0, 0, 0, 0.5);
  196. z-index: 9999998;
  197. animation: error-img 0.3s;
  198. }
  199. .layout-main-height-50 {
  200. height: calc(100vh - 50px);
  201. }
  202. .layout-columns-warp {
  203. flex: 1;
  204. display: flex;
  205. overflow: hidden;
  206. }
  207. .layout-hide {
  208. display: none;
  209. }
  210. }
  211. /* element plus 全局样式
  212. ------------------------------- */
  213. .layout-breadcrumb-seting {
  214. .el-divider {
  215. background-color: rgb(230, 230, 230);
  216. }
  217. }
  218. /* nprogress 进度条跟随主题颜色
  219. ------------------------------- */
  220. #nprogress {
  221. .bar {
  222. background: var(--el-color-primary) !important;
  223. z-index: 9999999 !important;
  224. }
  225. }
  226. /* flex 弹性布局
  227. ------------------------------- */
  228. .flex {
  229. display: flex;
  230. }
  231. .flex-auto {
  232. flex: 1;
  233. overflow: hidden;
  234. }
  235. .flex-center {
  236. @extend .flex;
  237. flex-direction: column;
  238. width: 100%;
  239. overflow: hidden;
  240. }
  241. .flex-center-between {
  242. @extend .flex;
  243. justify-content: space-between;
  244. align-items: center;
  245. width: 100%;
  246. overflow: hidden;
  247. }
  248. .flex-between {
  249. @extend .flex;
  250. justify-content: space-between;
  251. }
  252. .flex-center-align {
  253. display: flex;
  254. align-items: center;
  255. }
  256. .flex-center-center {
  257. display: flex;
  258. align-items: center;
  259. justify-content: center;
  260. }
  261. .flex-margin {
  262. margin: auto;
  263. }
  264. .flex-warp {
  265. display: flex;
  266. flex-wrap: wrap;
  267. align-content: flex-start;
  268. margin: 0 -5px;
  269. .flex-warp-item {
  270. padding: 5px;
  271. .flex-warp-item-box {
  272. width: 100%;
  273. height: 100%;
  274. }
  275. }
  276. }
  277. /* cursor 鼠标形状
  278. ------------------------------- */
  279. // 默认
  280. .cursor-default {
  281. cursor: default !important;
  282. }
  283. // 帮助
  284. .cursor-help {
  285. cursor: help !important;
  286. }
  287. // 手指
  288. .cursor-pointer {
  289. cursor: pointer !important;
  290. }
  291. // 移动
  292. .cursor-move {
  293. cursor: move !important;
  294. }
  295. /* 宽高 100%
  296. ------------------------------- */
  297. .w100 {
  298. width: 100% !important;
  299. }
  300. .h100 {
  301. height: 100% !important;
  302. }
  303. .vh100 {
  304. height: 100vh !important;
  305. }
  306. .max100vh {
  307. max-height: 100vh !important;
  308. }
  309. .min100vh {
  310. min-height: 100vh !important;
  311. }
  312. /* 颜色值
  313. ------------------------------- */
  314. .color-primary {
  315. color: var(--el-color-primary);
  316. }
  317. .color-success {
  318. color: var(--el-color-success);
  319. }
  320. .color-warning {
  321. color: var(--el-color-warning);
  322. }
  323. .color-danger {
  324. color: var(--el-color-danger);
  325. }
  326. .color-info {
  327. color: var(--el-color-info);
  328. }
  329. /* 字体大小全局样式
  330. ------------------------------- */
  331. @for $i from 10 through 32 {
  332. .font#{$i} {
  333. font-size: #{$i}px !important;
  334. }
  335. }
  336. /* 行高
  337. ------------------------------- */
  338. @for $i from 10 through 50 {
  339. .lineHeight#{$i} {
  340. line-height: #{$i}px !important;
  341. }
  342. }
  343. /* 外边距、内边距全局样式
  344. ------------------------------- */
  345. @for $i from 0 through 35 {
  346. .mt#{$i} {
  347. margin-top: #{$i}px !important;
  348. }
  349. .mr#{$i} {
  350. margin-right: #{$i}px !important;
  351. }
  352. .mb#{$i} {
  353. margin-bottom: #{$i}px !important;
  354. }
  355. .ml#{$i} {
  356. margin-left: #{$i}px !important;
  357. }
  358. .pt#{$i} {
  359. padding-top: #{$i}px !important;
  360. }
  361. .pr#{$i} {
  362. padding-right: #{$i}px !important;
  363. }
  364. .pb#{$i} {
  365. padding-bottom: #{$i}px !important;
  366. }
  367. .pl#{$i} {
  368. padding-left: #{$i}px !important;
  369. }
  370. .pd#{$i} {
  371. padding: #{$i}px !important;
  372. }
  373. .mg#{$i} {
  374. margin: #{$i}px !important;
  375. }
  376. }
  377. /* 宽度长度
  378. ------------------------------- */
  379. @for $i from 0 through 1000 {
  380. .width#{$i} {
  381. width: #{$i}px !important;
  382. }
  383. .height#{$i} {
  384. height: #{$i}px !important;
  385. }
  386. }
  387. /* 文字超过几行显示省略号
  388. ------------------------------- */
  389. @for $i from 1 through 10 {
  390. .text-ellipsis#{$i} {
  391. overflow: hidden;
  392. word-break: break-all;
  393. text-overflow: ellipsis;
  394. display: -webkit-box;
  395. -webkit-line-clamp: $i;
  396. -webkit-box-orient: vertical;
  397. }
  398. }
  399. /* 公共样式
  400. ------------------------------- */
  401. // 超过一行
  402. .text-no-wrap {
  403. text-overflow: ellipsis;
  404. overflow: hidden;
  405. white-space: nowrap;
  406. }
  407. // 表格头部文字
  408. .table-title {
  409. font-size: var(--el-font-size-large);
  410. font-weight: 600;
  411. color: var(--hotline-color-bar);
  412. }
  413. // 选择图片下拉
  414. .item-Img {
  415. display: flex;
  416. align-items: center;
  417. justify-content: space-between;
  418. height: 100%;
  419. img {
  420. width: 20px;
  421. height: 20px;
  422. }
  423. }
  424. .flex-end {
  425. display: flex;
  426. justify-content: flex-end;
  427. }
  428. // 更新提示弹框
  429. .updateTips {
  430. .el-notification__group {
  431. width: 100%;
  432. }
  433. }
  434. // 公共标题样式 左侧带颜色条
  435. .border-title {
  436. font-size: var(--el-font-size-medium);
  437. line-height: var(--el-font-size-medium);
  438. color: var(--el-color-primary);
  439. border-left: 4px solid var(--el-color-primary);
  440. padding-left: 7px;
  441. }
  442. // 字体加粗
  443. .font-bold {
  444. font-weight: bold;
  445. }
  446. /* 表单仅用于展示 */
  447. .show-info-form {
  448. .el-form-item {
  449. margin-bottom: 5px;
  450. }
  451. }
  452. /* 失效时间隐藏此刻选项 */
  453. .no-atTheMoment {
  454. .el-button.is-text {
  455. display: none !important;
  456. }
  457. }
  458. /* 边框按钮样式 */
  459. .default-button {
  460. color: var(--el-color-primary);
  461. border: 1px solid var(--el-color-primary);
  462. }
  463. /* 消息通知样式 */
  464. .notice-container {
  465. &-box {
  466. display: flex;
  467. max-height: 300px;
  468. &-inner {
  469. flex: 1;
  470. padding: 10px 0 10px 10px;
  471. &:last-child {
  472. border-left: var(--el-border);
  473. }
  474. .el-tag {
  475. margin: 0 5px 5px 0;
  476. }
  477. }
  478. }
  479. }
  480. /* 超期圆形 */
  481. .overdue-circle {
  482. width: 15px;
  483. height: 15px;
  484. border-radius: 50%;
  485. display: inline-block;
  486. }
  487. /* 正常状态样式 */
  488. .overdue-status-0 {
  489. @extend .overdue-circle;
  490. background-color: #109688;
  491. }
  492. /* 即将超期状态样式 */
  493. .overdue-status-1 {
  494. @extend .overdue-circle;
  495. background-color: #f49934;
  496. }
  497. /* 已超期状态样式 */
  498. .overdue-status-2 {
  499. @extend .overdue-circle;
  500. background-color: #d70024;
  501. }
  502. /* 剩余时间小于50%”或“剩余时间小于20% */
  503. .overdue-status-3 {
  504. @extend .overdue-circle;
  505. background-color: #2D2DB6;
  506. }
  507. /* 关键词查询输入框宽度 */
  508. .keyword-input {
  509. min-width: 250px;
  510. }
  511. .el-empty__description{
  512. margin-top: 5px;
  513. }
  514. /* 还原内容的换行和缩进 */
  515. .formatted-text {
  516. white-space: pre-wrap; /* 保留换行 */
  517. word-wrap: break-word; /* 超长单词自动换行 */
  518. overflow-wrap: break-word; /* 处理长单词或 URL 的换行 */
  519. line-height: 20px;
  520. .el-form-item__content{
  521. line-height: 20px !important;
  522. }
  523. }