process-designer.scss 3.9 KB

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