From 2aab21cccf7e0f2ef78cdba9830cf63f098b90f8 Mon Sep 17 00:00:00 2001 From: Hongwei Date: Wed, 20 Oct 2021 14:02:42 +0200 Subject: [PATCH] feature/Move the Logo to the top white space, keep it the same as API_Explorer --- apimanager/base/static/css/base.css | 38 ++++++++++++++++++++++++++--- apimanager/base/templates/base.html | 25 ++++++++++++------- 2 files changed, 50 insertions(+), 13 deletions(-) diff --git a/apimanager/base/static/css/base.css b/apimanager/base/static/css/base.css index b1d6042..12c568f 100644 --- a/apimanager/base/static/css/base.css +++ b/apimanager/base/static/css/base.css @@ -38,6 +38,7 @@ footer a:hover, .footer a:focus { .navbar-default { + top: 89px; background-color: #53c4ef; border: none; } @@ -69,6 +70,7 @@ footer a:hover, .footer a:focus { .navbar-btn { margin-left: 15px; + margin-top: -6px; } /*.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:active {*/ @@ -120,7 +122,7 @@ footer a:hover, .footer a:focus { .messages { - margin-top: 30px; + margin-top: 90px; } @@ -164,9 +166,6 @@ table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSo .authentication-method { display: none; } -#navbar-login-username{ - color: #FFFFFF; -} .navbar-default .navbar-nav > li > a:hover { color: #fff; @@ -178,4 +177,35 @@ table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSo } .dropdown-menu{ padding: 0; +} + +#header{ + position: fixed; + top: 0px; + background: #FFFFFF; + width: inherit; +} + +#body-container{ + margin-top: 89px; +} + +#logo-left{ + height: 50px; + margin-top: 30px; + margin-bottom: 30px; +} + +#left-logo img{ + height:40px; +} + +.navbar-btn .btn-default { + font-size: 16px; + text-align: center; + line-height: 24px; + border-radius: 0; + border: 0; + padding: 9px 20px 11px; + border: 1px solid #333333; } \ No newline at end of file diff --git a/apimanager/base/templates/base.html b/apimanager/base/templates/base.html index c28ea9e..2060bab 100644 --- a/apimanager/base/templates/base.html +++ b/apimanager/base/templates/base.html @@ -17,6 +17,21 @@ {% block extracss %}{% endblock extracss %} +
+ +
@@ -110,7 +117,7 @@ {% endif %} -
+
{% block content %}{% endblock content %}