Skip to content

Commit 74534b1

Browse files
author
reco_luan
committed
feat: add dark mode(part.8)
Optimize homepage & password
1 parent 60a5aba commit 74534b1

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

components/HomeBlog.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ export default {
141141
</script>
142142

143143
<style lang="stylus">
144-
// @require '../styles/mode.styl'
145-
// @require '../styles/loadMixin.styl'
146-
147144
.home-blog {
148145
padding: $navbarHeight 0 0;
149146
margin: 0px auto;
@@ -157,11 +154,10 @@ export default {
157154
h1 {
158155
margin:7rem auto 1.8rem;
159156
font-size: 2.5rem;
160-
color #fff;
161157
}
162158
163159
h1, .description, .action, .huawei {
164-
color #fff!important
160+
color #fff
165161
}
166162
167163
.description {

components/Password.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export default {
6969
return
7070
}
7171
72+
this.warningText = 'Key Success'
73+
7274
const width = document.getElementById('box').style.width
7375
7476
passwordBtn.style.width = `${width - 2}px`
@@ -128,13 +130,16 @@ export default {
128130
text-shadow $textShadow
129131
}
130132
.inputBox{
131-
position relative
133+
position absolute
134+
top 40%
135+
left 0
136+
right 0
137+
margin auto
132138
display block
133139
max-width:700px;
134140
height: 100px;
135141
background: $accentColor;
136142
border-radius: $borderRadius
137-
margin 2rem auto 0
138143
padding-left 20px
139144
box-sizing border-box
140145
opacity 0.9

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-reco",
3-
"version": "1.2.0-alpha.3",
3+
"version": "1.2.0-alpha.4",
44
"description": "A simple and beautiful vuepress Blog & Doc theme.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)