You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

155 rivejä
3.0 KiB

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