feat: update scrollbar

This commit is contained in:
yanglbme 2019-11-05 19:31:36 +08:00
parent 0825695b4e
commit 9c65fa5738
3 changed files with 35 additions and 11 deletions

View File

@ -112,10 +112,6 @@ section {
width: 100% !important; width: 100% !important;
} }
/*.preview ul, .preview ol {*/
/* padding-left: 40px !important;*/
/*}*/
.select-item-left { .select-item-left {
float: left; float: left;
} }
@ -197,3 +193,25 @@ section {
position: relative; position: relative;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
} }
::-webkit-scrollbar {
width: 6px;
height: 16px;
background-color: #FFF;
}
::-webkit-scrollbar-track {
border-radius: 6px;
background-color: #FFF;
}
::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(144, 146, 152, 0.5);
cursor: pointer;
transition: background-color .3s;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(144, 146, 152, 0.5);
}

View File

@ -144,17 +144,23 @@ let app = new Vue({
try { try {
if (document.execCommand('copy')) { if (document.execCommand('copy')) {
this.$message({ this.$message({
message: '已复制文章到剪贴板,可直接到公众号后台粘贴', type: 'success' showClose: true,
}) message: '已复制文章到剪贴板,可直接到公众号后台粘贴',
type: 'success'
});
} else { } else {
this.$message({ this.$message({
message: '未能复制文章到剪贴板,请全选后右键复制', type: 'warning' showClose: true,
}) message: '未能复制文章到剪贴板,请全选后右键复制',
type: 'warning'
});
} }
} catch (err) { } catch (err) {
this.$message({ this.$message({
message: '未能复制文章到剪贴板,请全选后右键复制', type: 'warning' showClose: true,
}) message: '未能复制文章到剪贴板,请全选后右键复制',
type: 'warning'
});
} }
}, },
openWindow: function (url) { openWindow: function (url) {

View File

@ -88,10 +88,10 @@
</div> </div>
</section> </section>
</el-col> </el-col>
</el-row> </el-row>
</el-main> </el-main>
</el-container> </el-container>
<el-dialog title="关于" :visible.sync="aboutDialogVisible" width="30%" center> <el-dialog title="关于" :visible.sync="aboutDialogVisible" width="30%" center>
<div style="text-align: center;"> <div style="text-align: center;">
<h3>一款简洁美观的微信 Markdown 编辑器</h3> <h3>一款简洁美观的微信 Markdown 编辑器</h3>