Fixed offset of search box when repo url is not set

This commit is contained in:
squidfunk 2017-06-06 17:48:39 +02:00 committed by Martin Donath
parent 42d208560f
commit e5761ccfb1
6 changed files with 12 additions and 13 deletions

File diff suppressed because one or more lines are too long

View File

@ -38,7 +38,7 @@
<script src="{{ base_url }}/assets/javascripts/modernizr-1df76c4e58.js"></script>
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-f98ca285f9.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-acc56dad49.css">
{% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-8817cfa535.palette.css">
{% endif %}

View File

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

View File

@ -150,6 +150,7 @@
display: block;
width: 23rem;
max-width: 23rem;
margin-left: 2.8rem;
padding-right: 1.2rem;
}
}

View File

@ -42,7 +42,6 @@ $md-toggle__search--checked:
// [tablet landscape +]: Header-embedded search
@include break-from-device(tablet landscape) {
margin-right: 2.8rem;
padding: 0.4rem;
}

View File

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