智慧水务管理系统 - 精河县供水工程综合管理平台

anchor.scss 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @use 'sass:map';
  2. @use 'mixins/mixins' as *;
  3. @use 'mixins/var' as *;
  4. @use 'common/var' as *;
  5. @include b(anchor) {
  6. @include set-component-css-var('anchor', $anchor);
  7. position: relative;
  8. background-color: getCssVar('anchor-bg-color');
  9. @include e(marker) {
  10. position: absolute;
  11. background-color: getCssVar('anchor-marker-bg-color');
  12. border-radius: 4px;
  13. opacity: 0;
  14. z-index: 0;
  15. }
  16. &.#{$namespace}-anchor--vertical {
  17. @include e(marker) {
  18. width: 4px;
  19. height: 14px;
  20. top: 8px;
  21. left: 0;
  22. transition:
  23. top 0.25s ease-in-out,
  24. opacity 0.25s;
  25. }
  26. @include e(list) {
  27. padding-left: getCssVar('anchor-padding-indent');
  28. }
  29. &.#{$namespace}-anchor--underline {
  30. &::before {
  31. position: absolute;
  32. left: 0;
  33. width: 2px;
  34. height: 100%;
  35. background-color: rgba(5, 5, 5, 0.06);
  36. content: '';
  37. }
  38. @include e(marker) {
  39. width: 2px;
  40. border-radius: unset;
  41. }
  42. }
  43. }
  44. &.#{$namespace}-anchor--horizontal {
  45. @include e(marker) {
  46. height: 2px;
  47. width: 20px;
  48. bottom: 0;
  49. transition:
  50. left 0.25s ease-in-out,
  51. opacity 0.25s,
  52. width 0.25s;
  53. }
  54. @include e(list) {
  55. display: flex;
  56. padding-bottom: 4px;
  57. @include e(item) {
  58. padding-left: 16px;
  59. &:first-child {
  60. padding-left: 0;
  61. }
  62. }
  63. }
  64. &.#{$namespace}-anchor--underline {
  65. &::before {
  66. position: absolute;
  67. bottom: 0;
  68. width: 100%;
  69. height: 2px;
  70. background-color: rgba(5, 5, 5, 0.06);
  71. content: '';
  72. }
  73. @include e(marker) {
  74. height: 2px;
  75. border-radius: unset;
  76. }
  77. }
  78. }
  79. }