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>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<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="3.0.0/normalize.css">
<link rel="stylesheet" href="main.css">
</head>
<body>
<div class="container">
<div class="site-box">
<div class="hgroup">
<h1 class="logo">Normalize.css</h1>
<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>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<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="3.0.0/normalize.css">
<link rel="stylesheet" href="main.css">
</head>
<body>
<div class="container">
<div class="site-box">
<div class="hgroup">
<h1 class="logo">Normalize.css</h1>
<h2 class="tagline">A modern, HTML5-ready alternative to CSS resets</h2>
</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');
<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(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>
<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>
</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>

202
main.css
View File

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