index.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. .segmented-disabled-item,
  4. .segmented-disabled-item:hover,
  5. .segmented-disabled-item:focus {
  6. color: rgba(0, 0, 0, 0.25);
  7. cursor: not-allowed;
  8. }
  9. .segmented-item-selected {
  10. background-color: #fff;
  11. border-radius: 2px;
  12. box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.07), 0 0 1px 0 rgba(0, 0, 0, 0.08);
  13. }
  14. .segmented-text-ellipsis {
  15. overflow: hidden;
  16. white-space: nowrap;
  17. text-overflow: ellipsis;
  18. word-break: keep-all;
  19. }
  20. .ant-segmented {
  21. box-sizing: border-box;
  22. margin: 0;
  23. padding: 0;
  24. color: rgba(0, 0, 0, 0.85);
  25. font-size: 14px;
  26. font-variant: tabular-nums;
  27. line-height: 1.5715;
  28. list-style: none;
  29. font-feature-settings: 'tnum';
  30. display: inline-block;
  31. padding: 2px;
  32. color: rgba(0, 0, 0, 0.65);
  33. background-color: rgba(0, 0, 0, 0.04);
  34. border-radius: 2px;
  35. transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  36. }
  37. .ant-segmented-group {
  38. position: relative;
  39. display: flex;
  40. align-items: stretch;
  41. justify-items: flex-start;
  42. width: 100%;
  43. }
  44. .ant-segmented.ant-segmented-block {
  45. display: flex;
  46. }
  47. .ant-segmented.ant-segmented-block .ant-segmented-item {
  48. flex: 1;
  49. min-width: 0;
  50. }
  51. .ant-segmented:not(.ant-segmented-disabled):hover,
  52. .ant-segmented:not(.ant-segmented-disabled):focus {
  53. background-color: rgba(0, 0, 0, 0.06);
  54. }
  55. .ant-segmented-item {
  56. position: relative;
  57. text-align: center;
  58. cursor: pointer;
  59. transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  60. }
  61. .ant-segmented-item-selected {
  62. background-color: #fff;
  63. border-radius: 2px;
  64. box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.07), 0 0 1px 0 rgba(0, 0, 0, 0.08);
  65. color: #262626;
  66. }
  67. .ant-segmented-item:hover,
  68. .ant-segmented-item:focus {
  69. color: #262626;
  70. }
  71. .ant-segmented-item-label {
  72. min-height: 28px;
  73. padding: 0 11px;
  74. line-height: 28px;
  75. overflow: hidden;
  76. white-space: nowrap;
  77. text-overflow: ellipsis;
  78. word-break: keep-all;
  79. }
  80. .ant-segmented-item-icon + * {
  81. margin-left: 6px;
  82. }
  83. .ant-segmented-item-input {
  84. position: absolute;
  85. top: 0;
  86. left: 0;
  87. width: 0;
  88. height: 0;
  89. opacity: 0;
  90. pointer-events: none;
  91. }
  92. .ant-segmented.ant-segmented-lg .ant-segmented-item-label {
  93. min-height: 36px;
  94. padding: 0 11px;
  95. font-size: 16px;
  96. line-height: 36px;
  97. }
  98. .ant-segmented.ant-segmented-sm .ant-segmented-item-label {
  99. min-height: 20px;
  100. padding: 0 7px;
  101. line-height: 20px;
  102. }
  103. .ant-segmented-item-disabled,
  104. .ant-segmented-item-disabled:hover,
  105. .ant-segmented-item-disabled:focus {
  106. color: rgba(0, 0, 0, 0.25);
  107. cursor: not-allowed;
  108. }
  109. .ant-segmented-thumb {
  110. background-color: #fff;
  111. border-radius: 2px;
  112. box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.07), 0 0 1px 0 rgba(0, 0, 0, 0.08);
  113. position: absolute;
  114. top: 0;
  115. left: 0;
  116. width: 0;
  117. height: 100%;
  118. padding: 4px 0;
  119. }
  120. .ant-segmented-thumb-motion-appear-active {
  121. transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  122. will-change: transform, width;
  123. }
  124. .ant-segmented.ant-segmented-rtl {
  125. direction: rtl;
  126. }
  127. .ant-segmented.ant-segmented-rtl .ant-segmented-item-icon {
  128. margin-right: 0;
  129. margin-left: 6px;
  130. }