index.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. @import '../../themes/default.less';
  2. @flexPrefixCls: lz-flexbox;
  3. /* flexbox */
  4. .@{flexPrefixCls} {
  5. text-align: left;
  6. overflow: hidden;
  7. display: flex;
  8. align-items: center;
  9. &&-dir-row {
  10. flex-direction: row;
  11. }
  12. &&-dir-row-reverse {
  13. flex-direction: row-reverse;
  14. }
  15. &&-dir-column {
  16. flex-direction: column;
  17. .@{flexPrefixCls}-item {
  18. margin-left: 0;
  19. }
  20. }
  21. &&-dir-column-reverse {
  22. flex-direction: column-reverse;
  23. .@{flexPrefixCls}-item {
  24. margin-left: 0;
  25. }
  26. }
  27. &&-nowrap {
  28. flex-wrap: nowrap;
  29. }
  30. &&-wrap {
  31. flex-wrap: wrap;
  32. }
  33. &&-wrap-reverse {
  34. flex-wrap: wrap-reverse;
  35. }
  36. &&-justify-start {
  37. justify-content: flex-start;
  38. }
  39. &&-justify-end {
  40. justify-content: flex-end;
  41. }
  42. &&-justify-center {
  43. justify-content: center;
  44. }
  45. &&-justify-between {
  46. justify-content: space-between;
  47. }
  48. &&-justify-around {
  49. justify-content: space-around;
  50. }
  51. &&-align-start {
  52. align-items: flex-start;
  53. }
  54. &&-align-end {
  55. align-items: flex-end;
  56. }
  57. &&-align-center {
  58. align-items: center;
  59. }
  60. &&-align-stretch {
  61. align-items: stretch;
  62. }
  63. &&-align-baseline {
  64. align-items: baseline;
  65. }
  66. &&-align-content-start {
  67. align-content: flex-start;
  68. }
  69. &&-align-content-end {
  70. align-items: flex-end;
  71. }
  72. &&-align-content-center {
  73. align-items: center;
  74. }
  75. &&-align-content-between {
  76. align-items: stretch;
  77. }
  78. &&-align-content-around {
  79. align-items: baseline;
  80. }
  81. &&-align-content-stretch {
  82. align-items: baseline;
  83. }
  84. & &-item {
  85. box-sizing: border-box;
  86. flex: 1;
  87. margin-left: @h-spacing-md;
  88. min-width: 10 * @hd;
  89. &:first-child {
  90. margin-left: 0;
  91. }
  92. }
  93. & &-basis {
  94. &-xs {
  95. flex-basis: 20%;
  96. }
  97. &-sm {
  98. flex-basis: 40%;
  99. }
  100. &-df {
  101. flex-basis: 50%;
  102. }
  103. &-lg {
  104. flex-basis: 60%;
  105. }
  106. &-xl {
  107. flex-basis: 80%;
  108. }
  109. }
  110. }