index.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. @import '../../style/themes/index';
  2. @import '../../style/mixins/index';
  3. @empty-prefix-cls: ~'@{ant-prefix}-empty';
  4. @empty-img-prefix-cls: ~'@{ant-prefix}-empty-img';
  5. .@{empty-prefix-cls} {
  6. margin: 0 8px;
  7. font-size: @empty-font-size;
  8. line-height: @line-height-base;
  9. text-align: center;
  10. &-image {
  11. height: 100px;
  12. margin-bottom: 8px;
  13. img {
  14. height: 100%;
  15. }
  16. svg {
  17. height: 100%;
  18. margin: auto;
  19. }
  20. }
  21. &-footer {
  22. margin-top: 16px;
  23. }
  24. // antd internal empty style
  25. &-normal {
  26. margin: 32px 0;
  27. color: @disabled-color;
  28. .@{empty-prefix-cls}-image {
  29. height: 40px;
  30. }
  31. }
  32. &-small {
  33. margin: 8px 0;
  34. color: @disabled-color;
  35. .@{empty-prefix-cls}-image {
  36. height: 35px;
  37. }
  38. }
  39. }
  40. .@{empty-img-prefix-cls}-default {
  41. // not support the definition because the less variables have no meaning
  42. & when (@theme = dark) {
  43. &-ellipse {
  44. fill: @white;
  45. fill-opacity: 0.08;
  46. }
  47. &-path {
  48. &-1 {
  49. fill: #262626;
  50. }
  51. &-2 {
  52. fill: url('#linearGradient-1');
  53. }
  54. &-3 {
  55. fill: #595959;
  56. }
  57. &-4 {
  58. fill: #434343;
  59. }
  60. &-5 {
  61. fill: #595959;
  62. }
  63. }
  64. &-g {
  65. fill: #434343;
  66. }
  67. }
  68. & when not (@theme = dark) {
  69. &-ellipse {
  70. fill: #f5f5f5;
  71. fill-opacity: 0.8;
  72. }
  73. &-path {
  74. &-1 {
  75. fill: #aeb8c2;
  76. }
  77. &-2 {
  78. fill: url('#linearGradient-1');
  79. }
  80. &-3 {
  81. fill: #f5f5f7;
  82. }
  83. &-4 {
  84. fill: #dce0e6;
  85. }
  86. &-5 {
  87. fill: #dce0e6;
  88. }
  89. }
  90. &-g {
  91. fill: @white;
  92. }
  93. }
  94. }
  95. .@{empty-img-prefix-cls}-simple {
  96. // not support the definition because the less variables have no meaning
  97. & when (@theme = dark) {
  98. &-ellipse {
  99. fill: @white;
  100. fill-opacity: 0.08;
  101. }
  102. &-g {
  103. stroke: #434343;
  104. }
  105. &-path {
  106. fill: #262626;
  107. stroke: #434343;
  108. }
  109. }
  110. & when not (@theme = dark) {
  111. &-ellipse {
  112. fill: #f5f5f5;
  113. }
  114. &-g {
  115. stroke: #d9d9d9;
  116. }
  117. &-path {
  118. fill: #fafafa;
  119. }
  120. }
  121. }
  122. @import './rtl';