mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Update the project page.
Change font-family from Calibri to Helvetica Neue font stack. Add a subheading to immediately explain the project. Use cleaner button style. Emphasise viewing the project on GitHub and downloading the file over viewing the demo. Remove the footer and link to our websites/twitter in the credits.
This commit is contained in:
parent
579ebabe4d
commit
d6ebdb0dbe
33
index.html
33
index.html
@ -8,28 +8,32 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<a class="fork" href="http://github.com/necolas/normalize.css">
|
||||
<a class="fork" href="https://github.com/necolas/normalize.css">
|
||||
<img src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
|
||||
</a>
|
||||
|
||||
<div id="container">
|
||||
|
||||
<h1><a href="http://github.com/necolas/normalize.css">normalize.css</a></h1>
|
||||
<div class="hgroup">
|
||||
<h1><a href="https://github.com/necolas/normalize.css">normalize.css</a></h1>
|
||||
<h2>A modern, HTML5-ready, alternative to CSS resets</h2>
|
||||
</div>
|
||||
|
||||
<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 (including HTML5).</li>
|
||||
<li><strong>Normalizes styles</strong> for a wide range of HTML elements.</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 class="cta">
|
||||
<a class="button button-main" href="https://github.com/necolas/normalize.css">View project on GitHub</a>
|
||||
<a class="button" href="https://github.com/necolas/normalize.css/raw/master/normalize.css">Download</a>
|
||||
<p><a href="demo.html">Check out the demo</a></p>
|
||||
</div>
|
||||
|
||||
<div class="share-bar">
|
||||
@ -51,11 +55,8 @@
|
||||
</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>
|
||||
<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. Alternatively, include the file in your project and override the defaults later in your CSS.</p>
|
||||
|
||||
<h2>Who uses it?</h2>
|
||||
<ul>
|
||||
@ -65,16 +66,16 @@
|
||||
<li><a href="http://css-tricks.com/">CSS Tricks</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Browser support</h2>
|
||||
<p>Chrome, Firefox 3+, Safari 4+, Opera 10+, Internet Explorer 6+</p>
|
||||
|
||||
<h2>Source code</h2>
|
||||
<p>Available on GitHub: <a href="http://github.com/necolas/normalize.css">necolas/normalize.css</a></p>
|
||||
<p>Available on GitHub: <a href="https://github.com/necolas/normalize.css">necolas/normalize.css</a></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. 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>
|
||||
</div>
|
||||
<p>Normalize.css is a project by <a href="http://nicolasgallagher.com">Nicolas Gallagher</a> (<a href="http://twitter.com/necolas">@necolas</a>) and <a href="http://music.thewikies.com/jonneal/">Jonathan Neal</a> (<a href="http://twitter.com/jon_neal">@jon_neal</a>).</p>
|
||||
<p>Detailed information on default UA styles: <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#the-css-user-agent-style-sheet-and-presentational-hints">WHATWG suggestions for rendering HTML documents</a>, <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>
|
||||
|
||||
|
106
style.css
106
style.css
@ -6,9 +6,9 @@ html {
|
||||
|
||||
body {
|
||||
max-width: 480px;
|
||||
padding: 0 10px;
|
||||
padding: 0 10px 30px;
|
||||
margin: 0 auto;
|
||||
font: 1em/1.4 Calibri, sans-serif;
|
||||
font: 1em/1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
|
||||
color: #222;
|
||||
background: #fff;
|
||||
_width: 480px;
|
||||
@ -72,6 +72,11 @@ li {
|
||||
margin: 0.35em 0;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0.25em 0 0.5em;
|
||||
font-size: 3.5em;
|
||||
@ -94,54 +99,86 @@ p {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.demo {
|
||||
.hgroup h1 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.hgroup h2 {
|
||||
margin: 0 0 2em;
|
||||
font-size: 1em;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.cta {
|
||||
margin:1em 0 4em;
|
||||
}
|
||||
|
||||
.demo p {
|
||||
.cta p {
|
||||
margin: 0.5em 0 0;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.button {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 6px 15px;
|
||||
padding: 0.4em 1em;
|
||||
border: 1px solid #487310;
|
||||
margin: 20px 0 0;
|
||||
margin: 20px 5px 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;
|
||||
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),
|
||||
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),
|
||||
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),
|
||||
inset 0 -12px 25px rgba(0,0,0,0.3);
|
||||
-webkit-transition: all 0.15s;
|
||||
-moz-transition: all 0.15s;
|
||||
-o-transition: all 0.15s;
|
||||
transition: all 0.15s;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
color: #555;
|
||||
background: #f5f5f5;
|
||||
background-image: -webkit-linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
|
||||
background-image: -moz-linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
|
||||
background-image: -ms-linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
|
||||
background-image: -o-linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
|
||||
/* IE6/7 inline-block hack */
|
||||
*display: inline;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.button:hover,
|
||||
.button:focus,
|
||||
.button:active {
|
||||
text-decoration: none;
|
||||
border-color: #c6c6c6;
|
||||
color: #333;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
.button:focus {
|
||||
border-color: #105cb6;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.button:active {
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.button-main {
|
||||
border-color: #5e9612;
|
||||
color: #fff;
|
||||
background: #569107;
|
||||
background-color: #69a619;
|
||||
}
|
||||
|
||||
.button-main:hover,
|
||||
.button-main:focus,
|
||||
.button-main:active {
|
||||
border-color: #558713;
|
||||
color: #fff;
|
||||
background-color: #6ead1a;
|
||||
}
|
||||
|
||||
.button-main:active {
|
||||
background-color: #5D9117;
|
||||
}
|
||||
|
||||
.share-bar {
|
||||
@ -158,13 +195,6 @@ p {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.footer {
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid #ccc;
|
||||
margin: 3em 0 0;
|
||||
font-size: 0.8125em;
|
||||
}
|
||||
|
||||
@media screen and (max-width:480px) {
|
||||
body {
|
||||
font-size: 0.875em;
|
||||
|
Loading…
Reference in New Issue
Block a user