From 473822f98833b725f2ac0d5604e99ea84362615c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sun, 20 Nov 2022 19:17:46 +0800 Subject: [PATCH] website: search input add palceholder. --- scripts/nodes/search.mjs | 2 +- scripts/style/style.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/nodes/search.mjs b/scripts/nodes/search.mjs index 0d8f2f21..36d999da 100644 --- a/scripts/nodes/search.mjs +++ b/scripts/nodes/search.mjs @@ -62,7 +62,7 @@ export function search({ homePath = '', isHome } = {}) { { type: 'element', tagName: 'input', - properties: { id: ['mysearch-input'], type: 'search' }, + properties: { id: ['mysearch-input'], type: 'search', placeholder: '搜索备忘清单' }, children: [], }, { diff --git a/scripts/style/style.css b/scripts/style/style.css index 4fcbea3c..be8dc044 100644 --- a/scripts/style/style.css +++ b/scripts/style/style.css @@ -1260,6 +1260,10 @@ body.search { justify-content: center; } +.mysearch-input input::placeholder { + font-weight: normal; + font-size: 1.3rem; +} .mysearch-input { height: 3.5rem; display: flex;