mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
Merge pull request #3103 from kinow/responsive-issues
Hide hamburger button menu in mobile/responsive mode and fix other minor issues
This commit is contained in:
@@ -1,9 +1,31 @@
|
|||||||
|
@import "../components/bootstrap/less/variables.less";
|
||||||
|
|
||||||
@logo-height: 28px;
|
@logo-height: 28px;
|
||||||
|
|
||||||
|
#jupyterhub-logo {
|
||||||
|
@media (max-width: @grid-float-breakpoint) {
|
||||||
|
// same length as the navbar-toggle element, displayed on responsive mode
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
.jpy-logo {
|
.jpy-logo {
|
||||||
height: @logo-height;
|
height: @logo-height;
|
||||||
margin-top: (@navbar-height - @logo-height) / 2;
|
margin-top: (@navbar-height - @logo-height) / 2;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-right {
|
||||||
|
li {
|
||||||
|
span {
|
||||||
|
// same as .nav > li > a from bootstrap, but applied to the span[id="login_widget"]
|
||||||
|
// or any other span that matches .nav > li > span, but only in responsive mode
|
||||||
|
@media (max-width: @grid-float-breakpoint) {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
padding: 10px 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
border-bottom: 1px solid #e7e7e7;
|
border-bottom: 1px solid #e7e7e7;
|
||||||
|
@@ -106,12 +106,14 @@
|
|||||||
<a href="{{logo_url or base_url}}"><img src='{{base_url}}logo' alt='JupyterHub' class='jpy-logo' title='Home'/></a>
|
<a href="{{logo_url or base_url}}"><img src='{{base_url}}logo' alt='JupyterHub' class='jpy-logo' title='Home'/></a>
|
||||||
</span>
|
</span>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% if user %}
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#thenavbar" aria-expanded="false">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#thenavbar" aria-expanded="false">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="thenavbar">
|
<div class="collapse navbar-collapse" id="thenavbar">
|
||||||
|
Reference in New Issue
Block a user