Giter Club home page Giter Club logo

ginger's People

Contributors

dependabot[bot] avatar erwstout avatar semantic-release-bot 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

Watchers

 avatar  avatar  avatar  avatar

ginger's Issues

Justify Content classes not applying to block grids

Adjusting block grids should/could be done with row helper classes but the block-grid properties override.

HTML

<div class="posts-container sm-block-grid-1 block-grid-3 row--justify-content-start"></div>

screen shot 2016-11-14 at 11 49 20 am

[2.0.0 Beta] Block Grid naming convention conflict

Block grid styles are applied with a css wildcard ([class*=block-grid-]) which can cause some conflicts in styles if you use a class name containing block-grid as a parent such as flexible--block-grid-lists

Add Visibility Classes

Would be nice to have go to classes for visibility, such as hide-mobile or show-mobile

IE 10/11 Flex Basis Bug

Ginger has the following issue as pointed out by Phillip Walton

An explicit flex-basis value (i.e., any value other than auto) is supposed to act just like width or height. It determines the initial size of a flex item and then the other flexibility properties allow it to grow or shrink accordingly.

IE 10-11 always assume a content box model when using flex-basis to determine a flex item's size, even if that item is set to box-sizing:border-box. Demo 7.1.a shows that an item with a flex-basis value of 100% will overflow its container by the amount of its border plus its padding.

The fix should look something like this:

.col-4{
  width: 33.33%;
  flex-basis: auto;
}

Add `width: auto` to nested rows

Nested rows are inheriting the width: 100% from their parent .row, which causes an unexpected offset. Adding width: auto to the nested row (.row .row) resolves this.

Testing of 2.0.0 Beta

The release branch release/2.0 is pretty much set but needs testing to verify it is ready for release. Still waiting on mixin options.

Visibility Classes should have display property options

In some cases using desktop-only (which adds display: block) can break layouts that may be flex items. It would be nice to have a class such as desktop-only--flex to display the element as a flex element instead.

.desktop-only{
  display: block !important;
  &--flex{
    display: flex !important;
  }
}

Add overflow:hidden to columns

Firefox doesn't listen to flex-basis values, for instance if flex-basis: 50% and contains a large image, etc.. it expands. Adding overflow:hidden fixes the issue.

Add General `hide` Class

Might be helpful to have a .hide class to just hide something all together across all viewports.

Add block grid options

Allow for easy to use block grid options that allow for grid items similar to foundation block grids. Normally would use:

<ul class="row">
  <li class="col-4">
    ...
  </li>
  <li class="col-4">
    ...
  </li>
</ul>

But would be rad to have it based on how many items in the grid instead.

Column Ordering

Would be nice to have column ordering to easily swap column orders. With breakpoint support as well (small, medium, standard)

// Sample of how it could work 
.col-order-first{
 order: -1;
}

.col-order-2{
  order: 2;
}

Small Columns don't receive default padding property.

Small columns, or any element with classes that doesn't start with col- fail to get the default padding property from the ginger settings file.

*[class^="col-"]

Should be changed to:

*[class*=" col-"], *[class*=" sm-col-"]

Add negative margin on nested rows

Currently nested rows get indented. This is due to the padding that is set on the columns. Easy way to fix this is just to have any nested row have a negative margin that is equal to whatever the column padding is.

Add Column Grow option

By default columns have a flex property of flex: 0 1 $flex-basis;

In some cases when the columns wrap it may be nice for those to grow. Adding a .col-grow or something similar could possibly be a nice feature. Would possibly have to be added to as a row option.

In current project my override looks like this:

.row{
    max-width: 100%;
    flex-wrap: wrap;
    .col-4{
      background: white;
      flex: 1 1 33.333%;
      padding: 15px 6px;
      &:nth-child(1), &:nth-child(4){
        padding-left: 12px;
      }
      &:nth-child(3), &:nth-child(5){
        padding-right: 12px;
      }
      &:nth-child(4), &:nth-child(5){
        padding-top: 0;
      }
    }

screen shot 2016-04-12 at 4 33 39 pm

"Column Counts for Different Breakpoints" documentation

May be a good idea to update the documentation to reflect the desktop down nature of the grid, and to make that a bit more clear.

To recap what I was showing you earlier, I wanted a column to be 12 columns up until the large breakpoint, and then 6 columns. I was not aware of the nature of the grid, and that I needed think of the grid as being 6 columns until it was down to medium (and then small), and then it would be 12 columns.

Since the medium breakpoint inherits the desktop column styles instead of the mobile column styles, this can be a point of confusion that could need clarification.

Add default styles for :before, :after, or add namespaces

This should only apply for Factor1 projects but may be useful beyond. In particular, these older projects that are already using Foundation or Kube or whatever. These typically already have a container and row class assigned, so adding in Ginger doesn't always work out of the box. The same is true for some resets that use

*:before,
*:after {
    ...code...
}

or even

*:before,
*:after {
    content: ' ';
    display: table;
}

as Ginger has now inherited those styles and may lead to problems.

Maybe add default styles to counter this behavior, or consider namespacing the classes.

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.