4 spaces -> 2 spaces

This commit is contained in:
Nicolas Gallagher 2014-03-26 21:51:08 -07:00
parent f51bdb3101
commit 39d5277ccb
2 changed files with 201 additions and 201 deletions

View File

@ -1,107 +1,107 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<title>Normalize.css: Make browsers render all elements more consistently.</title> <title>Normalize.css: Make browsers render all elements more consistently.</title>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700">
<link rel="stylesheet" href="3.0.0/normalize.css"> <link rel="stylesheet" href="3.0.0/normalize.css">
<link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="main.css">
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="site-box"> <div class="site-box">
<div class="hgroup"> <div class="hgroup">
<h1 class="logo">Normalize.css</h1> <h1 class="logo">Normalize.css</h1>
<h2 class="tagline">A modern, HTML5-ready alternative to CSS resets</h2> <h2 class="tagline">A modern, HTML5-ready alternative to CSS resets</h2>
</div>
<p class="txt-large"><a href="https://github.com/necolas/normalize.css/">Normalize.css</a> makes browsers render all elements more consistently and in line with modern standards. It precisely targets only the styles that need normalizing.</p>
<div class="cta-option">
<a class="btn-download"
href="http://necolas.github.com/normalize.css/3.0.0/normalize.css">
<strong>Download</strong>
<span class="version">v3.0.0</span>
</a>
<div class="txt-small txt-mute">Chrome, Firefox, Opera, Safari 6+, IE 8+</div>
<a class="txt-small txt-mute"
href="https://github.com/necolas/normalize.css/blob/3.0.0/CHANGELOG.md">See the CHANGELOG</a>
</div>
<div class="txt-large">
<pre><code><a href="http://bower.io/">bower</a> install --save normalize-css</code></pre>
<pre><code><a href="http://component.io/">component</a> install necolas/normalize.css</code></pre>
</div>
<div class="share-bar">
<a class="read-more" href="http://nicolasgallagher.com/about-normalize-css/">Read more about normalize.css &raquo;</a>
<div class="share-opt">
<a href="https://github.com/necolas/normalize.css">
<img src="github-logo.png" width="28" height="28" alt="GitHub">
</a>
</div>
<div class="share-opt">
<a class="twitter-share-button"
href="https://twitter.com/share"
data-count="none"
data-size="large"
data-text="Normalize.css: a modern HTML5-ready alternative to CSS resets"
data-via="necolas"
data-related="jon_neal">Tweet</a>
</div>
<div class="share-opt">
<a class="twitter-follow-button"
href="https://twitter.com/necolas"
data-show-count="false"
data-size="large">@necolas</a>
</div>
<div class="share-opt">
<div class="g-plusone" data-annotation="none"></div>
</div>
</div>
</div>
<div class="site-footer">
<p class="txt-large">&hellip;as used by
<a href="https://twitter.com/">Twitter</a>,
<a href="http://tweetdeck.com/">TweetDeck</a>,
<a href="https://github.com/">GitHub</a>,
<a href="https://soundcloud.com/">Soundcloud</a>,
<a href="https://www.rdio.com/">Rdio</a>,
<a href="http://www.theguardian.com/uk?view=mobile">Guardian</a>,
<a href="https://medium.com/">Medium</a>,
<a href="https://www.gov.uk/">GOV.UK</a>,
<a href="http://getbootstrap.com/">Bootstrap</a>,
<a href="http://html5boilerplate.com/">HTML5 Boilerplate</a>,
<a href="http://yuilibrary.com/projects/yui3/">YUI 3</a>,
<a href="http://purecss.io/">Pure</a>,
and many others.
</p>
<p>Source code available on GitHub: <a href="https://github.com/necolas/normalize.css/">necolas/normalize.css</a>.</p>
<p>Normalize.css is a project by <a href="http://nicolasgallagher.com/">Nicolas Gallagher</a>, co-created with <a href="http://music.thewikies.com/jonneal/">Jonathan Neal</a>.</p>
</div>
</div> </div>
<script> <p class="txt-large"><a href="https://github.com/necolas/normalize.css/">Normalize.css</a> makes browsers render all elements more consistently and in line with modern standards. It precisely targets only the styles that need normalizing.</p>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-43313358-1');ga('send','pageview');
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0]; <div class="cta-option">
if(!d.getElementById(id)){js=d.createElement(s);js.id=id; <a class="btn-download"
js.src="https://platform.twitter.com/widgets.js"; href="http://necolas.github.com/normalize.css/3.0.0/normalize.css">
fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); <strong>Download</strong>
</script> <span class="version">v3.0.0</span>
</a>
<div class="txt-small txt-mute">Chrome, Firefox, Opera, Safari 6+, IE 8+</div>
<a class="txt-small txt-mute"
href="https://github.com/necolas/normalize.css/blob/3.0.0/CHANGELOG.md">See the CHANGELOG</a>
</div>
</body> <div class="txt-large">
<pre><code><a href="http://bower.io/">bower</a> install --save normalize-css</code></pre>
<pre><code><a href="http://component.io/">component</a> install necolas/normalize.css</code></pre>
</div>
<div class="share-bar">
<a class="read-more" href="http://nicolasgallagher.com/about-normalize-css/">Read more about normalize.css &raquo;</a>
<div class="share-opt">
<a href="https://github.com/necolas/normalize.css">
<img src="github-logo.png" width="28" height="28" alt="GitHub">
</a>
</div>
<div class="share-opt">
<a class="twitter-share-button"
href="https://twitter.com/share"
data-count="none"
data-size="large"
data-text="Normalize.css: a modern HTML5-ready alternative to CSS resets"
data-via="necolas"
data-related="jon_neal">Tweet</a>
</div>
<div class="share-opt">
<a class="twitter-follow-button"
href="https://twitter.com/necolas"
data-show-count="false"
data-size="large">@necolas</a>
</div>
<div class="share-opt">
<div class="g-plusone" data-annotation="none"></div>
</div>
</div>
</div>
<div class="site-footer">
<p class="txt-large">&hellip;as used by
<a href="https://twitter.com/">Twitter</a>,
<a href="http://tweetdeck.com/">TweetDeck</a>,
<a href="https://github.com/">GitHub</a>,
<a href="https://soundcloud.com/">Soundcloud</a>,
<a href="https://www.rdio.com/">Rdio</a>,
<a href="http://www.theguardian.com/uk?view=mobile">Guardian</a>,
<a href="https://medium.com/">Medium</a>,
<a href="https://www.gov.uk/">GOV.UK</a>,
<a href="http://getbootstrap.com/">Bootstrap</a>,
<a href="http://html5boilerplate.com/">HTML5 Boilerplate</a>,
<a href="http://yuilibrary.com/projects/yui3/">YUI 3</a>,
<a href="http://purecss.io/">Pure</a>,
and many others.
</p>
<p>Source code available on GitHub: <a href="https://github.com/necolas/normalize.css/">necolas/normalize.css</a>.</p>
<p>Normalize.css is a project by <a href="http://nicolasgallagher.com/">Nicolas Gallagher</a>, co-created with <a href="http://music.thewikies.com/jonneal/">Jonathan Neal</a>.</p>
</div>
</div>
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-43313358-1');ga('send','pageview');
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
if(!d.getElementById(id)){js=d.createElement(s);js.id=id;
js.src="https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
</script>
</body>
</html> </html>

202
main.css
View File

@ -1,62 +1,62 @@
html { html {
background: #f7f7f7; background: #f7f7f7;
color: #333; color: #333;
font: 16px/1.4 Open Sans, Helvetica, Arial, sans-serif; font: 16px/1.4 Open Sans, Helvetica, Arial, sans-serif;
} }
body { body {
max-width: 720px; max-width: 720px;
padding: 20px 40px; padding: 20px 40px;
margin: 0 auto; margin: 0 auto;
} }
a { a {
color: #069; color: #069;
text-decoration: none; text-decoration: none;
} }
a:hover, a:hover,
a:focus, a:focus,
a:active { a:active {
text-decoration: underline; text-decoration: underline;
} }
h1, h1,
h2 { h2 {
line-height: 1.2; line-height: 1.2;
} }
p { p {
margin: 1em 0; margin: 1em 0;
} }
/* structure */ /* structure */
.site-box { .site-box {
padding: 40px 60px 0; padding: 40px 60px 0;
border: 1px solid #ccc; border: 1px solid #ccc;
margin: 0 0 3em; margin: 0 0 3em;
background: #fff; background: #fff;
text-align: center; text-align: center;
} }
.site-footer { .site-footer {
width: 85%; width: 85%;
margin: 0 auto; margin: 0 auto;
} }
.logo { .logo {
margin: 0 0 1em; margin: 0 0 1em;
font-size: 2.375em; font-size: 2.375em;
color: #69a619; color: #69a619;
text-transform: lowercase; text-transform: lowercase;
text-shadow: 1px 1px 0 #304d08; text-shadow: 1px 1px 0 #304d08;
text-decoration: none; text-decoration: none;
} }
.tagline { .tagline {
margin: 0 0 0.75em; margin: 0 0 0.75em;
font-size: 2.25em; font-size: 2.25em;
} }
/** /**
@ -64,14 +64,14 @@ p {
*/ */
.cta-option { .cta-option {
position: relative; position: relative;
display: inline-block; display: inline-block;
/* IE6/7 inline-block hack */ /* IE6/7 inline-block hack */
*display: inline; *display: inline;
*zoom: 1; *zoom: 1;
margin: 1.5em 0.75em 0.5em; margin: 1.5em 0.75em 0.5em;
vertical-align: bottom; vertical-align: bottom;
} }
/** /**
@ -79,35 +79,35 @@ p {
*/ */
.btn-download { .btn-download {
position: relative; position: relative;
display: inline-block; display: inline-block;
/* IE6/7 inline-block hack */ /* IE6/7 inline-block hack */
*display: inline; *display: inline;
*zoom: 1; *zoom: 1;
padding: 0.4em 1em; padding: 0.4em 1em;
border: 1px solid #5e9612; border: 1px solid #5e9612;
margin: 0 0 10px; margin: 0 0 10px;
color: #fff; color: #fff;
background: #69a619; background: #69a619;
border-radius: 4px; border-radius: 4px;
box-shadow: 0 2px 5px -2px #111, inset 0 2px 5px 0 rgba(255, 255, 255, 0.3); box-shadow: 0 2px 5px -2px #111, inset 0 2px 5px 0 rgba(255, 255, 255, 0.3);
font-size: 1.5em; font-size: 1.5em;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
white-space: nowrap; white-space: nowrap;
} }
.btn-download:hover, .btn-download:hover,
.btn-download:focus, .btn-download:focus,
.btn-download:active { .btn-download:active {
background: #6ead1a; background: #6ead1a;
text-decoration: none; text-decoration: none;
} }
.btn-download:active { .btn-download:active {
box-shadow: inset 0 2px 3px 0 rgba(0, 0, 0, 0.2); box-shadow: inset 0 2px 3px 0 rgba(0, 0, 0, 0.2);
background: #5d9117; background: #5d9117;
} }
/** /**
@ -117,21 +117,21 @@ p {
*/ */
.btn-download-alt { .btn-download-alt {
border-color: #ccc; border-color: #ccc;
background: #eee; background: #eee;
box-shadow: none; box-shadow: none;
color: #666; color: #666;
font-size: 1.25em; font-size: 1.25em;
} }
.btn-download-alt:hover, .btn-download-alt:hover,
.btn-download-alt:focus, .btn-download-alt:focus,
.btn-download-alt:active { .btn-download-alt:active {
background: #f5f5f5; background: #f5f5f5;
} }
.btn-download-alt:active { .btn-download-alt:active {
background: #ddd; background: #ddd;
} }
/** /**
@ -139,23 +139,23 @@ p {
*/ */
.share-bar { .share-bar {
overflow: hidden; overflow: hidden;
padding: 15px 30px; padding: 15px 30px;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
margin: 50px -60px 0; margin: 50px -60px 0;
background: #eee; background: #eee;
line-height: 28px; line-height: 28px;
*zoom: 1; *zoom: 1;
} }
.share-opt { .share-opt {
float: left; float: left;
height: 28px; height: 28px;
margin: 0 15px 0 0; margin: 0 15px 0 0;
} }
.read-more { .read-more {
float: right; float: right;
} }
/** /**
@ -163,50 +163,50 @@ p {
*/ */
.txt-small { .txt-small {
font-size: 0.75em; font-size: 0.75em;
} }
.txt-large { .txt-large {
font-size: 1.25em; font-size: 1.25em;
} }
.txt-mute { .txt-mute {
color: #999; color: #999;
} }
@media screen and (max-width: 700px) { @media screen and (max-width: 700px) {
.read-more { .read-more {
float: none; float: none;
display: block; display: block;
margin: 0 0 1em; margin: 0 0 1em;
line-height: 1.2; line-height: 1.2;
} }
} }
@media screen and (max-width: 540px) { @media screen and (max-width: 540px) {
body { body {
padding: 20px; padding: 20px;
font-size: 0.875em; font-size: 0.875em;
} }
.site-box { .site-box {
padding: 30px 30px 0; padding: 30px 30px 0;
} }
.cta-option { .cta-option {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }
.share-bar { .share-bar {
margin-left: -30px; margin-left: -30px;
margin-right: -30px; margin-right: -30px;
text-align: center; text-align: center;
} }
.share-opt { .share-opt {
float: none; float: none;
display: inline-block; display: inline-block;
margin: 0 1em 0.5em; margin: 0 1em 0.5em;
} }
} }