fec_results 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +6 -6
  3. data/api/2000/congress/results.json +2668 -0
  4. data/api/2000/president/general_election_results.json +449 -0
  5. data/api/2000/president/popular_vote_summary.json +1 -0
  6. data/api/2000/president/primary_election_results.json +498 -0
  7. data/api/2000/president/primary_party_summary.json +1 -0
  8. data/api/2000/president/state_electoral_and_popular_vote_summary.json +1 -0
  9. data/api/2000/summary/chamber_votes_by_party.json +55 -0
  10. data/api/2000/summary/congressional_votes_by_election.json +55 -0
  11. data/api/2000/summary/general_election_votes.json +55 -0
  12. data/api/2000/summary/general_election_votes_by_party.json +55 -0
  13. data/api/2000/summary/party_labels.json +76 -0
  14. data/api/2002/congress/results.json +2401 -0
  15. data/api/2002/summary/chamber_votes_by_party.json +54 -0
  16. data/api/2002/summary/congressional_votes_by_election.json +54 -0
  17. data/api/2002/summary/general_election_votes.json +1 -0
  18. data/api/2002/summary/general_election_votes_by_party.json +1 -0
  19. data/api/2002/summary/party_labels.json +54 -0
  20. data/api/2004/congress/results.json +2309 -0
  21. data/api/2004/president/general_election_results.json +430 -0
  22. data/api/2004/president/popular_vote_summary.json +19 -0
  23. data/api/2004/president/primary_election_results.json +498 -0
  24. data/api/2004/president/primary_party_summary.json +7 -0
  25. data/api/2004/president/state_electoral_and_popular_vote_summary.json +56 -0
  26. data/api/2004/summary/chamber_votes_by_party.json +55 -0
  27. data/api/2004/summary/congressional_votes_by_election.json +55 -0
  28. data/api/2004/summary/general_election_votes.json +55 -0
  29. data/api/2004/summary/general_election_votes_by_party.json +55 -0
  30. data/api/2004/summary/party_labels.json +85 -0
  31. data/api/2006/congress/results.json +2377 -0
  32. data/api/2006/summary/chamber_votes_by_party.json +54 -0
  33. data/api/2006/summary/congressional_votes_by_election.json +54 -0
  34. data/api/2006/summary/general_election_votes.json +54 -0
  35. data/api/2006/summary/general_election_votes_by_party.json +54 -0
  36. data/api/2006/summary/party_labels.json +67 -0
  37. data/api/2008/congress/results.json +2401 -0
  38. data/api/2008/president/general_election_results.json +485 -0
  39. data/api/2008/president/popular_vote_summary.json +26 -0
  40. data/api/2008/president/primary_election_results.json +720 -0
  41. data/api/2008/president/primary_party_summary.json +11 -0
  42. data/api/2008/president/state_electoral_and_popular_vote_summary.json +51 -0
  43. data/api/2008/summary/chamber_votes_by_party.json +56 -0
  44. data/api/2008/summary/congressional_votes_by_election.json +56 -0
  45. data/api/2008/summary/general_election_votes.json +56 -0
  46. data/api/2008/summary/general_election_votes_by_party.json +56 -0
  47. data/api/2008/summary/party_labels.json +100 -0
  48. data/api/2010/congress/results.json +3300 -0
  49. data/api/2010/summary/chamber_votes_by_party.json +55 -0
  50. data/api/2010/summary/congressional_votes_by_election.json +55 -0
  51. data/api/2010/summary/general_election_votes.json +55 -0
  52. data/api/2010/summary/general_election_votes_by_party.json +55 -0
  53. data/api/2010/summary/party_labels.json +82 -0
  54. data/api/2012/congress/results.json +3081 -0
  55. data/api/2012/president/general_election_results.json +484 -0
  56. data/api/2012/president/popular_vote_summary.json +30 -0
  57. data/api/2012/president/primary_election_results.json +453 -0
  58. data/api/2012/president/primary_party_summary.json +9 -0
  59. data/api/2012/president/state_electoral_and_popular_vote_summary.json +51 -0
  60. data/api/2012/summary/chamber_votes_by_party.json +56 -0
  61. data/api/2012/summary/congressional_votes_by_election.json +56 -0
  62. data/api/2012/summary/general_election_votes.json +56 -0
  63. data/api/2012/summary/general_election_votes_by_party.json +56 -0
  64. data/api/2012/summary/party_labels.json +112 -0
  65. data/fec_results.gemspec +1 -0
  66. data/images/bg_hr.png +0 -0
  67. data/images/blacktocat.png +0 -0
  68. data/images/icon_download.png +0 -0
  69. data/images/sprite_download.png +0 -0
  70. data/index.html +159 -0
  71. data/javascripts/main.js +1 -0
  72. data/lib/fec_results.rb +3 -0
  73. data/lib/fec_results/congress.rb +56 -17
  74. data/lib/fec_results/president.rb +48 -48
  75. data/lib/fec_results/result.rb +2 -2
  76. data/lib/fec_results/summary.rb +120 -98
  77. data/lib/fec_results/version.rb +1 -1
  78. data/params.json +1 -0
  79. data/stylesheets/pygment_trac.css +70 -0
  80. data/stylesheets/stylesheet.css +419 -0
  81. metadata +100 -14
