1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 06:34:40 +00:00

Change style to navigation bar

This commit is contained in:
plt
2012-07-12 11:13:50 +08:00
parent 72d0ae8a20
commit d8336f35bf
6 changed files with 6 additions and 9 deletions

View File

@@ -119,7 +119,6 @@ table img {
#header { #header {
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
border-bottom: 1px solid #ddd;
} }
#main { #main {
min-height: 400px; min-height: 400px;
@@ -170,6 +169,7 @@ table img {
#other-info { color: #ccc; text-align:right; } #other-info { color: #ccc; text-align:right; }
#other-info .wish { font-style:italic; margin-bottom:10px; } #other-info .wish { font-style:italic; margin-bottom:10px; }
#other-info .version { font-size: 12px; } #other-info .version { font-size: 12px; }
#header .nav { padding: 20px 20px 0 40px; }
#header .nav li { float: left; height: 18px; padding: 0px 25px 4px 0; } #header .nav li { float: left; height: 18px; padding: 0px 25px 4px 0; }
#header .nav a, #header .nav a:visited { color:#8A948F; font-weight:bold; text-decoration:none; } #header .nav a, #header .nav a:visited { color:#8A948F; font-weight:bold; text-decoration:none; }
#header .nav a.cur { color:#000; } #header .nav a.cur { color:#000; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@@ -1,7 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block top_bar_manager_class %} class="cur"{% endblock %} {% block top_bar_manager_class %} class="cur"{% endblock %}
{% block nav %} {% block nav %}
<ul class="nav w100 ovhd"> <ul class="nav ovhd">
{% if request.user.is_staff %} {% if request.user.is_staff %}
<li> <li>
<a href="{{ SITE_ROOT }}sys/seafadmin/" {% block nav_seafadmin_class %}{% endblock %}>目录管理</a> <a href="{{ SITE_ROOT }}sys/seafadmin/" {% block nav_seafadmin_class %}{% endblock %}>目录管理</a>

View File

@@ -62,12 +62,9 @@
<div id="header"> <div id="header">
<div class="top-info w100 ovhd"> <div class="top-info w100 ovhd">
<img src="{{ MEDIA_URL }}img/logo.png" title="Seafile" alt="Seafile logo" class="fleft" /> <img src="{{ MEDIA_URL }}img/logo.png" title="Seafile" alt="Seafile logo" class="fleft" height="48" />
<div id="other-info" class="fright"> {% block nav %}{% endblock %}
<p class="wish">Hope our efforts will bring you benefits.</p>
</div>
</div> </div>
{% block nav %}{% endblock %}
</div> </div>
<div id="main"> <div id="main">

View File

@@ -1,7 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block top_bar_myaccount_class %} class="cur"{% endblock %} {% block top_bar_myaccount_class %} class="cur"{% endblock %}
{% block nav %} {% block nav %}
<ul class="nav w100 ovhd"> <ul class="nav ovhd">
<li> <li>
<a href="{{ SITE_ROOT }}home/my/" {% block nav_myhome_class %}{% endblock %}>我的页面</a> <a href="{{ SITE_ROOT }}home/my/" {% block nav_myhome_class %}{% endblock %}>我的页面</a>
</li> </li>

View File

@@ -1,7 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block top_bar_manager_class %} class="cur"{% endblock %} {% block top_bar_manager_class %} class="cur"{% endblock %}
{% block nav %} {% block nav %}
<ul class="nav w100 ovhd"> <ul class="nav ovhd">
{% if request.user.org.is_staff %} {% if request.user.org.is_staff %}
<li> <li>
<a href="{{ SITE_ROOT }}seafadmin/" {% block nav_seafadmin_class %}{% endblock %}>目录管理</a> <a href="{{ SITE_ROOT }}seafadmin/" {% block nav_seafadmin_class %}{% endblock %}>目录管理</a>