From 5b31ce43c519859df1784b500edba8273fc2a8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Wed, 30 Mar 2022 01:57:54 +0800 Subject: [PATCH 01/13] =?UTF-8?q?docs:=20=E9=9B=86=E6=88=90=20dark-reader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/component/button/index.vue | 2 +- src/component/card/index.vue | 2 +- src/component/datePicker/interface.ts | 1 + src/provider/index.vue | 16 +++++++++++++-- src/theme/variable.less | 28 +-------------------------- 6 files changed, 19 insertions(+), 31 deletions(-) create mode 100644 src/component/datePicker/interface.ts diff --git a/package.json b/package.json index 5a6141ec..07aec381 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "@layui/layer-vue": "^1.3.11", "@vueuse/core": "^7.6.2", "async-validator": "^4.0.7", + "darkreader": "^4.9.46", "evtd": "^0.2.3", "moment": "^2.29.1", "uuid": "^8.3.2", diff --git a/src/component/button/index.vue b/src/component/button/index.vue index 90a3f786..e9497370 100644 --- a/src/component/button/index.vue +++ b/src/component/button/index.vue @@ -13,7 +13,7 @@ import { ButtonSize, ButtonType, } from "./interface"; -import { BooleanOrString, String } from "src/types"; +import { BooleanOrString, String } from "../../types"; export interface LayButtonProps { type?: ButtonType; diff --git a/src/component/card/index.vue b/src/component/card/index.vue index 60af6f54..78d3cc13 100644 --- a/src/component/card/index.vue +++ b/src/component/card/index.vue @@ -7,7 +7,7 @@ export default { \ No newline at end of file diff --git a/example/src/components/LaySearch.vue b/example/src/components/LaySearch.vue index 31e5a01d..2ce4342f 100644 --- a/example/src/components/LaySearch.vue +++ b/example/src/components/LaySearch.vue @@ -31,8 +31,28 @@ onMounted(() => { :root { --docsearch-logo-color: var(--global-primary-color); --docsearch-primary-color: var(--global-primary-color); - --docsearch-searchbox-background: rgba(255, 255, 255, 0.05); - --docsearch-searchbox-focus-background: rgba(255, 255, 255, 0.05); + --docsearch-searchbox-background: rgba(255, 255, 255, 0.02); + --docsearch-searchbox-focus-background: rgba(255, 255, 255, 0.02); --docsearch-container-background: rgba(0, 0, 0, 0.1); } + +.DocSearch-Button, +.DocSearch-Button:hover, +.DocSearch-Button:active, +.DocSearch-Button:focus { + border: 1px solid rgb(224, 224, 230); + box-shadow: none; +} + +.DocSearch-Button-Key { + border: 1px solid rgba(60, 60, 60, .29); + background: transparent; + box-shadow: none; +} + +.DocSearch-Button +.DocSearch-Search-Icon, +.DocSearch-Button-Placeholder { + color: rgba(0, 0, 0, 0.6); +} diff --git a/example/src/layouts/Layout.vue b/example/src/layouts/Layout.vue index 350531fc..652fee7c 100644 --- a/example/src/layouts/Layout.vue +++ b/example/src/layouts/Layout.vue @@ -5,10 +5,10 @@ :locales="locales" :themeVariable="themeVariable" > - + - + > +