main.less 4.74 KB
Newer Older
田翔's avatar
田翔 committed
1
@import '~antd/es/style/themes/default.less';
田翔's avatar
田翔 committed
2
@disabledBgColor: rgb(248, 250, 252);
田翔's avatar
田翔 committed
3
@disabledColor: rgba(0, 0, 0, 0.7);
4 5
body #app {
  background: transparent;
田翔's avatar
田翔 committed
6 7
  width: 100%;
  height: 100%;
8 9
  .pg-viewer-wrapper {
    overflow-y: auto;
田翔's avatar
田翔 committed
10
  }
11
}
田翔's avatar
田翔 committed
12

田翔's avatar
田翔 committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
.formRender {
  .fr-content {
    .fr-field.w-100.flex-column {
      padding-left: 10px;
    }
    .fr-field.w-100.flex  {
      .fr-label {
        padding-left: 12px;
      }
    }
  }
}

.pandaXform,
.formRender {
田翔's avatar
田翔 committed
28
  width: 100%;
田翔's avatar
田翔 committed
29
  padding: 10px;
田翔's avatar
田翔 committed
30
  background: white;
田翔's avatar
田翔 committed
31
  .fr-generator-container .left-layout {
田翔's avatar
田翔 committed
32
    padding: 10px 0 0 0;
田翔's avatar
田翔 committed
33
    .left-item {
田翔's avatar
田翔 committed
34 35 36 37 38 39 40
      justify-content: left;
      padding-left: 10px;
      &:hover {
        svg {
          fill: #409eff;
        }
      }
田翔's avatar
田翔 committed
41 42 43 44
      .anticon {
        margin-right: 5px;
      }
    }
45
  }
46 47 48 49 50 51
  .@{ant-prefix}-spin-nested-loading {
    height: 100%;
    .@{ant-prefix}-spin-container {
      height: 100%;
    }
  }
52
  .@{ant-prefix}-spin-spinning {
田翔's avatar
田翔 committed
53 54
    background: rgba(255, 255, 255, 0.7);
    max-height: none !important;
55
  }
田翔's avatar
田翔 committed
56 57 58 59
  .@{ant-prefix}-tabs-content-holder {
    height: 664px;
    overflow: auto;
  }
田翔's avatar
田翔 committed
60
  .fr-generator-container .right-layout {
61
    width: 21rem;
田翔's avatar
田翔 committed
62 63 64
  }
  .fr-container .fr-label-required {
    margin: 0;
田翔's avatar
田翔 committed
65
  } //表单组横线样式
田翔's avatar
田翔 committed
66 67
  .@{ant-prefix}-divider-horizontal {
    margin: 15px 0;
田翔's avatar
田翔 committed
68
  } //提示语样式
田翔's avatar
田翔 committed
69 70 71
  input::-webkit-input-placeholder,
  textarea::-webkit-input-placeholder,
  .@{ant-prefix}-select-selection-placeholder {
72
    color: #8a8282;
田翔's avatar
田翔 committed
73
  } // 单行文本框
田翔's avatar
田翔 committed
74 75 76 77 78
  input[disabled] {
    color: @disabledColor;
    cursor: default;
    background: @disabledBgColor;
    border: none;
田翔's avatar
田翔 committed
79
  } // 多行文本框
田翔's avatar
田翔 committed
80 81 82 83 84 85
  .@{ant-prefix}-input[disabled] {
    color: @disabledColor;
    box-shadow: none;
    cursor: default;
    background: @disabledBgColor;
    border: none;
田翔's avatar
田翔 committed
86
  } //数值输入框样式修改
田翔's avatar
田翔 committed
87 88 89 90 91
  .@{ant-prefix}-input-number-handler-wrap {
    opacity: 1;
  }
  .@{ant-prefix}-input-number-disabled {
    border: none;
田翔's avatar
田翔 committed
92
  } // 时间选择器的disabled样式
田翔's avatar
田翔 committed
93 94 95
  .@{ant-prefix}-picker-disabled {
    cursor: default;
    color: @disabledColor;
田翔's avatar
田翔 committed
96 97
    background-color: rgb(250, 250, 250);
    &+span {
田翔's avatar
田翔 committed
98 99
      cursor: default;
    }
田翔's avatar
田翔 committed
100
  } // radio的disabled样式
田翔's avatar
田翔 committed
101 102
  .@{ant-prefix}-radio-disabled {
    cursor: default;
田翔's avatar
田翔 committed
103
    &+span {
田翔's avatar
田翔 committed
104 105 106 107 108 109 110 111 112
      cursor: default;
      color: @disabledColor;
    }
    .@{ant-prefix}-radio-inner {
      cursor: default;
      &:after {
        background: rgba(0, 0, 0, 0.5);
      }
    }
田翔's avatar
田翔 committed
113 114 115 116
  }
  .@{ant-prefix}-checkbox-wrapper {
    margin-top: 10px;
    margin-left: 5px;
田翔's avatar
田翔 committed
117
  } //复选框disabled的样式
田翔's avatar
田翔 committed
118
  .@{ant-prefix}-checkbox-disabled {
田翔's avatar
田翔 committed
119
    &+span {
田翔's avatar
田翔 committed
120 121 122 123 124 125 126 127 128
      cursor: default;
      color: @disabledColor;
    }
    .@{ant-prefix}-checkbox-inner {
      cursor: default;
      &:after {
        border-color: rgba(0, 0, 0, 0.5);
      }
    }
田翔's avatar
田翔 committed
129
  } // 下拉选未选的disabled样式
田翔's avatar
田翔 committed
130 131 132 133 134 135 136
  .@{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
137
  } // 下拉选已选的disabled样式
田翔's avatar
田翔 committed
138 139
  .@{ant-prefix}-cascader-picker-disabled {
    color: @disabledColor;
田翔's avatar
田翔 committed
140
    background-color: rgb(250, 250, 250);
田翔's avatar
田翔 committed
141 142
    cursor: default;
    border: none;
田翔's avatar
田翔 committed
143
  } // 多选下的tag的disabled样式
田翔's avatar
田翔 committed
144 145 146 147 148 149 150 151 152 153 154 155
  .@{ant-prefix}-select-disabled.@{ant-prefix}-select-multiple {
    .@{ant-prefix}-select-selection-item {
      color: @disabledColor;
      background: @disabledBgColor;
      cursor: default;
      border: none;
    }
  }
  .@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) {
    .@{ant-prefix}-select-selector input {
      cursor: default;
    }
田翔's avatar
田翔 committed
156 157
  } // 时间选择框
  .@{ant-prefix}-picker-input>input[disabled] {
田翔's avatar
田翔 committed
158 159 160 161 162 163 164 165 166 167 168 169
    color: @disabledColor;
  }
  .@{ant-prefix}-picker-disabled {
    border: none;
    .@{ant-prefix}-picker-suffix {
      display: none;
    }
  }
  &-operate-group {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
田翔's avatar
田翔 committed
170
    padding: 10px 10px;
田翔's avatar
田翔 committed
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
  }
  &-group {
    i {
      width: 3px;
      height: 16px;
      margin-right: 10px;
      background-color: #337ab7;
    }
    .fr-label-object {
      .fr-label-title {
        padding: 10px 10px 0 0;
      }
      .fr-label-title::after {
        content: '';
      }
    }
    .b--black-20 {
      border-color: rgba(232, 240, 237, 1);
    }
  }
  .emphasis {
    input {
      font-weight: bold;
    }
  }
  .notEditable {
    input {
      cursor: default;
    }
田翔's avatar
田翔 committed
200
  }
田翔's avatar
田翔 committed
201
  /** @Tips: 在原有框架下,表单渲染后,使用的是flex自动布局,与calc来计算组件宽度,未设置固定宽度,导致页面布局错乱 */
田翔's avatar
田翔 committed
202
  .fr-content,
田翔's avatar
田翔 committed
203
  .fr-content .fr-item-wrapper>div {
田翔's avatar
田翔 committed
204 205
    width: 100%;
  }
田翔's avatar
田翔 committed
206 207 208 209 210
  .pdf-canvas {
    width: 100%;
    display: flex;
    justify-content: center;
  }
田翔's avatar
田翔 committed
211
}