From fe0e0024b5307776cc684c454a03c18257f246cb Mon Sep 17 00:00:00 2001 From: XPoet Date: Sun, 12 Apr 2020 00:03:22 +0800 Subject: [PATCH] style: optimize local search page css --- source/css/layout/_partial/local-search.styl | 22 +++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/source/css/layout/_partial/local-search.styl b/source/css/layout/_partial/local-search.styl index 4dfd703..daa153d 100644 --- a/source/css/layout/_partial/local-search.styl +++ b/source/css/layout/_partial/local-search.styl @@ -75,12 +75,28 @@ input.search-input { ul.search-result-list { margin: 10px 5px; width: 100%; + + li { + border-bottom: 1px solid var(--border-color); + margin-bottom: 20px; + + a { + display: block; + margin-bottom: 16px; + } + + &:last-child { + margin-bottom: 0; + } + } } p.search-result { - border-bottom: 1px solid var(--border-color); - padding-bottom: 10px; - margin-bottom: 20px; + margin 0 + padding 0 + // border-bottom: 1px solid var(--border-color); + // padding-bottom: 10px; + // margin-bottom: 20px; } a.search-result-title {