Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could someone please extend the so called API on the website with clearer examples? #534

Open
blaasvaer opened this issue Jul 6, 2017 · 3 comments

Comments

@blaasvaer
Copy link

As it is VERY vague at best. I find it hard to see exactly HOW this is so much greater that other grid systems, as I'm having a hard time figuring out exactly what MOVE does. What's it good for? When I click the View example button, it scrolls me to a section with three cols that's prefixed with the word SHIFT!? Totally confusing ...

Could someone please elaborate on the API documentation without assuming a hell of a lot?

Thanks (if anyone is listening at all ...).

@corysimmons
Copy link
Contributor

Hey, sorry, yes the docs on the website are wrong. I'm so sorry for wasting your time.

I'm extremely poor right now or I'd fix them. These docs are correct: https://github.com/mojotech/jeet/tree/master/docs

And if you'd like to help others who might be in your situation, feel free to fork/clone this repo, checkout gh-pages, follow the README (https://github.com/mojotech/jeet/tree/gh-pages), and update the docs to be correct.

shift was replaced with move since "shift" is a reserved word in Stylus (and maybe Sass as well).

It's used for source ordering (http://zurb.com/word/source-order). tl;dr If you want a sidebar to be on the right on desktop, and content on the left. But on mobile you want the sidebar to appear above the content, you'd need to either use flexbox order (which is what most people do nowadays—Jeet is pretty old and move is really only useful for old browsers), or you could have the html look like this:

<body>
  <aside>Sidebar</aside>
  <div>Content</div>
</body>

...then on desktop have some CSS that turns it into columns:

@media (min-width: 700px) {
  div {
    float: left;
    width: 75%;
  }

  aside {
    float: right;
    width: 25%;
  }
}

This is just an example of the concept of "source ordering". Jeet, and many other grids, does this shifting around (or "moving") via position: relative; left: some percentage.

Hope that clears it up.

Again, I'm extremely sorry for the frustration. Please help me out and contribute so others don't run into this problem. 🙇

@blaasvaer
Copy link
Author

blaasvaer commented Jul 8, 2017 via email

@blaasvaer
Copy link
Author

blaasvaer commented Jul 8, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants