index.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .wux-segment {
  2. display: flex;
  3. border-radius: 12rpx;
  4. overflow: hidden;
  5. min-height: 54rpx;
  6. opacity: 1;
  7. margin: 0 30rpx 30rpx
  8. }
  9. .wux-segment--disabled {
  10. opacity: .3
  11. }
  12. .wux-segment__item {
  13. display: flex;
  14. flex: 1;
  15. justify-content: center;
  16. align-items: center;
  17. color: #33cd5f;
  18. font-size: 28rpx;
  19. line-height: 1;
  20. transition: background .3s;
  21. position: relative;
  22. border: 2rpx solid #33cd5f;
  23. width: 100%;
  24. box-sizing: border-box;
  25. border-left-width: 0
  26. }
  27. .wux-segment__item:first-child {
  28. border-left-width: 2rpx;
  29. border-radius: 12rpx 0 0 12rpx
  30. }
  31. .wux-segment__item:last-child {
  32. border-radius: 0 12rpx 12rpx 0
  33. }
  34. .wux-segment__item--current {
  35. background: #33cd5f;
  36. color: #fff
  37. }
  38. .wux-segment--light .wux-segment__item {
  39. color: #ddd;
  40. border-color: #ddd
  41. }
  42. .wux-segment--light .wux-segment__item--current {
  43. background: #ddd;
  44. color: #fff
  45. }
  46. .wux-segment--stable .wux-segment__item {
  47. color: #ddd;
  48. border-color: #ddd
  49. }
  50. .wux-segment--stable .wux-segment__item--current {
  51. background: #ddd;
  52. color: #fff
  53. }
  54. .wux-segment--positive .wux-segment__item {
  55. color: #387ef5;
  56. border-color: #387ef5
  57. }
  58. .wux-segment--positive .wux-segment__item--current {
  59. background: #387ef5;
  60. color: #fff
  61. }
  62. .wux-segment--calm .wux-segment__item {
  63. color: #11c1f3;
  64. border-color: #11c1f3
  65. }
  66. .wux-segment--calm .wux-segment__item--current {
  67. background: #11c1f3;
  68. color: #fff
  69. }
  70. .wux-segment--assertive .wux-segment__item {
  71. color: #ef473a;
  72. border-color: #ef473a
  73. }
  74. .wux-segment--assertive .wux-segment__item--current {
  75. background: #ef473a;
  76. color: #fff
  77. }
  78. .wux-segment--balanced .wux-segment__item {
  79. color: #33cd5f;
  80. border-color: #33cd5f
  81. }
  82. .wux-segment--balanced .wux-segment__item--current {
  83. background: #33cd5f;
  84. color: #fff
  85. }
  86. .wux-segment--energized .wux-segment__item {
  87. color: #ffc900;
  88. border-color: #ffc900
  89. }
  90. .wux-segment--energized .wux-segment__item--current {
  91. background: #ffc900;
  92. color: #fff
  93. }
  94. .wux-segment--royal .wux-segment__item {
  95. color: #886aea;
  96. border-color: #886aea
  97. }
  98. .wux-segment--royal .wux-segment__item--current {
  99. background: #886aea;
  100. color: #fff
  101. }
  102. .wux-segment--dark .wux-segment__item {
  103. color: #444;
  104. border-color: #444
  105. }
  106. .wux-segment--dark .wux-segment__item--current {
  107. background: #444;
  108. color: #fff
  109. }