Giter Club home page Giter Club logo

jsl-flex's Introduction

JSL-Flex

Extremely lightweight (233 bytes minified and gzip) responsive mobile first grid system. Works in all modern browsers including IE 11.

Easy to use

Place your content inside rows and columns with their width specified in 10 percent steps.

    <div class="row">
      <div class="col col-20"> col-20 </div>
      <div class="col col-30"> col-30 </div>
      <div class="col col-50"> col-50 </div>
    </div>

Responsive

Large
Large Screen Size (Desktop Mode)

Medium
Medium Screen Size (Tablet Mode)

Small
Small Screen Size (Mobile Mode)

Include it in your project

Copy the jsl-flex.css or jsl-flex.min.css file from this repo or simply copy the code into one of your css files. The whole grid system is only 446 charaters (minified).

	.row {
		display: flex;
		flex-wrap: wrap;
	}

	.col, .row {
		width: 100%;
		position: relative;
		box-sizing: border-box;
	}

	@media (min-width: 45em) {
		.col-40 { width: 80%; 
		flex-grow: 1; }
		.col-30 { width: 60%;
		flex-grow: 1; }
		.col-20 { width: 40%;
		flex-grow: 1; }
		.col-10 { width: 20%; 
		flex-grow: 1; }
	}

	@media (min-width: 70em) {
		.col-100 { width: 100% }
		.col-90 { width: 90% }
		.col-80 { width: 80% }
		.col-70 { width: 70% }
		.col-60 { width: 60% }
		.col-50 { width: 50% }
		.col-40 { width: 40% }
		.col-30 { width: 30% }
		.col-20 { width: 20% }
		.col-10 { width: 10% }
	}

jsl-flex's People

Contributors

preli 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.