mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-03-19 12:42:33 +00:00
Optimize copy-btn & post-edit icon
This commit is contained in:
parent
f4a12dcaa7
commit
73dff7cb85
@ -242,7 +242,7 @@ post_meta:
|
||||
categories: true
|
||||
|
||||
# Post wordcount display settings
|
||||
# Dependencies: https://github.com/next-theme/hexo-symbols-count-time
|
||||
# Dependencies: https://github.com/next-theme/hexo-word-counter
|
||||
symbols_count_time:
|
||||
separated_meta: true
|
||||
item_text_post: true
|
||||
|
||||
@ -24,7 +24,7 @@ hexo.extend.helper.register('next_vendors', function(url) {
|
||||
hexo.extend.helper.register('post_edit', function(src) {
|
||||
const theme = hexo.theme.config;
|
||||
if (!theme.post_edit.enable) return '';
|
||||
return this.next_url(theme.post_edit.url + src, '<i class="fa fa-pencil-alt"></i>', {
|
||||
return this.next_url(theme.post_edit.url + src, '<i class="fa fa-pen-nib"></i>', {
|
||||
class: 'post-edit-link',
|
||||
title: this.__('post.edit')
|
||||
});
|
||||
|
||||
@ -89,7 +89,7 @@ NexT.utils = {
|
||||
ta.readOnly = false;
|
||||
const result = document.execCommand('copy');
|
||||
if (CONFIG.copycode.show_result) {
|
||||
target.querySelector('i').className = result ? 'fa fa-check fa-fw' : 'fa fa-times fa-fw';
|
||||
target.querySelector('i').className = result ? 'fa fa-check-circle fa-fw' : 'fa fa-times-circle fa-fw';
|
||||
}
|
||||
ta.blur(); // For iOS
|
||||
target.blur();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user