Set the default icon to icon-placeholder

This commit is contained in:
fechin committed 2022-11-30 10:16:08 +08:00
1 parent f6486bbbba
commit dfbb4542dd
8 files changed
+37 -13

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@
<link rel="alternate" href="/atom.xml" title="<%- config.title %>" type="application/atom+xml"/>
<!-- font -->
<link rel="preload" href="/font/iconfont.woff2?1668928635" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/font/iconfont.woff2?1669773269" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="/font/iconfont.css">
<!-- styles -->
+2 -2
View File
@@ -16,7 +16,7 @@
<div class="mt-2 sm:mt-0">
<a href="/"
class="flex items-center text-white bg-blue-600 text-sm rounded px-2 py-1 hover:bg-blue-500 focus:outline-none focus:shadow-outline">
<i class="icon icon-style mr-1"></i>
<i class="icon icon-placeholder mr-1"></i>
<span class="inline">More</span>
</a>
</div>
@@ -44,7 +44,7 @@
<div class="mt-2 sm:mt-0">
<a href="/notes/"
class="flex items-center text-white bg-blue-600 text-sm rounded px-2 py-1 hover:bg-blue-500 focus:outline-none focus:shadow-outline">
<i class="icon icon-style mr-1"></i>
<i class="icon icon-placeholder mr-1"></i>
<span class="inline">More</span>
</a>
</div>
+1 -1
View File
@@ -14,7 +14,7 @@
url: url_for(post.path),
title: post.title,
label: post.label,
icon: post.icon == undefined ? 'icon-style' : post.icon,
icon: post.icon == undefined ? 'icon-placeholder' : post.icon,
background: post.background == undefined ? 'bg-emerald-500' : post.background
}) %>
<% }) %>
+31 -7
View File
@@ -1,8 +1,8 @@
@font-face {
font-family: "icon"; /* Project id 2226430 */
src: url('//at.alicdn.com/t/c/font_2226430_7hdlgojm6n3.woff2?1669194761') format('woff2'),
url('//at.alicdn.com/t/c/font_2226430_7hdlgojm6n3.woff?1669194761') format('woff'),
url('//at.alicdn.com/t/c/font_2226430_7hdlgojm6n3.ttf?1669194761') format('truetype');
src: url('//at.alicdn.com/t/c/font_2226430_1gzd7ua42v7.woff2?1669773269') format('woff2'),
url('//at.alicdn.com/t/c/font_2226430_1gzd7ua42v7.woff?1669773269') format('woff'),
url('//at.alicdn.com/t/c/font_2226430_1gzd7ua42v7.ttf?1669773269') format('truetype');
}
.icon {
@@ -13,6 +13,34 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-placeholder:before {
content: "\e6a7";
}
.icon-unity:before {
content: "\ec29";
}
.icon-pm2:before {
content: "\e61f";
}
.icon-heart:before {
content: "\f16e";
}
.icon-arrow:before {
content: "\e614";
}
.icon-share:before {
content: "\e66e";
}
.icon-shopify:before {
content: "\ec1e";
}
.icon-outlook:before {
content: "\e653";
}
@@ -249,10 +277,6 @@
content: "\e7ea";
}
.icon-heart:before {
content: "\e66a";
}
.icon-permission:before {
content: "\ed3f";
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -423,7 +423,7 @@ window.addEventListener('load', () => {
<a href="${hit.path}" class="flex justify-between items-center rounded-lg py-1 px-4 transition-colors duration-100 ease-in-out overflow-hidden">
<div class="flex items-start">
<div class="flex justify-center items-center w-5 mr-5 mt-2 flex-none">
<i class="icon ${hit.icon === undefined ? "icon-style" : hit.icon} text-2xl"></i>
<i class="icon ${hit.icon === undefined ? "icon-placeholder" : hit.icon} text-2xl"></i>
</div>
<div class="flex flex-col truncate">
<span class="font-semibold dark:text-slate-300 dark:group-hover:text-white">${hit.title}</span>
@@ -470,7 +470,7 @@ window.addEventListener('load', () => {
document.querySelector(".preview-panel").innerHTML = `<section class="w-full py-3 px-5">
<div class="flex justify-center pt-1 pb-4">
<div class="flex justify-center items-center w-8 h-8 rounded ${hit.background === undefined ? 'bg-emerald-500' : hit.background} shadow-lg">
<i class="icon ${hit.icon === undefined ? "icon-style" : hit.icon} text-2xl text-slate-100"></i>
<i class="icon ${hit.icon === undefined ? "icon-placeholder" : hit.icon} text-2xl text-slate-100"></i>
</div>
</div>
<div class="flex justify-center items-center font-medium flex-wrap dark:text-slate-200">${hit.title}</div>