Optimize copy-btn & post-edit icon

This commit is contained in:
Mimi 2020-05-20 21:57:47 +08:00
parent f4a12dcaa7
commit 73dff7cb85
3 changed files with 3 additions and 3 deletions

View File

@ -242,7 +242,7 @@ post_meta:
categories: true categories: true
# Post wordcount display settings # 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: symbols_count_time:
separated_meta: true separated_meta: true
item_text_post: true item_text_post: true

View File

@ -24,7 +24,7 @@ hexo.extend.helper.register('next_vendors', function(url) {
hexo.extend.helper.register('post_edit', function(src) { hexo.extend.helper.register('post_edit', function(src) {
const theme = hexo.theme.config; const theme = hexo.theme.config;
if (!theme.post_edit.enable) return ''; 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', class: 'post-edit-link',
title: this.__('post.edit') title: this.__('post.edit')
}); });

View File

@ -89,7 +89,7 @@ NexT.utils = {
ta.readOnly = false; ta.readOnly = false;
const result = document.execCommand('copy'); const result = document.execCommand('copy');
if (CONFIG.copycode.show_result) { 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 ta.blur(); // For iOS
target.blur(); target.blur();