index.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @import '../common/abstracts/variable';
  2. @import '../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(sort-button) {
  5. @include e(wrapper) {
  6. color: $-dark-color;
  7. }
  8. }
  9. }
  10. @include b(sort-button) {
  11. display: inline-block;
  12. height: $-sort-button-height;
  13. line-height: $-sort-button-height;
  14. @include m(line) {
  15. .wd-sort-button__left {
  16. &::after {
  17. position: absolute;
  18. content: '';
  19. width: 19px;
  20. height: 3px;
  21. bottom: 6px;
  22. left: 50%;
  23. transform: translate(-50%, 0);
  24. background: $-sort-button-line-color;
  25. border-radius: calc($-sort-button-line-height / 2);
  26. transition: opacity .15s;
  27. opacity: 0;
  28. }
  29. &.is-active::after {
  30. opacity: 1;
  31. }
  32. }
  33. }
  34. @include e(wrapper) {
  35. font-size: $-sort-button-fs;
  36. color: $-sort-button-color;
  37. word-break: break-all;
  38. white-space: nowrap;
  39. }
  40. @include e(left) {
  41. position: relative;
  42. display: inline-block;
  43. vertical-align: middle;
  44. @include when(active) {
  45. font-weight: $-fw-medium;
  46. .wd-sort-button__right {
  47. justify-content: center;
  48. }
  49. }
  50. }
  51. @include e(right) {
  52. display: inline-block;
  53. min-width: 14px;
  54. margin-left: 2px;
  55. vertical-align: middle;
  56. line-height: 1.1;
  57. @include when(active) {
  58. :deep(.wd-sort-button__icon-up),
  59. :deep(.wd-sort-button__icon-down) {
  60. transform: scale(calc((10 / 14)));
  61. }
  62. }
  63. }
  64. @include edeep(icon-up) {
  65. display: block !important;
  66. line-height: 1.1;
  67. transform: scale(calc((10 / 14))) translate(0, 7px);
  68. }
  69. @include edeep(icon-down) {
  70. display: block !important;
  71. line-height: 1.1;
  72. transform: scale(calc((10 / 14))) translate(0, -7px);
  73. }
  74. }