main.less 6.61 KB
Newer Older
田翔's avatar
田翔 committed
1
@import '~antd/es/style/themes/default.less';
田翔's avatar
田翔 committed
2
@imgSrc: './assets/images/designer';
田翔's avatar
田翔 committed
3
@disabledBgColor: rgb(248, 250, 252);
田翔's avatar
田翔 committed
4
@disabledColor: rgba(0, 0, 0, 0.7);
田翔's avatar
田翔 committed
5

6 7
body #app {
  background: transparent;
田翔's avatar
田翔 committed
8 9
  width: 100%;
  height: 100%;
田翔's avatar
田翔 committed
10

11 12
  .pg-viewer-wrapper {
    overflow-y: auto;
田翔's avatar
田翔 committed
13
  }
14
}
田翔's avatar
田翔 committed
15

田翔's avatar
田翔 committed
16 17 18 19 20 21 22 23
.pandaXform {

  //最外层样式
  .dnd-container.edit>.field-wrapper.relative.w-100 {
    border: none;
    padding: 0 !important;
  }

田翔's avatar
田翔 committed
24 25 26 27 28 29 30 31 32 33 34 35 36
  //分组内层不允许选中
  // .fr-content.ml3>.object>.field-wrapper.relative.w-100 {
  //   pointer-events: none;
  // }

  // .fr-content.ml3>.object>.field-wrapper.relative.w-100 .field-wrapper.relative.w-100 {
  //   pointer-events: all;
  // }

  .fr-content.ml3>.object>.field-wrapper.relative.w-100 .field-wrapper.relative.w-100 .fr-field {
    pointer-events: none;
  }

田翔's avatar
田翔 committed
37 38 39
  .object>.field-wrapper.relative.w-100 {
    padding: 0 !important;
    margin: 0 !important;
田翔's avatar
田翔 committed
40
    border: none !important;
田翔's avatar
田翔 committed
41 42
  }

田翔's avatar
田翔 committed
43 44 45 46 47 48
  .flex.flex-wrap.pl0>.field-wrapper.relative.w-100 {
    border: 1px solid #efefef;
  }

  .object>.flex-wrap.pl0>.field-wrapper.relative.w-100 {
    border: none;
田翔's avatar
田翔 committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
  }

  .fr-field-complex {
    border: none !important;
  }

  .flex.flex-wrap.pl0 {
    padding: 10px;
    padding-bottom: 0;
  }

  //选中样式
  .field-wrapper.selected-field-wrapper.relative.w-100 {
    background: #ecf7ff !important;
  }

  .left-layout {
田翔's avatar
田翔 committed
66
    width: 282px !important;
田翔's avatar
田翔 committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
    padding: 7px;
    background: #F1F3F6;

    &::-webkit-scrollbar {
      width: 0;
    }
  }

  .left-layout>div {
    border-radius: 5px;
    background: white;

    .f6 {
      position: relative;
      padding: 5px 10px;
      margin: 0;
      font-weight: bold;

      .iocn-help {
        position: absolute;
        right: 10px;
        top: 10px;
        width: 12px;
        height: 12px;
        background: url('@{imgSrc}/帮助.png');
        background-size: 100% 100%;

        &:hover {
          cursor: pointer;
        }
      }
    }

    .pl0 {
      margin-bottom: 7px;
田翔's avatar
田翔 committed
102 103
      padding: 10px;
      padding-top: 0;
田翔's avatar
田翔 committed
104 105 106 107 108 109 110 111
    }
  }

  .mid-layout.pr2 {
    border: none;
  }
}

田翔's avatar
田翔 committed
112 113 114 115 116
.formRender {
  .fr-content {
    .fr-field.w-100.flex-column {
      padding-left: 10px;
    }
田翔's avatar
田翔 committed
117 118

    .fr-field.w-100.flex {
田翔's avatar
田翔 committed
119 120 121 122 123 124 125 126 127
      .fr-label {
        padding-left: 12px;
      }
    }
  }
}

