Fix search bar offset when there's no repository information

This commit is contained in:
squidfunk 2017-01-06 19:31:56 +01:00
parent 60624bfa82
commit d53945a89a
7 changed files with 11 additions and 13 deletions

View File

@ -20,7 +20,7 @@ are recommended to be used together with the Material theme:
``` yaml
markdown_extensions:
- pymdownx.betterem
- pymdownx.betterem(smart_enable=all)
- pymdownx.caret
- pymdownx.critic
- pymdownx.githubemoji

View File

@ -37,7 +37,7 @@
{% include "partials/fonts.html" %}
{% endblock %}
{% 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 %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
{% endif %}

View File

@ -38,12 +38,12 @@
{% endblock %}
</div>
<div class="md-flex__cell md-flex__cell--shrink">
{% if config.repo_url %}
<div class="md-header-nav__source">
{% if config.repo_url %}
{% include "partials/source.html" %}
</div>
{% endif %}
</div>
</div>
</div>
</nav>
</header>

View File

@ -20,8 +20,6 @@
/// DEALINGS
////
// postcss-bem-linter: define nav
// ----------------------------------------------------------------------------
// Rules
// ----------------------------------------------------------------------------

View File

@ -151,7 +151,7 @@
// [screen +]: Match content width
@include break-from-device(screen) {
width: 66.8rem;
width: 68.8rem;
}
}
}
@ -313,7 +313,7 @@
// [screen +]: Set absolute width to omit unnecessary reflow
@include break-from-device(screen) {
width: 66.8rem;
width: 68.8rem;
}
// [tablet landscape +]: Limit height to viewport

View File

@ -79,12 +79,12 @@
<!-- Repository containing source -->
<div class="md-flex__cell md-flex__cell--shrink">
{% if config.repo_url %}
<div class="md-header-nav__source">
{% if config.repo_url %}
{% include "partials/source.html" %}
</div>
{% endif %}
</div>
</div>
</div>
</nav>
</header>