mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed footnote backref target offsets regression
This commit is contained in:
parent
872a953ee0
commit
0ff0b46c7a
@ -35,7 +35,7 @@ declare module "js-cookie" {
|
|||||||
/* Type: Cookie */
|
/* Type: Cookie */
|
||||||
declare type Cookie = {
|
declare type Cookie = {
|
||||||
getJSON(json: string): Object,
|
getJSON(json: string): Object,
|
||||||
set(key: string, value: string, options?: Options): string
|
set(key: string, value: Array<string>, options?: Options): string
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Exports */
|
/* Exports */
|
||||||
|
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
|||||||
<script src="{{ base_url }}/assets/javascripts/modernizr-e826f8942a.js"></script>
|
<script src="{{ base_url }}/assets/javascripts/modernizr-e826f8942a.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-408828a02a.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-1fd0ca4de2.css">
|
||||||
{% if config.extra.palette %}
|
{% if config.extra.palette %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-23f75ab9c7.palette.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-23f75ab9c7.palette.css">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -88,6 +88,9 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div class="md-container">
|
<div class="md-container">
|
||||||
{% set feature = config.extra.get("feature", {}) %}
|
{% set feature = config.extra.get("feature", {}) %}
|
||||||
|
{% if feature.hero %}
|
||||||
|
{% include "partials/hero.html" %}
|
||||||
|
{% endif %}
|
||||||
{% if feature.tabs %}
|
{% if feature.tabs %}
|
||||||
{% include "partials/tabs.html" %}
|
{% include "partials/tabs.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -27,8 +27,9 @@
|
|||||||
// Scoped in typesetted content to match specificity of regular content
|
// Scoped in typesetted content to match specificity of regular content
|
||||||
.md-typeset {
|
.md-typeset {
|
||||||
|
|
||||||
// All superscripts with a footnote reference or back reference
|
// All footnote references or back references
|
||||||
sup[id^="fnref:"] {
|
[id^="fn:"],
|
||||||
|
[id^="fnref:"] {
|
||||||
|
|
||||||
// Add spacing to anchor for offset
|
// Add spacing to anchor for offset
|
||||||
&::before {
|
&::before {
|
||||||
@ -105,7 +106,7 @@
|
|||||||
vertical-align: -0.5rem;
|
vertical-align: -0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Footnote back-reference
|
// Footnote back reference
|
||||||
.footnote-backref {
|
.footnote-backref {
|
||||||
@extend %md-icon;
|
@extend %md-icon;
|
||||||
|
|
||||||
|
@ -181,6 +181,13 @@
|
|||||||
<!-- Container, necessary for web-application context -->
|
<!-- Container, necessary for web-application context -->
|
||||||
<div class="md-container">
|
<div class="md-container">
|
||||||
{% set feature = config.extra.get("feature", {}) %}
|
{% set feature = config.extra.get("feature", {}) %}
|
||||||
|
|
||||||
|
<!-- Hero banner -->
|
||||||
|
{% if feature.hero %}
|
||||||
|
{% include "partials/hero.html" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<!-- Tabs with outline -->
|
||||||
{% if feature.tabs %}
|
{% if feature.tabs %}
|
||||||
{% include "partials/tabs.html" %}
|
{% include "partials/tabs.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user