Skip to content

Commit 932614b

Browse files
committed
Merge branch 'master' of github.com:CodeLabClub/NewCodeLabWeb
2 parents 6db259f + 70c4e0e commit 932614b

File tree

3 files changed

+30
-15
lines changed

3 files changed

+30
-15
lines changed

docusaurus.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
const codeblockTheme = require('prism-react-renderer/themes/palenight')
2+
// 可选theme https://github.com/FormidableLabs/prism-react-renderer/tree/master/src/themes
3+
// 覆盖背景色
4+
codeblockTheme.plain.backgroundColor = '#000000'
5+
16
module.exports = {
27
title: 'CodeLab',
38
tagline: '传递编程的乐趣,鼓励孩子成为数字时代的创作者',
@@ -113,6 +118,10 @@ module.exports = {
113118
/*copyright: `Copyright © ${new Date().getFullYear()} CodeLab, Inc. Built with Docusaurus.`,*/
114119
copyright: `©CodeLab`,
115120
},
121+
prism: {
122+
theme: codeblockTheme,
123+
darkTheme: codeblockTheme,
124+
},
116125
},
117126
presets: [
118127
[
@@ -130,7 +139,7 @@ module.exports = {
130139
showReadingTime: true,
131140
// Please change this to your repo.
132141
editUrl:
133-
'https://github.com/CodeLabClub/NewCodeLabWeb/tree/master/blog/',
142+
'https://github.com/CodeLabClub/NewCodeLabWeb/tree/master/',
134143
},
135144
theme: {
136145
customCss: require.resolve('./src/css/custom.css'),

src/css/custom.css

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
--ifm-navbar-background-color:black;
1919
--ifm-background-color: white !important;
2020
--ifm-navbar-height: 4rem;
21-
--ifm-navbar-item-padding-horizontal: 2.85rem;
21+
--ifm-navbar-item-padding-horizontal: 2.85rem;
2222
--ifm-navbar-link-color: white;
2323
--ifm-color-content-secondary: #1a1a1a!important;/*右侧目录字体颜色,重新挑选修改!*/
2424
--ifm-button-border-radius:0rem;
@@ -183,6 +183,10 @@ h2[class^='margin-bottom--sm blogPostTitle'] {
183183
}
184184

185185
@media screen and (max-width: 966px) {
186+
:root {
187+
--ifm-color-content: #c2c2c2;
188+
}
189+
186190
.navbar__items {
187191
justify-content: unset;
188192
}
@@ -199,77 +203,77 @@ h2[class^='margin-bottom--sm blogPostTitle'] {
199203
font-size: 10em;
200204
line-height: 0.7em;
201205
word-wrap: break-word;
202-
overflow-wrap: break-word;
206+
overflow-wrap: break-word;
203207
}
204208

205209
.char1{
206210
z-index: 12;
207-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
211+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
208212
margin-left:-0.1em;
209213
}
210214

211215
.char2{
212216
z-index: 11;
213-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
217+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
214218
margin-left:-0.1em;
215219
}
216220

217221
.char3{
218222
z-index: 10;
219-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
223+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
220224
margin-left:-0.1em;
221225
}
222226

223227
.char4{
224228
z-index: 9;
225-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
229+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
226230
margin-left:-0.1em;
227231
}
228232

229233
.char5{
230234
z-index: 8;
231-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
235+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
232236
margin-left:-0.1em;
233237
}
234238

235239
.char6{
236240
z-index: 7;
237-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
241+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
238242
margin-left:-0.1em;
239243
}
240244

241245
.char7{
242246
z-index: 6;
243-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
247+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
244248
margin-left:-0.1em;
245249
}
246250

247251
.char8{
248252
z-index: 5;
249-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
253+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
250254
margin-left:-0.1em;
251255
}
252256

253257
.char9{
254258
z-index: 4;
255-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
259+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
256260
margin-left:-0.1em;
257261
}
258262

259263
.char10{
260264
z-index: 3;
261-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
265+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
262266
margin-left:-0.1em;
263267
}
264268

265269
.char11{
266270
z-index: 2;
267-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
271+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
268272
margin-left:-0.1em;
269273
}
270274

271275
.char12{
272276
z-index: 1;
273-
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
277+
text-shadow:0 0.05em 0.12em rgba(0,0,0,0.9);
274278
margin-left:-0.1em;
275279
}

src/pages/styles.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@
417417
/* width:800px;
418418
height: 300px; */
419419
padding-bottom:4rem;
420+
margin-left: 0;
421+
margin-right: 0;
420422
}
421423

422424
.plus1,

0 commit comments

Comments
 (0)