diff --git a/share/jupyterhub/static/less/page.less b/share/jupyterhub/static/less/page.less index 6193b357..92b74a3b 100644 --- a/share/jupyterhub/static/less/page.less +++ b/share/jupyterhub/static/less/page.less @@ -1,8 +1,30 @@ +@import "../components/bootstrap/less/variables.less"; + @logo-height: 28px; -.jpy-logo { - height: @logo-height; - margin-top: (@navbar-height - @logo-height) / 2; +#jupyterhub-logo { + @media (max-width: @grid-float-breakpoint) { + // same length as the navbar-toggle element, displayed on responsive mode + margin-left: 15px; + } + .jpy-logo { + height: @logo-height; + 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 { diff --git a/share/jupyterhub/templates/page.html b/share/jupyterhub/templates/page.html index bc701ce4..f714d606 100644 --- a/share/jupyterhub/templates/page.html +++ b/share/jupyterhub/templates/page.html @@ -106,12 +106,14 @@ {% endblock %} + {% if user %} + {% endif %}