Code Monkey home page Code Monkey logo

gridbuilder's People

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

Watchers

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

gridbuilder's Issues

Sometimes fails to reduce fractions

The grid builder sometimes fails to reduce fractions when generating unit css. For example, it will create the rule pure-u-10-15 even though it's the same width as pure-u-2-3.

Add Unit tests for the app

Add unit tests for the models/views in the app. The most important part of the tests is to make sure the GridModel.js model ATTRS get converted into proper CSS.

12 grid layout

I'm familiar with foundation. Recently found Purecss, thought of try out a layout. I am trying to create a 12 grid layout.
Case 1:
2-12

Logo div "pure-u-2-12" and Navigation div "pure-u-10-12" (2/12 + 10/12)
This push the Navigation div to the bottom of logo div. I was expecting Logo would take 2/12 and Navigation would take rest ie 10/12. Is my understanding wrong?

Case 2:
Now I have Logo div "pure-u-1-12" and Navigation div "pure-u-11-12" (1/11 + 11/12)
screenshot
1-12

This looks like desired result, logo have taken 1/12 cols and rest 11/12 for Navigation

Case 3:
Another screenshot for Logo div "pure-u-5-12" and Navigation div "pure-u-7-12" (1/11 + 11/12)
5-12

Got desired result, logo have taken 5/12 cols and rest 7/12 for Navigation

however, I don't get why it get stacked for when the div are arranged,
div 1 as pure-u-2-12 and div 2 as pure-u-10-12
div 1 as pure-u-3-12 and div 2 as pure-u-9-12
div 1 as pure-u-4-12 and div 2 as pure-u-8-12

Please point me to the right direction if I missed any vital understanding.

Thanks.

how to make all boxes on top?

Hi,

great job!

I try to change position of my boxes, when you change size of your browser, all boxes going down, how I can change that they going to the top?

thank you!

Responsive yes/no selection has no effect on the demonstrated divs below

Platform: x64 Windows 7
Browser: Firefox 19.02 Release & Google Chrome Version 25.0.1364.172 m

Steps:
1- Go to http://yui.github.com/gridbuilder/
2- When responsive grid is selected, resize the browser window and observe that columns collapse to the full width on lower screen widths
3- Switch to unresponsive grid
4- Repeat step 2

Expected:
Since unresponsive grid is selected, divs shouldn't collapse. Whatever the screen width is, number of columns should remain the same.

Observed:
Divs collapse just like responsive grids even though it is disabled. Parent div of the demonstrated visual divs,"div class="yui3-g-r" does not change. If I change its class manually, I can obtain the expected behaviour.

I see an exception in javascript console from rainbow-min.js

Expose offset switch in UI

The gridbuilder can generate offsets but this switch hasn't been exposed in the UI yet. The handlebars template for the offsets have to be cleaned up as well.

Including .pure-offset* classes

The grid builder is currently generating .pure-offset* classes that seem to be deprecated.

.pure-offset-1-2 {
            margin-left: 50%;
        }

As far as I can tell, the 0.3.0 grids file here doesn't include the offsets.

Negative letter-spacing ? why ?

Hi team,

The Grid builder has an Edit Defaults button that shows a modal window with two buttons :
button-pure-fail

Your method using negative letter-spacing seems to be in cause.

Thank you ;)
G.

letter-spacing/word-spacing overlapping text issue

Text within yui3-g-responsive gets negative "letter-spacing" and "word-spacing" which will cause text to overlap unless its within a "yui3-u-*" container. However, in some cases like below, it's an extra class that I hope to avoid. I can see a lot of extra classes being added to the dom to remove the overlap.

<div class="yui3-g-responsive">
    <h1>Page Title</h1>
    <div class="yui3-u-3-4">...</div>
    <div class="yui3-u-1-4">...</div>
</div>

NOTE: I should also mention that I added a max-width to ".yui3-g-responsive". I want a fluid grid but not to expand too far on larger monitors.

I could just add an extra container around the units and put the class there. However, I want the outer container which encapsulates the h1 to be responsive and hit the max-width I set (based on my design).

So my question is, is there a way around this text overlap issue (perhaps I am doing it wrong)?

Missing rules with gridbuilder

If I include "grid-min.css" or if I use the CSS produced by gridbuilder I obtain different results. In the second case, using a 2 columns grid with modified breakpoints, the 2 columns are slightly overlapped.
Adding the rules below to .pure-g-r fixes the problem.

    display: -webkit-flex;
    -webkit-flex-flow: row wrap;
    display: -ms-flexbox;
    -ms-flex-flow: row wrap;

With generated CSS:
screen shot 2014-05-22 at 14 12 07

With modified CSS:

screen shot 2014-05-22 at 14 11 12

going beyond 960px ?

How do I get a 1280px width layout ? The grid builder seems disabled at 960 ?
Rgds

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.