Skip to content

Commit

Permalink
some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
judy-n committed Feb 7, 2022
1 parent 2f21a5e commit 505f0c5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,16 @@
let pass = e.target.previousElementSibling.querySelector('.code')
if (pass) {
clipboard.writeText(pass.innerText)
e.target.innerHTML = `<span class="copied">Copied!</span>`
setTimeout(() =>
e.target.innerHTML = "content_copy"
, 2000)
} else {
clipboard.writeText(e.target.previousElementSibling.innerText)
e.target.innerHTML = `<span class="copied">Copied!</span>`
setTimeout(() =>
e.target.innerHTML = "content_copy"
, 2000)
}
}
</script>
Expand Down
12 changes: 10 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
body {
background-color: #91a1b5;
/*background-color: #91a1b5;*/
background-color: #ebebeb;
font-family: 'DM Sans', sans-serif;
margin: 5%;
}

h2 {
color: #708197;
color: #d1d0d0;
font-weight: 400;
}

Expand Down Expand Up @@ -159,3 +160,10 @@ input:focus-visible {
background-color: #b3bdc9;
color: #708197;
}


.copied {
transition-delay: 0.5s;
font-family: "DM Sans", sans-serif;
font-weight: 500;
}

0 comments on commit 505f0c5

Please sign in to comment.