csshexagon icon indicating copy to clipboard operation
csshexagon copied to clipboard

Imporvements

Open tiborsaas opened this issue 8 years ago • 2 comments

Hello Brenna,

I'm loving this nifty tool. I've noticed some improvements for the image version.

Problem one: if the hexagon's parent is set to text-center, then the images will be messed up:

image

Simply add text-align: left; to the main hexagon element.

  1. This was more tricky: image

Those edges got me annoyed, but I fear no CSS. The solution is to displace the bg image, so it won't bleed through :)

Add this to hexTop, hexBottom.

background-position: -250% -250%;
background-repeat: no-repeat;

I could send a pull request.

tiborsaas avatar Oct 06 '16 18:10 tiborsaas

Ah, yes, the text align is a great idea, please PR.

Can you make the background positioning PR separately? I'd like to see it's impact across different sizes/browsers etc.

brenna avatar Oct 06 '16 19:10 brenna

NP, I'll send them after I'm done with this project.

tiborsaas avatar Oct 06 '16 19:10 tiborsaas