From 06c2862d257935871fc846670148c8767e2f6a82 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 16 Apr 2015 18:39:45 -0700 Subject: start stubbing out a new reboot section and file --- docs/components/reboot.md | 305 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 305 insertions(+) create mode 100644 docs/components/reboot.md (limited to 'docs/components') diff --git a/docs/components/reboot.md b/docs/components/reboot.md new file mode 100644 index 000000000..4dfbd94a7 --- /dev/null +++ b/docs/components/reboot.md @@ -0,0 +1,305 @@ +--- +layout: page +title: Reboot +--- + +Several HTML elements are "rebooted" by Bootstrap for a more logical starting point and easier customization. This reboot builds upon Normalize, and as such, only uses element selectors to add our own opinionated resets. + +## Approach + +Here are our guidelines for choosing what to override in our reboot: + +- Only use `rem`s and `em`s as the global units whenever possible. +- Avoid `margin-top` whenever possible. Vertical margins often collapse, sometimes yielding unexpected results. Moreover, a single direction of `margin` is an easier and quicker mental model to adopt. + + +## Headings and paragaphs + +All heading elements—e.g., `

`—and `

` are reset to have their `margin-top` removed. Headings have `margin-bottom: .5rem` added and paragraphs `margin-bottom: 1rem` for easy spacing. + +

+{% markdown %} +# h1 heading +Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. + +## h2 heading +Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. + +### h3 heading +Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. + +#### h4 heading +Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. + +##### h5 heading +Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. + +###### h6 heading +Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. +{% endmarkdown %} +
+ +## Lists + +All lists—`