mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-15 16:04:01 +00:00
[UI] top-bar: bugfix & improvement
This commit is contained in:
parent
933e1b3ab0
commit
59ff3fb180
@ -421,6 +421,26 @@ table img { vertical-align:middle; }
|
|||||||
color:#1f0600;
|
color:#1f0600;
|
||||||
text-align:center;
|
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; }
|
.outstanding-tip { color:red; }
|
||||||
.label { color:#333; font-size:12px; font-style:normal; }
|
.label { color:#333; font-size:12px; font-style:normal; }
|
||||||
.italic { font-style:italic; }
|
.italic { font-style:italic; }
|
||||||
@ -1694,10 +1714,6 @@ button.sf-dropdown-toggle:focus {
|
|||||||
color: #1f0600;
|
color: #1f0600;
|
||||||
padding:1px 25px 1px 10px;
|
padding:1px 25px 1px 10px;
|
||||||
background: #fddaa4;
|
background: #fddaa4;
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
#info-bar .close {
|
#info-bar .close {
|
||||||
@ -3279,19 +3295,6 @@ button.sf-dropdown-toggle:focus {
|
|||||||
#download-link-operations dt {
|
#download-link-operations dt {
|
||||||
margin: 0;
|
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 */
|
/* shared upload link */
|
||||||
#upload-link-panel {
|
#upload-link-panel {
|
||||||
width:600px;
|
width:600px;
|
||||||
|
@ -24,11 +24,11 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="wrapper" role="application" class="{{ LANGUAGE_CODE }}">
|
<div id="wrapper" role="application" class="{{ LANGUAGE_CODE }}">
|
||||||
<!--[if lt IE 10]>
|
<!--[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]-->
|
<![endif]-->
|
||||||
{% block info_bar_message %}
|
{% block info_bar_message %}
|
||||||
{% if request.user.is_authenticated and request.cur_note %}
|
{% 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>
|
<p id="info-bar-info">{{ request.cur_note.message|urlize }}</p>
|
||||||
<span class="close sf2-icon-x1 op-icon" title="{% trans "Close" %}"></span>
|
<span class="close sf2-icon-x1 op-icon" title="{% trans "Close" %}"></span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="wrapper" role="application" class="{{ LANGUAGE_CODE }}">
|
<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 %}
|
{% block info_bar_message %}
|
||||||
{% if request.user.is_authenticated and request.cur_note %}
|
{% if request.user.is_authenticated and request.cur_note %}
|
||||||
<div id="info-bar">
|
<div id="info-bar">
|
||||||
|
@ -87,7 +87,7 @@ define([
|
|||||||
this.currentView = this.myReposView;
|
this.currentView = this.myReposView;
|
||||||
|
|
||||||
$('#info-bar .close').click(Common.closeTopNoticeBar);
|
$('#info-bar .close').click(Common.closeTopNoticeBar);
|
||||||
$('#top-browser-tip .close').click(function () {
|
$('#top-browser-tip-close').click(function () {
|
||||||
$('#top-browser-tip').addClass('hide');
|
$('#top-browser-tip').addClass('hide');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user