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:
Marcin Kuzminski 2019-11-25 19:43:55 +01:00
parent f069e0f0f9
commit 152fa83aba
3 changed files with 9 additions and 5 deletions

View file

@ -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;
}
}

View file

@ -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")}

View file

@ -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>