From f12e7248837c6d5ba78cfb0a6cb06f9c45b38d90 Mon Sep 17 00:00:00 2001 From: cjiping Date: Thu, 28 Jan 2021 17:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=E7=BE=8E=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/website.css | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/styles/website.css b/styles/website.css index 88a592fce9..e0039e37aa 100644 --- a/styles/website.css +++ b/styles/website.css @@ -67,4 +67,35 @@ li.chapter a:hover { /* 阅读数 */ .page-view-counter::before{ content:"⚡" +} +/* 搜索栏 */ +#book-search-input input, #book-search-input input:focus, #book-search-input input:hover{ + width:auto!important; + transition: all .3s; +} +#book-search-input input:focus{ + border: 1px solid #008cff; + +} +#book-search-input::before{ + display: inline-block; + content: "🔍"; +} +/* 搜索高亮 */ +#book-search-results span.search-highlight-keyword { + color: #008cff; + font-weight: 700; +} +/* 搜索结果标题 */ +#book-search-results .search-results .has-results .search-results-item a:hover{ + text-decoration: none; + color: #72b0ec; +} +/* 文章页内高亮 */ +mark { + background: #008cff; + color: #fff; + font-weight: 700; + border-radius: 4px; + padding: 0 2px; } \ No newline at end of file