mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed offset of search box when repo url is not set
This commit is contained in:
parent
42d208560f
commit
e5761ccfb1
File diff suppressed because one or more lines are too long
@ -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 %}
|
||||||
|
@ -34,13 +34,13 @@
|
|||||||
{% include "partials/search.html" %}
|
{% include "partials/search.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
{% if config.repo_url %}
|
||||||
<div class="md-header-nav__source">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
{% if config.repo_url %}
|
<div class="md-header-nav__source">
|
||||||
{% include "partials/source.html" %}
|
{% include "partials/source.html" %}
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,13 +78,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Repository containing source -->
|
<!-- Repository containing source -->
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
{% if config.repo_url %}
|
||||||
<div class="md-header-nav__source">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
{% if config.repo_url %}
|
<div class="md-header-nav__source">
|
||||||
{% include "partials/source.html" %}
|
{% include "partials/source.html" %}
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user