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 ``` yaml
markdown_extensions: markdown_extensions:
- pymdownx.betterem - pymdownx.betterem(smart_enable=all)
- pymdownx.caret - pymdownx.caret
- pymdownx.critic - pymdownx.critic
- pymdownx.githubemoji - pymdownx.githubemoji

View File

@@ -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 %}

View File

@@ -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>

View File

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

View File

@@ -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

View File

@@ -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>