mirror of https://github.com/astral-sh/uv
Tweaks for mobile
This commit is contained in:
parent
f9e38f02de
commit
94a7139935
|
|
@ -29,6 +29,9 @@
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Replace the mkdocs header entirely to look more like Mintlify's theme
|
||||||
|
-->
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<header class="md-header md-header--shadow" data-md-component="header">
|
<header class="md-header md-header--shadow" data-md-component="header">
|
||||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||||
|
|
@ -45,8 +48,10 @@
|
||||||
<!-- Branding text -->
|
<!-- Branding text -->
|
||||||
<div class="md-header__branding">
|
<div class="md-header__branding">
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<span class="md-header__branding-text"><span class="md-header__branding-name">uv</span>
|
<span class="md-header__branding-text">
|
||||||
Documentation</span>
|
<span class="md-header__branding-name">uv</span>
|
||||||
|
Documentation
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -268,6 +268,8 @@ modifications */
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Styling for the custom header */
|
||||||
|
|
||||||
/* Discord icon-only button */
|
/* Discord icon-only button */
|
||||||
.md-header__nav-link--icon {
|
.md-header__nav-link--icon {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
@ -510,11 +512,6 @@ modifications */
|
||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide the search modal's button that appears in the header */
|
|
||||||
.md-search__button {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Dark mode search bar */
|
/* Dark mode search bar */
|
||||||
[data-md-color-scheme="astral-dark"] .md-header__search-input {
|
[data-md-color-scheme="astral-dark"] .md-header__search-input {
|
||||||
background-color: var(--md-code-bg-color);
|
background-color: var(--md-code-bg-color);
|
||||||
|
|
@ -559,6 +556,12 @@ modifications */
|
||||||
|
|
||||||
/* Refine header layout for centered search */
|
/* Refine header layout for centered search */
|
||||||
@media screen and (min-width: 76.25em) {
|
@media screen and (min-width: 76.25em) {
|
||||||
|
|
||||||
|
/* Hide the search modal's button that appears in the header */
|
||||||
|
.md-search__button {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.md-header__inner {
|
.md-header__inner {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0 1.5rem;
|
padding: 0 1.5rem;
|
||||||
|
|
@ -626,7 +629,22 @@ modifications */
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remove gaps, we'll space these manually next */
|
||||||
|
.md-header__inner {
|
||||||
|
gap: 0rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Nav links aligned to the right */
|
||||||
.md-header__nav-links {
|
.md-header__nav-links {
|
||||||
order: 5;
|
margin-left: auto;
|
||||||
|
order: 10;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Position color palette toggle */
|
||||||
|
.md-header__option {
|
||||||
|
order: 11;
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue