Giter VIP home page Giter VIP logo

flex-grid-framework's Introduction

Flex Grid Framework

license mit release

The Flex Semantic Grid focusing on performance for stylus and Sass.

Features

how to install and use?

See in the framework website.

Browsers support

Verify in Can I use the browser support for the flex property.

History

See Changelog for more details.

Contributing

Want to contribute? Follow these recommendations.

License

MIT License © Afonso Pacifer

flex-grid-framework's People

Contributors

afonsopacifer avatar alexisbrenon avatar designbyonyx avatar shina avatar ty3uk avatar uselessdev avatar vitor-mendrone-deel avatar vsopvsop 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

flex-grid-framework's Issues

Update npm package

On npm latest version is 1.2.0, without this #13 musthave fix. Update it please 😉

Media queries mq-col(flex) doesn't work

In your media queries Stylus/Sass docs we able to do this:

@media (max-width: 61.24em) {
  li {
    @include mq-col(flex);
  }
}

But i got error when compile:
compile error

Double check in repo, it's doesn't have this functionality:
Not for Stulys
Not for Sass

New Collaborator

I'm not a long time to the project. Anyone would like to help me?

Naming convention conflict

First off - thanks for making a responsible css library that is both lightweight and not based on pre-defined class names.

One of your naming conventions creates some conflict and confusion. In particular, the content-align mixin is misleading because it's an alias to the CSS justify-content property. However, CSS flexbox contains an align-content property which is completely different than justify-content.

I would recommend renaming the content-align mixing to something like justify (which is still semantically meaningful even to non-developers) so that it doesn't get confused with CSS's native property.

Error on sass line 130

Fala Afonso, fui tentar usar a versão sass e deu erro na linha 130. Aparentemente falta ":" pra atribuir o valor à variável "$margin-left".

Consegui corrigir localmente, mas não consegui descobrir onde essa variável é usada.

Btw: prefere que escreva em inglês?

max-width %row

/* Row
------------------------------------------------*/
%row {
max-width: max-width;
}
error in your code
%row {
max-width: $max-width;
}

The isolation of box model set up

Hi! We started using this grid in our application and it fits our needs quite well: the way it defines mixins instead of extra classes allows us to write isolated styles and keep our css codebase stable. However we noticed that this line:

*
  box-sizing border-box

breaks some other parts of our application, primarily legacy stuff that was written before we even discovered flex-grid-framework.

I know that it sounds like specific case, but anyway don't you think that moving box-sizing: border-box inside $row and col() definition would be a better approach that defining a really strong rule to all the elements in a page? It will also provide a better support for build systems, since the source will only contain variables and mixins, but not selectors (selector could appear several times in the resulting css, depends on how build system handles the @import statement).

1.3.1 version does not work well with a stylus

I made the initial settings

/* Configs
------------------------------------------------*/
flx-max-width = 1240px
flx-margin = 0.52083%
flx-padding = 20px
flx-column_number = 12
flx-column_width = (100% / flx-column_number) - 2 * flx-margin

$margin
    margin-right flx-margin
    margin-left flx-margin

$padding
    padding-right flx-padding
    padding-left flx-padding

and attempts to call @extend $row

.header__top-menu
    @extend $row
    @extend $justify-between
    @extend $vertical-align-middle

Generates this type of code

.header__top-menu {
  margin-left: 0;
  margin-right: 0;
  max-width: max-width;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  box-sizing: border-box;
}

I change max-width on flx-max-width and ofc it's start work.
But what these settings are necessary?
flex-padding = 20px
What I value is not exhibited, they gives me the code of this type.

.header__top-menu {
  margin-left: -10px;
  margin-right: -10px;
  max-width: 1240px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  box-sizing: border-box;
}

It is useless, because it still does not centralize block
Sorry for english, i use google. Thx 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.