GithubHelp home page GithubHelp logo

morsecodemedia / containers.css Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 84 KB

A starting point for container and gaps when you don't want to use Bootstrap and you can't go evergreen with CSS Grid.

Home Page: https://morsecodemedia.github.io/containers.css/

License: MIT License

SCSS 18.75% CSS 81.25%

containers.css's Introduction

containers.css

A starting point for container and gaps when you don't want to use Bootstrap and you can't go evergreen with CSS Grid.

GitHub NPM npm

Installation

YARN

yarn add -D @morsecodemedia/containers.css

NPM

npm install -D @morsecodemedia/containers.css

Adding to project

Nuxt.js

In the nuxt.config.js file

css: [
  '@morsecodemedia/containers.css'
]

Browser support

  • Chrome
  • Edge
  • Firefox ESR+
  • Internet Explorer 10+
  • Safari 8+
  • Opera

Containers

Containers are the max-width areas in which content blocks can take up. Currently there are three (1-3), 1 being the widest and 3 being the most narrow.

A Visual Representation

https://morsecodemedia.github.io/containers.css/

Containers Breakdown

0px-767px

.container1 100% - 30px (15px on either side)

.container2 100% - 30px (15px on either side)

.container3 100% - 30px (15px on either side)

768px-991px

.container1 100% - 50px (25px on either side)

.container2 100% - 70px (35px on either side)

.container3 100% - 110px (55px on either side)

992px-1199px

.container1 100% - 70px (35px on either side)

.container2 100% - 200px (100px on either side)

.container3 100% - 400px (200px on either side)

1200px-1399px

.container1 100% - 100px (50px on either side)

.container2 100% - 300px (150px on either side)

.container3 100% - 500px (250px on either side)

1400px+

.container1 max-width: 1300px

.container2 max-width: 1000px

.container3 max-width: 700px

Gaps

Gaps are vertical spacing used between columns to keep a consistent vertical rhythm among containers. Currently there are four gaps (1-4). 1 being the smallest and 4 being the tallest.

Gaps Breakdown

0px-767px

.gap1 10px

.gap2 15px

.gap3 20px

.gap4 30px

768px-1199px

.gap1 15px

.gap2 20px

.gap3 30px

.gap4 40px

1200px+

.gap1 20px

.gap2 30px

.gap3 40px

.gap4 50px

Content Blocks

.half .half

.forty .sixty

.sixty .forty

.third .third .third

.quarter .quarter .quarter .quarter

.third .two-third

.two-third .third

.quarter .three-quarter

.three-quarter .quarter

containers.css's People

Contributors

dependabot[bot] avatar morsecodemedia avatar

Stargazers

 avatar

Watchers

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