Skip to content

Commit

Permalink
pref: optimizing css (#171)
Browse files Browse the repository at this point in the history
- 删除不会生效的 CSS
- 调整结构,减少不必要的标签
  • Loading branch information
YangFong authored Aug 4, 2022
1 parent 19d87ce commit 5c7e27d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 37 deletions.
10 changes: 4 additions & 6 deletions src/components/CodemirrorEditor/aboutDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@
width="30%"
center
>
<div style="text-align: center">
<div style="text-align: center;">
<h3>一款高度简洁的微信 Markdown 编辑器</h3>
</div>
<div style="text-align: center; margin-top: 10px">
<p>扫码关注我的公众号,原创技术文章第一时间推送!</p>
<img
src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png"
style="width: 40%; display: block; margin: 20px auto 10px"
style="width: 40%;"
/>
</div>
<span slot="footer" class="dialog-footer">
<template slot="footer">
<el-button
type="primary"
@click="onRedirect('https://github.com/doocs/md')"
Expand All @@ -32,7 +30,7 @@
>
Gitee 仓库
</el-button>
</span>
</template>
</el-dialog>
</template>

Expand Down
21 changes: 6 additions & 15 deletions src/components/CodemirrorEditor/resetDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@
class="reset__dialog"
:visible="showResetConfirm"
@close="$emit('close')"
center
>
<div class="text">此操作将丢失本地自定义样式,是否继续?</div>
<div slot="footer" class="dialog-footer">
<div style="text-align: center">
此操作将丢失本地自定义样式,是否继续?
</div>
<template slot="footer">
<el-button :type="btnType" @click="$emit('close')" plain>
取 消
</el-button>
<el-button :type="btnType" @click="$emit('confirm')" plain>
确 定
</el-button>
</div>
</template>
</el-dialog>
</template>

Expand Down Expand Up @@ -42,16 +45,4 @@ export default {
/deep/ .el-dialog {
min-width: 440px;
}
.reset__dialog {
text-align: center;
}
.text {
text-align: center;
}
.dialog-footer {
text-align: center;
}
</style>
17 changes: 1 addition & 16 deletions src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,4 @@ export default {
}
</script>

<style scoped>
.fade-enter,
.fade-leave-to {
opacity: 0;
}
.fade-enter-to,
.fade-leave {
opacity: 1;
}
.fade-enter-active,
.fade-leave-active {
transition: all 1s;
}
</style>
<style scoped></style>

0 comments on commit 5c7e27d

Please sign in to comment.