Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
commit 7ccc949dfaa2306c288122ecff6171baa3528d08 0 parents
@phlipper authored
BIN  images/checker.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
238 index.html
@@ -0,0 +1,238 @@
+<!doctype html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <title>sugar-rails by phlipper</title>
+
+ <link rel="stylesheet" href="stylesheets/styles.css">
+ <link rel="stylesheet" href="stylesheets/pygment_trac.css">
+ <script src="javascripts/scale.fix.js"></script>
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+
+ <!--[if lt IE 9]>
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="wrapper">
+ <header>
+ <h1>sugar-rails</h1>
+ <p>Sugar, tastefully bundled for the Rails 3.0 and up. Sweet!</p>
+ <p class="view"><a href="https://github.com/phlipper/sugar-rails">View the Project on GitHub <small>phlipper/sugar-rails</small></a></p>
+ <ul>
+ <li><a href="https://github.com/phlipper/sugar-rails/zipball/master">Download <strong>ZIP File</strong></a></li>
+ <li><a href="https://github.com/phlipper/sugar-rails/tarball/master">Download <strong>TAR Ball</strong></a></li>
+ <li><a href="https://github.com/phlipper/sugar-rails">View On <strong>GitHub</strong></a></li>
+ </ul>
+ </header>
+ <section>
+ <h1>sugar-rails</h1>
+
+<h2>Description</h2>
+
+<p><a href="http://sugarjs.com/">Sugar</a>, tastefully bundled for the Rails 3.0 and up. Sweet!</p>
+
+<h2>Requirements</h2>
+
+<p>This gem requires Rails 3.0+ and has been tested on the following versions:</p>
+
+<ul>
+<li>3.0</li>
+<li>3.1</li>
+<li>3.2</li>
+</ul><p>This gem has been tested against the following Ruby versions:</p>
+
+<ul>
+<li>MRI 1.8.7</li>
+<li>REE 1.8.7</li>
+<li>1.9.2</li>
+<li>1.9.3</li>
+<li>JRuby</li>
+<li>Rubinius</li>
+</ul><h2>Installation</h2>
+
+<p>Add this line to your application's Gemfile:</p>
+
+<div class="highlight"><pre><span class="n">gem</span> <span class="s2">"sugar-rails"</span>
+</pre></div>
+
+<p>And then execute:</p>
+
+<pre><code>$ bundle
+</code></pre>
+
+<p>Or install it yourself as:</p>
+
+<pre><code>$ gem install sugar-rails
+</code></pre>
+
+<h2>Usage</h2>
+
+<p><code>sugar-rails</code> supports both default and customized builds of Sugar.</p>
+
+<h3>Rails 3.1+</h3>
+
+<p>For Rails 3.1 and greater, the files will be added to the asset pipeline and available for you to use.</p>
+
+<p>To enable:</p>
+
+<ul>
+<li>Add the following line to the file <code>app/assets/javascripts/application.js</code> (or other <a href="https://github.com/sstephenson/sprockets">sprockets</a> manifest):</li>
+</ul><div class="highlight"><pre><span class="c1">//= require sugar</span>
+</pre></div>
+
+<p>The following default builds are available:</p>
+
+<ul>
+<li>
+<code>sugar</code> (default minified package)</li>
+<li>
+<code>sugar-full</code> (full minified package)</li>
+<li>
+<code>sugar-development</code> (full development package)</li>
+</ul><h3>Rails 3.0</h3>
+
+<p>This gem adds an installation generator to Rails 3, <code>sugar:install</code>. Running the generator will install the JavaScript file (default minified package) necessary to use Sugar.</p>
+
+<ul>
+<li>Invoke the generator:</li>
+</ul><pre><code>$ rails generate sugar:install
+</code></pre>
+
+<ul>
+<li>Add the following to your layout or view files:</li>
+</ul><div class="highlight"><pre><span class="cp">&lt;%=</span> <span class="n">javascript_include_tag</span> <span class="s2">"sugar"</span> <span class="cp">%&gt;</span><span class="x"></span>
+</pre></div>
+
+<h2>Customized Builds</h2>
+
+<p>This gem adds a generator to provide customized builds of Sugar, <code>sugar:build</code>.</p>
+
+<p>The <code>sugar:build</code> generator requires Rails 3.1+ and <code>config.assets.enabled = true</code> since custom builds are made available through the Rails Asset Pipeline.</p>
+
+<p>Running the generator will create a customized JavaScript file with the pacakges of your choosing:</p>
+
+<pre><code>$ rails generate sugar:build package1 package2 ...
+</code></pre>
+
+<p>Once the generator has been run, you will be provided with the file <code>vendor/assets/javascripts/sugar-custom.js</code>. Add the following line to your sprockets manifest to enable your custom build:</p>
+
+<div class="highlight"><pre><span class="c1">//= require sugar-custom</span>
+</pre></div>
+
+<p>By default, the <code>sugar:build</code> generator will provide the development (un-minified) sources. If you would like to use the pre-minified sources, add the <code>--minify</code> option to the generator:</p>
+
+<pre><code>$ rails generate sugar:build package1 package2 --minify
+</code></pre>
+
+<p>The following packages are available for custom builds:</p>
+
+<ul>
+<li>
+<code>es5</code> - Shim methods that provide ES5 compatible functionality. This package can be excluded if you do not require legacy browser support (IE8 and below).</li>
+<li>
+<code>object</code> - Object manipulation, type checking (isNumber, isString, ...), extended objects with hash-like methods available as instance methods.</li>
+<li>
+<code>array</code> - Array manipulation and traversal, "fuzzy matching" against elements, alphanumeric sorting and collation, enumerable methods on Object.</li>
+<li>
+<code>number</code> - Number formatting, rounding (with precision), and ranges. Aliases to Math methods.</li>
+<li>
+<code>regexp</code> - Escaping regexes and manipulating their flags.</li>
+<li>
+<code>function</code> - Lazy, throttled, and memoized functions, delayed functions and handling of timers, argument currying.</li>
+<li>
+<code>date</code> - Date parsing and formatting, relative formats like "1 minute ago", Number methods like "daysAgo", localization support with default English locale definition.</li>
+<li>
+<code>date_ranges</code> - Date Ranges define a range of time. They can enumerate over specific points within that range, and be manipulated and compared.</li>
+<li>
+<code>date_locales</code> - Locale definitions: fr, it, es, pt, de, ru, pl, sv, ja, ko, zh-CN, zh-TW</li>
+<li>
+<code>string</code> - String manupulation, escaping, encoding, truncation, and:conversion.</li>
+<li>
+<code>inflections</code> - Pluralization similar to ActiveSupport including uncountable words and acronyms. Humanized and URL-friendly strings.</li>
+<li>
+<code>language</code> - Normalizing accented characters, character width conversion, Hiragana and Katakana conversions.</li>
+</ul><p>Some dependencies must be met for your custom build to work properly:</p>
+
+<ul>
+<li>
+<code>date</code> &lt; <code>date_locales</code>
+</li>
+<li>
+<code>date</code> &lt; <code>date_ranges</code>
+</li>
+<li>
+<code>string</code> &lt; <code>inflections</code>
+</li>
+<li>
+<code>string</code> &lt; <code>language</code>
+</li>
+</ul><p>Run <code>rails generate sugar:build --help</code> for full usage instructions. Please visit <a href="http://sugarjs.com/customize">http://sugarjs.com/customize</a> to learn more about customized builds.</p>
+
+<h2>Contributing</h2>
+
+<ol>
+<li><a href="https://github.com/phlipper/sugar-rails/fork_select">Fork it</a></li>
+<li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
+<li>Commit your changes (<code>git commit -am 'Added some feature'</code>)</li>
+<li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
+<li><a>Create a Pull Request</a></li>
+</ol><h2>Contributors</h2>
+
+<p>Many thanks go to the following who have contributed to making this gem even better:</p>
+
+<ul>
+<li>
+<strong><a href="https://github.com/sandrew">@sandrew</a></strong>
+
+<ul>
+<li>add support for customized builds for 1.2.x</li>
+</ul>
+</li>
+<li>
+<strong><a href="https://github.com/andrewplummer">@andrewplummer</a></strong>
+
+<ul>
+<li>add build generator to support customized builds in 1.3+</li>
+<li>created <a href="https://github.com/andrewplummer/Sugar">Sugar</a> :)</li>
+</ul>
+</li>
+</ul><h2>License</h2>
+
+<p><strong>sugar-rails</strong></p>
+
+<ul>
+<li>Freely distributable and licensed under the <a href="http://phlipper.mit-license.org/2011-2012/license.html">MIT license</a>.</li>
+<li>Copyright (c) 2011-2012 Phil Cohen (<a href="mailto:github@phlippers.net">github@phlippers.net</a>) <a href="http://coderwall.com/phlipper"><img src="http://api.coderwall.com/phlipper/endorsecount.png" alt="endorse"></a>
+</li>
+<li><a href="http://phlippers.net/">http://phlippers.net/</a></li>
+</ul><p><strong>Sugar</strong></p>
+
+<ul>
+<li>Freely distributable and licensed under the MIT-style license.</li>
+<li>Copyright (c) 2012 Andrew Plummer</li>
+<li><a href="http://sugarjs.com/">http://sugarjs.com/</a></li>
+</ul><p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+The above copyright notice, and every other copyright notice found in this software, and all the attributions in every file, and this permission notice shall be included in all copies or substantial portions of the Software.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
+ </section>
+ </div>
+ <footer>
+ <p>Project maintained by <a href="https://github.com/phlipper">phlipper</a></p>
+ <p>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></p>
+ </footer>
+ <!--[if !IE]><script>fixScale(document);</script><!--<![endif]-->
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-10172882-2");
+ pageTracker._trackPageview();
+ } catch(err) {}
+ </script>
+
+ </body>
+</html>
20 javascripts/scale.fix.js
@@ -0,0 +1,20 @@
+fixScale = function(doc) {
+
+ var addEvent = 'addEventListener',
+ type = 'gesturestart',
+ qsa = 'querySelectorAll',
+ scales = [1, 1],
+ meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
+
+ function fix() {
+ meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
+ doc.removeEventListener(type, fix, true);
+ }
+
+ if ((meta = meta[meta.length - 1]) && addEvent in doc) {
+ fix();
+ scales = [.25, 1.6];
+ doc[addEvent](type, fix, true);
+ }
+
+};
1  params.json
@@ -0,0 +1 @@
+{"name":"sugar-rails","tagline":"Sugar, tastefully bundled for the Rails 3.0 and up. Sweet!","body":"# sugar-rails\r\n\r\n## Description\r\n\r\n[Sugar](http://sugarjs.com/), tastefully bundled for the Rails 3.0 and up. Sweet!\r\n\r\n\r\n## Requirements\r\n\r\nThis gem requires Rails 3.0+ and has been tested on the following versions:\r\n\r\n* 3.0\r\n* 3.1\r\n* 3.2\r\n\r\nThis gem has been tested against the following Ruby versions:\r\n\r\n* MRI 1.8.7\r\n* REE 1.8.7\r\n* 1.9.2\r\n* 1.9.3\r\n* JRuby\r\n* Rubinius\r\n\r\n\r\n## Installation\r\n\r\nAdd this line to your application's Gemfile:\r\n\r\n```ruby\r\ngem \"sugar-rails\"\r\n```\r\n\r\nAnd then execute:\r\n\r\n```\r\n$ bundle\r\n```\r\n\r\nOr install it yourself as:\r\n\r\n```\r\n$ gem install sugar-rails\r\n```\r\n\r\n\r\n## Usage\r\n\r\n`sugar-rails` supports both default and customized builds of Sugar.\r\n\r\n\r\n### Rails 3.1+\r\n\r\nFor Rails 3.1 and greater, the files will be added to the asset pipeline and available for you to use.\r\n\r\nTo enable:\r\n\r\n* Add the following line to the file `app/assets/javascripts/application.js` (or other [sprockets](https://github.com/sstephenson/sprockets) manifest):\r\n\r\n``` javascript\r\n//= require sugar\r\n```\r\n\r\nThe following default builds are available:\r\n\r\n* `sugar` (default minified package)\r\n* `sugar-full` (full minified package)\r\n* `sugar-development` (full development package)\r\n\r\n\r\n### Rails 3.0\r\n\r\nThis gem adds an installation generator to Rails 3, `sugar:install`. Running the generator will install the JavaScript file (default minified package) necessary to use Sugar.\r\n\r\n* Invoke the generator:\r\n\r\n```\r\n$ rails generate sugar:install\r\n```\r\n\r\n* Add the following to your layout or view files:\r\n\r\n```erb\r\n<%= javascript_include_tag \"sugar\" %>\r\n```\r\n\r\n\r\n## Customized Builds\r\n\r\nThis gem adds a generator to provide customized builds of Sugar, `sugar:build`.\r\n\r\nThe `sugar:build` generator requires Rails 3.1+ and `config.assets.enabled = true` since custom builds are made available through the Rails Asset Pipeline.\r\n\r\nRunning the generator will create a customized JavaScript file with the pacakges of your choosing:\r\n\r\n```\r\n$ rails generate sugar:build package1 package2 ...\r\n```\r\n\r\nOnce the generator has been run, you will be provided with the file `vendor/assets/javascripts/sugar-custom.js`. Add the following line to your sprockets manifest to enable your custom build:\r\n\r\n``` javascript\r\n//= require sugar-custom\r\n```\r\n\r\nBy default, the `sugar:build` generator will provide the development (un-minified) sources. If you would like to use the pre-minified sources, add the `--minify` option to the generator:\r\n\r\n```\r\n$ rails generate sugar:build package1 package2 --minify\r\n```\r\n\r\nThe following packages are available for custom builds:\r\n\r\n* `es5` - Shim methods that provide ES5 compatible functionality. This package can be excluded if you do not require legacy browser support (IE8 and below).\r\n* `object` - Object manipulation, type checking (isNumber, isString, ...), extended objects with hash-like methods available as instance methods.\r\n* `array` - Array manipulation and traversal, \"fuzzy matching\" against elements, alphanumeric sorting and collation, enumerable methods on Object.\r\n* `number` - Number formatting, rounding (with precision), and ranges. Aliases to Math methods.\r\n* `regexp` - Escaping regexes and manipulating their flags.\r\n* `function` - Lazy, throttled, and memoized functions, delayed functions and handling of timers, argument currying.\r\n* `date` - Date parsing and formatting, relative formats like \"1 minute ago\", Number methods like \"daysAgo\", localization support with default English locale definition.\r\n* `date_ranges` - Date Ranges define a range of time. They can enumerate over specific points within that range, and be manipulated and compared.\r\n* `date_locales` - Locale definitions: fr, it, es, pt, de, ru, pl, sv, ja, ko, zh-CN, zh-TW\r\n* `string` - String manupulation, escaping, encoding, truncation, and:conversion.\r\n* `inflections` - Pluralization similar to ActiveSupport including uncountable words and acronyms. Humanized and URL-friendly strings.\r\n* `language` - Normalizing accented characters, character width conversion, Hiragana and Katakana conversions.\r\n\r\nSome dependencies must be met for your custom build to work properly:\r\n\r\n* `date` < `date_locales`\r\n* `date` < `date_ranges`\r\n* `string` < `inflections`\r\n* `string` < `language`\r\n\r\nRun `rails generate sugar:build --help` for full usage instructions. Please visit [http://sugarjs.com/customize](http://sugarjs.com/customize) to learn more about customized builds.\r\n\r\n\r\n\r\n## Contributing\r\n\r\n1. [Fork it](https://github.com/phlipper/sugar-rails/fork_select)\r\n2. Create your feature branch (`git checkout -b my-new-feature`)\r\n3. Commit your changes (`git commit -am 'Added some feature'`)\r\n4. Push to the branch (`git push origin my-new-feature`)\r\n5. [Create a Pull Request](hhttps://github.com/phlipper/sugar-rails/pull/new)\r\n\r\n\r\n## Contributors\r\n\r\nMany thanks go to the following who have contributed to making this gem even better:\r\n\r\n* **[@sandrew](https://github.com/sandrew)**\r\n * add support for customized builds for 1.2.x\r\n* **[@andrewplummer](https://github.com/andrewplummer)**\r\n * add build generator to support customized builds in 1.3+\r\n * created [Sugar](https://github.com/andrewplummer/Sugar) :)\r\n\r\n\r\n## License\r\n\r\n**sugar-rails**\r\n\r\n* Freely distributable and licensed under the [MIT license](http://phlipper.mit-license.org/2011-2012/license.html).\r\n* Copyright (c) 2011-2012 Phil Cohen (github@phlippers.net) [![endorse](http://api.coderwall.com/phlipper/endorsecount.png)](http://coderwall.com/phlipper)\r\n* http://phlippers.net/\r\n\r\n**Sugar**\r\n\r\n* Freely distributable and licensed under the MIT-style license.\r\n* Copyright (c) 2012 Andrew Plummer\r\n* http://sugarjs.com/\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\nThe above copyright notice, and every other copyright notice found in this software, and all the attributions in every file, and this permission notice shall be included in all copies or substantial portions of the Software.\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n","note":"Don't delete this file! It's used internally to help with page regeneration.","google":"UA-10172882-2"}
60 stylesheets/pygment_trac.css
@@ -0,0 +1,60 @@
+.highlight .hll { background-color: #49483e }
+.highlight { background: #3A3C42; color: #f8f8f2 }
+.highlight .c { color: #75715e } /* Comment */
+.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
+.highlight .k { color: #66d9ef } /* Keyword */
+.highlight .l { color: #ae81ff } /* Literal */
+.highlight .n { color: #f8f8f2 } /* Name */
+.highlight .o { color: #f92672 } /* Operator */
+.highlight .p { color: #f8f8f2 } /* Punctuation */
+.highlight .cm { color: #75715e } /* Comment.Multiline */
+.highlight .cp { color: #75715e } /* Comment.Preproc */
+.highlight .c1 { color: #75715e } /* Comment.Single */
+.highlight .cs { color: #75715e } /* Comment.Special */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .kc { color: #66d9ef } /* Keyword.Constant */
+.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
+.highlight .kn { color: #f92672 } /* Keyword.Namespace */
+.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
+.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
+.highlight .kt { color: #66d9ef } /* Keyword.Type */
+.highlight .ld { color: #e6db74 } /* Literal.Date */
+.highlight .m { color: #ae81ff } /* Literal.Number */
+.highlight .s { color: #e6db74 } /* Literal.String */
+.highlight .na { color: #a6e22e } /* Name.Attribute */
+.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
+.highlight .nc { color: #a6e22e } /* Name.Class */
+.highlight .no { color: #66d9ef } /* Name.Constant */
+.highlight .nd { color: #a6e22e } /* Name.Decorator */
+.highlight .ni { color: #f8f8f2 } /* Name.Entity */
+.highlight .ne { color: #a6e22e } /* Name.Exception */
+.highlight .nf { color: #a6e22e } /* Name.Function */
+.highlight .nl { color: #f8f8f2 } /* Name.Label */
+.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
+.highlight .nx { color: #a6e22e } /* Name.Other */
+.highlight .py { color: #f8f8f2 } /* Name.Property */
+.highlight .nt { color: #f92672 } /* Name.Tag */
+.highlight .nv { color: #f8f8f2 } /* Name.Variable */
+.highlight .ow { color: #f92672 } /* Operator.Word */
+.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
+.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
+.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
+.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
+.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
+.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
+.highlight .sc { color: #e6db74 } /* Literal.String.Char */
+.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
+.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
+.highlight .se { color: #ae81ff } /* Literal.String.Escape */
+.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
+.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
+.highlight .sx { color: #e6db74 } /* Literal.String.Other */
+.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
+.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
+.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
+.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
+.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
+.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
+.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
356 stylesheets/styles.css
@@ -0,0 +1,356 @@
+@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
+html {
+ background: #6C7989;
+ background: #6c7989 -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #6c7989), color-stop(100%, #434b55)) fixed;
+ background: #6c7989 -webkit-linear-gradient(#6c7989, #434b55) fixed;
+ background: #6c7989 -moz-linear-gradient(#6c7989, #434b55) fixed;
+ background: #6c7989 -o-linear-gradient(#6c7989, #434b55) fixed;
+ background: #6c7989 -ms-linear-gradient(#6c7989, #434b55) fixed;
+ background: #6c7989 linear-gradient(#6c7989, #434b55) fixed;
+}
+
+body {
+ padding: 50px 0;
+ margin: 0;
+ font: 14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
+ color: #555;
+ font-weight: 300;
+ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAeCAYAAABNChwpAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy82LzEygrTcTAAAAFRJREFUSIljfPDggZRf5RIGGNjUHsNATz6jXmSL1Kb2GLiAX+USBnrymRgGGDCORgFmoNAXjEbBaBSMRsFoFIxGwWgUjEbBaBSMRsFoFIxGwWgUAABYNujumib3wAAAAABJRU5ErkJggg==') fixed;
+}
+
+.wrapper {
+ width: 640px;
+ margin: 0 auto;
+ background: #DEDEDE;
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ -ms-border-radius: 8px;
+ -o-border-radius: 8px;
+ border-radius: 8px;
+ -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
+ -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
+ box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
+}
+
+header, section, footer {
+ display: block;
+}
+
+a {
+ color: #069;
+ text-decoration: none;
+}
+
+p {
+ margin: 0 0 20px;
+ padding: 0;
+}
+
+strong {
+ color: #222;
+ font-weight: 700;
+}
+
+header {
+ -webkit-border-radius: 8px 8px 0 0;
+ -moz-border-radius: 8px 8px 0 0;
+ -ms-border-radius: 8px 8px 0 0;
+ -o-border-radius: 8px 8px 0 0;
+ border-radius: 8px 8px 0 0;
+ background: #C6EAFA;
+ background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ddfbfc), color-stop(100%, #c6eafa));
+ background: -webkit-linear-gradient(#ddfbfc, #c6eafa);
+ background: -moz-linear-gradient(#ddfbfc, #c6eafa);
+ background: -o-linear-gradient(#ddfbfc, #c6eafa);
+ background: -ms-linear-gradient(#ddfbfc, #c6eafa);
+ background: linear-gradient(#ddfbfc, #c6eafa);
+ position: relative;
+ padding: 15px 20px;
+ border-bottom: 1px solid #B2D2E1;
+}
+header h1 {
+ margin: 0;
+ padding: 0;
+ font-size: 24px;
+ line-height: 1.2;
+ color: #069;
+ text-shadow: rgba(255, 255, 255, 0.9) 0 1px 0;
+}
+header.without-description h1 {
+ margin: 10px 0;
+}
+header p {
+ margin: 0;
+ color: #61778B;
+ width: 300px;
+ font-size: 13px;
+}
+header p.view {
+ display: none;
+ font-weight: 700;
+ text-shadow: rgba(255, 255, 255, 0.9) 0 1px 0;
+ -webkit-font-smoothing: antialiased;
+}
+header p.view a {
+ color: #06c;
+}
+header p.view small {
+ font-weight: 400;
+}
+header ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ position: absolute;
+ z-index: 1;
+ right: 20px;
+ top: 20px;
+ height: 38px;
+ padding: 1px 0;
+ background: #5198DF;
+ background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #77b9fb), color-stop(100%, #3782cd));
+ background: -webkit-linear-gradient(#77b9fb, #3782cd);
+ background: -moz-linear-gradient(#77b9fb, #3782cd);
+ background: -o-linear-gradient(#77b9fb, #3782cd);
+ background: -ms-linear-gradient(#77b9fb, #3782cd);
+ background: linear-gradient(#77b9fb, #3782cd);
+ border-radius: 5px;
+ -webkit-box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
+ -moz-box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
+ box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
+ width: auto;
+}
+header ul:before {
+ content: '';
+ position: absolute;
+ z-index: -1;
+ left: -5px;
+ top: -4px;
+ right: -5px;
+ bottom: -6px;
+ background: rgba(0, 0, 0, 0.1);
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ -ms-border-radius: 8px;
+ -o-border-radius: 8px;
+ border-radius: 8px;
+ -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
+ -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
+ box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
+}
+header ul li {
+ width: 79px;
+ float: left;
+ border-right: 1px solid #3A7CBE;
+ height: 38px;
+}
+header ul li.single {
+ border: none;
+}
+header ul li + li {
+ width: 78px;
+ border-left: 1px solid #8BBEF3;
+}
+header ul li + li + li {
+ border-right: none;
+ width: 79px;
+}
+header ul a {
+ line-height: 1;
+ font-size: 11px;
+ color: #fff;
+ color: rgba(255, 255, 255, 0.8);
+ display: block;
+ text-align: center;
+ font-weight: 400;
+ padding-top: 6px;
+ height: 40px;
+ text-shadow: rgba(0, 0, 0, 0.4) 0 -1px 0;
+}
+header ul a strong {
+ font-size: 14px;
+ display: block;
+ color: #fff;
+ -webkit-font-smoothing: antialiased;
+}
+
+section {
+ padding: 15px 20px;
+ font-size: 15px;
+ border-top: 1px solid #fff;
+ background: -webkit-gradient(linear, 50% 0%, 50% 700, color-stop(0%, #fafafa), color-stop(100%, #dedede));
+ background: -webkit-linear-gradient(#fafafa, #dedede 700px);
+ background: -moz-linear-gradient(#fafafa, #dedede 700px);
+ background: -o-linear-gradient(#fafafa, #dedede 700px);
+ background: -ms-linear-gradient(#fafafa, #dedede 700px);
+ background: linear-gradient(#fafafa, #dedede 700px);
+ -webkit-border-radius: 0 0 8px 8px;
+ -moz-border-radius: 0 0 8px 8px;
+ -ms-border-radius: 0 0 8px 8px;
+ -o-border-radius: 0 0 8px 8px;
+ border-radius: 0 0 8px 8px;
+ position: relative;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color: #222;
+ padding: 0;
+ margin: 0 0 20px;
+ line-height: 1.2;
+}
+
+p, ul, ol, table, pre, dl {
+ margin: 0 0 20px;
+}
+
+h1, h2, h3 {
+ line-height: 1.1;
+}
+
+h1 {
+ font-size: 28px;
+}
+
+h2 {
+ color: #393939;
+}
+
+h3, h4, h5, h6 {
+ color: #494949;
+}
+
+blockquote {
+ margin: 0 -20px 20px;
+ padding: 15px 20px 1px 40px;
+ font-style: italic;
+ background: #ccc;
+ background: rgba(0, 0, 0, 0.06);
+ color: #222;
+}
+
+img {
+ max-width: 100%;
+}
+
+code, pre {
+ font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+ color: #333;
+ font-size: 12px;
+ overflow-x: auto;
+}
+
+pre {
+ padding: 20px;
+ background: #3A3C42;
+ color: #f8f8f2;
+ margin: 0 -20px 20px;
+}
+pre code {
+ color: #f8f8f2;
+}
+li pre {
+ margin-left: -60px;
+ padding-left: 60px;
+}
+
+table {
+ width: 100%;
+ border-collapse: collapse;
+}
+
+th, td {
+ text-align: left;
+ padding: 5px 10px;
+ border-bottom: 1px solid #aaa;
+}
+
+dt {
+ color: #222;
+ font-weight: 700;
+}
+
+th {
+ color: #222;
+}
+
+small {
+ font-size: 11px;
+}
+
+hr {
+ border: 0;
+ background: #aaa;
+ height: 1px;
+ margin: 0 0 20px;
+}
+
+footer {
+ width: 640px;
+ margin: 0 auto;
+ padding: 20px 0 0;
+ color: #ccc;
+ overflow: hidden;
+}
+footer a {
+ color: #fff;
+ font-weight: bold;
+}
+footer p {
+ float: left;
+}
+footer p + p {
+ float: right;
+}
+
+@media print, screen and (max-width: 740px) {
+ body {
+ padding: 0;
+ }
+
+ .wrapper {
+ -webkit-border-radius: 0;
+ -moz-border-radius: 0;
+ -ms-border-radius: 0;
+ -o-border-radius: 0;
+ border-radius: 0;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ width: 100%;
+ }
+
+ footer {
+ -webkit-border-radius: 0;
+ -moz-border-radius: 0;
+ -ms-border-radius: 0;
+ -o-border-radius: 0;
+ border-radius: 0;
+ padding: 20px;
+ width: auto;
+ }
+ footer p {
+ float: none;
+ margin: 0;
+ }
+ footer p + p {
+ float: none;
+ }
+}
+@media print, screen and (max-width:580px) {
+ header ul {
+ display: none;
+ }
+
+ header p.view {
+ display: block;
+ }
+
+ header p {
+ width: 100%;
+ }
+}
+@media print {
+ header p.view a small:before {
+ content: 'at http://github.com/';
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.