Skip to content

Commit

Permalink
adds images and normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kaplan committed Mar 9, 2014
1 parent f2ea0e0 commit ae728a9
Show file tree
Hide file tree
Showing 16 changed files with 436 additions and 13 deletions.
2 changes: 1 addition & 1 deletion grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ img {
.example img { margin: 0; }

.fragmentation {
background-image: url("/images/grid/fragmentation.png");
background-image: url("/images/fragmentation.png");
background-size: cover;
min-height: 250px;
}
Expand Down
Binary file added images/border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/box-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/container.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/content.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/desktop-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fragmentation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/margin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mobile-first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/padding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/small-large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/with-box-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/without-box-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
<a href="/grid"><h1>grid</h1></a>
<p>A simple guide to responsive design.<br>Made by <a href="/" target="_blank">Adam Kaplan</a>.</p>
</div>
<img src="/images/grid/mobile.png" alt="Intro" class="mobile animated fadeInUp">
<img src="/images/mobile.png" alt="Intro" class="mobile animated fadeInUp">
</div>
</header>

<section>
<div class='container'>
<img src="/images/grid/mobile-first.png" alt="Mobile First" class="rwd">
<img src="/images/mobile-first.png" alt="Mobile First" class="rwd">
<h1>Why bother with responsive?</h1>
<p>We want our websites to be useable on all devices by responding to
the user’s behavior, screen size and screen orientation.</p>
Expand Down Expand Up @@ -63,7 +63,7 @@ <h1>Mobile First</h1>
<hr>
<blockquote>
<p>By assuming a flexible but simple layout by default, you can better guard against browsers—with viewports wide
and small—that aren’t quite capable of the full responsive layout. So when we’re talking about layout, “mobile first”
and small—that aren’t quite capable of the full responsive layout. So when we’re talking about layout, “mobile first”
really means “progressive enhancement.”</p>
<cite>—Ethan Marcotte</cite>
</blockquote>
Expand All @@ -72,7 +72,7 @@ <h1>Mobile First</h1>

<section class="example quote remove-padding">
<div class="container">
<img src="/images/grid/small-large.png" alt="Mobile First">
<img src="/images/small-large.png" alt="Mobile First">
</div>
</section>

Expand Down Expand Up @@ -111,7 +111,7 @@ <h1>Add the Viewport Meta Tag</h1>

<section class="example">
<div class="container">
<img src="/images/grid/box-model.png" alt="Box Model">
<img src="/images/box-model.png" alt="Box Model">
</div>
</section>

Expand All @@ -124,25 +124,25 @@ <h1>CSS Box Model</h1>

<div class="row clearfix">
<div class="column fourth">
<img src="/images/grid/content.png" alt="content">
<img src="/images/content.png" alt="content">
<h3 class="content">Content</h3>
<p>The content of the box, where text and images appear.</p>
</div>

<div class="column fourth">
<img src="/images/grid/padding.png" alt="padding">
<img src="/images/padding.png" alt="padding">
<h3 class="padding">Padding</h3>
<p>Clears an area around the content.</p>
</div>

<div class="column fourth">
<img src="/images/grid/border.png" alt="border">
<img src="/images/border.png" alt="border">
<h3 class="border">Border</h3>
<p>A border that goes around the padding.</p>
</div>

<div class="column fourth">
<img src="/images/grid/margin.png" alt="margin">
<img src="/images/margin.png" alt="margin">
<h3 class="margin">Margin</h3>
<p>Clears an area around the border.</p>
</div>
Expand Down Expand Up @@ -170,13 +170,13 @@ <h1>Your Choice</h1>

<div class="row clearfix">
<div class="column half">
<img src="/images/grid/without-box-model.png" alt="Without Box Model">
<img src="/images/without-box-model.png" alt="Without Box Model">
<h3>Without box-sizing: border-box</h3>
<p>Margin, borders and padding are drawn outside the set width of your content.</p>
</div>

<div class="column half">
<img src="/images/grid/with-box-model.png" alt="With Box Model">
<img src="/images/with-box-model.png" alt="With Box Model">
<h3>With box-sizing: border-box</h3>
<p>Borders and padding are drawn inside the set width of your content. The margin is drawn outside.</p>
</div>
Expand All @@ -198,7 +198,7 @@ <h1>Create a Container</h1>

<section class="example">
<div class="container">
<img src="/images/grid/container.png" alt="Container">
<img src="/images/container.png" alt="Container">
</div>
</section>

Expand Down
Loading

0 comments on commit ae728a9

Please sign in to comment.