index.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @import './../common/abstracts/_mixin.scss';
  2. @import './../common/abstracts/variable.scss';
  3. .wot-theme-dark {
  4. @include b(segmented) {
  5. background: $-dark-background2;
  6. @include e(item) {
  7. color: $-dark-color3;
  8. @include when(active) {
  9. color: $-dark-color;
  10. @include when(disabled) {
  11. color: $-dark-color3;
  12. }
  13. }
  14. @include when(disabled) {
  15. color: $-dark-color-gray;
  16. }
  17. @include m(active) {
  18. background-color: $-color-theme;
  19. @include when(disabled) {
  20. opacity: 0.6;
  21. }
  22. }
  23. }
  24. }
  25. }
  26. @include b(segmented) {
  27. position: relative;
  28. display: flex;
  29. align-items: stretch;
  30. justify-items: flex-start;
  31. width: 100%;
  32. background-color: $-segmented-item-bg-color;
  33. padding: $-segmented-padding;
  34. border-radius: 4px;
  35. box-sizing: border-box;
  36. @include e(item) {
  37. position: relative;
  38. text-align: center;
  39. border-radius: 4px;
  40. flex: 1;
  41. min-width: 0;
  42. z-index: 1;
  43. min-height: 28px;
  44. line-height: 28px;
  45. padding: 0 12px;
  46. font-size: 14px;
  47. color: $-segmented-item-color;
  48. font-weight: 400;
  49. @include when(active) {
  50. font-weight: 550;
  51. }
  52. @include when(large) {
  53. min-height: 32px;
  54. line-height: 32px;
  55. padding: 0 12px;
  56. font-size: 16px;
  57. }
  58. @include when(small) {
  59. min-height: 24px;
  60. line-height: 24px;
  61. padding: 0 7px;
  62. font-size: 12px;
  63. }
  64. @include when(disabled) {
  65. cursor: no-drop;
  66. color: $-segmented-item-disabled-color;
  67. }
  68. @include m(active) {
  69. background-color: $-segmented-item-acitve-bg;
  70. border-radius: 4px;
  71. height: calc(100% - $-segmented-padding * 2);
  72. @include when(disabled) {
  73. opacity: 0.8;
  74. }
  75. }
  76. }
  77. @include e(item-label) {
  78. overflow: hidden;
  79. white-space: nowrap;
  80. text-overflow: ellipsis;
  81. }
  82. }