process-designer.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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%, 60%);
  44. transform: rotate(180deg) translate(271%, -10%);
  45. }
  46. }
  47. }
  48. .align.align-left i {
  49. transform: rotate(90deg);
  50. }
  51. .align.align-right i {
  52. transform: rotate(-90deg);
  53. }
  54. .align.align-top i {
  55. transform: rotate(180deg);
  56. }
  57. .align.align-bottom i {
  58. transform: rotate(0deg);
  59. }
  60. .align.align-center i {
  61. transform: rotate(0deg);
  62. &:after {
  63. // transform: rotate(90deg) translate(0, 60%);
  64. transform: rotate(0deg) translate(-0%, -5%);
  65. }
  66. }
  67. .align.align-middle i {
  68. transform: rotate(-90deg);
  69. &:after {
  70. // transform: rotate(90deg) translate(0, 60%);
  71. transform: rotate(0deg) translate(0, -10%);
  72. }
  73. }
  74. }
  75. .my-process-designer__container {
  76. display: inline-flex;
  77. width: 100%;
  78. flex: 1;
  79. .my-process-designer__canvas {
  80. flex: 1;
  81. height: 100%;
  82. position: relative;
  83. background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+')
  84. repeat !important;
  85. div.toggle-mode {
  86. display: none;
  87. }
  88. }
  89. .my-process-designer__property-panel {
  90. height: 100%;
  91. overflow: scroll;
  92. overflow-y: auto;
  93. z-index: 10;
  94. * {
  95. box-sizing: border-box;
  96. }
  97. }
  98. svg {
  99. width: 100%;
  100. height: 100%;
  101. min-height: 100%;
  102. overflow: hidden;
  103. }
  104. }
  105. }
  106. //侧边栏配置
  107. // .djs-palette .two-column .open {
  108. .open {
  109. // .djs-palette.open {
  110. .djs-palette-entries {
  111. div[class^='bpmn-icon-']:before,
  112. div[class*='bpmn-icon-']:before {
  113. line-height: unset;
  114. }
  115. div.entry {
  116. position: relative;
  117. }
  118. div.entry:hover {
  119. &::after {
  120. width: max-content;
  121. content: attr(title);
  122. vertical-align: text-bottom;
  123. position: absolute;
  124. right: -10px;
  125. top: 0;
  126. bottom: 0;
  127. overflow: hidden;
  128. transform: translateX(100%);
  129. font-size: 0.5em;
  130. display: inline-block;
  131. text-decoration: inherit;
  132. font-variant: normal;
  133. text-transform: none;
  134. background: #fafafa;
  135. box-shadow: 0 0 6px #eeeeee;
  136. border: 1px solid #cccccc;
  137. box-sizing: border-box;
  138. padding: 0 16px;
  139. border-radius: 4px;
  140. z-index: 100;
  141. }
  142. }
  143. }
  144. }
  145. pre {
  146. margin: 0;
  147. height: 100%;
  148. overflow: hidden;
  149. max-height: calc(80vh - 32px);
  150. overflow-y: auto;
  151. }
  152. .hljs {
  153. word-break: break-word;
  154. white-space: pre-wrap;
  155. }
  156. .hljs * {
  157. font-family: Consolas, Monaco, monospace;
  158. }