A starting point for container and gaps when you don't want to use Bootstrap and you can't go evergreen with CSS Grid.
YARN
yarn add -D @morsecodemedia/containers.css
NPM
npm install -D @morsecodemedia/containers.css
In the nuxt.config.js
file
css: [
'@morsecodemedia/containers.css'
]
- Chrome
- Edge
- Firefox ESR+
- Internet Explorer 10+
- Safari 8+
- Opera
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.
https://morsecodemedia.github.io/containers.css/
.container1
100% - 30px (15px on either side)
.container2
100% - 30px (15px on either side)
.container3
100% - 30px (15px on either side)
.container1
100% - 50px (25px on either side)
.container2
100% - 70px (35px on either side)
.container3
100% - 110px (55px on either side)
.container1
100% - 70px (35px on either side)
.container2
100% - 200px (100px on either side)
.container3
100% - 400px (200px on either side)
.container1
100% - 100px (50px on either side)
.container2
100% - 300px (150px on either side)
.container3
100% - 500px (250px on either side)
.container1
max-width: 1300px
.container2
max-width: 1000px
.container3
max-width: 700px
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.
.gap1
10px
.gap2
15px
.gap3
20px
.gap4
30px
.gap1
15px
.gap2
20px
.gap3
30px
.gap4
40px
.gap1
20px
.gap2
30px
.gap3
40px
.gap4
50px
.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