diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 4ffe379..db545b6 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -28,6 +28,13 @@ button.sandblasted-blurred::after { button.sandblasted-blurred:active { opacity: 0.7; } +@media (prefers-color-scheme: dark) { + :root, + body { + background: white !important; + color: black !important; + } +} html:root { --van-dialog-width: 90rem; --van-dialog-font-size: 5rem; @@ -39,3 +46,9 @@ html:root { --van-dialog-message-padding: 3rem 2.5rem; --van-dialog-has-title-message-padding-top: 2.5rem; } +.van-toast__text { + font-size: 4rem; + height: 5rem; + line-height: 5rem; + padding: 0 2rem; +} diff --git a/src/assets/css/style.less b/src/assets/css/style.less index c4ff8a9..8ebce53 100644 --- a/src/assets/css/style.less +++ b/src/assets/css/style.less @@ -34,6 +34,13 @@ button.sandblasted-blurred { } } +//只使用浅色模式 +@media (prefers-color-scheme: dark) { + :root, body { + background: white !important; + color: black !important; + } +} // vant dialog html:root { diff --git a/src/components/selectStyle/selectItem.vue b/src/components/selectStyle/selectItem.vue index b052897..74ab178 100644 --- a/src/components/selectStyle/selectItem.vue +++ b/src/components/selectStyle/selectItem.vue @@ -64,10 +64,10 @@ const {} = toRefs(data);