Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cursor hollow on blur #82

Merged
merged 1 commit into from
Jun 7, 2016
Merged

Make cursor hollow on blur #82

merged 1 commit into from
Jun 7, 2016

Conversation

parisk
Copy link
Contributor

@parisk parisk commented Jun 7, 2016

Fix #79

@@ -47,8 +47,15 @@
}

.terminal .terminal-cursor {
border: 1px solid #fff;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would look a lot better if the hollow cursor didn't stick out an extra pixel. Something like this would be ideal:

.terminal:not(:focus) .terminal-cursor {
  outline: 1px solid #fafafa;
  outline-offset: -1px;
}

It may need a fallback though, not sure how good outline's support is.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty good apparently http://caniuse.com/#feat=outline

@parisk
Copy link
Contributor Author

parisk commented Jun 7, 2016

Thanks for the comment @Tyriar (#82 (diff)).

Seems like it works great now.

@parisk parisk merged commit 21d765b into master Jun 7, 2016
@Tyriar Tyriar deleted the issue/79 branch October 31, 2016 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants