anchor.scss 902 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @use '../helpers/baseMixin.scss';
  2. .vxe-anchor {
  3. position: relative;
  4. color: var(--vxe-ui-font-color);
  5. font-family: var(--vxe-ui-font-family);
  6. }
  7. .vxe-anchor--marker {
  8. position: absolute;
  9. left: 0;
  10. top: 0;
  11. width: 0.2em;
  12. height: 1.5em;
  13. padding: 0.25em 0;
  14. @include baseMixin.createAnimationTransition(all, 0.35s);
  15. &::before {
  16. display: block;
  17. content: "";
  18. height: 100%;
  19. width: 100%;
  20. border-radius: 1em;
  21. background-color: var(--vxe-ui-anchor-link-active-color);
  22. }
  23. }
  24. .vxe-anchor-link {
  25. position: relative;
  26. padding-left: 0.6em;
  27. &.is--active {
  28. & > .vxe-anchor-link--item {
  29. color: var(--vxe-ui-anchor-link-active-color);
  30. }
  31. }
  32. }
  33. .vxe-anchor-link--item {
  34. display: block;
  35. height: 1.5em;
  36. line-height: 1.5em;
  37. overflow: hidden;
  38. text-overflow: ellipsis;
  39. white-space: nowrap;
  40. cursor: pointer;
  41. color: var(--vxe-ui-anchor-link-color);
  42. }