pref: optimizing css (#171)

- 删除不会生效的 CSS
- 调整结构,减少不必要的标签
This commit is contained in:
YangQi 2022-08-04 19:06:43 +08:00 committed by GitHub
parent 19d87ce67b
commit 5c7e27d81f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 37 deletions

View File

@ -7,17 +7,15 @@
width="30%" width="30%"
center center
> >
<div style="text-align: center"> <div style="text-align: center;">
<h3>一款高度简洁的微信 Markdown 编辑器</h3> <h3>一款高度简洁的微信 Markdown 编辑器</h3>
</div>
<div style="text-align: center; margin-top: 10px">
<p>扫码关注我的公众号原创技术文章第一时间推送</p> <p>扫码关注我的公众号原创技术文章第一时间推送</p>
<img <img
src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png" 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> </div>
<span slot="footer" class="dialog-footer"> <template slot="footer">
<el-button <el-button
type="primary" type="primary"
@click="onRedirect('https://github.com/doocs/md')" @click="onRedirect('https://github.com/doocs/md')"
@ -32,7 +30,7 @@
> >
Gitee 仓库 Gitee 仓库
</el-button> </el-button>
</span> </template>
</el-dialog> </el-dialog>
</template> </template>

View File

@ -4,16 +4,19 @@
class="reset__dialog" class="reset__dialog"
:visible="showResetConfirm" :visible="showResetConfirm"
@close="$emit('close')" @close="$emit('close')"
center
> >
<div class="text">此操作将丢失本地自定义样式是否继续?</div> <div style="text-align: center">
<div slot="footer" class="dialog-footer"> 此操作将丢失本地自定义样式是否继续?
</div>
<template slot="footer">
<el-button :type="btnType" @click="$emit('close')" plain> <el-button :type="btnType" @click="$emit('close')" plain>
</el-button> </el-button>
<el-button :type="btnType" @click="$emit('confirm')" plain> <el-button :type="btnType" @click="$emit('confirm')" plain>
</el-button> </el-button>
</div> </template>
</el-dialog> </el-dialog>
</template> </template>
@ -42,16 +45,4 @@ export default {
/deep/ .el-dialog { /deep/ .el-dialog {
min-width: 440px; min-width: 440px;
} }
.reset__dialog {
text-align: center;
}
.text {
text-align: center;
}
.dialog-footer {
text-align: center;
}
</style> </style>

View File

@ -28,19 +28,4 @@ export default {
} }
</script> </script>
<style scoped> <style scoped></style>
.fade-enter,
.fade-leave-to {
opacity: 0;
}
.fade-enter-to,
.fade-leave {
opacity: 1;
}
.fade-enter-active,
.fade-leave-active {
transition: all 1s;
}
</style>