Project page: update copy and realign

This commit is contained in:
Nicolas Gallagher 2012-01-22 22:42:18 +00:00
parent f501de724d
commit bfcd8bdd0f
2 changed files with 107 additions and 84 deletions

View File

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width">
<title>Normalize.css: Make browsers render all elements more consistently.</title>
<link rel="stylesheet" href="style.css">
</head>
@ -15,58 +15,61 @@
<div id="container">
<h1><a href="http://github.com/necolas/normalize.css">normalize.css</a></h1>
<p>Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.</p>
<h2>What does it do?</h2>
<ul>
<li><strong>Preserves useful defaults</strong>, unlike many CSS resets.</li>
<li><strong>Normalizes styles</strong> for a wide range of elements.</li>
<li><strong>Normalizes styles</strong> for a wide range of elements (including HTML5).</li>
<li><strong>Corrects bugs</strong> and common browser inconsistencies.</li>
<li><strong>Improves usability</strong> with subtle improvements.</li>
<li><strong>Explains what code does</strong> using detailed comments.</li>
</ul>
<div class="demo">
<a class="button" href="demo.html">Check out the demo</a>
<p><a href="https://github.com/necolas/normalize.css/raw/master/normalize.css">Get the normalize.css file</a></p>
</div>
<h2>How to use it</h2>
<p>You are encouraged to read, edit, customise, add, and trim rulesets or styles from normalize.css on a per project basis.</p>
<p>The normalize.css file is not intended to be a mysterious "black box" that is included in a project and then ignored. It should be used as a customisable starting point on any project.</p>
<div class="share-bar">
<div class="share-opt">
<a class="twitter-share-button"
href="http://twitter.com/share"
data-count="vertical"
data-text="Checking out normalize.css"
data-via="necolas"
data-related="jon_neal">Tweet</a>
</div>
<div class="share-opt">
<div class="g-plusone" data-size="tall"></div>
</div>
<div class="share-opt">
<div class="fb-like" data-send="false" data-width="40" data-layout="box_count" data-show-faces="false"></div>
</div>
</div>
<h2>Browser support</h2>
<p>Chrome, Firefox 3+, Safari 4+, Opera 10+, Internet Explorer 6+</p>
<h2>How do I use it?</h2>
<p>Normalize.css is intended to be used as an alternative to CSS resets. It's suggested that you read the <code>normalize.css</code> file and consider customising it to meet your needs.</p>
<h2>Who uses it?</h2>
<ul>
<li><a href="http://html5boilerplate.com/">HTML5 Boilerplate</a></li>
<li><a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a></li>
<li><a href="http://css-tricks.com/">CSS Tricks</a></li>
</ul>
<h2>Source code</h2>
<p>Available on GitHub: <a href="http://github.com/necolas/normalize.css">necolas/normalize.css</a></p>
<p>Download it in either <a href="http://github.com/necolas/normalize.css/zipball/master">zip</a> or <a href="http://github.com/necolas/normalize.css/tarball/master">tar</a> formats.</p>
<p>Clone the project with <a href="http://git-scm.com">Git</a> by running:</p>
<pre>$ git clone git://github.com/necolas/normalize.css.git</pre>
<h2>Acknowledgements</h2>
<p>Normalize.css is a project by Nicolas Gallagher and Jonathan Neal.</p>
<p>Detailed information on default UA styles: <a href="http://iecss.com">Internet Explorer User Agent Style Sheets</a> and <a href="http://css-class.com/test/css/defaults/UA-style-sheet-defaults.htm">CSS2.1 User Agent Style Sheet Defaults</a></p>
<div class="share-bar">
<div class="share-opt">
<a class="twitter-share-button"
href="http://twitter.com/share"
data-count="vertical"
data-text="Checking out normalize.css"
data-via="necolas"
data-related="jon_neal">Tweet</a>
</div>
<div class="share-opt">
<g:plusone size="tall"></g:plusone>
</div>
<div class="share-opt">
<fb:like href="" send="false" layout="box_count" width="40" show_faces="false" font=""></fb:like>
</div>
</div>
<p>Normalize.css is a project by Nicolas Gallagher and Jonathan Neal. Detailed information on default UA styles: <a href="http://iecss.com">Internet Explorer User Agent Style Sheets</a> and <a href="http://css-class.com/test/css/defaults/UA-style-sheet-defaults.htm">CSS2.1 User Agent Style Sheet Defaults</a></p>
<div class="footer">
<p>A project by <a href="http://nicolasgallagher.com">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal">Jonathan Neal</a>.</p>
@ -76,15 +79,30 @@
<div id="fb-root"></div>
<script>
(function(w,d){
w._gaq=[['_setAccount','UA-7489188-1'],['_trackPageview'],['_trackPageLoadTime']];
var u=[
'//connect.facebook.net/en_US/all.js#xfbml=1', // Facebook SDK
'//platform.twitter.com/widgets.js', // Twitter Widgets
'https://apis.google.com/js/plusone.js', // Google +1 Button
('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js' // Google Analytics
],i=u.length,n='script',f=d.createDocumentFragment(),e=d.createElement(n),t;while(i--){t=e.cloneNode(false);t.async=t.src=u[i];f.appendChild(t);}(t=d.getElementsByTagName(n)[0]).parentNode.insertBefore(f,t);
}(this,document));
window._gaq=[['_setAccount','UA-7489188-1'],['_trackPageview']];
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],
frag = doc.createDocumentFragment(),
add = function(url, id) {
if (doc.getElementById(id)) {return;}
js = doc.createElement(script);
js.src = url;
id && (js.id = id);
frag.appendChild(js);
};
// Google Analytics
add(('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js');
// Facebook SDK
add('//connect.facebook.net/en_US/all.js#xfbml=1', 'facebook-jssdk');
// Google+ button
add('https://apis.google.com/js/plusone.js');
// Twitter SDK
add('//platform.twitter.com/widgets.js', 'twitter-wjs');
fjs.parentNode.insertBefore(frag, fjs);
}(document, 'script'));
</script>
</body>

View File

@ -1,7 +1,5 @@
html {
font-size: 100%;
overflow-y: scroll;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@ -20,10 +18,10 @@ img {
border: 0;
}
a {
font-weight:bold;
text-decoration: none;
color: #6EAD1A;
a {
font-weight:bold;
text-decoration: none;
color: #6ead1a;
}
a:focus {
@ -35,23 +33,28 @@ a:active {
outline: 0;
}
a:hover,
a:focus,
a:active {
text-decoration: underline;
color: #569107;
a:hover,
a:focus,
a:active {
text-decoration: underline;
color: #569107;
}
strong {
font-weight: bold;
}
code,
pre {
display: block;
padding: 5px;
margin: 1em 0;
font-family: consolas, monospace;
font-size: 1em;
}
pre {
display: block;
padding: 5px;
margin: 1em 0;
font-size: 13px;
color: #fff;
background: #222;
white-space: pre;
@ -62,21 +65,21 @@ pre {
ul {
list-style: square;
padding: 0;
margin: 1.4em 0;
margin: 0 0 1.4em;
}
li {
margin: 0.35em 0;
}
h1 {
h1 {
margin: 0.25em 0 0.5em;
font-size: 3.5em;
font-size: 3.5em;
}
h2 {
margin: 1.25em 0 0.75em;
font-size: 1.5em;
h2 {
margin: 1.25em 0 0.5em;
font-size: 1.5em;
}
p {
@ -101,31 +104,31 @@ p {
}
.button {
display: inline-block;
padding: 6px 15px;
display: inline-block;
padding: 6px 15px;
border: 1px solid #487310;
margin: 20px 0 0;
margin: 20px 0 0;
font-size: 1.375em;
line-height: 1.273;
color: #fff;
background: #6EAD1A;
text-shadow:0 1px 1px rgba(0,0,0,0.4);
-moz-border-radius: 5px;
color: #fff;
background: #6ead1a;
text-shadow: 0 1px 1px rgba(0,0,0,0.4);
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.4),
inset 0 1px rgba(255,255,255,0.5),
inset 0 12px rgba(255,255,255,0.2),
inset 0 10px 20px rgba(255,255,255,0.25),
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.4),
inset 0 1px rgba(255,255,255,0.5),
inset 0 12px rgba(255,255,255,0.2),
inset 0 10px 20px rgba(255,255,255,0.25),
inset 0 -12px 25px rgba(0,0,0,0.3);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.4),
inset 0 1px rgba(255,255,255,0.5),
inset 0 12px rgba(255,255,255,0.2),
inset 0 10px 20px rgba(255,255,255,0.25),
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.4),
inset 0 1px rgba(255,255,255,0.5),
inset 0 12px rgba(255,255,255,0.2),
inset 0 10px 20px rgba(255,255,255,0.25),
inset 0 -12px 25px rgba(0,0,0,0.3);
box-shadow: 0 1px 3px rgba(0,0,0,0.4),
inset 0 1px rgba(255,255,255,0.5),
inset 0 12px rgba(255,255,255,0.2),
inset 0 10px 10px rgba(255,255,255,0.25),
box-shadow: 0 1px 3px rgba(0,0,0,0.4),
inset 0 1px rgba(255,255,255,0.5),
inset 0 12px rgba(255,255,255,0.2),
inset 0 10px 10px rgba(255,255,255,0.25),
inset 0 -12px 25px rgba(0,0,0,0.3);
-webkit-transition: all 0.15s;
-moz-transition: all 0.15s;
@ -136,14 +139,16 @@ p {
.button:hover,
.button:focus,
.button:active {
text-decoration: none;
color: #fff;
text-decoration: none;
color: #fff;
background: #569107;
}
.share-bar {
overflow: hidden;
margin: 40px 0 0;
padding: 0 0 30px;
border-bottom: 2px solid #ccc;
margin: 30px 0 0;
*zoom: 1;
}
@ -164,11 +169,11 @@ p {
body {
font-size: 0.875em;
}
h1 {
font-size: 3em;
}
.fork {
display: none;
}