mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Fixed search field alignment in tablet landscape mode
This commit is contained in:
parent
185147684c
commit
50ea834759
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -53,7 +53,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/application.3020aac5.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/application.cd328f5c.css' | url }}">
|
||||
{% if palette.primary or palette.accent %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/application-palette.224b79ff.css' | url }}">
|
||||
{% endif %}
|
||||
@ -190,7 +190,7 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/application.48c2c9de.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/application.0caf228d.js' | url }}"></script>
|
||||
{% if lang.t("search.language") != "en" %}
|
||||
{% set languages = lang.t("search.language").split(",") %}
|
||||
{% if languages | length and languages[0] != "" %}
|
||||
|
@ -201,13 +201,10 @@
|
||||
display: block;
|
||||
width: px2rem(230px);
|
||||
max-width: px2rem(230px);
|
||||
margin-left: px2rem(28px);
|
||||
padding-right: px2rem(12px);
|
||||
|
||||
// Adjust for RTL languages
|
||||
[dir="rtl"] & {
|
||||
margin-right: px2rem(28px);
|
||||
margin-left: initial;
|
||||
padding-right: initial;
|
||||
padding-left: px2rem(12px);
|
||||
}
|
||||
|
@ -182,6 +182,7 @@ $md-toggle__search--checked:
|
||||
@include break-from-device(tablet landscape) {
|
||||
position: relative;
|
||||
width: px2rem(230px);
|
||||
margin-right: px2rem(20px);
|
||||
padding: px2rem(2px) 0;
|
||||
float: right;
|
||||
transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1);
|
||||
@ -189,6 +190,18 @@ $md-toggle__search--checked:
|
||||
// Adjust for RTL languages
|
||||
[dir="rtl"] & {
|
||||
float: left;
|
||||
margin-left: px2rem(20px);
|
||||
margin-right: initial;
|
||||
}
|
||||
}
|
||||
|
||||
// [screen +]: Increase spacing of search bar
|
||||
@include break-from-device(screen) {
|
||||
margin-right: px2rem(28px);
|
||||
|
||||
// Adjust for RTL languages
|
||||
[dir="rtl"] & {
|
||||
margin-left: px2rem(28px);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user