diff options
author | amzrk2 | 2020-06-16 14:00:53 +0800 |
---|---|---|
committer | amzrk2 | 2020-06-16 14:00:53 +0800 |
commit | c42924047c6f654c4723746790e041f8907ed378 (patch) | |
tree | 9d826ac811c3861da8ce9e7938d35a3147f4db36 /assets/scss | |
parent | e7587236dbe98775315619d4f3b8d3f335001583 (diff) | |
download | hugo-theme-fuji-c42924047c6f654c4723746790e041f8907ed378.tar.gz hugo-theme-fuji-c42924047c6f654c4723746790e041f8907ed378.tar.bz2 hugo-theme-fuji-c42924047c6f654c4723746790e041f8907ed378.zip |
Searching now works
Diffstat (limited to 'assets/scss')
-rw-r--r-- | assets/scss/_fuji-style/_content.scss | 42 | ||||
-rw-r--r-- | assets/scss/_fuji-theme/_style.scss | 43 |
2 files changed, 71 insertions, 14 deletions
diff --git a/assets/scss/_fuji-style/_content.scss b/assets/scss/_fuji-style/_content.scss index df223e9..d1cba1d 100644 --- a/assets/scss/_fuji-style/_content.scss +++ b/assets/scss/_fuji-style/_content.scss @@ -85,20 +85,6 @@ .page-info { padding: 0 0.1rem 1.5rem 0.1rem; - - // search page part - .search-form { - display: flex; - } - - .search-input { - flex: 1 1 auto; - - input { - width: 100%; - max-width: 100%; - } - } } // single page part @@ -170,6 +156,34 @@ article { padding: 1.25rem 0; } +// search page part + #search-result .post:first-child { padding: 1.5rem 0; } + +.search-result-info { + padding: 1rem 0.1rem; +} + +.search-input { + display: flex; + height: 2.5rem; + align-items: center; + padding-left: 0.5rem; + width: 100%; + + input { + width: 100%; + min-width: 0; + flex: 1 1 auto; + height: 2rem; + } + + button { + flex: 0 1 auto; + padding: 0 0.75rem; + word-break: keep-all; + height: 2.5rem; + } +} diff --git a/assets/scss/_fuji-theme/_style.scss b/assets/scss/_fuji-theme/_style.scss index 893a26c..f731fa2 100644 --- a/assets/scss/_fuji-theme/_style.scss +++ b/assets/scss/_fuji-theme/_style.scss @@ -312,3 +312,46 @@ code { color: var(--color-mute) !important; } } + +.search-result-info { + border-bottom: $divider; +} + +.search-input { + border-top: 2px solid; + border-left: 2px solid; + border-bottom: 2px solid; + border-right: none; + border-radius: 0.25rem; + border-color: var(--color-divider); + background-color: var(--color-bg); + + &:hover, + &:focus-within { + color: var(--color-primary); + border-color: var(--color-primary); + } + + input { + outline: none; + border: none; + color: inherit; + background-color: inherit; + } + + button { + outline: none; + border-top: 2px solid; + border-left: none; + border-right: 2px solid; + border-bottom: 2px solid; + border-radius: 0 0.25rem 0.25rem 0; + border-color: inherit; + color: inherit; + background-color: inherit; + + &:hover { + color: var(--color-secondary); + } + } +} |