Improve copy button's style in dark mode
This commit is contained in:
parent
045410b2e6
commit
a267b82311
1 changed files with 14 additions and 5 deletions
|
|
@ -93,7 +93,9 @@ export default {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="less">
|
||||||
|
@import "../../assets/less/theme.less";
|
||||||
|
|
||||||
.matrix-container {
|
.matrix-container {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
|
|
@ -140,18 +142,25 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: #666;
|
color: @global-muted-color;
|
||||||
transition: color 0.2s ease;
|
transition: color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-button:hover {
|
.copy-button:hover {
|
||||||
color: #000;
|
color: @global-color;
|
||||||
}
|
}
|
||||||
.copy-button {
|
|
||||||
transition: background-color 0.3s ease, color 0.3s ease;
|
.hook-inverse() {
|
||||||
|
.copy-button:hover {
|
||||||
|
color: @inverse-global-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-button.success {
|
.copy-button.success {
|
||||||
color: #4caf50;
|
color: #4caf50;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #4caf50;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue