-
Something I wonder now when I implemented Disqus is, is that "Comments" header above the comment section from Disqus itself, or does Material for MkDocs provide it? I would like to customize it a bit by adding the GitHub comment SVG to it. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
No, it's from the Material for MkDocs translations: |
Beta Was this translation helpful? Give feedback.
-
I still try to apply what you suggested @squidfunk but I'm not sure if I do anything right... If I understood you correctly would I f.e. apply this here? .md-typeset h2 > .disqus-comments::before {
background-color: rgb(255, 255, 255);
-webkit-mask-image: var(--md-text-icon--comment);
mask-image: var(--md-text-icon--comment);
} This should to my understanding override any h2 of md-typeset that has a div or similar with the disqus-comments class to display the icon before it? The HTML ( <!-- Disqus integration -->
{% if not page.is_homepage and disqus %}
<h2 id="__comments"><div class="disqus-comments">{{ lang.t("meta.comments") }}</div></h2> Trying stuff like applying the class to the header directly has no effect. Like saying that I should apply the masking is easy to say, but for a CSS beginner like me is that equal to saying that I should try and build a NASA rocket. |
Beta Was this translation helpful? Give feedback.
-
Solution(Because you can't accept comments to answers as solutions) <h2 id="__comments">
<span class="twemoji">
{% include ".icons/octicons/comment-discussion-24.svg" %}
</span>
{{ lang.t("meta.comments") }}
</h2> |
Beta Was this translation helpful? Give feedback.
-
I quickly ask this here because I don't think this is worth a own discussion. Can the footnotes section be overridden using theme extension? I would like to add a "References" header to it, so that it looks a bit more similar to Wikipedia's footnote setup. |
Beta Was this translation helpful? Give feedback.
Solution
(Because you can't accept comments to answers as solutions)