Giter Site home page Giter Site logo

mint's Introduction

Mint - stylus framework

Mint is a simple stylus framework

Use:

@import 'mint/mint'

.container
  container(100%)
  flex-row()

.col
  col(2) // for all devices
  col(2, 'lg') // only large

Mint generates a lot of media queries that would sort them using the gulp-combine-mq plugin

Yields:

.container {
  max-width: 100%;
  padding-left: 30px;
  padding-right: 30px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.col {
  width: calc( 16.666666666666668% - 30px );
  padding-left: 15px;
  padding-right: 15px;
}

@media screen and (max-width: 1300px) {
  .container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media screen and (max-width: 960px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 780px) {
  .container {
    padding-left: 2%;
    padding-right: 2%;
  }
}

@media screen and (max-width: 560px) {
  .container {
    padding-left: 1%;
    padding-right: 1%;
  }
}

@media screen and (max-width: 1300px) {
  .col {
    width: calc( 16.666666666666668% - 30px );
    padding-left: 15px;
    padding-right: 15px;
  }
}

Yelds with gulp-combine-mq:

.container {
  max-width: 100%;
  padding-left: 30px;
  padding-right: 30px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.col {
  width: calc( 16.666666666666668% - 30px );
  padding-left: 15px;
  padding-right: 15px;
}

@media screen and (max-width: 1300px) {
  .container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .col {
    width: calc( 16.666666666666668% - 30px );
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media screen and (max-width: 960px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 780px) {
  .container {
    padding-left: 2%;
    padding-right: 2%;
  }
}

@media screen and (max-width: 560px) {
  .container {
    padding-left: 1%;
    padding-right: 1%;
  }
}

License

MIT (c) Mint CSS

mint's People

Contributors

mephistorine avatar

Watchers

 avatar

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.