index.less 894 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }
  13. &:not(.ant-layout-sider-dark) {
  14. // border-right: 1px solid @border-color-light;
  15. box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
  16. }
  17. .ant-layout-sider-zero-width-trigger {
  18. top: 40%;
  19. z-index: 10;
  20. }
  21. &__darg-bar {
  22. position: absolute;
  23. top: 0;
  24. right: -2px;
  25. z-index: @side-drag-z-index;
  26. width: 2px;
  27. height: 100%;
  28. cursor: col-resize;
  29. border-top: none;
  30. border-bottom: none;
  31. &.hide {
  32. display: none;
  33. }
  34. &:hover {
  35. background: @primary-color;
  36. box-shadow: 0 0 4px 0 rgba(28, 36, 56, 0.15);
  37. }
  38. }
  39. }
  40. .ant-layout-sider-trigger {
  41. height: 36px;
  42. line-height: 36px;
  43. }