Fix broken Markdown headings

This commit is contained in:
Santiago Castro 2017-04-16 19:48:52 -03:00
parent 3ec29ec335
commit 3c5ea1b46f

View file

@ -1,23 +1,23 @@
Grid is a great learning tool but no longer supported. [Learn why](http://adamkaplan.me/blog/grid-retrospective/).
##Grid
## Grid
A simple guide to responsive design.<br>
www.adamkaplan.me/grid
####Why bother with responsive?
#### Why bother with responsive?
We want our websites to be useable on all devices by responding to the users behavior, screen size and screen orientation.
####A Fragmented World
#### A Fragmented World
As of 2013, there are thousands of different devices and screen sizes that browse the internet, so it's impossible to design layouts to target them all. Instead, we must take a more fluid approach to design.
####Mobile First
#### Mobile First
The term “mobile first” gets thrown around a lot lately. What it really means is to start with mobile styles and layer on styles optimized for larger screens only as needed. In other words, your mobile styles become the default and you no longer have to override them later. Its much simpler!
> By assuming a flexible but simple layout by default, you can better guard against browsers—with viewports wide and small—that arent quite capable of the full responsive layout. So when were talking about layout, “mobile first” really means “progressive enhancement.” —Ethan Marcotte
##Min-width Media Queries
## Min-width Media Queries
Introduce layout-specific rules only when you need them. Use `min-width` to layer complexity on your layout as the viewport widens. Its easier to have all the media queries nearby, rather than at the end of the stylesheet or in a separate document.
```css
@ -35,9 +35,9 @@ html { font-size: 100%; }
}
```
##Steps
## Steps
####1. Not All Browsers are Created Equal
#### 1. Not All Browsers are Created Equal
Browsers will render your CSS differently. To avoid this, its a good idea to use a modern alternative to a reset like [Normalize.css](http://necolas.github.io/normalize.css/), which will render elements more consistently cross-browser. Remember to include it as-is before your stylesheet.
```html
@ -45,13 +45,13 @@ Browsers will render your CSS differently. To avoid this, its a good idea to
<link rel="stylesheet" href="/css/grid.css">
```
####2. Add the Viewport Meta Tag
#### 2. Add the Viewport Meta Tag
Place in the `<head>` of your HTML. This enables use of media queries for cross-device layouts.
```html
<meta name="viewport" content="width=device-width, initial-scale=1">
```
####3. Use box-sizing: border-box
#### 3. Use box-sizing: border-box
Place at the top of your CSS file. The `*` will target all elements on the page.
```css
*, *:before, *:after {
@ -61,7 +61,7 @@ Place at the top of your CSS file. The `*` will target all elements on the page.
}
```
####4. Create a Container
#### 4. Create a Container
A container holds all elements and controls the page's maximum width. Using a container will make designing for responsive easier!
```css
.container {
@ -77,7 +77,7 @@ A container holds all elements and controls the page's maximum width. Using a co
</div>
```
####5. Create a Column
#### 5. Create a Column
With mobile first, columns are `block` level (takes up the full width available) by default. No additional styles needed!
```html
@ -88,7 +88,7 @@ With mobile first, columns are `block` level (takes up the full width available)
</div>
```
####6. Create Column Sizes
#### 6. Create Column Sizes
On larger screens, columns gain `float: left` in order to stack content horizontally. Columns now use padding for gutters, so you no longer need to worry about removing margins.
```html
@ -121,7 +121,7 @@ On larger screens, columns gain `float: left` in order to stack content horizont
}
```
####7. Create Rows
#### 7. Create Rows
Columns are wrapped in rows to prevent other elements from stacking next to them, otherwise know as clearing issues. Rows are cleared using the popular `clearfix`, which was created by [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/).
```html
@ -184,7 +184,7 @@ Add the class `.flow-opposite` to columns where you want content to display firs
}
```
####Further Reading
#### Further Reading
* [A Book Apart: Mobile First](http://www.abookapart.com/products/mobile-first)
* [A Book Apart: Responsive Web Design](http://www.abookapart.com/products/responsive-web-design)
* [Beginners Guide to Responsive Web Design](http://blog.teamtreehouse.com/beginners-guide-to-responsive-web-design)
@ -193,7 +193,7 @@ Add the class `.flow-opposite` to columns where you want content to display firs
* [The Many Faces of Mobile First](http://bradfrostweb.com/blog/mobile/the-many-faces-of-mobile-first/)
* [Understanding the Humble Clearfix](http://fuseinteractive.ca/blog/understanding-humble-clearfix)
####References
#### References
* [Android Fragmentation Visualized](http://opensignal.com/reports/fragmentation-2013/)
* [Animate.css](http://daneden.github.io/animate.css/)
* [Box Model](http://developer.mozilla.org/en-US/docs/Web/CSS/box_model)
@ -202,7 +202,7 @@ Add the class `.flow-opposite` to columns where you want content to display firs
* [Internet Explorer Box Model](http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug)
* [Progressive Enhancement](http://coding.smashingmagazine.com/2009/04/22/progressive-enhancement-what-it-is-and-how-to-use-it/)
##Translations
## Translations
Translations are maintained by their creators and may not always be up to date with the original here. Have a translation you'd like to link to? Open a pull request to add it here. Be sure to keep it alphabetical.
* [Chinese](http://geekplux.github.io/grid) - Translated by [GeekPlux](http://www.geekplux.com/)