ui: make copy content actions not use grey.
- we use this color for disabled elements. Those elements should have regular action colors
This commit is contained in:
parent
f069e0f0f9
commit
152fa83aba
3 changed files with 9 additions and 5 deletions
|
|
@ -106,13 +106,17 @@ input + .action-link, .action-link.first{
|
|||
cursor: inherit;
|
||||
}
|
||||
|
||||
|
||||
.clipboard-action {
|
||||
cursor: pointer;
|
||||
color: @grey4;
|
||||
margin-left: 5px;
|
||||
|
||||
&:hover {
|
||||
color: @grey2;
|
||||
&:not(.no-grey) {
|
||||
|
||||
&:hover {
|
||||
color: @grey2;
|
||||
}
|
||||
color: @grey4;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
<div class="pull-right buttons">
|
||||
## only owner should see that
|
||||
<a href="#copySource" onclick="return false;" class="btn btn-mini icon-clipboard clipboard-action" data-clipboard-text="${c.files[0].content}">${_('Copy content')}</a>
|
||||
<a href="#copySource" onclick="return false;" class="btn btn-mini icon-clipboard no-grey clipboard-action" data-clipboard-text="${c.files[0].content}">${_('Copy content')}</a>
|
||||
|
||||
%if c.is_super_admin or c.gist.gist_owner == c.rhodecode_user.user_id:
|
||||
${h.link_to(_('Edit'), h.route_path('gist_edit', gist_id=c.gist.gist_access_id), class_="btn btn-mini")}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@
|
|||
%endif
|
||||
| ${h.link_to(_('Raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
|
||||
% if not c.file.is_binary:
|
||||
|<a href="#copySource" onclick="return false;" class="clipboard-action" data-clipboard-text="${c.file.content}">${_('Copy content')}</a>
|
||||
|<a href="#copySource" onclick="return false;" class="no-grey clipboard-action" data-clipboard-text="${c.file.content}">${_('Copy content')}</a>
|
||||
% endif
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue