Skip to content

Commit

Permalink
fixed copy button position and changed cursor on filter hover
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnWoodman committed Dec 13, 2020
1 parent 0769932 commit 2918b8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/bin_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h3>OS:</h3>
{% assign sites = site.wadcoms | reverse %}
{% for file in sites %}
<tr>
<td><div class="bin-name"><a href="{{ file.url }}" id="{{ file.url }}" style="text-decoration: none; color: DarkGreen;">{{ file.command }}</a><a href="javascript:void(0)" onClick="copyFunction('{{ file.url }}')" style="float: right;"><img src="/assets/copy-button.svg" alt="Copy" title="Copy" id="{{ file.url }}_img"/></a></div><p style="margin-top: -12px;">{% include filter_list.html bin=file %}</p></td>
<td><div class="bin-name"><div style="flex: 0 0 97%"><a href="{{ file.url }}" id="{{ file.url }}" style="text-decoration: none; color: DarkGreen;">{{ file.command }}</a></div><div style="flex: 1;"><a href="javascript:void(0)" onClick="copyFunction('{{ file.url }}')"><img src="/assets/copy-button.svg" alt="Copy" title="Copy" id="{{ file.url }}_img"/></a></div></div><p style="margin-top: -12px;">{% include filter_list.html bin=file %}</p></td>
</tr>
{% endfor %}
</tbody>
Expand Down
2 changes: 2 additions & 0 deletions assets/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ h2, h3, h4, h5, h5 {
background: $lighter;
font-size: initial;
border-radius: 0.25em;
cursor: pointer;

&:hover:before {
content: attr(data-title);
Expand Down Expand Up @@ -252,6 +253,7 @@ h2, h3, h4, h5, h5 {
}

.bin-name {
display: flex;
font-family: monospace;
font-size: 1.0rem;
padding: 0.75em 1.0em;
Expand Down

0 comments on commit 2918b8a

Please sign in to comment.