mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fix search bar offset when there's no repository information
This commit is contained in:
@@ -20,7 +20,7 @@ are recommended to be used together with the Material theme:
|
|||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- pymdownx.betterem
|
- pymdownx.betterem(smart_enable=all)
|
||||||
- pymdownx.caret
|
- pymdownx.caret
|
||||||
- pymdownx.critic
|
- pymdownx.critic
|
||||||
- pymdownx.githubemoji
|
- pymdownx.githubemoji
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -37,7 +37,7 @@
|
|||||||
{% include "partials/fonts.html" %}
|
{% include "partials/fonts.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-d8a9749564.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-782a60368a.css">
|
||||||
{% if config.extra.palette %}
|
{% if config.extra.palette %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -38,11 +38,11 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
{% if config.repo_url %}
|
|
||||||
<div class="md-header-nav__source">
|
<div class="md-header-nav__source">
|
||||||
{% include "partials/source.html" %}
|
{% if config.repo_url %}
|
||||||
|
{% include "partials/source.html" %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
// postcss-bem-linter: define nav
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Rules
|
// Rules
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
|
|
||||||
// [screen +]: Match content width
|
// [screen +]: Match content width
|
||||||
@include break-from-device(screen) {
|
@include break-from-device(screen) {
|
||||||
width: 66.8rem;
|
width: 68.8rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -313,7 +313,7 @@
|
|||||||
|
|
||||||
// [screen +]: Set absolute width to omit unnecessary reflow
|
// [screen +]: Set absolute width to omit unnecessary reflow
|
||||||
@include break-from-device(screen) {
|
@include break-from-device(screen) {
|
||||||
width: 66.8rem;
|
width: 68.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [tablet landscape +]: Limit height to viewport
|
// [tablet landscape +]: Limit height to viewport
|
||||||
|
|||||||
@@ -79,11 +79,11 @@
|
|||||||
|
|
||||||
<!-- Repository containing source -->
|
<!-- Repository containing source -->
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
{% if config.repo_url %}
|
|
||||||
<div class="md-header-nav__source">
|
<div class="md-header-nav__source">
|
||||||
{% include "partials/source.html" %}
|
{% if config.repo_url %}
|
||||||
|
{% include "partials/source.html" %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user