提交 | 用户 | 时间
|
a57dc2
|
1 |
// 边框被 token-simulation 样式覆盖了 |
W |
2 |
.djs-palette { |
|
3 |
background: var(--palette-background-color); |
|
4 |
border: solid 1px var(--palette-border-color) !important; |
|
5 |
border-radius: 2px; |
|
6 |
} |
|
7 |
|
|
8 |
.my-process-designer { |
|
9 |
padding: 5px 0 10px 10px; |
|
10 |
display: flex; |
|
11 |
flex-direction: column; |
|
12 |
width: 100%; |
|
13 |
height: 100%; |
|
14 |
box-sizing: border-box; |
|
15 |
.my-process-designer__header { |
|
16 |
width: 100%; |
|
17 |
min-height: 36px; |
|
18 |
.el-button { |
|
19 |
text-align: center; |
|
20 |
} |
|
21 |
.el-button-group { |
|
22 |
margin: 4px; |
|
23 |
} |
|
24 |
.el-tooltip__popper { |
|
25 |
.el-button { |
|
26 |
width: 100%; |
|
27 |
text-align: left; |
|
28 |
padding-left: 8px; |
|
29 |
padding-right: 8px; |
|
30 |
} |
|
31 |
.el-button:hover { |
|
32 |
background: rgba(64, 158, 255, 0.8); |
|
33 |
color: #ffffff; |
|
34 |
} |
|
35 |
} |
|
36 |
.align { |
|
37 |
position: relative; |
|
38 |
i { |
|
39 |
&:after { |
|
40 |
content: "|"; |
|
41 |
position: absolute; |
|
42 |
transform: rotate(90deg) translate(200%, 60%); |
|
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(90deg); |
|
60 |
&:after { |
|
61 |
transform: rotate(90deg) translate(0, 60%); |
|
62 |
} |
|
63 |
} |
|
64 |
.align.align-middle i { |
|
65 |
transform: rotate(0deg); |
|
66 |
&:after { |
|
67 |
transform: rotate(90deg) translate(0, 60%); |
|
68 |
} |
|
69 |
} |
|
70 |
} |
|
71 |
.my-process-designer__container { |
|
72 |
display: inline-flex; |
|
73 |
width: 100%; |
|
74 |
flex: 1; |
|
75 |
.my-process-designer__canvas { |
|
76 |
flex: 1; |
|
77 |
height: 100%; |
|
78 |
position: relative; |
|
79 |
background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+") |
|
80 |
repeat !important; |
|
81 |
div.toggle-mode { |
|
82 |
display: none; |
|
83 |
} |
|
84 |
} |
|
85 |
.my-process-designer__property-panel { |
|
86 |
height: 100%; |
|
87 |
overflow: scroll; |
|
88 |
overflow-y: auto; |
|
89 |
z-index: 10; |
|
90 |
* { |
|
91 |
box-sizing: border-box; |
|
92 |
} |
|
93 |
} |
|
94 |
svg { |
|
95 |
width: 100%; |
|
96 |
height: 100%; |
|
97 |
min-height: 100%; |
|
98 |
overflow: hidden; |
|
99 |
} |
|
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 |
} |