From 03633026cc5511332daece8af03b625c8d651556 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sat, 9 Apr 2022 12:24:24 +0800 Subject: [PATCH] website: update website style. --- website/styles/index.module.less | 8 -------- website/styles/reset.less | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/website/styles/index.module.less b/website/styles/index.module.less index 55af1038..25ca788d 100644 --- a/website/styles/index.module.less +++ b/website/styles/index.module.less @@ -1,11 +1,3 @@ -[data-color-mode*='dark'], [data-color-mode*='dark'] body { - --color-header-bg: var(--color-theme-bg); -} -[data-color-mode*='light'], [data-color-mode*='light'] body { - - --color-header-bg: #333; -} - .tools { position: absolute; margin: 15px 0 0 15px; diff --git a/website/styles/reset.less b/website/styles/reset.less index a57ceebc..20ef4da6 100644 --- a/website/styles/reset.less +++ b/website/styles/reset.less @@ -1,14 +1,25 @@ +[data-color-mode*='dark'], [data-color-mode*='dark'] body { + --color-header-bg: var(--color-theme-bg); +} +[data-color-mode*='light'], [data-color-mode*='light'] body { + --color-header-bg: #333; + background: #f8f8f8 url(../assets/bg.jpg) repeat top left; +} + *, *:before, *:after { box-sizing: inherit !important; } body { font-family: "PingHei","Lucida Grande", "Lucida Sans Unicode", "STHeitiSC-Light", "Helvetica","Arial","Verdana","sans-serif"; - // color:#535353; - // background: #f8f8f8 url(../assets/bg.jpg) repeat top left; transition: all 0.3s; + margin: 0; } a { text-decoration: none; } + +.wmde-markdown { + background-color: transparent !important; +} \ No newline at end of file