💄 Style: update search layout page style

This commit is contained in:
Cell
2024-11-27 17:02:06 +08:00
parent 168f1babc3
commit 4886c05395
8 changed files with 29 additions and 14 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ header {
}
}
.search {
.menu .search {
position: relative;
input {
-1
View File
@@ -17,4 +17,3 @@
@import '_home';
@import '_404';
@import '_offline';
@import '_friends';
-6
View File
@@ -1,6 +0,0 @@
.special {
.single-title,
.single-subtitle {
text-align: right;
}
}
@@ -1,5 +1,5 @@
/**
* @Description: Style of layout named 'friends'.
* Style of layout named 'friends'.
* @Author: Lruihao <https://lruihao.cn>
* @Updated: 2022/3/11 21:36
*/
+14
View File
@@ -0,0 +1,14 @@
.special {
.single-title,
.single-subtitle {
text-align: right;
}
&.friends {
@import '_friends';
}
&.search {
@import '_search';
}
}
+9
View File
@@ -0,0 +1,9 @@
// Style of layout named 'search'
// Google CSE
.gcse-searchbox:empty,
.gcse-searchresults:empty {
display: none;
}
// Bing CSE (Unsupported)
+2 -3
View File
@@ -420,13 +420,12 @@ enableEmoji = true
ignoreFieldNorm = false
# FixIt 0.3.16 | NEW Custom Search Engine (CSE)
[params.search.cse]
# support cse engine: ["google", "bing"]
# CSE engine: ["google", "bing"]
engine = "google"
# Google: https://programmablesearchengine.google.com/
# Google Custom Search Engine Context
cx = ""
# Bing: https://www.customsearch.ai/
# TODO
# Bing (Unsupported): https://www.customsearch.ai/
# Header config
[params.header]
+2 -2
View File
@@ -9,7 +9,7 @@
{{- define "content" -}}
{{- $params := partial "function/params.html" -}}
{{- $cse := .Site.Params.search.cse -}}
<article class="page single special cse">
<article class="page single special search">
<div class="header">
{{- /* Title */ -}}
<h1 class="single-title animate__animated animate__pulse animate__faster">{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}</h1>
@@ -32,6 +32,6 @@
{{- end -}}
{{- end -}}
{{- /* TODO Bing CSE */ -}}
{{- /* Bing CSE (Unsupported) */ -}}
</article>
{{- end -}}