In my document I want all my footnotes themselves (i.e. the "extra" content that is floated to appear in the @footnote region) to have the same styling. But the footnote calls come from a variety of places: narrative content, figure captions, headings, etc.
This seems to present a bit of a conflict. I am using the ± the following LESS code to style the footnote and the call:
Where the `.reset-text()` helper expands to a bunch of font-/word-/line-/text- properties to undo any troublesome styling that might carry over (e.g. `font-style: normal; text-decoration: none;`…) and the `.footnote-super()` is basically just:
Now the problem is the seemingly distinct `.pdf-footnote` and `::footnote-call` selectors are actually related; the latter is basically like a `.pdf-footnote::before` in that all the style rules for the footnote content get inherited by its call pseudo-element as well!
So rather than the footnote call having a size relative `0.6em` to its surrounding text, and inheriting *that* font-family/color/etc. the call inherits instead from the *reset* footnote content. So a footnote call on say a large 16pt header ends up not being ~10pts but rather more like 4pts (!! 60% of the content's 7pts) …and is grey instead of matching the headers spot color, etc.
Is there any way to avoid or workaround this situation, so that my footnotes can be consistently typeset together while their individual calls remain typeset relative to what they are originally annotating?
This seems to present a bit of a conflict. I am using the ± the following LESS code to style the footnote and the call:
.pdf-footnote {
.reset-text();
font-family: @proxima;
font-size: 7pt;
color: grey;
}
::footnote-call {
content: attr(data-counter);
.footnote-super();
}
Where the `.reset-text()` helper expands to a bunch of font-/word-/line-/text- properties to undo any troublesome styling that might carry over (e.g. `font-style: normal; text-decoration: none;`…) and the `.footnote-super()` is basically just:
.footnote-super() {
vertical-align: super;
font-size: 0.6em;
line-height: 0;
}
Now the problem is the seemingly distinct `.pdf-footnote` and `::footnote-call` selectors are actually related; the latter is basically like a `.pdf-footnote::before` in that all the style rules for the footnote content get inherited by its call pseudo-element as well!
So rather than the footnote call having a size relative `0.6em` to its surrounding text, and inheriting *that* font-family/color/etc. the call inherits instead from the *reset* footnote content. So a footnote call on say a large 16pt header ends up not being ~10pts but rather more like 4pts (!! 60% of the content's 7pts) …and is grey instead of matching the headers spot color, etc.
Is there any way to avoid or workaround this situation, so that my footnotes can be consistently typeset together while their individual calls remain typeset relative to what they are originally annotating?