Sidebar.less 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @import "~assets/less/variable";
  2. .sidebar {
  3. width: 88px;
  4. background-color: @body-background;
  5. background-color: #001529;
  6. box-shadow: 2px 0px 6px 0px rgba(0, 21, 41, 0.12);
  7. flex-shrink: 0;
  8. .option {
  9. //height: 64px;
  10. text-align: center;
  11. cursor: pointer;
  12. color: #fff;
  13. &.active {
  14. background-color: @body-bg;
  15. background-color: lighten(#001529, 3%);
  16. color: #fff;
  17. }
  18. &:hover:not(.active) {
  19. background-color: lighten(#001529, 3%);
  20. }
  21. a {
  22. color: inherit;
  23. display: block;
  24. > div {
  25. display: flex;
  26. flex-direction: column;
  27. align-items: center;
  28. justify-content: center;
  29. padding: 24px 0;
  30. > span {
  31. display: flex;
  32. align-items: center;
  33. &:first-child,
  34. &:only-child {
  35. height: 30px;
  36. }
  37. &:nth-child(2) {
  38. padding: 8px 0;
  39. }
  40. }
  41. }
  42. &:focus {
  43. text-decoration: none;
  44. }
  45. }
  46. i {
  47. font-size: 30px;
  48. }
  49. img {
  50. height: 30px;
  51. }
  52. }
  53. }