2.1.0 • Published 6 years ago

bacon.css v2.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Bacon

NPM

Everything is better with bacon.

Bacon is custom CSS reset, build for 8-Point grid. Inspired by Normalize.css.

Usage

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bacon.css/bacon.min.css">

What's included?

  1. Normalization almost like Normalize.css, but almost all margins and paddings are zero.
  2. Every heading, paragraph, button or other content-rich element will push away from the previous element by two grid points (16 px).
  3. The elements wouldn't push away from the ceiling.

Basic grid system

/**
 * Every content-rich element will push away from the previous element by two grid points (16 px),
 */

h1,
h2,
h3,
h4,
h5,
h6,
p,
img,
video,
button {
  margin-top: 16px;
  margin-bottom: 0;
}

/**
 * ... but elements shouldn't push away from the ceiling.
 */

*:first-child {
  margin-top: 0;
}
2.1.0

6 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago