GithubHelp home page GithubHelp logo

objects.flag's People

Contributors

anselmh avatar csswizardry avatar florianbouvot avatar

Stargazers

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

Watchers

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

objects.flag's Issues

Tiny and huge flags

Would you consider adding tiny and huge flags? Default values could be quarter/quadruple of $inuit-flag-gutter, respectively.

Allow images to be wrapped in link

Using the direct child selector in .flag__img > img {} means it is not possible to wrap the img in, say an <a> link.

Remove the child selector to leave .flag__img img {}

Image size

Hello everyone, hello Harry,

I was asking why images aren't width 100% when responsive, or at least why they aren't centered.

And also, wouldn't it be nice to have an image with a defined max-width, in order to be able to put bigger images without them to be huge in the desktop version ?

Thank you for your amazing work,

Something like :

@include media-query('palm') {
  .flag__img > img {
    width: 100%
  }
}

.flag__img > img {
  max-width: 200px;
}

I also don't understand why the $inuit-flag-collapse-at is not by default the 'palm' size.

Have a great day

- Thibaut

Flag body width bug in Webkit/Blink based browsers

There is a bug with .flag__body in Webkit/Blink based browsers if its parent is table cell (actually display: table-cell, I didn't check actual tables). It seems to take more space than it should. Let me demonstrate it here. If you check it in Firefox you will see how it should behave.

The fix is to remove width: 100% from .flag__body (or explicitly set it to width: auto just to be sure) and set width: 1px to .flag__img. I have picked up the fix from an old(ish) article here. Here's what the author has to say about this:

By setting height/width:1px a normal cell will use the minimum amount of space to display its contents, leaving all unused space for the .Expand class cells with height/width:auto.

And here's a pen for the fix. This probably needs more testing, but it seems to not mess things up.

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.