Compare commits

..

No commits in common. "9c54c89fcfd33cb70845bbba3aa71fdaa4b1d445" and "9ffdb85b12db5b0da48fd819455eaf3a02fb4678" have entirely different histories.

4 changed files with 3 additions and 37 deletions

View File

@ -1,7 +1,7 @@
:root { :root {
--black: #232D37; --black: #232D37;
--white: #FAE2D3; --white: #FAE2D3;
--success: #3CB57F; --succes: #3CB57F;
} }
body { body {

View File

@ -29,7 +29,7 @@ div.y2t-output button {
display:block; display:block;
} }
div.y2t-output div.promptext { div.y2t-output div {
max-height: 120px; max-height: 120px;
overflow-y: scroll; overflow-y: scroll;
display:block; display:block;

View File

@ -136,37 +136,3 @@ section#output div.y2t-output {
margin-top: 40px; margin-top: 40px;
margin-bottom: 40px; margin-bottom: 40px;
} }
div.y2t-output {
position: relative;
}
div.copied {
position: absolute;
background-color: var(--success);
color: white;
font-size: 1.2rem;
padding: 10px;
right: -15px;
top: -10px;
transform: rotate(10deg);
}
.success {
animation: fade-in 3s forwards;
}
@keyframes fade-in {
0% {
opacity: 0;
}
30% {
opacity: 1;
}
80% {
opacity: 1;
}
100% {
opacity: 0;
}
}

View File

@ -31,7 +31,7 @@ Vue.component('copbox',{
successOk(){ successOk(){
this.isSuccess = true; this.isSuccess = true;
this.$refs.element.addEventListener('animationend', () => { this.$refs.element.addEventListener('animationend', () => {
this.isSuccess = false; this.isFaded = false;
}); });
} }
} }