global.less 7.79 KB
Newer Older
wuhao's avatar
wuhao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
@import "~antd/es/style/variable.less";

.table-cell {
  display: -webkit-box;
  //width: 100%;
  overflow: hidden;
  font-size: 12px !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
html,
body,
#root {
  height: 100%;
  overflow: hidden !important;
}

.colorWeak {
  filter: invert(80%);
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

.react-resizable {
  position: relative;
}

.react-resizable-handle {
  position: absolute;
  right: -5px;
  bottom: 0;
  z-index: 999;
  width: 10px;
  height: 100%;
  background: transparent;
  cursor: col-resize;
}

//reset start

.diycard {
  .ant-card-body {
    padding: 12px !important;
  }
  .ant-card-head {
    padding: 0 20px !important;
  }
}
wuhao's avatar
wuhao committed
90
.ant-drawer-content {
左玲玲's avatar
左玲玲 committed
91 92
  overflow-x: hidden !important;
}
wuhao's avatar
wuhao committed
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111

.ant-pro-table {
  .ant-card-body {
    padding: 0 !important;
  }
}
.ant-pro-table-list-toolbar-container {
  padding: 0px !important;
  padding-bottom: 8px !important;
}

.ant-pro-table-list-toolbar-right {
  flex: 1 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 0 10px 0 !important;
}
.ant-pro-form-login-container {
wuhao's avatar
wuhao committed
112 113 114
  height: auto !important;
  margin-top: -10vh;
  padding: 0 !important;
wuhao's avatar
wuhao committed
115 116 117 118 119
  background: transparent !important;
}
.ant-pro-form-login-main {
  margin-top: 30px !important;
}
wuhao's avatar
wuhao committed
120

wuhao's avatar
wuhao committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
pre {
  color: rgba(0, 0, 0, 0.85) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
  white-space: pre-wrap !important;
}
.gongyiStep {
  height: 100%;
  .ant-steps-item-title {
    width: 100% !important;
  }
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
wuhao's avatar
wuhao committed
143
  width: 100%;
wuhao's avatar
wuhao committed
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 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 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
}
.columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.specialpropertiesCard {
  .ant-card-body {
    padding: 5px !important;
  }
}
.oneText {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ant-picker-cell-inner {
  display: flex !important;
  justify-content: center;
  .ant-picker-calendar-date-content {
    flex: 1 !important;
  }
}

.logon {
  .ant-tabs-nav {
    padding: 0 16px;
  }
  .ant-tabs-content-holder {
    max-height: 520px;
    padding: 0 16px;
    overflow-y: auto;
  }
}
.ant-input[disabled],
.ant-picker-input > input[disabled],
.ant-select-disabled.ant-select:not(.ant-select-customize-input)
  .ant-select-selector,
.ant-select-disabled.ant-select-multiple .ant-select-selection-item {
  color: rgba(0, 0, 0, 0.85) !important;
}

.scheduling {
  .ant-checkbox-wrapper {
    span:last-child {
      overflow: hidden;
    }
  }
}
.row-dragging {
  z-index: 999999999999;
  background: #fafafa;
  border: 1px solid #ccc;
}

.row-dragging td {
  padding: 16px;
}

.row-dragging .drag-visible {
  visibility: visible;
}
//reset end

.img {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  img {
    width: 30%;
    margin: 30px 0 0 30px;
  }
}
.ant-pro-form-login-desc {
  margin-bottom: 0 !important;
}
wuhao's avatar
wuhao committed
229 230 231 232 233 234 235 236 237
.ant-layout-footer {
  background-color: transparent !important;
  .ant-pro-global-footer {
    margin: 0 !important;
    padding: 0 !important;
  }
}

.logincontent {
wuhao's avatar
wuhao committed
238
  .ant-tabs-nav-wrap {
wuhao's avatar
wuhao committed
239 240 241 242 243
    display: inline-block !important;
  }
  .ant-tabs-tab-active {
    font-size: 16px !important;
  }
wuhao's avatar
wuhao committed
244 245 246 247 248 249 250 251 252 253 254 255 256
  .ant-layout-footer {
    background-color: #23394a !important;
    .ant-pro-global-footer {
      margin: 0 0 20px 0 !important;
      padding: 0 !important;
      * {
        color: rgba(255, 255, 255, 0.6) !important;
      }
      .ant-pro-global-footer-copyright {
        color: rgba(255, 255, 255, 0.3) !important;
      }
    }
  }
wuhao's avatar
wuhao committed
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
  .ant-input-affix-wrapper {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    input {
      color: #fff !important;
      background-color: rgba(255, 255, 255, 0) !important;
    }
  }
  .ant-select-selector {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    input {
      color: #fff !important;
      background-color: rgba(255, 255, 255, 0) !important;
    }
  }
  .ant-input {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
  }
  .ant-select-selection-item {
    color: #fff !important;
  }
  .anticon-close-circle {
    color: #fff !important;
  }
  .anticon {
    color: #fff !important;
  }
  .ant-select-clear {
    background-color: transparent !important;
  }
wuhao's avatar
wuhao committed
290 291
  .ant-select-selection-item-content,
  .ant-select-selection-item-remove {
wuhao's avatar
wuhao committed
292 293 294 295 296
    color: #000 !important;
    .anticon {
      color: #000 !important;
    }
  }
wuhao's avatar
wuhao committed
297
  .ant-select-selection-overflow {
wuhao's avatar
wuhao committed
298 299 300
    display: flex !important;
    flex-wrap: nowrap !important;
  }
wuhao's avatar
wuhao committed
301 302 303 304 305 306 307
}

.reg {
  b {
    color: #fff !important;
    font-weight: normal !important;
  }
wuhao's avatar
wuhao committed
308
}
wuhao's avatar
wuhao committed
309 310 311 312 313 314 315
.ant-layout-header {
  transition: all 200ms !important;
  transition-timing-function: ease-out !important;
}
.ant-pro-global-header {
  padding-left: 6px !important;
}
wuhao's avatar
wuhao committed
316
table {
wuhao's avatar
wuhao committed
317 318
  min-width: calc(100% - 6px) !important;
}
wuhao's avatar
wuhao committed
319
.ant-drawer-open {
wuhao's avatar
wuhao committed
320
  transform: none !important;
wuhao's avatar
wuhao committed
321
}
wuhao's avatar
wuhao committed
322
.ant-pro-table-list-toolbar {
wuhao's avatar
wuhao committed
323
  overflow: hidden !important;
wuhao's avatar
wuhao committed
324
}
wuhao's avatar
wuhao committed
325
.ant-select-selector {
wuhao's avatar
wuhao committed
326
  overflow: hidden !important;
wuhao's avatar
wuhao committed
327
}
wuhao's avatar
wuhao committed
328 329 330
.ant-breadcrumb {
  span {
    > span {
wuhao's avatar
wuhao committed
331 332 333 334
      max-width: 600px !important;
    }
  }
}
wuhao's avatar
wuhao committed
335
.ant-tree .ant-tree-treenode {
wuhao's avatar
wuhao committed
336
  width: 100%;
wuhao's avatar
wuhao committed
337 338
  > span:last-child {
    flex: 1;
wuhao's avatar
wuhao committed
339
  }
wuhao's avatar
wuhao committed
340
}
左玲玲's avatar
左玲玲 committed
341
.ant-input-number-affix-wrapper,
wuhao's avatar
wuhao committed
342
.ant-input-number {
左玲玲's avatar
左玲玲 committed
343 344
  width: 100% !important;
}
wuhao's avatar
wuhao committed
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363

@media all {
  .page-break {
    display: none;
  }
}

@media print {
  html,
  body {
    height: initial !important;
    overflow: initial !important;
    -webkit-print-color-adjust: exact;
  }
}

@media print {
  .page-break {
    display: block;
wuhao's avatar
wuhao committed
364
    margin-top: 2rem;
wuhao's avatar
wuhao committed
365 366 367
    page-break-after: always;
  }
}
wuhao's avatar
wuhao committed
368 369 370 371 372 373 374 375 376 377
.ant-pro-card-body {
  padding: 12px !important;
}
.ant-pagination.ant-pagination-mini .ant-pagination-options-size-changer {
  max-width: 100px !important;
}
.ant-pagination-options {
  display: flex !important;
  min-width: 210px !important;
}
wuhao's avatar
wuhao committed
378
#large {
wuhao's avatar
wuhao committed
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
  .header {
    background-color: transparent !important;
  }
  .header-item,
  .ceil {
    height: auto !important;
    padding: 8px !important;
    overflow: visible !important;
    color: #000 !important;
    line-height: 1 !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    border: #000 1px solid !important;
  }
  .header-item{
    font-weight: bolder !important;
  }
  .header-item + .header-item {
    margin-left: -1px !important;
  }
  .ceil {
    margin-top: -1px;
wuhao's avatar
wuhao committed
401
  }
wuhao's avatar
wuhao committed
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418
  .ceil + .ceil {
    margin-left: -1px !important;
  }

  .row-item {
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1 !important;
    background-color: transparent !important;
  }
  * {
    overflow: visible !important;
    font-size: 20px !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }
}