index.less 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @import (reference) './variable.less';
  2. @selectorPrefix: ant-selector;
  3. .@{selectorPrefix} {
  4. position: relative;
  5. display: flex;
  6. flex-direction: column;
  7. // padding: calc(@selector-collapse / 2);
  8. background-color: @selector-background-color;
  9. line-height: @selector-line-height;
  10. &-disabled .ant-selector-content {
  11. opacity: 0.6;
  12. .@{selectorPrefix}-item-disabled {
  13. opacity: 1;
  14. }
  15. }
  16. &-content {
  17. display: flex;
  18. flex: 0 33.3333%;
  19. padding: calc(@selector-collapse / 2);
  20. box-sizing: border-box;
  21. &-item2 {
  22. flex: 1;
  23. }
  24. &-container {
  25. display: flex;
  26. flex-wrap: wrap;
  27. justify-content: flex-start;
  28. }
  29. .ant-tap-modal-mask {
  30. width: calc(100% - 24 * @rpx);
  31. height: calc(100% - 24 * @rpx);
  32. margin: 12 * @rpx 0 0 12 * @rpx;
  33. }
  34. }
  35. &-item {
  36. position: relative;
  37. display: flex;
  38. flex: 1;
  39. flex-direction: column;
  40. justify-content: flex-start;
  41. overflow: hidden;
  42. padding: calc(@selector-collapse / 2) calc(@selector-collapse / 4);
  43. text-align: center;
  44. background-color: @selector-item-background;
  45. border-radius: @corner-radius-md;
  46. &-active {
  47. background-color: @selector-item-active-background;
  48. .@{selectorPrefix}-item-text {
  49. color: @COLOR_BRAND1;
  50. }
  51. }
  52. &-disabled {
  53. opacity: 0.6;
  54. }
  55. &-text {
  56. font-size: @selector-item-size;
  57. color: @selector-item-color;
  58. }
  59. &-subtext {
  60. font-size: @selector-item-sub-size;
  61. color: @selector-item-sub-color;
  62. }
  63. &-badge-active {
  64. position: absolute;
  65. top: 0;
  66. left: 0;
  67. right: 0;
  68. bottom: 0;
  69. background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAfCAYAAAH8T49dAAAAAXNSR0IArs4c6QAAA7JJREFUWAnNV1tIlEEU/lY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