1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-19 17:39:39 +00:00

add some new icons

This commit is contained in:
patrickgao 2015-08-31 15:26:08 +08:00 committed by llj
parent 52e5ee7ff0
commit fcc556836c
5 changed files with 19 additions and 24 deletions

View File

@ -101,7 +101,7 @@
.sf2-icon-activities:before { content:"\e002"; } .sf2-icon-activities:before { content:"\e002"; }
.sf2-icon-bell:before { content:"\e003"; } .sf2-icon-bell:before { content:"\e003"; }
.sf2-icon-contacts:before { content:"\e004"; } .sf2-icon-contacts:before { content:"\e004"; }
.sf2-icon-trash:before { content:"\e005"; } .sf2-icon-recycle:before { content:"\e005"; }
.sf2-icon-delete:before { content:"\e006"; } .sf2-icon-delete:before { content:"\e006"; }
.sf2-icon-devices:before { content:"\e007"; } .sf2-icon-devices:before { content:"\e007"; }
.sf2-icon-download:before { content:"\e008"; } .sf2-icon-download:before { content:"\e008"; }
@ -116,6 +116,12 @@
.sf2-icon-share:before { content:"\e011"; } .sf2-icon-share:before { content:"\e011"; }
.sf2-icon-starred:before { content:"\e012"; } .sf2-icon-starred:before { content:"\e012"; }
.sf2-icon-wiki:before { content:"\e013"; } .sf2-icon-wiki:before { content:"\e013"; }
.sf2-icon-history:before { content:"\e014"; }
.sf2-icon-settings:before { content:"\e015"; }
.sf2-icon-trash:before { content:"\e016"; }
.sf2-icon-anti-virus:before { content:"\e017"; }
.sf2-icon-edit:before { content:"\e018"; }
.sf2-icon-eye:before { content:"\e019"; }
/******* tags **********/ /******* tags **********/
html { background:#fff; } html { background:#fff; }
@ -3348,33 +3354,22 @@ textarea:-moz-placeholder {/* for FF */
font-size: 14px; font-size: 14px;
} }
/* multi repo operation */ /* multi repo operation */
.repo-setting-icon, .repo-op .op-link {
.repo-trash-icon,
.repo-history-icon {
width:30px; width:30px;
height:30px; height:30px;
background-image: url('../img/multi-repo-op.png'); text-align:center;
background-repeat: no-repeat;
display:inline-block;
margin-right:10px; margin-right:10px;
color:#8a8a8a;
outline:none; /* removing the dotted outline for FireFox */ outline:none; /* removing the dotted outline for FireFox */
} }
.repo-setting-icon:hover { .repo-op .op-link:hover {
background-position: 0 -30px; color:#eb8205;
text-decoration:none;
} }
.repo-trash-icon { .repo-op .op-link [class^="sf2-icon-"] {
background-position: 0 -60px; font-size:22px;
line-height:31px;
} }
.repo-trash-icon:hover {
background-position: 0 -90px;
}
.repo-history-icon {
background-position: 0 -120px;
}
.repo-history-icon:hover {
background-position: 0 -150px;
}
/* multi dirents operation */ /* multi dirents operation */
#multi-dirents-op { #multi-dirents-op {
padding: 0 10px; padding: 0 10px;

Binary file not shown.

Binary file not shown.

View File

@ -134,12 +134,12 @@
<button class="op-btn" id="share-cur-dir">{% trans "Share" %}</button> <button class="op-btn" id="share-cur-dir">{% trans "Share" %}</button>
<% } %> <% } %>
<% if (path == '/') { %> <% if (path == '/') { %>
<a class="repo-history-icon fright" href="<%= site_root %>repo/history/<%- repo_id %>/" target="_blank" title="{% trans 'History' %}"></a> <a class="op-link fright" href="<%= site_root %>repo/history/<%- repo_id %>/" target="_blank" title="{% trans 'History' %}"><span class="sf2-icon-history"></span></a>
<% if (user_perm == 'rw') { %> <% if (user_perm == 'rw') { %>
<a class="repo-trash-icon fright" href="<%= site_root %>repo/recycle/<%- repo_id %>/" target="_blank" title="{% trans 'Trash' %}"></a> <a class="op-link fright" href="<%= site_root %>repo/recycle/<%- repo_id %>/" target="_blank" title="{% trans 'Trash' %}"><span class="sf2-icon-trash"></span></a>
<% } %> <% } %>
<% if (is_repo_owner && !is_virtual) { %> <% if (is_repo_owner && !is_virtual) { %>
<a class="repo-setting-icon fright" href="<%= site_root %>repo/<%- repo_id %>/settings/" target="_blank" title="{% trans 'Settings' %}"></a> <a class="op-link fright" href="<%= site_root %>repo/<%- repo_id %>/settings/" target="_blank" title="{% trans 'Settings' %}"><span class="sf2-icon-settings"></span></a>
<% } %> <% } %>
<% } %> <% } %>
</script> </script>