Use fontawesome for paste button
This commit is contained in:
parent
f79648599a
commit
6fce170f7e
@ -12,9 +12,10 @@ module AdditionalsClipboardjsHelper
|
||||
|
||||
data['clipboard-text'] = clipboard_text_from_button if clipboard_text_from_button.present?
|
||||
|
||||
content_tag(:span, image_tag('paste.png', plugin: 'additionals'),
|
||||
content_tag(:button, nil,
|
||||
id: "zc_#{target}",
|
||||
class: 'clipboard_button',
|
||||
class: 'clipboard_button far fa-copy',
|
||||
type: 'button',
|
||||
title: l(:label_copy_to_clipboard),
|
||||
data: data)
|
||||
end
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 605 B |
@ -171,6 +171,12 @@ div.clear-both { clear: both; }
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.clipboard_button {
|
||||
padding: 0 2px 0 0;
|
||||
text-align: center;
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* TAGs */
|
||||
|
||||
ul.tags {
|
||||
|
@ -1,22 +0,0 @@
|
||||
/*
|
||||
ClipboardJS
|
||||
*/
|
||||
|
||||
.clipboard_button {
|
||||
display: block;
|
||||
float: left;
|
||||
position: relative;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
border-color: #bbb;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
width: 24px;
|
||||
height: 23px;
|
||||
}
|
||||
|
||||
.clipboard_button img {
|
||||
padding-top: 4px;
|
||||
padding-left: 5px;
|
||||
display: block;
|
||||
}
|
@ -246,8 +246,7 @@ module Additionals
|
||||
end
|
||||
|
||||
def additionals_load_clipboardjs
|
||||
additionals_include_css('clipboard') +
|
||||
additionals_include_js('clipboard.min')
|
||||
additionals_include_js('clipboard.min')
|
||||
end
|
||||
|
||||
def additionals_load_observe_field
|
||||
|
Loading…
x
Reference in New Issue
Block a user