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.
 
 
 
 

157 wiersze
2.8 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  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: white;
  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(--theme-color-primary-dimmed-03);
  52. li {
  53. position: relative;
  54. border-top: 1px solid var(--theme-color-primary-dimmed-03);
  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(--theme-color-secondary-microsite);
  66. z-index: 1;
  67. pointer-events: none;
  68. }
  69. }
  70. a, .anchors-title {
  71. position: relative;
  72. display: flex;
  73. padding: 14px 15px 14px 42px;
  74. align-items: center;
  75. min-height: 55px;
  76. background-color: transparent;
  77. margin: 0;
  78. }
  79. .anchors-title {
  80. display: none;
  81. }
  82. a {
  83. transition: 0.3s ease;
  84. font-weight: 400;
  85. @include focus-visible;
  86. &:before {
  87. content: '';
  88. @include full-size;
  89. background-color: var(--theme-color-primary-dimmed-04);
  90. opacity: 0;
  91. transition: 0.3s ease;
  92. z-index: -1;
  93. }
  94. &:hover {
  95. color: var(--theme-color-link-hover);
  96. &:before {
  97. opacity: 0.3;
  98. }
  99. }
  100. }
  101. }
  102. .anchors li.anchors-title, .anchors li.anchors-title {
  103. margin: 0;
  104. &:after {
  105. display: none;
  106. }
  107. }
  108. }
  109. /*
  110. .main-col .anchors li:not(.anchors-title),.action-col .anchors li:not(.anchors-title) {
  111. padding: 0;
  112. margin: 0;
  113. &:after {
  114. display: none;
  115. }
  116. }
  117. */
  118. h2.has-anchor {
  119. position: relative;
  120. font-size: var(--font-size-h2);
  121. .anchor {
  122. position: absolute;
  123. top: -140px;
  124. @media(max-width: 767px) {
  125. top: -100px;
  126. }
  127. }
  128. }