1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 18:06:38 -04:00

make twemoji cursor the same as unicode emojis when hovered

and clean up /uses
This commit is contained in:
2020-06-24 19:35:37 -04:00
parent e2ed4c7e4f
commit 0a48ce296f
4 changed files with 45 additions and 30 deletions

View File

@ -106,11 +106,6 @@ button {
// corrects inability to style clickable `input` types in iOS
appearance: none;
&::-moz-focus-inner {
border: 0;
padding: 0;
}
}
// make SVG twemojis relative to surrounding text
@ -118,8 +113,17 @@ button {
img.emoji {
height: 1.1em;
width: 1.1em;
margin: 0 0.09em;
padding: 0 0.09em;
vertical-align: -0.18em;
// have cursor act like it's a regular unicode emoji, especially
// since twemojis can still be copied-and-pasted
cursor: text;
}
// manually set pointer cursor when emoji within link, otherwise it'll
// keep text cursor above
a img.emoji {
cursor: pointer;
}
// white background for entire width content area