Skip to content

Commit d6ebdb0

Browse files
committed
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.
1 parent 579ebab commit d6ebdb0

File tree

2 files changed

+85
-54
lines changed

2 files changed

+85
-54
lines changed

index.html

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,32 @@
88
</head>
99

1010
<body>
11-
<a class="fork" href="http://github.com/necolas/normalize.css">
11+
<a class="fork" href="https://github.com/necolas/normalize.css">
1212
<img src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
1313
</a>
1414

1515
<div id="container">
1616

17-
<h1><a href="http://github.com/necolas/normalize.css">normalize.css</a></h1>
17+
<div class="hgroup">
18+
<h1><a href="https://github.com/necolas/normalize.css">normalize.css</a></h1>
19+
<h2>A modern, HTML5-ready, alternative to CSS resets</h2>
20+
</div>
1821

1922
<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>
2023

2124
<h2>What does it do?</h2>
2225
<ul>
2326
<li><strong>Preserves useful defaults</strong>, unlike many CSS resets.</li>
24-
<li><strong>Normalizes styles</strong> for a wide range of elements (including HTML5).</li>
27+
<li><strong>Normalizes styles</strong> for a wide range of HTML elements.</li>
2528
<li><strong>Corrects bugs</strong> and common browser inconsistencies.</li>
2629
<li><strong>Improves usability</strong> with subtle improvements.</li>
2730
<li><strong>Explains what code does</strong> using detailed comments.</li>
2831
</ul>
2932

30-
<div class="demo">
31-
<a class="button" href="demo.html">Check out the demo</a>
32-
<p><a href="https://github.com/necolas/normalize.css/raw/master/normalize.css">Get the normalize.css file</a></p>
33+
<div class="cta">
34+
<a class="button button-main" href="https://github.com/necolas/normalize.css">View project on GitHub</a>
35+
<a class="button" href="https://github.com/necolas/normalize.css/raw/master/normalize.css">Download</a>
36+
<p><a href="demo.html">Check out the demo</a></p>
3337
</div>
3438

3539
<div class="share-bar">
@@ -51,11 +55,8 @@ <h2>What does it do?</h2>
5155
</div>
5256
</div>
5357

54-
<h2>Browser support</h2>
55-
<p>Chrome, Firefox 3+, Safari 4+, Opera 10+, Internet Explorer 6+</p>
56-
5758
<h2>How do I use it?</h2>
58-
<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>
59+
<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>
5960

6061
<h2>Who uses it?</h2>
6162
<ul>
@@ -65,16 +66,16 @@ <h2>Who uses it?</h2>
6566
<li><a href="http://css-tricks.com/">CSS Tricks</a></li>
6667
</ul>
6768

69+
<h2>Browser support</h2>
70+
<p>Chrome, Firefox 3+, Safari 4+, Opera 10+, Internet Explorer 6+</p>
71+
6872
<h2>Source code</h2>
69-
<p>Available on GitHub: <a href="http://github.com/necolas/normalize.css">necolas/normalize.css</a></p>
73+
<p>Available on GitHub: <a href="https://github.com/necolas/normalize.css">necolas/normalize.css</a></p>
7074
<pre>$ git clone git://github.com/necolas/normalize.css.git</pre>
7175

7276
<h2>Acknowledgements</h2>
73-
<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>
74-
75-
<div class="footer">
76-
<p>A project by <a href="http://nicolasgallagher.com">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal">Jonathan Neal</a>.</p>
77-
</div>
77+
<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>
78+
<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>
7879

7980
</div>
8081

style.css