.pandaXform,
.formRender {
田翔's avatar
田翔 committed
128
  width: 100%;
田翔's avatar
田翔 committed
129
  padding: 10px;
田翔's avatar
田翔 committed
130
  background: white;
田翔's avatar
田翔 committed
131 132
  padding-top: 0;

田翔's avatar
田翔 committed
133
  .fr-generator-container .left-layout {
田翔's avatar
田翔 committed
134

田翔's avatar
田翔 committed
135
    .left-item {
田翔's avatar
田翔 committed
136 137
      justify-content: left;
      padding-left: 10px;
田翔's avatar
田翔 committed
138

田翔's avatar
田翔 committed
139 140 141 142 143
      &:hover {
        svg {
          fill: #409eff;
        }
      }
田翔's avatar
田翔 committed
144

田翔's avatar
田翔 committed
145 146 147 148
      .anticon {
        margin-right: 5px;
      }
    }
149
  }
田翔's avatar
田翔 committed
150

151 152
  .@{ant-prefix}-spin-nested-loading {
    height: 100%;
田翔's avatar
田翔 committed
153

154 155 156 157
    .@{ant-prefix}-spin-container {
      height: 100%;
    }
  }
田翔's avatar
田翔 committed
158

159
  .@{ant-prefix}-spin-spinning {
田翔's avatar
田翔 committed
160 161
    background: rgba(255, 255, 255, 0.7);
    max-height: none !important;
162
  }
田翔's avatar
田翔 committed
163

田翔's avatar
田翔 committed
164 165 166 167
  .@{ant-prefix}-tabs-content-holder {
    height: 664px;
    overflow: auto;
  }
田翔's avatar
田翔 committed
168

田翔's avatar
田翔 committed
169
  .fr-generator-container .right-layout {
170
    width: 21rem;
田翔's avatar
田翔 committed
171
  }
田翔's avatar
田翔 committed
172

田翔's avatar
田翔 committed
173 174
  .fr-container .fr-label-required {
    margin: 0;
田翔's avatar
田翔 committed
175 176 177
  }

  //表单组横线样式
田翔's avatar
田翔 committed
178 179
  .@{ant-prefix}-divider-horizontal {
    margin: 15px 0;
田翔's avatar
田翔 committed
180 181 182
  }

  //提示语样式
田翔's avatar
田翔 committed
183 184 185
  input::-webkit-input-placeholder,
  textarea::-webkit-input-placeholder,
  .@{ant-prefix}-select-selection-placeholder {
186
    color: #8a8282;
田翔's avatar
田翔 committed
187 188 189
  }

  // 单行文本框
田翔's avatar
田翔 committed
190 191 192 193 194
  input[disabled] {
    color: @disabledColor;
    cursor: default;
    background: @disabledBgColor;
    border: none;
田翔's avatar
田翔 committed
195 196 197
  }

  // 多行文本框
田翔's avatar
田翔 committed
198 199 200 201 202 203
  .@{ant-prefix}-input[disabled] {
    color: @disabledColor;
    box-shadow: none;
    cursor: default;
    background: @disabledBgColor;
    border: none;
田翔's avatar
田翔 committed
204 205 206
  }

  //数值输入框样式修改
田翔's avatar
田翔 committed
207 208 209
  .@{ant-prefix}-input-number-handler-wrap {
    opacity: 1;
  }
田翔's avatar
田翔 committed
210

田翔's avatar
田翔 committed
211 212
  .@{ant-prefix}-input-number-disabled {
    border: none;
田翔's avatar
田翔 committed
213 214 215
  }

  // 时间选择器的disabled样式
田翔's avatar
田翔 committed
216 217 218
  .@{ant-prefix}-picker-disabled {
    cursor: default;
    color: @disabledColor;
田翔's avatar
田翔 committed
219
    background-color: rgb(250, 250, 250);
田翔's avatar
田翔 committed
220

田翔's avatar
田翔 committed
221
    &+span {
田翔's avatar
田翔 committed
222 223
      cursor: default;
    }
田翔's avatar
田翔 committed
224 225 226
  }

  // radio的disabled样式
田翔's avatar
田翔 committed
227 228
  .@{ant-prefix}-radio-disabled {
    cursor: default;
田翔's avatar
田翔 committed
229

田翔's avatar
田翔 committed
230
    &+span {
田翔's avatar
田翔 committed
231 232 233
      cursor: default;
      color: @disabledColor;
    }
田翔's avatar
田翔 committed
234

田翔's avatar
田翔 committed
235 236
    .@{ant-prefix}-radio-inner {
      cursor: default;
田翔's avatar
田翔 committed
237

田翔's avatar
田翔 committed
238 239 240 241
      &:after {
        background: rgba(0, 0, 0, 0.5);
      }
    }
田翔's avatar
田翔 committed
242
  }
田翔's avatar
田翔 committed
243

田翔's avatar
田翔 committed
244
  .@{ant-prefix}-checkbox-wrapper {
245
    // margin-top: 10px;
田翔's avatar
田翔 committed
246
    margin-left: 5px;
田翔's avatar
田翔 committed
247 248 249
  }

  //复选框disabled的样式
田翔's avatar
田翔 committed
250
  .@{ant-prefix}-checkbox-disabled {
田翔's avatar
田翔 committed
251
    &+span {
田翔's avatar
田翔 committed
252 253 254
      cursor: default;
      color: @disabledColor;
    }
田翔's avatar
田翔 committed
255

田翔's avatar
田翔 committed
256 257
    .@{ant-prefix}-checkbox-inner {
      cursor: default;
田翔's avatar
田翔 committed
258

田翔's avatar
田翔 committed
259 260 261 262
      &:after {
        border-color: rgba(0, 0, 0, 0.5);
      }
    }
田翔's avatar
田翔 committed
263 264 265
  }

  // 下拉选未选的disabled样式
田翔's avatar
田翔 committed
266 267 268 269 270 271 272
  .@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) {
    .@{ant-prefix}-select-selector {
      color: @disabledColor;
      cursor: default;
      border: none;
      background: @disabledBgColor;
    }
田翔's avatar
田翔 committed
273 274 275
  }

  // 下拉选已选的disabled样式
