index.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @import '../../mixins.less';
  2. @import '../../themes/default.less';
  3. @flexPrefixCls: lz-flexbox;
  4. @gridPrefixCls: lz-grid;
  5. .@{gridPrefixCls} {
  6. .@{flexPrefixCls} {
  7. background: @fill-base;
  8. .@{flexPrefixCls}-item {
  9. margin-left: 0;
  10. &.@{gridPrefixCls}-item {
  11. position: relative;
  12. }
  13. &.@{gridPrefixCls}-item-active {
  14. .@{gridPrefixCls}-item-content {
  15. background-color: @fill-tap;
  16. }
  17. }
  18. .@{gridPrefixCls}-item-content {
  19. text-align: center;
  20. width: 100%;
  21. height: 100%;
  22. padding: @v-spacing-lg 0;
  23. .@{gridPrefixCls}-item-inner-content {
  24. display: flex;
  25. flex-direction: column;
  26. justify-content: center;
  27. align-items: center;
  28. .@{gridPrefixCls}-icon {
  29. max-width: 100%;
  30. }
  31. .@{gridPrefixCls}-text {
  32. margin-top: @v-spacing-md;
  33. font-size: @font-size-caption-sm;
  34. color: @color-text-base;
  35. text-align: center;
  36. }
  37. &.column-num-3 {
  38. .@{gridPrefixCls}-text {
  39. font-size: @font-size-caption;
  40. }
  41. }
  42. &.column-num-2 {
  43. .@{gridPrefixCls}-text {
  44. margin-top: @v-spacing-lg;
  45. font-size: 18 * @hd;
  46. }
  47. }
  48. }
  49. }
  50. }
  51. }
  52. &.@{gridPrefixCls}-line {
  53. position: relative;
  54. &:not(.@{gridPrefixCls}-carousel) {
  55. .hairline('top');
  56. .hairline('right');
  57. }
  58. .@{flexPrefixCls} {
  59. position: relative;
  60. .hairline('bottom');
  61. .@{flexPrefixCls}-item {
  62. position: relative;
  63. &:first-child {
  64. .hairline('left');
  65. }
  66. &:not(:last-child) {
  67. .hairline('right');
  68. }
  69. }
  70. }
  71. &.@{gridPrefixCls}-carousel {
  72. .@{gridPrefixCls}-carousel-page {
  73. .hairline('top');
  74. .hairline('right');
  75. }
  76. }
  77. }
  78. .lz-carousel {
  79. .lz-carousel-wrap-dot > span {
  80. background: #dcdee3;
  81. }
  82. .lz-carousel-wrap-dot-active > span {
  83. background: #0ae;
  84. }
  85. }
  86. &.@{gridPrefixCls}-square {
  87. .@{gridPrefixCls}-item {
  88. &:before {
  89. display: block;
  90. content: ' ';
  91. padding-bottom: 100%;
  92. }
  93. .@{gridPrefixCls}-item-content {
  94. position: absolute;
  95. top: 50%;
  96. transform: translateY(-50%);
  97. }
  98. .@{gridPrefixCls}-item-inner-content {
  99. height: 100%;
  100. .@{gridPrefixCls}-icon {
  101. margin-top: @v-spacing-md;
  102. width: 28% !important;
  103. }
  104. }
  105. }
  106. }
  107. }