Lines changed: 68 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ html {
66

77
body {
88
max-width: 480px;
9-
padding: 0 10px;
9+
padding: 0 10px 30px;
1010
margin: 0 auto;
11-
font: 1em/1.4 Calibri, sans-serif;
11+
font: 1em/1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
1212
color: #222;
1313
background: #fff;
1414
_width: 480px;
@@ -72,6 +72,11 @@ li {
7272
margin: 0.35em 0;
7373
}
7474

75+
h1,
76+
h2 {
77+
line-height: 1.2;
78+
}
79+
7580
h1 {
7681
margin: 0.25em 0 0.5em;
7782
font-size: 3.5em;
@@ -94,54 +99,86 @@ p {
9499
right: 0;
95100
}
96101

97-
.demo {
102+
.hgroup h1 {
103+
margin-bottom: 0;
104+
}
105+
106+
.hgroup h2 {
107+
margin: 0 0 2em;
108+
font-size: 1em;
109+
color: #555;
110+
}
111+
112+
.cta {
98113
margin:1em 0 4em;
99114
}
100115

101-
.demo p {
116+
.cta p {
102117
margin: 0.5em 0 0;
103118
font-style: italic;
104119
}
105120

106121
.button {
122+
position: relative;
107123
display: inline-block;
108-
padding: 6px 15px;
124+
padding: 0.4em 1em;
109125
border: 1px solid #487310;
110-
margin: 20px 0 0;
126+
margin: 20px 5px 0 0;
111127
font-size: 1.375em;
112128
line-height: 1.273;
113-
color: #fff;
114-
background: #6ead1a;
115-
text-shadow: 0 1px 1px rgba(0,0,0,0.4);
116-
-moz-border-radius: 5px;
117-
border-radius: 5px;
118-
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.4),
119-
inset 0 1px rgba(255,255,255,0.5),
120-
inset 0 12px rgba(255,255,255,0.2),
121-
inset 0 10px 20px rgba(255,255,255,0.25),
122-
inset 0 -12px 25px rgba(0,0,0,0.3);
123-
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.4),
124-
inset 0 1px rgba(255,255,255,0.5),
125-
inset 0 12px rgba(255,255,255,0.2),
126-
inset 0 10px 20px rgba(255,255,255,0.25),
127-
inset 0 -12px 25px rgba(0,0,0,0.3);
128-
box-shadow: 0 1px 3px rgba(0,0,0,0.4),
129-
inset 0 1px rgba(255,255,255,0.5),
130-
inset 0 12px rgba(255,255,255,0.2),
131-
inset 0 10px 10px rgba(255,255,255,0.25),
132-
inset 0 -12px 25px rgba(0,0,0,0.3);
133-
-webkit-transition: all 0.15s;
134-
-moz-transition: all 0.15s;
135-
-o-transition: all 0.15s;
136-
transition: all 0.15s;
129+
font-weight: normal;
130+
text-align: center;
131+
text-decoration: none;
132+
white-space: nowrap;
133+
border: 1px solid #d9d9d9;
134+
border-radius: 2px;
135+
color: #555;
136+
background: #f5f5f5;
137+
background-image: -webkit-linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
138+
background-image: -moz-linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
139+
background-image: -ms-linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
140+
background-image: -o-linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.1));
141+
/* IE6/7 inline-block hack */
142+
*display: inline;
143+
*zoom: 1;
137144
}
138145

139146
.button:hover,
140147
.button:focus,
141148
.button:active {
142149
text-decoration: none;
150+
border-color: #c6c6c6;
151+
color: #333;
152+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
153+
background-color: #f8f8f8;
154+
}
155+
156+
.button:focus {
157+
border-color: #105cb6;
158+
outline: 0;
159+
}
160+
161+
.button:active {
162+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
163+
background-color: #eee;
164+
}
165+
166+
.button-main {
167+
border-color: #5e9612;
143168
color: #fff;
144-
background: #569107;
169+
background-color: #69a619;
170+
}
171+
172+
.button-main:hover,
173+
.button-main:focus,
174+
.button-main:active {
175+
border-color: #558713;
176+
color: #fff;
177+
background-color: #6ead1a;
178+
}
179+
180+
.button-main:active {
181+
background-color: #5D9117;
145182
}
146183

147184
.share-bar {
@@ -158,13 +195,6 @@ p {
158195
vertical-align: bottom;
159196
}
160197

161-
.footer {
162-
padding: 10px 0;
163-
border-top: 1px solid #ccc;
164-
margin: 3em 0 0;
165-
font-size: 0.8125em;
166-
}
167-
168198
@media screen and (max-width:480px) {
169199
body {
170200
font-size: 0.875em;

0 commit comments

Comments
 (0)