header is now swishy

This commit is contained in:
Jake Dahn 2011-07-12 19:53:42 -07:00
parent c31ca90a1e
commit 2cad7d0797
3 changed files with 49 additions and 65 deletions

View File

@ -1,37 +1,33 @@
<div id='header'>
<div id="nav_wrapper">
<h1><a href='{% url splash %}'>OpenStack Dashboard</a></h1>
<div id="user_bar">
<a id="current_tenant" href="{% url dash_overview %}">
<h4>{{request.user.tenant}}</h4>
<span>as {{request.user.username}}</span>
</a>
<a id="drop_btn" href="#">&nbsp;</a>
<ul id="user_tenant_list">
<li class="title"><h4>Available Tenants</h4></li>
{% for tenant in tenants %}
{% if tenant.enabled %}
<li><a href="{% url auth_switch tenant.id %}">{{tenant.id}}</a></li>
{% endif %}
{% endfor %}
<li id="sign_out"><a href="{% url auth_logout %}">Sign Out</a></li>
</ul>
</div>
<ul id="main_nav">
{% if request.user %}
<li><a {% if current_topbar == "dash" %} class="active" {% endif %} href="{% url dash_overview %}">User Dashboard</a></li>
<ul id="main_nav">
<li id="home_link"><h1><a href='{% url splash %}'>OpenStack Dashboard</a></h1></li>
{% if request.user %}
<li><a {% if current_topbar == "dash" %} class="active" {% endif %} href="{% url dash_overview %}">User Dashboard</a></li>
{% if request.user.is_admin %}
<li><a {% if current_topbar == "syspanel" %} class="active" {% endif %} href="{% url syspanel_overview %}">System Panel</a></li>
{% endif %}
{% else %}
NOT _LOGGED_IN_TOPBAR
{% if request.user.is_admin %}
<li><a {% if current_topbar == "syspanel" %} class="active" {% endif %} href="{% url syspanel_overview %}">System Panel</a></li>
{% endif %}
{% else %}
NOT _LOGGED_IN_TOPBAR
{% endif %}
</ul>
<div id="user_bar">
<a id="current_tenant" href="{% url dash_overview %}">
<h4>{{request.user.tenant}}</h4>
<span>as {{request.user.username}}</span>
</a>
<a id="drop_btn" href="#">&nbsp;</a>
<ul id="user_tenant_list">
<li class="title"><h4>Available Tenants</h4></li>
{% for tenant in tenants %}
{% if tenant.enabled %}
<li><a href="{% url auth_switch tenant.id %}">{{tenant.id}}</a></li>
{% endif %}
{% endfor %}
<li id="sign_out"><a href="{% url auth_logout %}">Sign Out</a></li>
</ul>
</div>
</div>

View File

@ -9,43 +9,34 @@
width: 100%;
height: 44px;
margin-left: -1px;
background: #000;
}
h1 {
float: left;
width: 15%;
#home_link {
width: 137px;
}
h1 a{
background: url(../images/logo_new.png) top left no-repeat;
background: url(../images/logo_new.png) no-repeat left 4px;
text-indent: -9999px;
display: block;
height: 40px;
}
h1 a:hover {
color: #666;
}
#nav_wrapper {
background: #000;
height: 35px;
width: 137px;
float: left;
width: 100%;
}
#main_nav {
font-family: "Helvetica", arial, sans-serif;
position: relative;
z-index: 20;
background: #f3f8fa;
padding-left: 2%;
padding-top: 10px;
border: 1px solid #cbe0e8;
border-right: 0;
min-width: 600px;
width: 66%;
width: 84%;
top: 0;
left: 13%;
height: 33px;
float: left;
}
#main_nav li a {
z-index: 500;
@ -135,18 +126,21 @@ small {
height: 38px;
width: 16%;
min-width: 210px;
margin-top: -45px;
}
#user_bar ul {
float: left;
width: 225px;
width: 16%;
min-width: 210px;
background: #c9ead1;
border-right: 1px solid #d6e4d9;
border-bottom: 1px solid #d6e4d9;
border-left: 1px solid #d6e4d9;
margin-left: -1px;
padding-top: 12px;
margin-top: -12px;
position: absolute;
margin-top: 37px;
right: 1px;
}
#drop_btn {
@ -181,24 +175,18 @@ a#current_tenant {
text-align: left;
font-size: 18px;
margin-bottom: -4px;
}
#user_tenant_list {
position: absolute;
right: 0;
top: 57px;
margin-top: -4px;
}
#user_bar li a {
color: #6eaf6e;
font-weight: bold;
font-size: 18px;
color: #5c935c;
font-weight: normal;
font-size: 14px;
border-bottom: 1px solid;
width: 200px;
display: block;
padding-left: 25px;
padding-top: 10px;
padding-bottom: 10px;
padding-top: 5px;
padding-bottom: 5px;
border-color: #a9deb6;
}
@ -219,14 +207,14 @@ li#sign_out a:hover {
}
li.title h4{
padding-left: 25px;
color: #7ab789;
text-transform: uppercase;
font-size: 10px;
font-weight: normal;
border-bottom: 1px dotted;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 10px;
margin-top: -4px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB