Compare commits
3 Commits
9ffdb85b12
...
9c54c89fcf
Author | SHA1 | Date |
---|---|---|
|
9c54c89fcf | |
|
1542a42156 | |
|
261cdfe9b7 |
|
@ -1,7 +1,7 @@
|
||||||
:root {
|
:root {
|
||||||
--black: #232D37;
|
--black: #232D37;
|
||||||
--white: #FAE2D3;
|
--white: #FAE2D3;
|
||||||
--succes: #3CB57F;
|
--success: #3CB57F;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -29,7 +29,7 @@ div.y2t-output button {
|
||||||
display:block;
|
display:block;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.y2t-output div {
|
div.y2t-output div.promptext {
|
||||||
max-height: 120px;
|
max-height: 120px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
display:block;
|
display:block;
|
||||||
|
|
|
@ -135,4 +135,38 @@ section#output {
|
||||||
section#output div.y2t-output {
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -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.isFaded = false;
|
this.isSuccess = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue