From c2b494f7026131f18c77563c4b4e044a5cf24dd0 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 8 Feb 2017 14:19:35 +0100 Subject: [PATCH] put nav in the header reduce custom css, use more bootstrap variables. Admin link is now in the heading rather than the list of big buttons --- share/jupyter/hub/static/less/page.less | 19 ++----- share/jupyter/hub/static/less/variables.less | 3 +- share/jupyter/hub/templates/home.html | 3 -- share/jupyter/hub/templates/page.html | 54 +++++++++++++++----- 4 files changed, 47 insertions(+), 32 deletions(-) diff --git a/share/jupyter/hub/static/less/page.less b/share/jupyter/hub/static/less/page.less index e546acce..74eaf0ef 100644 --- a/share/jupyter/hub/static/less/page.less +++ b/share/jupyter/hub/static/less/page.less @@ -1,26 +1,15 @@ +@logo-height: 28px; + .jpy-logo { - height: 28px; - margin-top: 6px; + height: @logo-height; + margin-top: (@navbar-height - @logo-height) / 2; } #header { border-bottom: 1px solid #e7e7e7; - height: 40px; } .hidden { display: none; } -.dropdown.navbar-btn{ - padding:0 5px 0 0; -} - -#login_widget{ - - & .navbar-btn.btn-sm { - margin-top: 5px; - margin-bottom: 5px; - } - -} diff --git a/share/jupyter/hub/static/less/variables.less b/share/jupyter/hub/static/less/variables.less index 89b45e53..d366faaf 100644 --- a/share/jupyter/hub/static/less/variables.less +++ b/share/jupyter/hub/static/less/variables.less @@ -1,7 +1,8 @@ @border-radius-small: 2px; @border-radius-base: 2px; @border-radius-large: 3px; -@navbar-height: 20px; +@navbar-height: 40px; +@grid-float-breakpoint: @screen-xs-min; @jupyter-orange: #F37524; @jupyter-red: #E34F21; diff --git a/share/jupyter/hub/templates/home.html b/share/jupyter/hub/templates/home.html index 30bd88a3..a197e789 100644 --- a/share/jupyter/hub/templates/home.html +++ b/share/jupyter/hub/templates/home.html @@ -20,9 +20,6 @@ {% endif %} My Server - {% if user.admin %} - Admin - {% endif %} diff --git a/share/jupyter/hub/templates/page.html b/share/jupyter/hub/templates/page.html index d0c1eae0..d2c29c59 100644 --- a/share/jupyter/hub/templates/page.html +++ b/share/jupyter/hub/templates/page.html @@ -35,6 +35,8 @@ {% endblock %} + +