Skip to content

Commit

Permalink
v0.5 caret fix safari
Browse files Browse the repository at this point in the history
  • Loading branch information
timfee committed Aug 22, 2024
1 parent 234d15f commit 590ff5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<script>
document.addEventListener("DOMContentLoaded", function () {
const cursor = document.createElement("ins");
const cursor = document.createElement("b");
cursor.textContent = "|";

function typeText(text, index = 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ a.button {
@apply border-slate-300 border px-2.5 py-1.5 rounded-md font-medium;
}

ins {
@apply text-slate-400 no-underline;
b {
@apply text-slate-400 font-normal;
animation: blink 500ms infinite cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

Expand Down

0 comments on commit 590ff5f

Please sign in to comment.