11@import (reference ) ' ../../styles/variables.less' ;
22
3- // @{dark-selector} {
4- // color-scheme: dark ;
5- // }
3+ @{dark-selector} {
4+ color-scheme : light ;
5+ }
66
77body {
88 margin : 0 ;
99 padding : 0 ;
1010 background-color : @c-site-bg ;
11- // @{dark-selector} & {
12- // background-color: @c-site-bg-dark;
13- // }
11+
12+ @{dark-selector} & {
13+ // background-color: @c-site-bg-dark;
14+ background : #f8f9fb ;
15+ }
1416}
1517
1618.@{prefix} -doc-layout {
1719 font-family : sans-serif ;
1820 background-color : @c-site-bg ;
1921
20- // @{dark-selector} & {
21- // background-color: @c-site-bg-dark ;
22- // }
22+ @{dark-selector} & {
23+ background-color : #f8f9fb ;
24+ }
2325
2426 @media @mobile {
2527 & ::before {
@@ -127,6 +129,11 @@ body {
127129 .dumi-default-article .dumi-default-content :not ([data- no- sidebar]) {
128130 background-color : #070b13 ;
129131 box-shadow : 0px 2px 4px 0px #000000ff ;
132+
133+ @{dark-selector} & {
134+ background : #ffffff ;
135+ box-shadow : 0px 2px 4px 0px rgb (249 , 249 , 249 );
136+ }
130137 }
131138
132139 .markdown {
@@ -136,12 +143,30 @@ body {
136143 letter-spacing : 0.61px ;
137144 font-weight : 300 ;
138145 margin : 0 auto ;
146+ // line-height: 1.5;
147+
148+ @{dark-selector} & {
149+ font-size : 18px ;
150+ color : #1b1b1b ;
151+ line-height : 30px ;
152+
153+ }
139154
140155 a {
141156 color : #9999FF ;
142157 }
143158 }
144159
160+ .markdown th {
161+ background-color : #828287 ;
162+
163+ @{dark-selector} & {
164+ background-color : #bcbec1 ;
165+ border-bottom-left-radius : 4px ;
166+ border-bottom-right-radius : 4px ;
167+ }
168+ }
169+
145170 .dumi-default-content-tool {
146171 color : #b5b5b5 ;
147172 }
@@ -150,9 +175,9 @@ body {
150175 color : #b5b5b5 ;
151176 }
152177
153- .dumi-default-toc > li > a .active {
154- color : #fff !important ;
155- }
178+ // .dumi-default-toc>li>a.active {
179+ // color: #fff !important;
180+ // }
156181
157182 .dumi-default-toc > li > a {
158183 color : #b5b5b5 ;
@@ -161,11 +186,33 @@ body {
161186 .dumi-default-source-code {
162187 background : #2c2d2e ;
163188 border-radius : 4px ;
189+
190+ @{dark-selector} & {
191+ background-color : #fbfcfd ;
192+ border-bottom-left-radius : 4px ;
193+ border-bottom-right-radius : 4px ;
194+ }
195+ }
196+
197+ .markdown * :not (pre ) code {
198+ background : #2c2d2e ;
199+
200+ @{dark-selector} & {
201+ background : #f0f4f8 ;
202+ }
164203 }
165204
205+
166206 .dumi-default-source-code > pre .prism-code {
167207 color : #e4e9ec ;
168208 background : #2c2d2e ;
209+
210+ @{dark-selector} & {
211+ color : #383a42 ;
212+ background-color : #fbfcfd ;
213+ border-bottom-left-radius : 4px ;
214+ border-bottom-right-radius : 4px ;
215+ }
169216 }
170217
171218 .dumi-default-source-code-copy {
@@ -174,40 +221,84 @@ body {
174221
175222 .dumi-default-article .dumi-default-content :not ([data- no- sidebar]) {
176223 padding : 10px 18px 48px 28px ;
177- }
178224
179- .ant-select-outlined :not (.ant-select-customize-input ) .ant-select-selector {
180- background : #070b13 ;
225+ @{dark-selector} & {
226+ padding : 55px ;
227+ }
181228 }
182229
183- .ant-menu-light .ant-menu-item {
184- color : #b5b5b5 ;
185- }
186230
231+ // .ant-select-outlined:not(.ant-select-customize-input) .ant-select-selector {
232+ // background: #070b13;
233+ // }
234+
235+ // .ant-menu-light .ant-menu-item {
236+ // color: #b5b5b5;
237+ // }
238+ .dumi-default-navbar .ant-menu-light {
239+
240+ }
187241 .ant-menu-light :not (.ant-menu-horizontal ) .ant-menu-submenu-title :active {
188242 background-color : #181d29 ;
189- border-radius : 5px ;
190243
191- }
244+ @{dark-selector} & {
245+ background-color : #f0f4ff ;
246+ }
192247
193- .ant-menu-light :not (.ant-menu-horizontal ) .ant-menu-item :not (.ant-menu-item-selected ):hover {
194- background-color : #181d29 ;
195- color : #fff ;
196248 }
197249
198- .ant-select-single .ant-select-selector {
199- color : #fff ;
250+ // .ant-menu-light:not(.ant-menu-horizontal) .ant-menu-item:not(.ant-menu-item-selected):hover {
251+ // background-color: #181d29;
252+ // color: #fff;
253+ // }
254+
255+ // .ant-select-single .ant-select-selector {
256+ // color: #fff;
257+ // }
258+
259+ // .ant-select .ant-select-arrow {
260+ // color: #fff;
261+ // }
262+ .ant-menu-light .ant-menu-submenu-title {
263+ color : #f0f4ff ;
264+
265+ @{dark-selector} & {
266+ color : #000 ;
267+ }
200268 }
201269
202- .ant-select .ant-select-arrow {
203- color : #fff ;
270+ .ant-menu-light .ant-menu-item {
271+ color : #f0f4ff ;
272+
273+ @{dark-selector} & {
274+ color : #000 ;
275+ }
204276 }
205277
206278 .ant-menu-light .ant-menu-item-selected {
207279 background-color : #181d29 ;
280+ // color: #fff;
281+ color : #000 ;
282+
283+ @{dark-selector} & {
284+ background-color : #f0f4ff ;
285+ color : #000 ;
286+ }
287+
288+ }
289+
290+ .ant-menu-light :not (.ant-menu-horizontal ) .ant-menu-item :not (.ant-menu-item-selected ):active {
291+ background-color : #181d29 ;
292+
293+ @{dark-selector} & {
294+ background-color : #f0f4ff ;
295+ }
296+
208297 }
209298 }
210- .markdown :not (:lang(zh)):not (:lang(ja)):not (:lang(kr)), .markdown :not (:lang(zh)) {
299+
300+ .markdown :not (:lang(zh)):not (:lang(ja)):not (:lang(kr)),
301+ .markdown :not (:lang(zh)) {
211302 letter-spacing : 0.61px ;
212303 }
213304
0 commit comments