1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-15 07:52:14 +00:00

[UI] top-bar: bugfix & improvement

This commit is contained in:
llj 2016-11-17 17:51:27 +08:00
parent 933e1b3ab0
commit 59ff3fb180
4 changed files with 23 additions and 23 deletions

View File

@ -421,6 +421,26 @@ table img { vertical-align:middle; }
color:#1f0600;
text-align:center;
}
.fixed-top-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
}
.top-bar {
padding:7px 4px;
background:#fff1a8;
text-align:center;
border-bottom:1px solid #ccc;
margin:0;
z-index:3;
}
.top-bar-click {
display:inline-block;
margin-left:10px;
cursor:pointer;
color:#15c;
}
.outstanding-tip { color:red; }
.label { color:#333; font-size:12px; font-style:normal; }
.italic { font-style:italic; }
@ -1694,10 +1714,6 @@ button.sf-dropdown-toggle:focus {
color: #1f0600;
padding:1px 25px 1px 10px;
background: #fddaa4;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 2;
}
#info-bar .close {
@ -3279,19 +3295,6 @@ button.sf-dropdown-toggle:focus {
#download-link-operations dt {
margin: 0;
}
#top-browser-tip {
padding:7px 4px;
background:#fff1a8;
text-align:center;
border-bottom:1px solid #ccc;
margin:0;
}
#top-browser-tip .close {
display:inline-block;
margin-left:10px;
cursor:pointer;
color:#15c;
}
/* shared upload link */
#upload-link-panel {
width:600px;

View File

@ -24,11 +24,11 @@
<body>
<div id="wrapper" role="application" class="{{ LANGUAGE_CODE }}">
<!--[if lt IE 10]>
<p id="top-browser-tip">{% trans "We no longer support this version of IE. Please upgrade it to version 10 or above." %} <span class="close">{% trans "Close" %}</span></p>
<p id="top-browser-tip" class="top-bar fixed-top-bar">{% trans "We no longer support this version of IE. Please upgrade it to version 10 or above." %} <span id="top-browser-tip-close" class="top-bar-click">{% trans "Close" %}</span></p>
<![endif]-->
{% block info_bar_message %}
{% if request.user.is_authenticated and request.cur_note %}
<div id="info-bar">
<div id="info-bar" class="fixed-top-bar">
<p id="info-bar-info">{{ request.cur_note.message|urlize }}</p>
<span class="close sf2-icon-x1 op-icon" title="{% trans "Close" %}"></span>
</div>

View File

@ -21,9 +21,6 @@
<body>
<div id="wrapper" role="application" class="{{ LANGUAGE_CODE }}">
<!--[if lt IE 10]>
<p id="top-browser-tip">{% trans "We no longer support this version of IE. Please upgrade it to version 10 or above." %} <span class="close">{% trans "Close" %}</span></p>
<![endif]-->
{% block info_bar_message %}
{% if request.user.is_authenticated and request.cur_note %}
<div id="info-bar">

View File

@ -87,7 +87,7 @@ define([
this.currentView = this.myReposView;
$('#info-bar .close').click(Common.closeTopNoticeBar);
$('#top-browser-tip .close').click(function () {
$('#top-browser-tip-close').click(function () {
$('#top-browser-tip').addClass('hide');
});
},