process-designer.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. @import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
  2. @import "bpmn-js-token-simulation/assets/css/font-awesome.min.css";
  3. @import "bpmn-js-token-simulation/assets/css/normalize.css";
  4. // 边框被 token-simulation 样式覆盖了
  5. .djs-palette {
  6. background: var(--palette-background-color);
  7. border: solid 1px var(--palette-border-color) !important;
  8. border-radius: 2px;
  9. }
  10. .my-process-designer {
  11. display: flex;
  12. flex-direction: column;
  13. width: 100%;
  14. height: 100%;
  15. box-sizing: border-box;
  16. .my-process-designer__header {
  17. width: 100%;
  18. min-height: 36px;
  19. .el-button {
  20. text-align: center;
  21. }
  22. .el-button-group {
  23. margin: 4px;
  24. }
  25. .el-tooltip__popper {
  26. .el-button {
  27. width: 100%;
  28. text-align: left;
  29. padding-left: 8px;
  30. padding-right: 8px;
  31. }
  32. .el-button:hover {
  33. background: rgba(64, 158, 255, 0.8);
  34. color: #ffffff;
  35. }
  36. }
  37. .align {
  38. position: relative;
  39. i {
  40. &:after {
  41. content: "|";
  42. position: absolute;
  43. transform: rotate(90deg) translate(200%, -10%);
  44. }
  45. }
  46. }
  47. .align.align-left i {
  48. transform: rotate(90deg);
  49. }
  50. .align.align-right i {
  51. transform: rotate(-90deg);
  52. }
  53. .align.align-top i {
  54. transform: rotate(180deg);
  55. }
  56. .align.align-bottom i {
  57. transform: rotate(0deg);
  58. }
  59. .align.align-center i {
  60. transform: rotate(90deg);
  61. &:after {
  62. transform: rotate(90deg) translate(0, -10%);
  63. }
  64. }
  65. .align.align-middle i {
  66. transform: rotate(0deg);
  67. &:after {
  68. transform: rotate(90deg) translate(0, -10%);
  69. }
  70. }
  71. }
  72. .my-process-designer__container {
  73. display: inline-flex;
  74. width: 100%;
  75. flex: 1;
  76. .my-process-designer__canvas {
  77. flex: 1;
  78. height: 100%;
  79. position: relative;
  80. background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+")
  81. repeat !important;
  82. div.toggle-mode {
  83. display: none;
  84. }
  85. }
  86. .my-process-designer__property-panel {
  87. height: 100%;
  88. overflow: scroll;
  89. overflow-y: auto;
  90. z-index: 10;
  91. * {
  92. box-sizing: border-box;
  93. }
  94. }
  95. svg {
  96. width: 100%;
  97. height: 100%;
  98. min-height: 100%;
  99. overflow: hidden;
  100. }
  101. }
  102. }
  103. //侧边栏配置
  104. .djs-palette.open {
  105. .djs-palette-entries {
  106. div[class^="bpmn-icon-"]:before,
  107. div[class*="bpmn-icon-"]:before {
  108. line-height: unset;
  109. }
  110. div.entry {
  111. position: relative;
  112. }
  113. div.entry:hover {
  114. &::after {
  115. width: max-content;
  116. content: attr(title);
  117. vertical-align: text-bottom;
  118. position: absolute;
  119. right: -10px;
  120. top: 0;
  121. bottom: 0;
  122. overflow: hidden;
  123. transform: translateX(100%);
  124. font-size: 0.5em;
  125. display: inline-block;
  126. text-decoration: inherit;
  127. font-variant: normal;
  128. text-transform: none;
  129. background: #fafafa;
  130. box-shadow: 0 0 6px #eeeeee;
  131. border: 1px solid #cccccc;
  132. box-sizing: border-box;
  133. padding: 0 16px;
  134. border-radius: 4px;
  135. z-index: 100;
  136. }
  137. }
  138. }
  139. }
  140. pre {
  141. margin: 0;
  142. height: 100%;
  143. overflow: hidden;
  144. max-height: calc(80vh - 32px);
  145. overflow-y: auto;
  146. }
  147. .hljs {
  148. word-break: break-word;
  149. white-space: pre-wrap;
  150. }
  151. .hljs * {
  152. font-family: Consolas, Monaco, monospace;
  153. }