2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

add markdown toc stuff

This commit is contained in:
Mark Otto
2015-05-29 01:58:52 -07:00
parent 9e1af0d743
commit b455ed8def
35 changed files with 216 additions and 55 deletions
+5
View File
@@ -5,6 +5,11 @@ title: Flexbox
Flexbox support has finally come to Bootstrap. Opt-in to the new CSS layout styles with the flick of a variable or the swap of a stylesheet.
## Contents
* Will be replaced with the ToC, excluding the "Contents" header
{:toc}
## What's included
Flexbox support is available for a number of Bootstrap's components:
+5
View File
@@ -7,6 +7,11 @@ Bootstrap includes a powerful mobile-first grid system for building layouts of a
There are multiple tiers for different device sizes, available via our predefined classes or semantic mixins.
## Contents
* Will be replaced with the ToC, excluding the "Contents" header
{:toc}
### Quick start
- Example grid class
+9 -4
View File
@@ -5,7 +5,12 @@ title: Media
Abstract object styles for building custom components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.
### Default media
## Contents
* Will be replaced with the ToC, excluding the "Contents" header
{:toc}
## Default media
The default media allow to float a media object (images, video, audio) to the left or right of a content block.
@@ -21,7 +26,7 @@ The default media allow to float a media object (images, video, audio) to the le
</div>
{% endexample %}
### Nesting
## Nesting
Media components can also be nested.
@@ -48,7 +53,7 @@ Media components can also be nested.
</div>
{% endexample %}
### Alignment
## Alignment
The images or other media can be aligned top, middle, or bottom. The default is top aligned.
@@ -97,7 +102,7 @@ The images or other media can be aligned top, middle, or bottom. The default is
</div>
{% endexample %}
### Media list
## Media list
With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).
+9 -4
View File
@@ -7,7 +7,12 @@ The scaffolding of Bootstrap refers to our general approach to building the proj
Bootstrap's general approach to writing HTML, CSS, and JavaScript, as well as our core settings, is referred to as scaffolding. This includes required responsive and cross browser enhancements, dependencies, and more.
### HTML5 doctype
## Contents
* Will be replaced with the ToC, excluding the "Contents" header
{:toc}
## HTML5 doctype
Bootstrap makes use of certain HTML elements and CSS properties that **require** the use of the HTML5 doctype. Include it at the beginning of all your projects.
@@ -18,7 +23,7 @@ Bootstrap makes use of certain HTML elements and CSS properties that **require**
</html>
{% endhighlight %}
### Mobile first
## Mobile first
Bootstrap is developed *mobile first*, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries.
@@ -28,11 +33,11 @@ To ensure proper rendering and touch zooming, **add the viewport meta tag** to y
<meta name="viewport" content="width=device-width, initial-scale=1">
{% endhighlight %}
### Normalize
## Normalize
For improved cross-browser rendering, we use [Normalize.css](http://necolas.github.io/normalize.css/) to correct small inconsistencies across browsers and devices.
### Important CSS resets
## Important CSS resets
Still need to do this section. Should port the third party section about box sizing and edit it for here, then add the rest of the list items.