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