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> <script src="{{ base_url }}/assets/javascripts/modernizr-1df76c4e58.js"></script>
{% endblock %} {% endblock %}
{% block styles %} {% 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 %} {% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-8817cfa535.palette.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-8817cfa535.palette.css">
{% endif %} {% endif %}

View File

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

View File

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

View File

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

View File

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