Skip to content

Commit 4c47a20

Browse files
committed
Make the Value CSS transition a scoped style
1 parent aed784f commit 4c47a20

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

src/assets/style.css

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -328,26 +328,3 @@ th {
328328
.list-complete-leave-active {
329329
position: absolute;
330330
}
331-
332-
333-
334-
335-
.diff-once-leave-active {
336-
transition: all 1s;
337-
position: absolute;
338-
}
339-
340-
.pos-absolute {
341-
position: absolute;
342-
top: 0;
343-
left: 0;
344-
}
345-
346-
.diff-once-leave {
347-
opacity: 1;
348-
}
349-
350-
.diff-once-leave-to {
351-
opacity: 0;
352-
transform: translateY(-30px);
353-
}

src/components/Value.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,24 @@ export default {
9393
}
9494
9595
</script>
96+
<style scoped>
97+
.diff-once-leave-active {
98+
transition: all 1s;
99+
position: absolute;
100+
}
101+
102+
.pos-absolute {
103+
position: absolute;
104+
top: 0;
105+
left: 0;
106+
}
107+
108+
.diff-once-leave {
109+
opacity: 1;
110+
}
111+
112+
.diff-once-leave-to {
113+
opacity: 0;
114+
transform: translateY(-30px);
115+
}
116+
</style>

0 commit comments

Comments
 (0)