Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 7 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jan 04, 2011
Chris Bielinski first commit; using ruby-lang.org for reference cf4a213
View
1  app/controllers/application_controller.rb
@@ -1,3 +1,4 @@
class ApplicationController < ActionController::Base
protect_from_forgery
+ layout 'ruby-lang'
end
View
78 app/views/layouts/ruby-lang.html.erb
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <!--
+ please note that this layout was
+ ripped straight from ruby-lang.org
+ with modifications by
+ Chris Bielinski <chris@shadowreactor.com>
+ -->
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>Ruby Committers</title>
+ <link rel="stylesheet" type="text/css" href="http://www.ruby-lang.org/stylesheets/low.css" />
+ <link rel="stylesheet" type="text/css" href="/stylesheets/screen.css" media="screen" />
+ <link rel="alternate stylesheet" type="text/css" href="http://www.ruby-lang.org/stylesheets/low_vision_screen.css" media="screen" title="Low vision" />
+ <link rel="stylesheet" type="text/css" href="http://www.ruby-lang.org/stylesheets/print.css" media="print" />
+ <link rel="shortcut icon" type="image/x-icon" href="http://www.ruby-lang.org/favicon.ico" />
+ </head>
+ <body id="home-page-layout">
+ <div id="page">
+ <div id="header">
+ <div id="logo">
+ <%= image_tag 'ruby.gif', :alt => 'Ruby Icon', :title => '' %>
+ <h1>Ruby Committers</h1>
+ <h2>The people who make it happen...</h2>
+ <div class='clear'><!-- --></div>
+ </div>
+ <div class="site-links">
+<a href="/en/downloads/">Downloads</a><span class="separator"> | </span><a href="/en/documentation/">Documentation</a><span class="separator"> | </span><a href="/en/libraries/">Libraries</a><span class="separator"> | </span><a href="/en/community/">Community</a><span class="separator"> | </span><a href="/en/news/">News</a><span class="separator"> | </span><a href="/en/security/">Security</a><span class="separator"> | </span><a href="/en/about/">About Ruby</a>
+ </div>
+ </div>
+ <hr class="hidden-modern" />
+ <div id="main-wrapper">
+ <div id="main">
+ <div id="content-wrapper">
+ <div id='spotlight'>
+ <div id='portrait'><img src='http://upload.wikimedia.org/wikipedia/commons/7/76/Yukihiro_Matsumoto.JPG'></div>
+ This is something that will go here, fool!
+ </div>
+ <div id="content">
+ <%#= yield %>
+ </div>
+ </div>
+ <div class="foot">
+ <div class="site-links">
+<a href="/en/downloads/">Downloads</a><span class="separator"> | </span><a href="/en/documentation/">Documentation</a><span class="separator"> | </span><a href="/en/libraries/">Libraries</a><span class="separator"> | </span><a href="/en/community/">Community</a><span class="separator"> | </span><a href="/en/news/">News</a><span class="separator"> | </span><a href="/en/security/">Security</a><span class="separator"> | </span><a href="/en/about/">About Ruby</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id="search-box">
+<form id="search-form" action="http://www.google.com/cse">
+ <table class="fieldset">
+ <tr>
+ <td>
+ <input class="field" type="text" name="q" size="31" style="background: white url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) left no-repeat" onfocus="this.style.background='white'" onblur="if (/^\s*$/.test(this.value)) this.style.background='white url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) left no-repeat'"/>
+ </td>
+ <td>
+ <input type="hidden" name="cx" value="013598269713424429640:g5orptiw95w" />
+ <input type="hidden" name="ie" value="UTF-8" />
+ <input class="button" type="submit" name="sa" value="Search" />
+ </td>
+ </tr>
+ </table>
+</form>
+ </div>
+ <div id="footer">
+ <div class="fine-print">
+ <p>Content available in <a href="/en/">English</a>, <a href="/fr/">French</a>, <a href="/ja/">Japanese</a>, <a href="/ko/">Korean</a>, <a href="/pl/">Polish</a>, <a href="/es/">Spanish</a>, <a href="/pt/">Portuguese</a>, <a href="/zh_cn/">Simplified Chinese</a>, <a href="/zh_TW/">Traditional Chinese</a>, <a href="/id/">Bahasa Indonesia</a>, <a href="/de/">German</a>, <a href="/it/">Italian</a>, <a href="/cs/">Czech</a> and <a href="/bg/">Bulgarian</a>.</p>
+ <p>This website is made with Ruby and powered by <a href="http://radiantcms.org">Radiant CMS</a>.
+ It is proudly maintained by <a href="http://rubyidentity.org">members of the Ruby community</a>. Please contact
+ our <a href="mailto:webmaster@ruby-lang.org">webmaster</a> for questions or comments
+ concerning this website.</p>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
View
BIN  public/images/ruby.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/spotlight-bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
545 public/stylesheets/high.css
@@ -0,0 +1,545 @@
+/*
+ high.css - styles for modern browsers
+*/
+
+body {
+ background-color: #213449;
+ color: white;
+ margin: 0;
+ padding: 0;
+ text-align: center;
+}
+.site-links {
+ background-image: url(http://ruby-lang.org/images/site-links-background.gif);
+ background-position: bottom;
+ background-repeat: repeat-x;
+}
+.site-links a, .site-links a:visited, .site-links strong {
+ color: white;
+ text-decoration: none;
+ display: block;
+ padding: 8px;
+ padding-left: 6px;
+ padding-right: 6px;
+ margin-left: 4px;
+ float: left;
+}
+.site-links a:hover {
+ color: white;
+ text-decoration: underline;
+}
+.site-links strong a, .site-links strong a:visited {
+ padding: 0;
+ margin: 0;
+ display: inline;
+}
+.clear {
+ clear: both;
+}
+#spotlight {
+ background-image: url(/images/spotlight-bg.png);
+ height: 350px;
+ position: relative;
+}
+
+#portrait {
+ margin-top: 24px;
+ margin-left: 24px;
+ float: left;
+ width: 250px;
+ height: 280px;
+ -moz-box-shadow: 2px 2px 8px #000;
+ -webkit-box-shadow: 2px 2px 8px #000;
+ box-shadow: 2px 2px 8px #000;
+ border: 4px solid #fff;
+ overflow: hidden;
+}
+
+#page {
+ background-image: url(http://ruby-lang.org/images/shadow.jpg);
+ background-position: center;
+ background-repeat: repeat-y;
+}
+#logo {
+ background-image: url(http://ruby-lang.org/images/logo-background.jpg);
+ background-position: top left;
+ background-repeat: no-repeat;
+ padding-top: 14px;
+ position: relative;
+}
+#logo img {
+ position: relative;
+ float: left;
+ z-index: 1;
+}
+#logo h1, #logo h2 {
+ margin: 0px;
+ color: #000;
+ position: absolute;
+}
+#logo h1 {
+ top: 35px;
+ left: 115px;
+}
+#logo h2 {
+ font-weight: normal;
+ font-style: italic;
+ color: #525252;
+ left: 115px;
+ top: 75px;
+}
+#header, #main-wrapper {
+ background: white;
+ text-align: left;
+ margin-left: auto;
+ margin-right: auto;
+ width: 766px;
+}
+#header {
+ background-image: url(http://ruby-lang.org/images/header-background.jpg);
+ background-position: right;
+ background-repeat: repeat-y;
+}
+#header .site-links {
+ float: left;
+ width: 100%;
+}
+#main {
+ color: black;
+ background-color: white;
+ /* background-image: url(http://ruby-lang.org/images/columns.jpg); */
+ background-position: right;
+ background-repeat: repeat-y;
+ float: left;
+}
+#main .site-links {
+ width: 766px;
+ float: left;
+ clear: both;
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+}
+#content-wrapper {
+ float: left;
+ width: 766px;
+ margin-right: -400px;
+}
+#head-wrapper-1 {
+ background-color: #346090;
+ background-image: url(http://ruby-lang.org/images/blue-columns.jpg);
+ background-repeat: repeat-y;
+ background-position: center;
+ margin-left: 0px;
+ margin-bottom: 24px;
+ color: white;
+ float: left;
+ width: 100%;
+}
+#head-wrapper-2 {
+ float: left;
+ width: 100%;
+}
+#head {
+ float: left;
+ padding-top: 24px;
+ padding-bottom: 24px;
+ width: 100%;
+}
+#head h1 {
+ font-size: 240%;
+ padding-left: 32px;
+ margin: 0;
+ margin-top: 18px;
+ margin-right: 269px;
+}
+#head a { color: white; }
+#intro, #code {
+ display: inline;
+ float: left;
+}
+#intro {
+ color: #d3dce6;
+ font-size: 95%;
+ padding-left: 32px;
+ padding-right: 23px;
+ padding-bottom: 10px;
+ width: 202px;
+}
+#intro h1 {
+ background-image: url(http://ruby-lang.org/images/dotted-underline.gif);
+ background-position: bottom;
+ background-repeat: repeat-x;
+ color: white;
+ font-size: 240%;
+ margin: 0;
+ margin-bottom: .5em;
+ padding: 0;
+ padding-top: 4px;
+ padding-bottom: 4px;
+}
+#intro p {
+ line-height: 150%;
+ margin-top: 0;
+ margin-bottom: 1em;
+}
+#code {
+ color: white;
+ display: block;
+ font-size: 95%;
+ line-height: 110%;
+ padding-top: 24px;
+ width: 244px;
+}
+#code div {
+ display: block;
+ font-family: "Lucida Console", Monaco, monospace;
+ padding-left: 24px;
+ padding-right: 24px;
+}
+#code .keyword {
+ color: #f9bb00;
+}
+#code .comment {
+ color: #428bdd;
+}
+#code .string {
+ color: #00cc00;
+}
+#code .blank-line {
+ line-height: 70%;
+}
+#head .multi-page {
+ float: right;
+ font-weight: normal;
+ margin-top: 18px;
+ margin-right: 269px;
+ padding-top: 1em;
+}
+#head .multi-page .separator {
+ display: none;
+}
+#head .multi-page a,
+#head .multi-page strong {
+ padding: 3px;
+ padding-left: 6px;
+ padding-right: 6px;
+}
+#head .multi-page strong {
+ border: 2px solid #b0c5dd;
+}
+#content {
+ margin-right: 239px;
+ padding: 32px;
+ padding-top: 1px;
+ line-height: 160%;
+}
+#content h3 {
+ background-image: url(http://ruby-lang.org/images/dotted-underline.gif);
+ background-position: bottom;
+ background-repeat: repeat-x;
+ padding-bottom: 8px;
+}
+#content h3 a {
+ color: #c61a1a;
+ text-decoration: none;
+}
+#content h3 a:hover, #content h3 a:visited:hover {
+ color: #e85353;
+}
+#content #news ul {
+ float: left;
+ list-style: none;
+ margin: 0;
+ margin-right: 10px;
+ line-height: 120%;
+ padding: 0;
+ width: 220px;
+}
+#content #news ul li {
+ background-image: url(http://ruby-lang.org/images/bullet.gif);
+ background-position: left top;
+ background-repeat: no-repeat;
+ display: block;
+ list-style: none;
+ margin: 0;
+ margin-top: .25em;
+ margin-bottom: .75em;
+ padding: 0;
+ padding-left: 12px;
+}
+#content #news ul a {
+ display: block;
+ font-family: Georgia, Palatino, "Times New Roman", Times, serif;
+ font-size: 125%;
+ line-height: 110%;
+ text-decoration: none;
+}
+#content #news ul a:hover,
+#content #news ul a:visited:hover {
+ text-decoration: underline;
+}
+#content #news .more {
+ clear: both;
+ margin-top: 1em;
+}
+#content pre {
+ overflow: auto;
+}
+#content pre.code {
+ background-color: #213449;
+ background-image: url(http://ruby-lang.org/images/code-box-top-left.gif);
+ background-position: top left;
+ background-repeat: no-repeat;
+ color: white;
+ display: block;
+ width: 100%;
+}
+#content pre.code code {
+ background-image: url(http://ruby-lang.org/images/code-box-bottom-right.gif);
+ background-position: bottom right;
+ background-repeat: no-repeat;
+ display: block;
+ overflow: auto;
+ font-family: "Lucida Console", Monaco, monospace;
+ font-size: 115%;
+ line-height: 135%;
+ padding: 15px;
+}
+#content pre.code .comment {
+ color: #428bdd;
+}
+#content pre.code .keyword {
+ color: #f9bb00;
+}
+#content pre.code .method {
+ color: #fff;
+}
+#content pre.code .class {
+ color: #fff;
+}
+#content pre.code .module {
+ color: #050;
+}
+#content pre.code .punct {
+ color: #8aa6c1;
+}
+#content pre.code .symbol {
+ color: #b53b3c;
+}
+#content pre.code .string {
+ color: #00cc00;
+}
+#content pre.code .char {
+ color: #f07;
+}
+#content pre.code .ident {
+ color: #fff;
+}
+#content pre.code .constant {
+ color: #8aa6c1;
+}
+#content pre.code .regex {
+ color: #ca4344;
+}
+#content pre.code .number {
+ color: #eddd3d;
+}
+#content pre.code .global {
+ color: #fff;
+}
+#content pre.code .expr {
+ color: #fff;
+}
+#content pre.code .escape {
+ color: #eddd3d;
+}
+#content pre.code .attribute {
+ color: #8aa6c1;
+}
+#content pre.code.xml-code .string {
+ color: #fff;
+}
+#content dl dt {
+ font-family: Georgia, Palatino, "Times New Roman", Times, serif;
+ font-weight: bold;
+ font-size: 120%;
+ margin-top: 1em;
+}
+#content dl dd {
+ margin-left: 1.5em;
+}
+#content .error {
+ color: red;
+}
+#content .fieldset {
+ border-top: 3px solid #39618b;
+ background: #e2ebf6;
+ background: #e2eff6;
+ width: 100%;
+}
+#subscriptions-form .fieldset td {
+ background-image: url(http://ruby-lang.org/images/dark-dotted-underline.gif);
+ background-position: bottom;
+ background-repeat: repeat-x;
+ padding: 5px;
+ padding-left: 15px;
+}
+#content .fieldset td.label {
+ text-align: right;
+}
+#content .buttons {
+ margin-top: 1.5em;
+}
+#content .buttons input[type=submit] {
+ font-size: 130%;
+}
+#sidebar-wrapper {
+ float: right;
+ width: 237px;
+}
+#sidebar {
+ font-size: 85%;
+ margin-top: 26px;
+ padding-left: 20px;
+ padding-right: 20px;
+ padding-bottom: 20px;
+}
+#sidebar h3 {
+ background-image: url(http://ruby-lang.org/images/dotted-underline.gif);
+ background-position: bottom;
+ background-repeat: repeat-x;
+ color: #333333;
+ font-size: 130%;
+ margin-top: 2.5em;
+ margin-bottom: .5em;
+ padding-bottom: 4px;
+}
+#sidebar ul, #sidebar ul li {
+ margin-left: .75em;
+ margin-top: 0;
+ padding-left: 0;
+}
+#sidebar ul li {
+ margin-bottom: .25em;
+}
+#sidebar .navigation {
+ margin-bottom: 22px;
+}
+#sidebar .navigation h3,
+#sidebar .navigation ul li,
+#sidebar .navigation .more {
+ margin: 0;
+ padding: 4px;
+ padding-left: 8px;
+ padding-right: 8px;
+}
+#sidebar .navigation h3 {
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 100%;
+ font-weight: normal;
+ background: #1a4676;
+ color: white;
+ margin: 0;
+ padding-bottom: 5px;
+}
+#sidebar .navigation h3 strong {
+ font-family: Georgia, Palatino, "Times New Roman", Times, serif;
+ font-size: 130%;
+}
+#sidebar .navigation ul,
+#sidebar .navigation ul li {
+ list-style: none;
+ margin: 0;
+}
+#sidebar .navigation ul li {
+ background-color: #cbdff6;
+ background-image: url(http://ruby-lang.org/images/dark-dotted-underline.gif);
+ background-position: bottom;
+ background-repeat: repeat-x;
+ padding-bottom: 8px;
+}
+#sidebar .navigation .more {
+ padding-bottom: 8px;
+}
+#sidebar .navigation .menu a,
+#sidebar .navigation .more a {
+ text-decoration: none;
+}
+#sidebar .navigation .menu a:hover,
+#sidebar .navigation .menu a:visited:hover,
+#sidebar .navigation .more a:hover,
+#sidebar .navigation .more a:visited:hover {
+ text-decoration: underline;
+}
+#search-box {
+ clear: both;
+ margin-left: auto;
+ margin-right: auto;
+ text-align: left;
+ width: 738px;
+}
+#search-form {
+ position: absolute;
+ top: 57px;
+ width: 738px;
+}
+#search-box .fieldset {
+ float: right;
+}
+#search-form .field {
+ width: 214px;
+ height: 20px;
+}
+#search-form .button {
+ width: 74px;
+ height: 24px;
+}
+#foot { clear: both; }
+#footer p {
+ color: #8D959F;
+ font-size: 85%;
+ margin: auto;
+ margin-top: 0;
+ margin-bottom: .75em;
+ padding: 14px;
+ padding-top: 0;
+ padding-bottom: 0;
+ text-align: left;
+ width: 738px;
+}
+#footer a, #footer a:visited {
+ color: #B6BCC2;
+}
+#footer a:hover, #footer a:visited:hover {
+ color: white;
+}
+#footer .fine-print {
+ background-color: #213449;
+ background-image: url(http://ruby-lang.org/images/footer-background.jpg);
+ background-position: top;
+ background-repeat: no-repeat;
+ clear: both;
+ line-height: 140%;
+ padding-top: 10px;
+}
+
+/* layouts */
+
+#home-page-layout #head-wrapper-1 {
+ background-image: url(http://ruby-lang.org/images/blue-columns-home-page.jpg);
+ margin-bottom: -5px;
+}
+#home-page-layout #head-wrapper-1:first-child {
+ margin-bottom: 24px;
+}
+#home-page-layout #head-wrapper-2 {
+ background-image: url(http://ruby-lang.org/images/blue-columns-top-home-page.jpg);
+ background-repeat: no-repeat;
+ background-position: top;
+}
+#home-page-layout #head {
+ background-image: url(http://ruby-lang.org/images/blue-columns-bottom-home-page.jpg);
+ background-repeat: no-repeat;
+ background-position: bottom;
+}
View
6 public/stylesheets/screen.css
@@ -0,0 +1,6 @@
+/*
+ screen.css - styles for the screen
+*/
+
+@import url(/stylesheets/high.css);
+@import url(/stylesheets/shared.css);
View
74 public/stylesheets/shared.css
@@ -0,0 +1,74 @@
+/*
+ shared.css - styles shared between print and high
+*/
+
+body {
+ font-size: 80%;
+}
+.hidden-modern {
+ position: absolute;
+ left: -20000px;
+ top: -20000px;
+}
+.site-links .separator { display: none; }
+.site-links {
+ background-color: #7d0000;
+}
+#content h2 {
+ font-size: 170%;
+ margin-top: 1.5em;
+}
+#content h3 {
+ color: #c61a1a;
+ font-weight: normal;
+ font-size: 170%;
+ line-height: 110%;
+ /*margin-top: 1.5em;*/
+ margin-bottom: .75em;
+}
+#content .post {
+ margin-bottom: 2em;
+}
+#content h4 {
+ font-weight: normal;
+ font-size: 160%;
+ line-height: 110%;
+ margin-top: 2em;
+ margin-bottom: 1em;
+}
+#content h5 {
+ font-weight: bold;
+ font-size: 110%;
+ line-height: 110%;
+ margin-top: 2em;
+ margin-bottom: 1em;
+}
+#content p {
+ margin-top: 0;
+}
+#content .post-info {
+ color: #b0af99;
+ font-size: 80%;
+}
+#search-form .field {
+ border: 1px solid #d3d3cf;
+}
+#search-form .button {
+ border: 1px solid #d3d3cf;
+ background-color: #e6e6d7;
+ color: #7b7b75;
+ font-family: Georgia, Palatino, "Times New Roman", Times, serif;
+ font-size: 14px;
+ font-weight: bold;
+}
+#footer {
+ clear: both;
+}
+
+
+/* layouts */
+
+#home-page-layout h3 {
+ margin-top: 1.5em;
+ margin-bottom: .5em;
+}

No commit comments for this range

Something went wrong with that request. Please try again.