Skip to content

Commit

Permalink
Added some type and some header styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Fiedler committed Mar 24, 2012
1 parent f54af2d commit 69d7450
Show file tree
Hide file tree
Showing 10 changed files with 284 additions and 17 deletions.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -44,7 +44,7 @@ <h3>Players</h3>
<section class="content"> <section class="content">
<header> <header>
<h1>What&rsquo;s that in hot dogs?</h1> <h1>What&rsquo;s that in hot dogs?</h1>
<p>Search for your favorite player and see how many hot dogs they cost.</p> <p>Search for your favorite baseball player and see how many hot dogs they cost.</p>
</header> </header>


<form action="" method="get" accept-charset="utf-8"> <form action="" method="get" accept-charset="utf-8">
Expand Down
Binary file added public/fonts/Chunkfive-webfont.eot
Binary file not shown.
121 changes: 121 additions & 0 deletions public/fonts/Chunkfive-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/fonts/Chunkfive-webfont.ttf
Binary file not shown.
Binary file added public/fonts/Chunkfive-webfont.woff
Binary file not shown.
91 changes: 91 additions & 0 deletions public/fonts/SIL Open Font License 1.1.txt
@@ -0,0 +1,91 @@
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
35 changes: 29 additions & 6 deletions public/stylesheets/application.css
Expand Up @@ -43,16 +43,39 @@ input, select {
display: block; } display: block; }


/* End hide from IE Mac */ /* End hide from IE Mac */
@font-face {
font-family: '../fonts/ChunkFive';
src: url("../fonts/Chunkfive-webfont.eot");
src: url("../fonts/Chunkfive-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/Chunkfive-webfont.woff") format("woff"), url("../fonts/Chunkfive-webfont.ttf") format("truetype"), url("../fonts/Chunkfive-webfont.svg#ChunkFiveRegular") format("svg");
font-weight: normal;
font-style: normal; }

body { body {
text-align: center; } text-align: center;
font: 16px "Gill Sans", "Gill Sans MT", Calibri, sans-serif; }
body section.content { body section.content {
margin: 0 auto; margin: 0 auto;
max-width: 1400px; } max-width: 1400px; }
body section.content header h1 { body section.content header {
font: bold 34px Helvetica, Arial, sans-serif; margin: 0 auto 20px;
margin-bottom: 10px; } max-width: 900px;
body section.content header p { text-align: left; }
margin-bottom: 20px; } body section.content header h1 {
font: 72px "ChunkFive", Helvetica, Arial, serif;
margin: 60px 0 -10px;
color: #595959; }
body section.content header p {
font-size: 18px;
color: #bfbfbf;
margin-left: .5em; }
body section.content form input[type="search"] {
border: none;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
font: 24px "ChunkFive", Helvetica, Arial, serif; }
body section.content section.example-players h3 { body section.content section.example-players h3 {
text-transform: uppercase; text-transform: uppercase;
border-bottom: 1px solid #ccc; } border-bottom: 1px solid #ccc; }
Expand Down
21 changes: 21 additions & 0 deletions public/stylesheets/sass/_base.scss
@@ -0,0 +1,21 @@
@font-face {
font-family: '../fonts/ChunkFive';
src: url('../fonts/Chunkfive-webfont.eot');
src: url('../fonts/Chunkfive-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Chunkfive-webfont.woff') format('woff'),
url('../fonts/Chunkfive-webfont.ttf') format('truetype'),
url('../fonts/Chunkfive-webfont.svg#ChunkFiveRegular') format('svg');
font-weight: normal;
font-style: normal;
}

$header-font-family: 'ChunkFive', Helvetica, Arial, serif;
$body-font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
$body-font-size: 16px;

$fg-max-columns: 12;
$fg-column: golden-ratio($body-font-size, 5);
$fg-gutter: golden-ratio($body-font-size, 3);
$fg-max-width: 1400px;

$dark-gray: #595959;
23 changes: 20 additions & 3 deletions public/stylesheets/sass/_index.scss
@@ -1,22 +1,39 @@
body { body {
text-align: center; text-align: center;
font: $body-font-size $body-font-family;


section.content { section.content {
margin: 0 auto; margin: 0 auto;
max-width: $fg-max-width; max-width: $fg-max-width;


header { header {
margin: 0 auto 20px;
max-width: 900px;
text-align: left;

h1 { h1 {
font: bold 34px Helvetica, Arial, sans-serif; font: 72px $header-font-family;
margin-bottom: 10px; margin: 60px 0 -10px;
color: $dark-gray;
} }


p { p {
margin-bottom: 20px; font-size: 18px;
color: lighten($dark-gray, 40%);
margin-left: .5em;
} }
} }


form { form {
input[type="search"] {
border: none;
@include border-radius(3px);
font: 24px $header-font-family;
}

input[type="submit"]{

}
} }


section.example-players { section.example-players {
Expand Down
8 changes: 1 addition & 7 deletions public/stylesheets/sass/application.scss
@@ -1,11 +1,5 @@
@import 'bourbon/bourbon'; @import 'bourbon/bourbon';
@import '_reset.scss'; @import '_reset.scss';

@import '_base.scss';
$body-font-size: 16px;
$fg-max-columns: 12;
$fg-column: golden-ratio($body-font-size, 5);
$fg-gutter: golden-ratio($body-font-size, 3);
$fg-max-width: 1400px;

@import '_index.scss'; @import '_index.scss';


0 comments on commit 69d7450

Please sign in to comment.