index.less 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @import (reference) '../../../design/index.less';
  2. .layout-sidebar {
  3. // overflow: hidden;
  4. &.fixed {
  5. position: fixed;
  6. top: 0;
  7. left: 0;
  8. height: 100%;
  9. }
  10. &.ant-layout-sider-dark {
  11. background: @sider-dark-bg-color;
  12. .ant-layout-sider-trigger {
  13. color: darken(@white, 25%);
  14. background: @trigger-dark-bg-color;
  15. &:hover {
  16. color: @white;
  17. background: @trigger-dark-hover-bg-color;
  18. }
  19. }
  20. }
  21. &:not(.ant-layout-sider-dark) {
  22. // box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
  23. .ant-layout-sider-trigger {
  24. color: @text-color-base;
  25. border-top: 1px solid @border-color-light;
  26. }
  27. }
  28. .ant-layout-sider-zero-width-trigger {
  29. top: 40%;
  30. z-index: 10;
  31. }
  32. &__darg-bar {
  33. position: absolute;
  34. top: 0;
  35. right: -2px;
  36. z-index: @side-drag-z-index;
  37. width: 2px;
  38. height: 100%;
  39. cursor: col-resize;
  40. border-top: none;
  41. border-bottom: none;
  42. &.hide {
  43. display: none;
  44. }
  45. &:hover {
  46. background: @primary-color;
  47. box-shadow: 0 0 4px 0 rgba(28, 36, 56, 0.15);
  48. }
  49. }
  50. & .ant-layout-sider-trigger {
  51. height: 36px;
  52. line-height: 36px;
  53. }
  54. }