Giter Club home page Giter Club logo

lemonade's Introduction

Lemonade

Lemonade is a a simple, flexible and easy-to-customise grid system. It was created in order to give designers & developers a kickstart with their projects. It currently supports Chrome, Firefox, Safari, Opera & IE 9+, also supports major phone devices too.

Installation

  • Clone git clone https://github.com/dope/lemonade.git
  • Download the latest version
  • Install with npm: npm install lemonade-grid
  • Install with Bower: bower install lemonade

CDN Support

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/lemonade/2.1.0/lemonade.min.css">

Getting Started

Getting started couldn't be easier

First you need to link the stylesheet

<link rel="stylesheet" type="text/css" href="css/lemonade.css">

Structuring your layouts

<div class="frame">
    <div class="bit-3">Content here</div>
    <div class="bit-3">Content here</div>
    <div class="bit-3">Content here</div>
</div>

Creating a three-column layout (for galleries for example) is really simple, this will scale down to 100% on mobile. Wrap the .bit's in a .frame class to clear the floats.

Customising your grid

Maybe you want to go old school and create a two-column layout, It's so easy all you need is basic math (along as the .bit- classes equal to 100%, it will be perfect).

<div class="frame">
    <div class="bit-75">Content here</div>
    <div class="bit-25">Content here</div>
</div>

Creating the css is also simple:

.bit-75 {width:75%;}
.bit-25 {width:25%;}

Support

If you have any questions or you're struggling with it, get in touch:

Tutorials

Build a Freshly Squeezed Responsive Grid System If you have written about Lemonade or want too - let me know

Lets make Lemonade

Currently building the real documentation website for Lemonade, If you've got any finished results of using Lemonade or you've got any kind words to say - get in touch

Thank you!

I've had some amazing feedback since creating Lemonade and I am glad it can help people.

Also want to thank people who are testing and contributing to the product.

License

Copyright (C) 2017 Joe Richardson

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

lemonade's People

Contributors

borjadv avatar daviddarnes avatar davidpots avatar drac avatar joe-fueled avatar jshawl avatar licentious avatar momoiroshikibu avatar quagliero 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  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

lemonade's Issues

last-of-type float right?

Any reason for:

/* Floats last ".bit-" to the right */
[class*='bit-']:last-of-type {
  float: right;
}

?

It seems like left/centering would be better.

Photoshop Grid Template

This may sound silly or too simple but I am confused in calculating the width of a column and its gutter.

Let's say for a 1024, what is the width of the column and its gutter width?

I just used 65px for the column width and 10px for the gutter width. I'll close this issue now.

V2

Currently about to start working on version two, If you have any requests/suggestions please let me know below.

Thanks :)

Drop floats for inline-block

Thought I'd open this up for discussion.

Idea: get rid of the frames, convert floats to inline-block. That way you don't need the extra divs for rows, and then you just change the "bit-" style to:

[class*='bit-'] {
display:inline-block;
padding: 5px;
margin-right: -.25em;
vertical-align: top;
}

Seems even simpler and works like a champ for me. Is there any reason not to do this?

*lifting this idea from toast, http://daneden.me/toast/

What's next?

Hey,

I'm sat here wondering whats next for Lemonade. As it stands it is just a 12 column grid where you can define new columns. Do we need more than that? Do we need an optional stylesheet with a basic reset, styled buttons and typography?

What do you want to see?

Thank you :)

Row with different column sizes

Hello, thanks for making the grid. It looks very good and I'm trying it on a responsive website that I'm making during these days.

I've got a question for you: is it possible to have columns with different sizes on a single row (frame)?

Like this:

[__2x__] [_1x_] [_1x_] [_1x_]

Thanks

Nicholas

CDN support

Would you mind adding CDN support? ๐Ÿ˜€

Fails when using different html elements

When I try to use two different elements like this

<div class="frame">
  <header class="bit-2">Should be left</header>
  <main class="bit-2">Should be right</main>
</div>

They get switched the other way because the selector [class*='bit-']:last-of-type matches both of them.

example

Have a nice day

Bower support

It would be really nice if this could be installed (and upgraded) as a Bower package. :)

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.