田翔's avatar
田翔 committed
276 277
  .@{ant-prefix}-cascader-picker-disabled {
    color: @disabledColor;
田翔's avatar
田翔 committed
278
    background-color: rgb(250, 250, 250);
田翔's avatar
田翔 committed
279 280
    cursor: default;
    border: none;
田翔's avatar
田翔 committed
281 282 283
  }

  // 多选下的tag的disabled样式
田翔's avatar
田翔 committed
284 285 286 287 288 289 290 291
  .@{ant-prefix}-select-disabled.@{ant-prefix}-select-multiple {
    .@{ant-prefix}-select-selection-item {
      color: @disabledColor;
      background: @disabledBgColor;
      cursor: default;
      border: none;
    }
  }
田翔's avatar
田翔 committed
292

田翔's avatar
田翔 committed
293 294 295 296
  .@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) {
    .@{ant-prefix}-select-selector input {
      cursor: default;
    }
田翔's avatar
田翔 committed
297 298 299
  }

  // 时间选择框
田翔's avatar
田翔 committed
300
  .@{ant-prefix}-picker-input>input[disabled] {
田翔's avatar
田翔 committed
301 302
    color: @disabledColor;
  }
田翔's avatar
田翔 committed
303

田翔's avatar
田翔 committed
304 305
  .@{ant-prefix}-picker-disabled {
    border: none;
田翔's avatar
田翔 committed
306

田翔's avatar
田翔 committed
307 308 309 310
    .@{ant-prefix}-picker-suffix {
      display: none;
    }
  }
田翔's avatar
田翔 committed
311

田翔's avatar
田翔 committed
312 313 314 315
  &-operate-group {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
田翔's avatar
田翔 committed
316
    padding: 10px 10px;
田翔's avatar
田翔 committed
317
  }
田翔's avatar
田翔 committed
318

田翔's avatar
田翔 committed
319 320 321 322 323 324 325
  &-group {
    i {
      width: 3px;
      height: 16px;
      margin-right: 10px;
      background-color: #337ab7;
    }
田翔's avatar
田翔 committed
326

田翔's avatar
田翔 committed
327 328 329 330
    .fr-label-object {
      .fr-label-title {
        padding: 10px 10px 0 0;
      }
田翔's avatar
田翔 committed
331

田翔's avatar
田翔 committed
332 333 334 335
      .fr-label-title::after {
        content: '';
      }
    }
田翔's avatar
田翔 committed
336

田翔's avatar
田翔 committed
337 338 339 340
    .b--black-20 {
      border-color: rgba(232, 240, 237, 1);
    }
  }
田翔's avatar
田翔 committed
341

田翔's avatar
田翔 committed
342 343 344 345 346
  .emphasis {
    input {
      font-weight: bold;
    }
  }
田翔's avatar
田翔 committed
347

田翔's avatar
田翔 committed
348 349 350 351
  .notEditable {
    input {
      cursor: default;
    }
田翔's avatar
田翔 committed
352
  }
田翔's avatar
田翔 committed
353

田翔's avatar
田翔 committed
354
  /** @Tips: 在原有框架下,表单渲染后,使用的是flex自动布局,与calc来计算组件宽度,未设置固定宽度,导致页面布局错乱 */
田翔's avatar
田翔 committed
355
  .fr-content,
田翔's avatar
田翔 committed
356
  .fr-content .fr-item-wrapper>div {
田翔's avatar
田翔 committed
357 358
    width: 100%;
  }
田翔's avatar
田翔 committed
359

田翔's avatar
田翔 committed
360 361 362 363 364
  .pdf-canvas {
    width: 100%;
    display: flex;
    justify-content: center;
  }
田翔's avatar
田翔 committed
365
}