variable.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @import "~antd/lib/style/themes/default";
  2. @blue : #1B98E0;
  3. @white : #fff;
  4. @black : #000;
  5. @light-green : #8BC34A;
  6. @logo-deep : #223151;
  7. @rich-text : #444444;
  8. @codemirror-placeholder : #b9b9b9;
  9. @body-bg : #EAEDF1;
  10. @light-bg : #f7f7f7;
  11. @primary-color : @blue;
  12. @secondary-color : @logo-deep;
  13. @light-text-color : lighten(@text-color, 25%);
  14. @disabled-text-color : lighten(@text-color, 35%);
  15. @disabled-icon-color : lighten(@text-color, 75%);
  16. @grey-line-color : rgba(0,0,0,.05);
  17. /*** z-index ***/
  18. @header-index : 2;
  19. @popover-box-shadow : 0 1px 6px rgba(0, 0, 0, .2);
  20. @header-box-shadow : 0 2px 1px 0 rgba(0, 0, 0, .1);
  21. @left-side-box-shadow : 2px 0 1px 0 rgba(0, 0, 0, .1);
  22. @right-side-box-shadow : -2px 0 1px 0 rgba(0, 0, 0, .1);
  23. @block-box-shadow : 0 2px 3px 0 rgba(0,0,0,.05);
  24. @block-active-box-shadow : 0 7px 21px 0 rgba(0,0,0,.15);
  25. /*** global mixins ***/
  26. .ellipsis {
  27. white-space: nowrap;
  28. text-overflow: ellipsis;
  29. overflow: hidden;
  30. }
  31. .hideScrollbar {
  32. overflow: -moz-scrollbars-none !important;
  33. -ms-overflow-style: none !important;
  34. &::-webkit-scrollbar {
  35. display: none;
  36. }
  37. }
  38. .antFormItemLabelCustom(@fontSize, @lineHeight, @marginBottom) {
  39. :global {
  40. .ant-form-item {
  41. margin-bottom: @marginBottom;
  42. }
  43. .ant-form-item-label {
  44. line-height: @lineHeight;
  45. label {
  46. color: @disabled-text-color;
  47. font-size: @fontSize;
  48. font-weight: bold;
  49. }
  50. }
  51. .ant-form-item-required:before {
  52. margin-right: 2px;
  53. vertical-align: middle;
  54. }
  55. }
  56. }
  57. .antFormItemStyleWithoutForm {
  58. :global {
  59. .ant-select,
  60. .ant-input-number {
  61. width: 100%;
  62. }
  63. .ant-input-group {
  64. line-height: inherit;
  65. &.ant-input-group-compact {
  66. & > * {
  67. vertical-align: baseline
  68. }
  69. }
  70. }
  71. .ant-calendar-picker {
  72. width: 100% !important;
  73. min-width: auto !important;
  74. }
  75. }
  76. &.small {
  77. :global {
  78. .ant-form-item-control {
  79. line-height: 32px;
  80. }
  81. }
  82. }
  83. }