Giter Club home page Giter Club logo

Comments (13)

lukasbestle avatar lukasbestle commented on May 30, 2024

My opinion is to build a code generator on the inuit.css site to output specifically that code snippets you want as a .zip file.
Everyone could decide if he needs feature A or B or both or none :).

from inuit.css.

pim avatar pim commented on May 30, 2024

Hi,

would it be a big problem there was another var which would let us decide if we want to have responsive push and pull? Currently in my project I use only one push class and I just make it left: 0; on everything different from desktop. It's not even close to a perfect solution, but it’s still better that having a lot of unused responsive push and pull classes in the code.

Piotrek

from inuit.css.

ultim8k avatar ultim8k commented on May 30, 2024

I agree with Piotrek. I'd prefer to set a var in my config or comment out a line to enable the responsive push/pull classes. BTW thanks for sharing your work with us! You are great!

from inuit.css.

csswizardry avatar csswizardry commented on May 30, 2024

Okay yeah, we would probably have $responsive, $responsive-push and $responsive-pull vars so that you can be sure to include as little as possible :)

from inuit.css.

silvenon avatar silvenon commented on May 30, 2024

I'd really like to leave grid classes out of the markup, because any intermediate responsive design results in a lot of class garbage and that makes me a sad 🐼. I like how Susy solves the issue by leaving the markup alone.

This kind of approach would fix the problem, but I didn't really think it through, maybe there's an obvious unacceptable downside :P

from inuit.css.

schjetne avatar schjetne commented on May 30, 2024

silvenon: If you want to avoid having the grid classes in your markup, you can probably @extend the grid classes in your Sass.

.featured {
  @extend .one-whole;
  @extend .lap-one-half;
  @extend .desk-one-quarter;
}

I believe this would work? (Untested)

from inuit.css.

silvenon avatar silvenon commented on May 30, 2024

Yes, you're right πŸ˜€ I forgot about @extend.

from inuit.css.

silvenon avatar silvenon commented on May 30, 2024

It would still be nice to be able to write a fraction number in a mixin, though:

.grid {
  @include grid-fraction(2 2 1, desk lap palm);
}

Rather than having to do:

.grid {
  @extend .desk-one-half;
  @extend .lap-one-half;
  @extend .palm-one-whole;
}

What do you guys think?

from inuit.css.

kevva avatar kevva commented on May 30, 2024

@silvenon, I understand you want this so called "semantic" grid, but it defeats the purpose of the framework. It's supposed to be an object oriented framework. By introducing a mixin that leads to repeated code everywhere you aren't being object oriented at all. It's nothing wrong with using grid classes in your markup. And they're reusable which is super nice.

If you really hate dealing with classes in your markup you can still use Susy and skip including the _widths.scss from inuit.

from inuit.css.

schjetne avatar schjetne commented on May 30, 2024

@kevva I see your point but @extend is fundamentally different from @mixin. I'd argue @extending keeps your CSS a lot more DRY than including 3 grid related classes in every grid container element in your site. And it doesn't break the OOCSS principle either. Semantic or no doesn't matter, this eases development, and that's all that matters, isn't it?

from inuit.css.

kevva avatar kevva commented on May 30, 2024

@schjetne, well @silvenon did bring up using a mixin so that's what I responded to. I've no problem with people using extend directives, although it can can create very very long selectors. I, personally, prefer to use classes in my markup instead.

I didn't claim that any solution was "semantic". I was just referring to this and this. lolz.

from inuit.css.

peterwilsoncc avatar peterwilsoncc commented on May 30, 2024

I suggest a mixin for the responsive push & pull classes as a compromise b/w bloat and functionality.

from inuit.css.

csswizardry avatar csswizardry commented on May 30, 2024

Added this: 32119b0

from inuit.css.

Related Issues (20)

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.