From 6b6dcfffcbf9556a7ebc838402fbe669ff788fee Mon Sep 17 00:00:00 2001 From: KoriIku <86508666+KoriIku@users.noreply.github.com> Date: Mon, 7 Oct 2024 23:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 5 ++- public/favicon.ico | Bin 4286 -> 15406 bytes src/assets/main.css | 76 ++++++++++++++++++++++++++++--------- src/components/Home.vue | 31 ++++++++++++++- src/components/Results.vue | 69 +++++++++++++++++---------------- 5 files changed, 128 insertions(+), 53 deletions(-) diff --git a/index.html b/index.html index 99f583a..34e5ea8 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,10 @@ - Vite App + Luxirty Search + + +
diff --git a/public/favicon.ico b/public/favicon.ico index df36fcfb72584e00488330b560ebcf34a41c64c2..1cec94db84a7489cf9f7ef58af7d4da94ee1d0ea 100644 GIT binary patch literal 15406 zcmeHNXHZ<(mB#CJSljZcBuPj@f)PSFCxTD_fkcqVIS7HsId${xd9P^*8 z#^$F~hni3eOF1QflaH^H=(~Ccg}~?}7it|O0w1|p=q(d1^Og#2Eo5)&E#oiKDFpU9 zrHHSSP)c=la=Fk`B>I}K{CDcJahbSxwg3-rm!kYZ8Ja80(e#wk3Zkc_7NUGbVJX!q z!TocExSntxTJh4=z7pFVWjW8#_1uis#tGcWxQIvDxtN)m!T87+#)ikhK9vOpxR!n% z^);h--adoIq5&9W{4k@`_T$F#=TslKkbD4o2N^CMN=D(0o5;(`!1bet(NO*v8U+v6 z)6$R@9tE=*=xH5+P9_TRQ+)Wr+_NO%OChlFji~~N~ zkYw=X${Winp_hr5Gpb*IFFibzMhAMIx8r6;I!^D4!Nk}&SC9QMPfz2)<;%#3+KtYZ zX0H4~67eb*{+FN3&h3bQ4BG4J=j#8l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S`Pz8q``=511zm zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp= zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8 zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S diff --git a/src/assets/main.css b/src/assets/main.css index 9888cb8..2a56759 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -82,6 +82,13 @@ a, height: 46px; } +/* 针对小屏幕的样式 */ +@media (max-width: 600px) { + .gsc-search-box.gsc-search-box-tools { + width: calc(100vw - 28px); + } +} + @media (prefers-color-scheme: dark) { .gsc-search-box.gsc-search-box-tools { background: #333333; @@ -118,6 +125,15 @@ a, margin-left: 218px; } +/* 针对小屏幕的样式 */ +@media (max-width: 600px) { + .gsc-results, + .gsc-webResult { + width: calc(100vw - 20px) !important; + margin-left: 10px; + } +} + .gs-webResult.gs-result a.gs-title:link, .gs-webResult.gs-result a.gs-title:link b, .gs-imageResult a.gs-title:link, @@ -178,6 +194,13 @@ a, margin-left: 218px; } +/* 针对小屏幕的样式 */ +@media (max-width: 600px) { + .gsc-refinementBlock { + margin-left: 5px; + } +} + /* 自动补全框美化 */ .gssb_a { padding: 6px 12px !important; @@ -213,43 +236,60 @@ a, /* 表格容器样式 */ table.gsc-completion-container { - width: 601px; /* 保持原有宽度 */ - position: absolute; /* 保持绝对定位 */ - left: 203px; /* 保持原有左边距 */ - top: 69px; /* 保持原有顶部距离 */ - background-color: #ffffff; /* 默认背景色 */ - border-radius: 4px; /* 边角圆润 */ - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */ + width: 601px; + /* 保持原有宽度 */ + position: absolute; + /* 保持绝对定位 */ + left: 203px; + /* 保持原有左边距 */ + top: 69px; + /* 保持原有顶部距离 */ + background-color: #ffffff; + /* 默认背景色 */ + border-radius: 4px; + /* 边角圆润 */ + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + /* 添加阴影效果 */ overflow: hidden; - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加轻微阴影效果 */ - border: 1px solid transparent; /* 设置透明边框,以避免默认边框影响 */ + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); + /* 添加轻微阴影效果 */ + border: 1px solid transparent; + /* 设置透明边框,以避免默认边框影响 */ } /* 单元格样式 */ table.gsc-completion-container td { - padding: 12px; /* 内边距 */ - transition: background-color 0.3s, color 0.3s; /* 背景和文字色变换效果 */ + padding: 12px; + /* 内边距 */ + transition: background-color 0.3s, color 0.3s; + /* 背景和文字色变换效果 */ } /* 字体样式 */ table.gsc-completion-container span { - color: #333; /* 默认文字颜色 */ - font-size: 16px; /* 字体大小 */ + color: #333; + /* 默认文字颜色 */ + font-size: 16px; + /* 字体大小 */ } /* 黑暗模式样式 */ @media (prefers-color-scheme: dark) { table.gsc-completion-container { - background-color: #1e1e1e; /* 黑暗模式背景色 */ + background-color: #1e1e1e; + /* 黑暗模式背景色 */ } - table.gsc-completion-container td { - background-color: #1e1e1e; /* 黑暗模式单元格背景色 */ - color: #f0f0f0; /* 黑暗模式文字色 */ + table.gsc-completion-container td { + background-color: #1e1e1e; + /* 黑暗模式单元格背景色 */ + color: #f0f0f0; + /* 黑暗模式文字色 */ } table.gsc-completion-container span { - color: #f0f0f0; /* 黑暗模式文字色 */ + color: #f0f0f0; + /* 黑暗模式文字色 */ } } diff --git a/src/components/Home.vue b/src/components/Home.vue index 5b3d00d..bb174bf 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -9,6 +9,16 @@
+ + + @@ -59,4 +69,23 @@ export default { font-size: 16px; color: var(--uv-styles-color-text-default); } - \ No newline at end of file + +/* 新增的页脚样式 */ +footer { + position: absolute; + bottom: 20px; /* 离底部20px */ + text-align: center; /* 居中对齐 */ + width: 100%; /* 宽度为100% */ + font-size: 14px; /* 字体大小 */ + color: var(--uv-styles-color-text-default); /* 使用与其他文本一致的颜色 */ +} + +footer a { + text-decoration: none; /* 去掉下划线 */ + color: var(--uv-styles-color-text-default); /* 使用与其他文本一致的颜色 */ +} + +footer a:hover { + text-decoration: underline; /* 悬停时加下划线 */ +} + diff --git a/src/components/Results.vue b/src/components/Results.vue index 703d043..7d6c228 100644 --- a/src/components/Results.vue +++ b/src/components/Results.vue @@ -5,12 +5,12 @@
-
+