.footnote { @extend %link-unstyled; @extend %heading-font-regular; line-height: 1; color: $footnote-link-color; } .footnotes__list { @extend %list-unstyled; counter-reset: number; li, li > p { @extend %heading-font-regular; margin-bottom: $spacer-sm; line-height: $paragraph-line-height; font-size: $font-size-xxs; } li { position: relative; padding-left: $spacer-sm; a { @extend %link-unstyled; color: $footnote-link-color; word-break: break-all; } &::before { @extend %heading-font-bold; position: absolute; left: -.5rem; width: $spacer-sm; text-align: right; color: $footnote-index-color; content: counter(number); counter-increment: number; } } } .tooltip { box-shadow: 1px 0 20px 1px $tooltip-shadow-color; background-color: $tooltip-background-color; padding: $spacer-lg $spacer-md; max-width: 90%; & p { @extend %heading-font-regular; margin: 0; font-size: $font-size-xxs; } } @media screen and (min-width: $grid-breakpoint-md) { .footnotes__list { li, li > p { font-size: $font-size-base; } } .tooltip { max-width: 40%; & p { font-size: $font-size-base; } } }