Giter Site home page Giter Site logo

csshexagon's People

Contributors

brenna avatar bryant1410 avatar yangshun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

csshexagon's Issues

Imporvements

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.

Flat top

Hi,

Is there a way to do a flat top hexagon instead ?

Hexagon with image that has transparency problem

Using this image as an example
https://atlus-dev.s3.sa-east-1.amazonaws.com/80dc836d-a9d1-4f56-9108-76bf074f1eba.png

Only copying the generated CSS I have a problem that the image gets distorted on hexTop and hexBottom. On your website it looks fine because there is a "hidden" CSS attribute not shown which is background-color.

I was able to figure this out by inspecting the code on the website but I think we should add this attribute on the generated CSS in the right area.

I attached a screenshot of the problem I was having if I didn't figure it out by inspecting the website.
screenshot from 2018-07-18 12-17-40

Problem with Right to Left direction

when direction is rtl the background image of hexagon is messed up, an easy fix can be just adding direction: ltr to the .hexagon class in generated css

Hover effects

Would be nice to see an example of how to add hover effects onto the hexagon and have this part of the generator also.

Something's fishy with the image hexagon

Here is how my setting was:

screenshot_1

But here's what I got after implementation:

image in hexagon

I inspected the whole thing, something is fishy when implemented. I checked every properties that affected the behaviour of the three div elements, and found only some extra font related properties affecting them. I deactivated them to understand if there's any connection there, and found no clue.

How can I solve it?

Text in the center of the Hexagon

Text in the center of the Hexagon would be nice.
I am in middle of a project and had to stop to look at the css to add it myself because I could not add the text at first attempt.

Beautiful Project! :)
Great Job!

Hexagon with image that has transparency problem

Using this image as an example
https://atlus-dev.s3.sa-east-1.amazonaws.com/80dc836d-a9d1-4f56-9108-76bf074f1eba.png

Only copying the generated CSS I have a problem that the image gets distorted on hexTop and hexBottom. On your website it looks fine because there is a "hidden" CSS attribute not shown which is background-color.

I was able to figure this out by inspecting the code on the website but I think we should add this attribute on the generated CSS in the right area.

I attached a screenshot of the problem I was having if I didn't figure it out by inspecting the website.

screenshot from 2018-07-18 12-17-40

SCSS Mixin & Rounded Edges

Hey,

I had the requirement to create a hexagon (which I thought was impossible originally) but here we are, amazing work thank you!

I was wondering if you would be willing to create a SCSS mixin or pass along the formulas for each width/height/margin, etc?
For the project I am working on, I will possibly need various sizes, and don't really want to have lots of different classes for each size.

My last question is is there a way to round the edges to be a bit "smoother"? (I have a feeling there is not, but I could be wrong, again).

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.