Skip to content

Commit 9fcd3fd

Browse files
author
reco_luan
committed
feat: add dark mode(part.10)
Style adjustment
1 parent b4183be commit 9fcd3fd

File tree

6 files changed

+30
-134
lines changed

6 files changed

+30
-134
lines changed

components/HomeBlog.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ export default {
243243
border-radius $borderRadius
244244
box-sizing border-box
245245
padding 0 15px
246+
background var(--background-color)
246247
&:hover {
247248
box-shadow: var(--box-shadow-hover);
248249
}
@@ -291,6 +292,7 @@ export default {
291292
transition: all .5s
292293
border-radius $borderRadius
293294
box-shadow var(--box-shadow)
295+
background-color var(--background-color)
294296
&:hover {
295297
transform scale(1.04)
296298
}

components/Navbar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ $navbar-horizontal-padding = 1.5rem
9292
padding $navbar-vertical-padding $navbar-horizontal-padding
9393
line-height $navbarHeight - 1.4rem
9494
box-shadow var(--box-shadow)
95+
background var(--background-color)
9596
a, span, img
9697
display inline-block
9798
.logo
@@ -104,6 +105,7 @@ $navbar-horizontal-padding = 1.5rem
104105
font-weight 600
105106
color var(--text-color)
106107
position relative
108+
background var(--background-color)
107109
.links
108110
padding-left 1.5rem
109111
box-sizing border-box

layouts/404.vue

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,28 @@ export default {
4242

4343
<style src="../styles/theme.styl" lang="stylus"></style>
4444

45-
<style lang="stylus" scoped>
46-
.content {
45+
<style lang="stylus">
46+
.content
4747
margin 4rem auto 0
4848
max-width 800px
4949
padding 0 2rem
50-
}
50+
.mod_404
51+
.desc
52+
.desc_link
53+
display: inline-block
54+
// margin: 20px 0
55+
background: #424242!important
56+
color: #ffffff
57+
padding: 6px 20px!important
58+
text-decoration: none!important
59+
border-radius: 4px
60+
61+
@media screen and (max-width: 720px)
62+
.mod_404
63+
.desc
64+
margin: 50px 0
65+
.wrapper
66+
margin 0!important
67+
padding-top 20px
5168
</style>
5269

layouts/Category.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export default {
125125
font-size: 13px;
126126
box-shadow var(--box-shadow)
127127
transition: all .5s
128+
background-color var(--background-color)
128129
&:hover, &.active {
129130
background $accentColor
130131
a span.category-name {

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-reco",
3-
"version": "1.2.0-alpha.5",
3+
"version": "1.2.0-alpha.6",
44
"description": "A simple and beautiful vuepress Blog & Doc theme.",
55
"main": "index.js",
66
"scripts": {
@@ -27,12 +27,11 @@
2727
"_from": "vuepress-theme-reco@0.2.1",
2828
"_resolved": "http://registry.npm.taobao.org/vuepress-theme-reco/download/vuepress-theme-reco-0.2.1.tgz",
2929
"dependencies": {
30-
"@vuepress-reco/vuepress-plugin-back-to-top": "^1.0.5",
30+
"@vuepress-reco/vuepress-plugin-back-to-top": "^1.0.6",
3131
"@vuepress-reco/vuepress-plugin-extract-code": "^1.0.3",
32-
"@vuepress-reco/vuepress-plugin-loading-page": "^1.0.4",
33-
"@vuepress-reco/vuepress-plugin-pagation": "^1.0.4",
34-
"@vuepress-reco/vuepress-plugin-screenfull": "^1.0.1",
35-
"@vuepress-reco/vuepress-plugin-comments": "^1.0.8",
32+
"@vuepress-reco/vuepress-plugin-loading-page": "^1.0.5",
33+
"@vuepress-reco/vuepress-plugin-pagation": "^1.0.6",
34+
"@vuepress-reco/vuepress-plugin-comments": "^1.0.10",
3635
"@vuepress/plugin-medium-zoom": "1.2.0",
3736
"@vuepress/plugin-blog": "1.3.0",
3837
"docsearch.js": "^2.5.2",

styles/theme.styl

Lines changed: 0 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -212,128 +212,3 @@ th, td
212212
/************** 流程图的滚动条 **************/
213213
.vuepress-flowchart
214214
overflow: auto
215-
216-
/************** 腾讯 404 公益 **************/
217-
218-
.mod_404 .desc {
219-
.desc_link {
220-
display: inline-block
221-
// margin: 20px 0
222-
background: #424242!important
223-
color: #ffffff
224-
padding: 6px 20px!important
225-
text-decoration: none!important
226-
border-radius: 4px
227-
}
228-
}
229-
230-
@media screen and (max-width: 720px) {
231-
.mod_404 .desc {
232-
margin: 50px 0
233-
}
234-
}
235-
236-
/************** 评论功能 **************/
237-
238-
.comments-wrapper
239-
.valine-wrapper
240-
#valine.v
241-
.vbtn
242-
color: var(--text-color)
243-
border: 1px solid var(--border-color)
244-
&:hover
245-
color: $accentColor
246-
border-color: $accentColor
247-
.vwrap
248-
background: var(--code-color)
249-
border: 1px dashed var(--border-color)
250-
.vcontrol
251-
.vsubmit
252-
background: var(--code-color)
253-
.vheader .vinput
254-
border-bottom: 1px dashed var(--border-color)
255-
.vinfo
256-
padding-left: .6rem
257-
.vlist
258-
padding: 0 .6rem
259-
border-radius: $borderRadius
260-
.vcard
261-
.vquote
262-
margin-left: 0
263-
border-left: 1px dashed var(--border-color)
264-
.vimg
265-
width: 2.8rem;
266-
height: 2.8rem;
267-
border-radius: $borderRadius
268-
border: none
269-
.vh
270-
border-bottom: 1px dashed var(--border-color)
271-
.vhead
272-
.vsys
273-
background: var(--code-color)
274-
color: var(--text-color)
275-
.vmeta
276-
margin-bottom: 1rem
277-
.vat
278-
margin-right: .3rem
279-
background: var(--code-color)
280-
border-radius: $borderRadius
281-
padding: 0 .4rem
282-
color: var(--text-color)
283-
border: 1px solid var(--border-color)
284-
&:hover
285-
color: $accentColor
286-
border-color: $accentColor
287-
.vcontent
288-
background: var(--code-color)
289-
border-radius: $borderRadius
290-
margin: 0 .3rem
291-
padding: .1rem .6rem .05rem .6rem
292-
p .at
293-
color: #1abc9c
294-
&.expand:before
295-
z-index 1
296-
background: linear-gradient(180deg, rgba(255,255,255,0), var(--background-color))
297-
&.expand:after
298-
background: var(--background-color)
299-
color: var(--color-color)
300-
.info
301-
padding-right: .6rem
302-
303-
/************** 分页 **************/
304-
.pagation
305-
.pagation-list
306-
background: var(--background-color)!important
307-
.jump, .jumpinp input
308-
background-color: var(--background-color)
309-
color: var(--text-color)
310-
box-shadow: var(--box-shadow)
311-
border 1px solid var(--border-color)!important
312-
313-
/************** 回到顶部 **************/
314-
.back-to-ceiling
315-
background-color: var(--background-color)!important
316-
box-shadow: var(--box-shadow)!important
317-
318-
/********* 悬浮卡片背景颜色 **********/
319-
320-
.navbar
321-
background var(--background-color)
322-
.links
323-
background var(--background-color)
324-
325-
.home-blog
326-
.home-blog-wrapper
327-
.info-wrapper
328-
background var(--background-color)
329-
330-
.abstract-item
331-
background var(--background-color)
332-
333-
.category-wrapper
334-
.category-item
335-
background var(--background-color)
336-
337-
.pagation
338-
.jump
339-
background var(--background-color)

0 commit comments

Comments
 (0)