index.scss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @import '../common/abstracts/variable';
  2. @import '../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(sidebar-item) {
  5. background: $-dark-background2;
  6. color: $-dark-color;
  7. &:active {
  8. background-color: $-dark-background4;
  9. }
  10. @include m(active) {
  11. background: $-dark-background;
  12. color: $-sidebar-active-color;
  13. }
  14. @include m(disabled) {
  15. color: $-dark-color-gray;
  16. &:active {
  17. background-color: $-dark-background2;
  18. }
  19. }
  20. }
  21. }
  22. @include b(sidebar-item) {
  23. display: flex;
  24. align-items: center;
  25. justify-content: center;
  26. position: relative;
  27. padding: 32rpx;
  28. font-size: $-sidebar-font-size;
  29. color: $-sidebar-color;
  30. background: $-sidebar-bg;
  31. min-height: $-sidebar-item-height;
  32. box-sizing: border-box;
  33. white-space: wrap;
  34. line-height: $-sidebar-item-line-height;
  35. &:active {
  36. background-color: $-sidebar-hover-bg;
  37. }
  38. @include m(active) {
  39. font-weight: 600;
  40. background: $-sidebar-active-bg;
  41. color: $-sidebar-active-color;
  42. &::before {
  43. position: absolute;
  44. top: 50%;
  45. left: 0;
  46. width: $-sidebar-active-border-width;
  47. height: $-sidebar-active-border-height;
  48. background: $-sidebar-active-color;
  49. transform: translateY(-50%);
  50. content: '';
  51. border-radius: $-sidebar-active-border-width;
  52. }
  53. &:active {
  54. background-color: transparent;
  55. }
  56. }
  57. @include m(prefix) {
  58. border-bottom-right-radius: $-sidebar-border-radius;
  59. }
  60. @include m(suffix) {
  61. border-top-right-radius: $-sidebar-border-radius;
  62. }
  63. @include m(disabled) {
  64. color: $-sidebar-disabled-color;
  65. cursor: not-allowed;
  66. &:active {
  67. background-color: $-sidebar-bg;
  68. }
  69. }
  70. @include edeep(badge) {
  71. z-index: 2;
  72. word-break: break-all;
  73. }
  74. @include edeep(icon) {
  75. font-size: $-sidebar-icon-size;
  76. margin-right: 2px;
  77. }
  78. }