@@ -1,3 +1,3 @@
1
1
  module FecResults
2
- VERSION = "0.6"
2
+ VERSION = "0.7"
3
3
  end
data/params.json ADDED
@@ -0,0 +1 @@
1
+ {"name":"FEC Results","tagline":"Federal election results data from the Federal Election Commission","body":"# FecResults\r\n\r\nFecResults is a Ruby library that provides access to federal election results as published by the Federal Election Commission. Although it is primarily a campaign finance disclosure agency, the FEC also compiles election results on its site. This library provides ways to access summary and contest-specific information about elections for the U.S. House of Representatives, the U.S. Senate and President from 2000-2012. This data represents regularly-scheduled primary and general elections, plus special elections held on the date of general elections. It does not include special elections held outside the regularly scheduled election calendar. The results are race-wide only; they do not contain any geographic breakdowns such as county.\r\n\r\nWhat's not here is results below the \"race-wide\" level; there are no county or precinct-level results, only those for the state and House district.\r\n\r\nPlease be aware that there can be typos in some of the FEC results files, mainly in the FEC candidate IDs.\r\n\r\n## Installation\r\n\r\nAdd this line to your application's Gemfile:\r\n\r\n gem 'fec_results'\r\n\r\nAnd then execute:\r\n\r\n $ bundle\r\n\r\nOr install it yourself as:\r\n\r\n $ gem install fec_results\r\n\r\n## Getting Started\r\n\r\nFecResults can be used to retrieve both summary and contest-specific election results. Every instance of an FecResults class must include a year passed into the `new` method.\r\n\r\n#### Summary Results\r\n\r\nThe Summary class represents state, race and chamber totals for 2000-2012, plus a few other methods that are not strictly results themselves. Summary methods return Ruby objects built with OpenStruct. To get started, create an instance of the `Summary` class using a year hash:\r\n\r\n```ruby\r\ns = FecResults::Summary.new(:year => 2012)\r\n```\r\n\r\n`Summary` objects have a handful of methods, from the general election votes by race type (President, Senate, House) to party vote totals by chamber. To retrieve general election votes:\r\n\r\n```ruby\r\ngeneral_votes = s.general_election_votes\r\n=> [<OpenStruct state=\"AL\", presidential_votes=2074338, senate_votes=nil, house_votes=1933630>, <OpenStruct state=\"AK\", presidential_votes=300495, senate_votes=nil, house_votes=289804>,...]\r\ngeneral_votes.\r\nalabama = general_votes.first\r\n=> <OpenStruct state=\"AL\", presidential_votes=2074338, senate_votes=nil, house_votes=1933630>\r\nalabama.house_votes\r\n=> 1933630\r\n```\r\n\r\nAnother way to isolate a single state is to pass in an optional hash with the state abbreviation to the method called. The state filter is the only filter for `Summary` objects.\r\n\r\n```ruby\r\nalabama_votes = s.general_election_votes({state: 'AL'})\r\n=> [<OpenStruct state=\"AL\", presidential_votes=2074338, senate_votes=nil, house_votes=1933630>, <OpenStruct state=\"AK\", presidential_votes=300495, senate_votes=nil, house_votes=289804>]\r\n```\r\n\r\nThe `Summary` object methods work for all years except `house_party_gains`, which only applies to the 2010 cycle. In addition to summary election results, each cycle also has a `party_labels` method that lists political parties and the abbreviations used by the FEC for that cycle's results data.\r\n\r\n#### Presidential Results\r\n\r\nIn presidential years (2000, 2004, 2008 and 2012), FecResults offers totals of the popular and electoral vote, along with election results for both the primary and general elections. Retrieving presidential data works the same way, by passing a year:\r\n\r\n```ruby\r\np = FecResults::President.new(:year => 2000)\r\np.primary_party_summary\r\n=> [<OpenStruct party=\"Democratic Party (D)\", total_votes=15975066>, #<OpenStruct party=\"Republican Party (R)\", total_votes=7940331>, ..]\r\n```\r\n\r\nPresidential methods include popular vote totals, state totals for electoral and popular votes, primary totals by party and election results for the primary and general elections.\r\n\r\n#### Congressional Results\r\n\r\nFecResults offers House and Senate results for 2000-2012, which are built using the `Result` object (as are presidential results). For congressional results, the file can take awhile to load, so try not to call `results` more than once, but rather save the output to a variable:\r\n\r\n```ruby\r\nc = FecResults::Congress.new(:year => 2012)\r\nresults = c.results\r\nresults.first\r\n=> <FecResults::Result:0x007fb46e297870 @year=2012, @chamber=\"H\", @state=\"AL\", @district=\"01\", @fec_id=\"H2AL01077\", @incumbent=true, @candidate_last=\"Bonner\", @candidate_first=\"Jo\", @candidate_name=\"Bonner, Jo\", @party=\"R\", @primary_votes=48702, @primary_pct=55.54959907839358, @primary_unopposed=false, @runoff_votes=nil, @runoff_pct=nil, @general_votes=196374, @general_pct=97.85624588889553, @general_unopposed=false, @general_runoff_votes=nil, @general_runoff_pct=nil, @general_combined_party_votes=nil, @general_combined_party_pct=nil, @general_winner=true, @notes=nil>\r\n```\r\nNot all years have the same data available - for example, general election winners are not always marked. In addition, some states permit candidates to run as the nominee of multiple parties; these candidates usually have a `Result` instance with a combined parties total and separate instances for each party.\r\n\r\n### JSON API\r\n\r\nUsing the [FecResultsGenerator library](https://github.com/openelections/fec_results_generator), there is a static file JSON API of data retrieved by FecResults. It covers the years 2000-2012 and consists of three sections: Congress, President and Summary, matching the classes found in the gem. You can browse the API by changing the year, class name and method name. Here is a listing of the endpoints, using 2012 data:\r\n\r\n##### Summary\r\n\r\n* [Party Labels](http://openelections.github.io/fec_results/api/2012/summary/party_labels.json)\r\n* [Chamber Votes by Party](http://openelections.github.io/fec_results/api/2012/summary/chamber_votes_by_party.json)\r\n* [Congressional Votes by Election](http://openelections.github.io/fec_results/api/2012/summary/congressional_votes_by_election.json)\r\n* [General Election Votes by Party](http://openelections.github.io/fec_results/api/2012/summary/general_election_votes_by_party.json)\r\n\r\n##### President\r\n\r\n* [Popular Vote Summary](http://openelections.github.io/fec_results/api/2012/president/popular_vote_summary.json)\r\n* [State Electoral and Popular Vote Summary](http://openelections.github.io/fec_results/api/2012/president/state_electoral_and_popular_vote_summary.json)\r\n* [General Election Results](http://openelections.github.io/fec_results/api/2012/president/general_election_results.json)\r\n* [Primary Election Results](http://openelections.github.io/fec_results/api/2012/president/primary_election_results.json)\r\n\r\n##### Congress\r\n\r\n* [Results](http://openelections.github.io/fec_results/api/2012/congress/results.json)","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
@@ -0,0 +1,70 @@
1
+ .highlight .hll { background-color: #ffffcc }
2
+ .highlight { background: #f0f3f3; }
3
+ .highlight .c { color: #0099FF; font-style: italic } /* Comment */
4
+ .highlight .err { color: #AA0000; background-color: #FFAAAA } /* Error */
5
+ .highlight .k { color: #006699; font-weight: bold } /* Keyword */
6
+ .highlight .o { color: #555555 } /* Operator */
7
+ .highlight .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */
8
+ .highlight .cp { color: #009999 } /* Comment.Preproc */
9
+ .highlight .c1 { color: #0099FF; font-style: italic } /* Comment.Single */
10
+ .highlight .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */
11
+ .highlight .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
12
+ .highlight .ge { font-style: italic } /* Generic.Emph */
13
+ .highlight .gr { color: #FF0000 } /* Generic.Error */
14
+ .highlight .gh { color: #003300; font-weight: bold } /* Generic.Heading */
15
+ .highlight .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
16
+ .highlight .go { color: #AAAAAA } /* Generic.Output */
17
+ .highlight .gp { color: #000099; font-weight: bold } /* Generic.Prompt */
18
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
19
+ .highlight .gu { color: #003300; font-weight: bold } /* Generic.Subheading */
20
+ .highlight .gt { color: #99CC66 } /* Generic.Traceback */
21
+ .highlight .kc { color: #006699; font-weight: bold } /* Keyword.Constant */
22
+ .highlight .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */
23
+ .highlight .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */
24
+ .highlight .kp { color: #006699 } /* Keyword.Pseudo */
25
+ .highlight .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */
26
+ .highlight .kt { color: #007788; font-weight: bold } /* Keyword.Type */
27
+ .highlight .m { color: #FF6600 } /* Literal.Number */
28
+ .highlight .s { color: #CC3300 } /* Literal.String */
29
+ .highlight .na { color: #330099 } /* Name.Attribute */
30
+ .highlight .nb { color: #336666 } /* Name.Builtin */
31
+ .highlight .nc { color: #00AA88; font-weight: bold } /* Name.Class */
32
+ .highlight .no { color: #336600 } /* Name.Constant */
33
+ .highlight .nd { color: #9999FF } /* Name.Decorator */
34
+ .highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
35
+ .highlight .ne { color: #CC0000; font-weight: bold } /* Name.Exception */
36
+ .highlight .nf { color: #CC00FF } /* Name.Function */
37
+ .highlight .nl { color: #9999FF } /* Name.Label */
38
+ .highlight .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */
39
+ .highlight .nt { color: #330099; font-weight: bold } /* Name.Tag */
40
+ .highlight .nv { color: #003333 } /* Name.Variable */
41
+ .highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
42
+ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
43
+ .highlight .mf { color: #FF6600 } /* Literal.Number.Float */
44
+ .highlight .mh { color: #FF6600 } /* Literal.Number.Hex */
45
+ .highlight .mi { color: #FF6600 } /* Literal.Number.Integer */
46
+ .highlight .mo { color: #FF6600 } /* Literal.Number.Oct */
47
+ .highlight .sb { color: #CC3300 } /* Literal.String.Backtick */
48
+ .highlight .sc { color: #CC3300 } /* Literal.String.Char */
49
+ .highlight .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
50
+ .highlight .s2 { color: #CC3300 } /* Literal.String.Double */
51
+ .highlight .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */
52
+ .highlight .sh { color: #CC3300 } /* Literal.String.Heredoc */
53
+ .highlight .si { color: #AA0000 } /* Literal.String.Interpol */
54
+ .highlight .sx { color: #CC3300 } /* Literal.String.Other */
55
+ .highlight .sr { color: #33AAAA } /* Literal.String.Regex */
56
+ .highlight .s1 { color: #CC3300 } /* Literal.String.Single */
57
+ .highlight .ss { color: #FFCC33 } /* Literal.String.Symbol */
58
+ .highlight .bp { color: #336666 } /* Name.Builtin.Pseudo */
59
+ .highlight .vc { color: #003333 } /* Name.Variable.Class */
60
+ .highlight .vg { color: #003333 } /* Name.Variable.Global */
61
+ .highlight .vi { color: #003333 } /* Name.Variable.Instance */
62
+ .highlight .il { color: #FF6600 } /* Literal.Number.Integer.Long */
63
+
64
+ .type-csharp .highlight .k { color: #0000FF }
65
+ .type-csharp .highlight .kt { color: #0000FF }
66
+ .type-csharp .highlight .nf { color: #000000; font-weight: normal }
67
+ .type-csharp .highlight .nc { color: #2B91AF }
68
+ .type-csharp .highlight .nn { color: #000000 }
69
+ .type-csharp .highlight .s { color: #A31515 }
70
+ .type-csharp .highlight .sc { color: #A31515 }
@@ -0,0 +1,419 @@
1
+ /*******************************************************************************
2
+ Slate Theme for GitHub Pages
3
+ by Jason Costello, @jsncostello
4
+ *******************************************************************************/
5
+
6
+ @import url(pygment_trac.css);
7
+
8
+ /*******************************************************************************
9
+ MeyerWeb Reset
10
+ *******************************************************************************/
11
+
12
+ html, body, div, span, applet, object, iframe,
13
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
14
+ a, abbr, acronym, address, big, cite, code,
15
+ del, dfn, em, img, ins, kbd, q, s, samp,
16
+ small, strike, strong, sub, sup, tt, var,
17
+ b, u, i, center,
18
+ dl, dt, dd, ol, ul, li,
19
+ fieldset, form, label, legend,
20
+ table, caption, tbody, tfoot, thead, tr, th, td,
21
+ article, aside, canvas, details, embed,
22
+ figure, figcaption, footer, header, hgroup,
23
+ menu, nav, output, ruby, section, summary,
24
+ time, mark, audio, video {
25
+ margin: 0;
26
+ padding: 0;
27
+ border: 0;
28
+ font: inherit;
29
+ vertical-align: baseline;
30
+ }
31
+
32
+ /* HTML5 display-role reset for older browsers */
33
+ article, aside, details, figcaption, figure,
34
+ footer, header, hgroup, menu, nav, section {
35
+ display: block;
36
+ }
37
+
38
+ ol, ul {
39
+ list-style: none;
40
+ }
41
+
42
+ blockquote, q {
43
+ }
44
+
45
+ table {
46
+ border-collapse: collapse;
47
+ border-spacing: 0;
48
+ }
49
+
50
+ /*******************************************************************************
51
+ Theme Styles
52
+ *******************************************************************************/
53
+
54
+ body {
55
+ box-sizing: border-box;
56
+ color:#373737;
57
+ background: #212121;
58
+ font-size: 16px;
59
+ font-family: 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
60
+ line-height: 1.5;
61
+ -webkit-font-smoothing: antialiased;
62
+ }
63
+
64
+ h1, h2, h3, h4, h5, h6 {
65
+ margin: 10px 0;
66
+ font-weight: 700;
67
+ color:#222222;
68
+ font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif;
69
+ letter-spacing: -1px;
70
+ }
71
+
72
+ h1 {
73
+ font-size: 36px;
74
+ font-weight: 700;
75
+ }
76
+
77
+ h2 {
78
+ padding-bottom: 10px;
79
+ font-size: 32px;
80
+ background: url('../images/bg_hr.png') repeat-x bottom;
81
+ }
82
+
83
+ h3 {
84
+ font-size: 24px;
85
+ }
86
+
87
+ h4 {
88
+ font-size: 21px;
89
+ }
90
+
91
+ h5 {
92
+ font-size: 18px;
93
+ }
94
+
95
+ h6 {
96
+ font-size: 16px;
97
+ }
98
+
99
+ p {
100
+ margin: 10px 0 15px 0;
101
+ }
102
+
103
+ footer p {
104
+ color: #f2f2f2;
105
+ }
106
+
107
+ a {
108
+ text-decoration: none;
109
+ color: #007edf;
110
+ text-shadow: none;
111
+
112
+ transition: color 0.5s ease;
113
+ transition: text-shadow 0.5s ease;
114
+ -webkit-transition: color 0.5s ease;
115
+ -webkit-transition: text-shadow 0.5s ease;
116
+ -moz-transition: color 0.5s ease;
117
+ -moz-transition: text-shadow 0.5s ease;
118
+ -o-transition: color 0.5s ease;
119
+ -o-transition: text-shadow 0.5s ease;
120
+ -ms-transition: color 0.5s ease;
121
+ -ms-transition: text-shadow 0.5s ease;
122
+ }
123
+
124
+ a:hover, a:focus {text-decoration: underline;}
125
+
126
+ footer a {
127
+ color: #F2F2F2;
128
+ text-decoration: underline;
129
+ }
130
+
131
+ em {
132
+ font-style: italic;
133
+ }
134
+
135
+ strong {
136
+ font-weight: bold;
137
+ }
138
+
139
+ img {
140
+ position: relative;
141
+ margin: 0 auto;
142
+ max-width: 739px;
143
+ padding: 5px;
144
+ margin: 10px 0 10px 0;
145
+ border: 1px solid #ebebeb;
146
+
147
+ box-shadow: 0 0 5px #ebebeb;
148
+ -webkit-box-shadow: 0 0 5px #ebebeb;
149
+ -moz-box-shadow: 0 0 5px #ebebeb;
150
+ -o-box-shadow: 0 0 5px #ebebeb;
151
+ -ms-box-shadow: 0 0 5px #ebebeb;
152
+ }
153
+
154
+ pre, code {
155
+ width: 100%;
156
+ color: #222;
157
+ background-color: #fff;
158
+
159
+ font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
160
+ font-size: 14px;
161
+
162
+ border-radius: 2px;
163
+ -moz-border-radius: 2px;
164
+ -webkit-border-radius: 2px;
165
+
166
+
167
+
168
+ }
169
+
170
+ pre {
171
+ width: 100%;
172
+ padding: 10px;
173
+ box-shadow: 0 0 10px rgba(0,0,0,.1);
174
+ overflow: auto;
175
+ }
176
+
177
+ code {
178
+ padding: 3px;
179
+ margin: 0 3px;
180
+ box-shadow: 0 0 10px rgba(0,0,0,.1);
181
+ }
182
+
183
+ pre code {
184
+ display: block;
185
+ box-shadow: none;
186
+ }
187
+
188
+ blockquote {
189
+ color: #666;
190
+ margin-bottom: 20px;
191
+ padding: 0 0 0 20px;
192
+ border-left: 3px solid #bbb;
193
+ }
194
+
195
+ ul, ol, dl {
196
+ margin-bottom: 15px
197
+ }
198
+
199
+ ul li {
200
+ list-style: inside;
201
+ padding-left: 20px;
202
+ }
203
+
204
+ ol li {
205
+ list-style: decimal inside;
206
+ padding-left: 20px;
207
+ }
208
+
209
+ dl dt {
210
+ font-weight: bold;
211
+ }
212
+
213
+ dl dd {
214
+ padding-left: 20px;
215
+ font-style: italic;
216
+ }
217
+
218
+ dl p {
219
+ padding-left: 20px;
220
+ font-style: italic;
221
+ }
222
+
223
+ hr {
224
+ height: 1px;
225
+ margin-bottom: 5px;
226
+ border: none;
227
+ background: url('../images/bg_hr.png') repeat-x center;
228
+ }
229
+
230
+ table {
231
+ border: 1px solid #373737;
232
+ margin-bottom: 20px;
233
+ text-align: left;
234
+ }
235
+
236
+ th {
237
+ font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
238
+ padding: 10px;
239
+ background: #373737;
240
+ color: #fff;
241
+ }
242
+
243
+ td {
244
+ padding: 10px;
245
+ border: 1px solid #373737;
246
+ }
247
+
248
+ form {
249
+ background: #f2f2f2;
250
+ padding: 20px;
251
+ }
252
+
253
+ /*******************************************************************************
254
+ Full-Width Styles
255
+ *******************************************************************************/
256
+
257
+ .outer {
258
+ width: 100%;
259
+ }
260
+
261
+ .inner {
262
+ position: relative;
263
+ max-width: 640px;
264
+ padding: 20px 10px;
265
+ margin: 0 auto;
266
+ }
267
+
268
+ #forkme_banner {
269
+ display: block;
270
+ position: absolute;
271
+ top:0;
272
+ right: 10px;
273
+ z-index: 10;
274
+ padding: 10px 50px 10px 10px;
275
+ color: #fff;
276
+ background: url('../images/blacktocat.png') #0090ff no-repeat 95% 50%;
277
+ font-weight: 700;
278
+ box-shadow: 0 0 10px rgba(0,0,0,.5);
279
+ border-bottom-left-radius: 2px;
280
+ border-bottom-right-radius: 2px;
281
+ }
282
+
283
+ #header_wrap {
284
+ background: #212121;
285
+ background: -moz-linear-gradient(top, #373737, #212121);
286
+ background: -webkit-linear-gradient(top, #373737, #212121);
287
+ background: -ms-linear-gradient(top, #373737, #212121);
288
+ background: -o-linear-gradient(top, #373737, #212121);
289
+ background: linear-gradient(top, #373737, #212121);
290
+ }
291
+
292
+ #header_wrap .inner {
293
+ padding: 50px 10px 30px 10px;
294
+ }
295
+
296
+ #project_title {
297
+ margin: 0;
298
+ color: #fff;
299
+ font-size: 42px;
300
+ font-weight: 700;
301
+ text-shadow: #111 0px 0px 10px;
302
+ }
303
+
304
+ #project_tagline {
305
+ color: #fff;
306
+ font-size: 24px;
307
+ font-weight: 300;
308
+ background: none;
309
+ text-shadow: #111 0px 0px 10px;
310
+ }
311
+
312
+ #downloads {
313
+ position: absolute;
314
+ width: 210px;
315
+ z-index: 10;
316
+ bottom: -40px;
317
+ right: 0;
318
+ height: 70px;
319
+ background: url('../images/icon_download.png') no-repeat 0% 90%;
320
+ }
321
+
322
+ .zip_download_link {
323
+ display: block;
324
+ float: right;
325
+ width: 90px;
326
+ height:70px;
327
+ text-indent: -5000px;
328
+ overflow: hidden;
329
+ background: url(../images/sprite_download.png) no-repeat bottom left;
330
+ }
331
+
332
+ .tar_download_link {
333
+ display: block;
334
+ float: right;
335
+ width: 90px;
336
+ height:70px;
337
+ text-indent: -5000px;
338
+ overflow: hidden;
339
+ background: url(../images/sprite_download.png) no-repeat bottom right;
340
+ margin-left: 10px;
341
+ }
342
+
343
+ .zip_download_link:hover {
344
+ background: url(../images/sprite_download.png) no-repeat top left;
345
+ }
346
+
347
+ .tar_download_link:hover {
348
+ background: url(../images/sprite_download.png) no-repeat top right;
349
+ }
350
+
351
+ #main_content_wrap {
352
+ background: #f2f2f2;
353
+ border-top: 1px solid #111;
354
+ border-bottom: 1px solid #111;
355
+ }
356
+
357
+ #main_content {
358
+ padding-top: 40px;
359
+ }
360
+
361
+ #footer_wrap {
362
+ background: #212121;
363
+ }
364
+
365
+
366
+
367
+ /*******************************************************************************
368
+ Small Device Styles
369
+ *******************************************************************************/
370
+
371
+ @media screen and (max-width: 480px) {
372
+ body {
373
+ font-size:14px;
374
+ }
375
+
376
+ #downloads {
377
+ display: none;
378
+ }
379
+
380
+ .inner {
381
+ min-width: 320px;
382
+ max-width: 480px;
383
+ }
384
+
385
+ #project_title {
386
+ font-size: 32px;
387
+ }
388
+
389
+ h1 {
390
+ font-size: 28px;
391
+ }
392
+
393
+ h2 {
394
+ font-size: 24px;
395
+ }
396
+
397
+ h3 {
398
+ font-size: 21px;
399
+ }
400
+
401
+ h4 {
402
+ font-size: 18px;
403
+ }
404
+
405
+ h5 {
406
+ font-size: 14px;
407
+ }
408
+
409
+ h6 {
410
+ font-size: 12px;
411
+ }
412
+
413
+ code, pre {
414
+ min-width: 320px;
415
+ max-width: 480px;
416
+ font-size: 11px;
417
+ }
418
+
419
+ }