Giter VIP home page Giter VIP logo

inuit-flexgrid's People

Contributors

jochienabuurs avatar nicoqh 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

Watchers

 avatar  avatar  avatar  avatar

inuit-flexgrid's Issues

Question: Use o-grid with nested o-box?

Hi, nico,

I would like to use your library in a project, but would need your advice. I am not sure if this is the proper place to ask - if not, please redirect me - thanks!

My question:
How do I add padding to an ".o-grid__cell"? Usually I used ".o-box", but this one would currently override the display:flex (o-grid) to display:block (o-box) and therefore mess with the flex grid.

If I define a similar class - like .o-gridbox with only the padding, but no display attribute defined - I could manage the padding, but I do not know how to make resulting columns equal height.

Currently I have this:

<header class="o-wrapper o-wrapper--fullwidth">
    <div class="o-grid o-grid--stretch o-grid--auto">
      <div class="o-grid__cell u-1/2">
        <div class="o-gridbox has-green-bg">
          <h1>50%</h1>
          <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Numquam ullam sed alias deserunt, libero eius illo ratione laudantium accusantium ducimus exercitationem dolorem fuga vel, in perspiciatis voluptates corporis nemo inventore!</p>
        </div>
      </div>
      <div class="o-grid__cell u-1/2">
        <div class="o-gridbox has-green-bg">50%</div>
      </div>
    </div>
  </header>

With these additional classes:

.o-wrapper--fullwidth {
  max-width: 100vw;
  background: red;
}

.has-green-bg {
  background-color: green;
}

.o-gridbox {
  padding: $inuit-global-spacing-unit;
}

The right box should cover the whole height ("stretch"?), but does not do so. I realize that it could be done by adding height: 100%; to .o-gridbox, but isn't that something stretch should do anyway?

I added a screenshot.

Would love to read you advices, thoughts and hints! Thanks!

bildschirmfoto 2018-12-30 um 12 25 30

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.