Skip to content

Commit ba60451

Browse files
author
HC200ok
committed
optimize datamask style
1 parent ea5f2f8 commit ba60451

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-manual-data-masking",
33
"description": "A vue2 component for manual data masking",
4-
"version": "0.1.7",
4+
"version": "0.1.8",
55
"private": false,
66
"author": "HC200ok",
77
"license": "MIT",

src/components/DataMasked.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,24 @@ export default class DataMasked extends Vue {
4545
}
4646
&_word {
4747
float: left;
48-
height: 1.3rem;
48+
height: 1.3em;
49+
line-height: 1.3;
4950
overflow: hidden;
5051
&_top,
5152
&_bottom {
53+
height: 1.3em;
5254
text-align: center;
53-
line-height: 1.3rem;
5455
display: block;
55-
transition: margin-top 0.3s;
56+
transition: margin-top .3s;
5657
}
5758
&:hover &_top {
58-
margin-top: -20px;
59+
margin-top: -1.3em;
5960
}
6061
}
6162
&_category {
6263
display: inline-block;
63-
font-weight: bold;
64-
height: 1.3rem;
64+
font-weight: 700;
65+
height: 1.3em;
6566
padding-left: 2px;
6667
}
6768
&_delete {

0 commit comments

Comments
 (0)