Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

147 wiersze
2.7 KiB

  1. @use '../../_global/styles/mixins' as *;
  2. @use '../../_global/styles/vars' as *;
  3. .anchor-links {
  4. position: relative;
  5. margin: 48px 0;
  6. &.sticky {
  7. position: sticky;
  8. display: none !important;
  9. top: 99px;
  10. z-index: 10;
  11. height: 0;
  12. margin: 0 -10px;
  13. @include hide;
  14. &.show {
  15. @include show;
  16. }
  17. .anchors {
  18. margin: -1px 0 0;
  19. height: 55px;
  20. overflow: hidden;
  21. background-color: var(--color-background);
  22. transition: 0.3s ease;
  23. box-shadow: 0 5px 20px -5px rgba(0, 0, 0, 0), 0 0 0 10000px rgba(0, 0, 0, 0);
  24. &:hover {
  25. height: auto;
  26. box-shadow: 0 5px 20px -5px rgba(0, 0, 0, 0.2), 0 0 0 10000px rgba(0, 0, 0, 0.06);
  27. .anchors-title {
  28. display: none;
  29. }
  30. }
  31. }
  32. .anchors-title {
  33. display: flex;
  34. }
  35. a, .anchors-title {
  36. padding: 12px 25px 16px 52px;
  37. }
  38. .anchors-title, a.current {
  39. white-space: nowrap;
  40. overflow: hidden;
  41. text-overflow: ellipsis;
  42. }
  43. li:before {
  44. left: 12px;
  45. }
  46. }
  47. .anchors {
  48. padding: 0;
  49. margin: 0;
  50. list-style: none;
  51. border-bottom: 1px solid var(--color-surface-inset);
  52. li {
  53. position: relative;
  54. border-top: 1px solid var(--color-surface-inset);
  55. line-height: 1.2;
  56. &:before {
  57. @include icon-ankerlink;
  58. font-family: "Icons", sans-serif;
  59. position: absolute;
  60. font-size: 30px;
  61. line-height: 1;
  62. left: 3px;
  63. top: 50%;
  64. margin-top: -15px;
  65. color: var(--color-text-microsite-secondary);
  66. z-index: 1;
  67. pointer-events: none;
  68. }
  69. &:hover {
  70. &:before {
  71. color: var(--color-text-accent);
  72. }
  73. }
  74. }
  75. a, .anchors-title {
  76. position: relative;
  77. display: flex;
  78. padding: 14px 15px 14px 42px;
  79. align-items: center;
  80. min-height: 55px;
  81. background-color: var(--color-background);
  82. margin: 0;
  83. }
  84. .anchors-title {
  85. display: none;
  86. }
  87. a {
  88. transition: 0.3s ease;
  89. font-weight: 400;
  90. @include focus-visible;
  91. &:before {
  92. content: '';
  93. @include full-size;
  94. background-color: var(--swatches-primary-100);
  95. opacity: 0;
  96. transition: 0.3s ease;
  97. z-index: -1;
  98. }
  99. &:hover {
  100. &:before {
  101. opacity: 0.3;
  102. }
  103. }
  104. }
  105. }
  106. .anchors li.anchors-title, .anchors li.anchors-title {
  107. margin: 0;
  108. &:after {
  109. display: none;
  110. }
  111. }
  112. }
  113. h2.has-anchor {
  114. position: relative;
  115. font-size: var(--font-size-h2);
  116. .anchor {
  117. position: absolute;
  118. top: -140px;
  119. @media(max-width: 767px) {
  120. top: -100px;
  121. }
  122. }
  123. }