Create gh-pages branch via GitHub

This commit is contained in:
DariusIII
2015-11-02 10:42:19 +01:00
parent 0fde25b104
commit 1c8b1395dc
6 changed files with 554 additions and 46 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

+60 -44
View File
@@ -1,45 +1,64 @@
<!DOCTYPE html>
<html lang="en-us">
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Newznab-tmux by DariusIII</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/github-dark.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>
<section class="page-header">
<h1 class="project-name">Newznab-tmux</h1>
<h2 class="project-tagline">Greatly improved jonnyboys newznab-tmux with additions from nZEDb (https://github.com/nZEDb/nZEDb)</h2>
<a href="https://github.com/DariusIII/newznab-tmux" class="btn">View on GitHub</a>
<a href="https://github.com/DariusIII/newznab-tmux/zipball/master" class="btn">Download .zip</a>
<a href="https://github.com/DariusIII/newznab-tmux/tarball/master" class="btn">Download .tar.gz</a>
</section>
<section class="main-content">
<p>I have forked jonnyboys newznab-tmux as he and the dev team have moved to another project (<a href="https://github.com/nZEDb/nZEDb">https://github.com/nZEDb/nZEDb</a>). I will try as much as i can to maintain and improve these tmux scripts, where possible and needed, as they are a valuable addendum to newznab+.
<div class="wrapper">
<header>
<h1>Newznab-tmux</h1>
<p>Greatly improved jonnyboys newznab-tmux with additions from nZEDb (https://github.com/nZEDb/nZEDb)</p>
<p class="view"><a href="https://github.com/DariusIII/newznab-tmux">View the Project on GitHub <small>DariusIII/newznab-tmux</small></a></p>
<ul>
<li><a href="https://github.com/DariusIII/newznab-tmux/zipball/master">Download <strong>ZIP File</strong></a></li>
<li><a href="https://github.com/DariusIII/newznab-tmux/tarball/master">Download <strong>TAR Ball</strong></a></li>
<li><a href="https://github.com/DariusIII/newznab-tmux">View On <strong>GitHub</strong></a></li>
</ul>
</header>
<section>
<p>I have forked jonnyboys newznab-tmux as he and the dev team have moved to another project (<a href="https://github.com/nZEDb/nZEDb">https://github.com/nZEDb/nZEDb</a>). I will try as much as i can to maintain and improve these tmux scripts, where possible and needed, as they are a valuable addendum to newznab+.
Support is given on irc.synirc.net #tmux channel.</p>
<p>I started adapting some of more interesting scripts from nZEDb, but they require tempering with newznab database, so use them at your own risk. Any update to nn+ db could render them useless. Scripts require PHP version &gt; 5.3.10 and Python 2.7x or newer.</p>
<p>I started adapting some of more interesting scripts from nZEDb, but they require tempering with newznab database, so use them at your own risk. By using newznab-tmux you will render your indexer incompatible with newznab (you can revert changes by forcing the svn checkout, it will replace the changed files. Newznab is not aware of the changes in database, so you are safe to leave them as they are). Scripts require PHP version &gt;= 5.5.x and Python 2.7x or newer.</p>
<p>Now, clone my github. These scripts need to run from this location and this is where I was asked to put them. If you have decided to use an alternate location, you will need to edit the file bin/config.php to point to the file newznab/www/config.php. If you do not, these scripts will not run.</p>
<h1>
<a id="steps-to-have-a-working-tmux-install" class="anchor" href="#steps-to-have-a-working-tmux-install" aria-hidden="true"><span class="octicon octicon-link"></span></a>Steps to have a working tmux install:</h1>
<p>cd /var/www/newznab/misc/update_scripts/nix_scripts/</p>
<p>CD to the root of your newznab install, ie. cd /var/www/newznab
Next steps are very important:</p>
<p>git clone <a href="https://github.com/DariusIII/newznab-tmux.git">https://github.com/DariusIII/newznab-tmux.git</a> tmux</p>
<pre><code> If you are already a tmux user, you need to remove the .git folder from tmux folder.
<p>cd tmux</p>
git init
git remote add origin https://github.com/DariusIII/newznab-tmux.git
git fetch
git reset --hard origin/your_wanted_branch, ie. git reset --hard origin/master
git checkout -t origin/your_wanted_branch, ie. git checkout -t origin/master
<p>There is a lib folder in main tmux folder. In that folder you will find two folders, /DB/ and /copy_this/. if you are setting up tmux for the first time, import db.sql using cli (mysql -u {┤your username} -p newznab &lt; db.sql).</p>
There is a lib folder in main tmux folder. In that folder you will find DB folder. If you are setting up tmux for the first time, import db.sql using cli (mysql -u {┤your username} -p newznab &lt; db.sql).
After importing db.sql you need to run the patchDB.php from same folder. After the last patch is applied, you need to manualy apply the next patch labeled XXXX~settings.sql (XXXX is a patch number that is different on dev/master(0122) and regexless branch(0149)).
When you have manualy applied that patch, you can use the new database updater located in /path/to/newznab/cli/ and run update_db.php true and it will apply the rest of the patches (if they exist).
After these steps, patchDB is unusable anymore and you need to use the new update_db.php script in cli folder.
<ol>
<li><p>Copy files from /lib/copy_this/www folder into your newznab installation folder. I have created the nntmux theme where all the settings are available.</p></li>
<li><p>Copy files from /lib/copy_this/misc folder into your newznab installation folder.</p></li>
<li><p>Most of the scripts are now threaded.</p></li>
<li><p>All the required folders are created when you copy files from copy_this folder.</p></li>
</ol>
You need to chmod to 777 following folders now:
resources/*
libs/smarty/templates_c
nzbfiles/
You need to add an alias to your apache/nginx conf of your indexer:
Alias /covers /path/to/newznab/resources/covers
</code></pre>
<h1>
<a id="yenc" class="anchor" href="#yenc" aria-hidden="true"><span class="octicon octicon-link"></span></a>yEnc:</h1>
@@ -61,7 +80,7 @@ Support is given on irc.synirc.net #tmux channel.</p>
rm -rf simple_php_yenc_decode/
</code></pre>
<p>yydecode</p>
<p>yydecode:</p>
<pre><code> cd ~/
mkdir -p yydecode
@@ -93,26 +112,23 @@ Support is given on irc.synirc.net #tmux channel.</p>
<h1>
<a id="alternate-nntp-provider" class="anchor" href="#alternate-nntp-provider" aria-hidden="true"><span class="octicon octicon-link"></span></a>Alternate NNTP provider:</h1>
<p>Newznab-tmux has added support for dual NNTP providers, you need to edit the provided config.php in lib/copy_this/config_edit_before_copy folder</p>
<p>Newznab-tmux has added support for dual NNTP providers, you need to edit the provided config.php.example in www folder.</p>
<h1>
<a id="sphinx-support" class="anchor" href="#sphinx-support" aria-hidden="true"><span class="octicon octicon-link"></span></a>Sphinx support:</h1>
<p>Newznab-tmux now comes with its own Sphinx support, ported from nZEDb. Installation readme is in misc/sphinxsearch folder, and in copy_this/misc/sphinxsearch folder</p>
<p>Newznab-tmux now comes with its own Sphinx support, ported from nZEDb. Installation readme is in misc/sphinxsearch folder.</p>
<p>This version of tmux has many core newznab files modified, use at your own risk.</p>
<p>Tmux is started with start.php (php start.php command). Scripts not used anymore are still available for your use, but you need to run them manualy.</p>
<footer class="site-footer">
<span class="site-footer-owner"><a href="https://github.com/DariusIII/newznab-tmux">Newznab-tmux</a> is maintained by <a href="https://github.com/DariusIII">DariusIII</a>.</span>
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
</footer>
</section>
<p>Tmux is started by following command in cli, from tmux folder: php tmux-ui.php start. Tmux can be gracefuly stopped in similar manner php tmux-ui.php stop.</p>
</section>
</div>
<footer>
<p>Project maintained by <a href="https://github.com/DariusIII">DariusIII</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]-->
</body>
</html>
+20
View File
@@ -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 -1
View File
@@ -1 +1 @@
{"name":"Newznab-tmux","tagline":"Greatly improved jonnyboys newznab-tmux with additions from nZEDb (https://github.com/nZEDb/nZEDb)","body":"I have forked jonnyboys newznab-tmux as he and the dev team have moved to another project (https://github.com/nZEDb/nZEDb). I will try as much as i can to maintain and improve these tmux scripts, where possible and needed, as they are a valuable addendum to newznab+.\r\nSupport is given on irc.synirc.net #tmux channel.\r\n\r\nI started adapting some of more interesting scripts from nZEDb, but they require tempering with newznab database, so use them at your own risk. Any update to nn+ db could render them useless. Scripts require PHP version > 5.3.10 and Python 2.7x or newer.\r\n\r\nNow, clone my github. These scripts need to run from this location and this is where I was asked to put them. If you have decided to use an alternate location, you will need to edit the file bin/config.php to point to the file newznab/www/config.php. If you do not, these scripts will not run.\r\n\r\n cd /var/www/newznab/misc/update_scripts/nix_scripts/\r\n\r\n git clone https://github.com/DariusIII/newznab-tmux.git tmux\r\n\r\n cd tmux\r\n\r\nThere is a lib folder in main tmux folder. In that folder you will find two folders, /DB/ and /copy_this/. if you are setting up tmux for the first time, import db.sql using cli (mysql -u {┤your username} -p newznab < db.sql).\r\n\r\n1. Copy files from /lib/copy_this/www folder into your newznab installation folder. I have created the nntmux theme where all the settings are available.\r\n\r\n2. Copy files from /lib/copy_this/misc folder into your newznab installation folder.\r\n\r\n3. Most of the scripts are now threaded.\r\n\r\n4. All the required folders are created when you copy files from copy_this folder.\r\n\r\n# yEnc:\r\n\r\n Note: You have 3 choices,\r\n you can install simple_php_yenc_decode which offers the best performance,\r\n installing yydecode, which offers good performance,\r\n or using PHP (no install required) which is very slow.\r\n You can change these at any time if you have issues with any of the 3.\r\n\r\n simple_php_yenc_decode:\r\n\r\n sudo apt-get install git\r\n cd ~/\r\n git clone https://github.com/kevinlekiller/simple_php_yenc_decode\r\n cd simple_php_yenc_decode/\r\n sh ubuntu.sh\r\n cd ~/\r\n rm -rf simple_php_yenc_decode/\r\n\r\n yydecode\r\n\r\n cd ~/\r\n mkdir -p yydecode\r\n cd yydecode/\r\n wget http://colocrossing.dl.sourceforge.net/project/yydecode/yydecode/0.2.10/yydecode-0.2.10.tar.gz\r\n tar -xzf yydecode-0.2.10.tar.gz\r\n cd yydecode-0.2.10/\r\n ./configure\r\n make\r\n sudo make install\r\n make clean\r\n cd ~/\r\n rm -rf yydecode/\r\n\r\n Note: After installing you can change the yEnc setting in tmux edit accordingly.\r\n\r\n# Threaded Scripts:\r\n\r\n Tmux comes with php threaded scripts, python scripts are still there, but are not used, and will be removed in future\r\n\r\n# Table per group:\r\n\r\n Tmux can now be used with TPG ported from nZEDb, you need to run lib/testing/DB/convert_to_tpg.php to convert binaries, parts and partrepair tables, after this you will be able to use\r\n threaded releases.php\r\n\r\n# Alternate NNTP provider:\r\n\r\n Newznab-tmux has added support for dual NNTP providers, you need to edit the provided config.php in lib/copy_this/config_edit_before_copy folder\r\n\r\n# Sphinx support:\r\n\r\n Newznab-tmux now comes with its own Sphinx support, ported from nZEDb. Installation readme is in misc/sphinxsearch folder, and in copy_this/misc/sphinxsearch folder\r\n\r\n This version of tmux has many core newznab files modified, use at your own risk.\r\n\r\nTmux is started with start.php (php start.php command). Scripts not used anymore are still available for your use, but you need to run them manualy.\r\n\r\n\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
{"name":"Newznab-tmux","tagline":"Greatly improved jonnyboys newznab-tmux with additions from nZEDb (https://github.com/nZEDb/nZEDb)","body":"I have forked jonnyboys newznab-tmux as he and the dev team have moved to another project (https://github.com/nZEDb/nZEDb). I will try as much as i can to maintain and improve these tmux scripts, where possible and needed, as they are a valuable addendum to newznab+.\r\nSupport is given on irc.synirc.net #tmux channel.\r\n\r\nI started adapting some of more interesting scripts from nZEDb, but they require tempering with newznab database, so use them at your own risk. By using newznab-tmux you will render your indexer incompatible with newznab (you can revert changes by forcing the svn checkout, it will replace the changed files. Newznab is not aware of the changes in database, so you are safe to leave them as they are). Scripts require PHP version >= 5.5.x and Python 2.7x or newer.\r\n\r\n# Steps to have a working tmux install:\r\n\r\n CD to the root of your newznab install, ie. cd /var/www/newznab\r\n Next steps are very important:\r\n \r\n \t\tIf you are already a tmux user, you need to remove the .git folder from tmux folder. \r\n \r\n \t\tgit init \r\n \t\tgit remote add origin https://github.com/DariusIII/newznab-tmux.git\r\n \t\tgit fetch\r\n \t\tgit reset --hard origin/your_wanted_branch, ie. git reset --hard origin/master\r\n \t\tgit checkout -t origin/your_wanted_branch, ie. git checkout -t origin/master\r\n\r\n\tThere is a lib folder in main tmux folder. In that folder you will find DB folder. If you are setting up tmux for the first time, import db.sql using cli (mysql -u {┤your username} -p newznab < db.sql).\r\n\tAfter importing db.sql you need to run the patchDB.php from same folder. After the last patch is applied, you need to manualy apply the next patch labeled XXXX~settings.sql (XXXX is a patch number that is different on dev/master(0122) and regexless branch(0149)).\t\r\n\tWhen you have manualy applied that patch, you can use the new database updater located in /path/to/newznab/cli/ and run update_db.php true and it will apply the rest of the patches (if they exist).\r\n\tAfter these steps, patchDB is unusable anymore and you need to use the new update_db.php script in cli folder.\r\n\r\n\tYou need to chmod to 777 following folders now:\r\n\tresources/*\r\n\tlibs/smarty/templates_c\r\n\tnzbfiles/ \r\n\r\n\tYou need to add an alias to your apache/nginx conf of your indexer:\r\n\tAlias /covers /path/to/newznab/resources/covers\r\n\r\n# yEnc:\r\n\r\n Note: You have 3 choices,\r\n you can install simple_php_yenc_decode which offers the best performance,\r\n installing yydecode, which offers good performance,\r\n or using PHP (no install required) which is very slow.\r\n You can change these at any time if you have issues with any of the 3.\r\n\r\n simple_php_yenc_decode:\r\n\r\n sudo apt-get install git\r\n cd ~/\r\n git clone https://github.com/kevinlekiller/simple_php_yenc_decode\r\n cd simple_php_yenc_decode/\r\n sh ubuntu.sh\r\n cd ~/\r\n rm -rf simple_php_yenc_decode/\r\n\r\n yydecode:\r\n\r\n cd ~/\r\n mkdir -p yydecode\r\n cd yydecode/\r\n wget http://colocrossing.dl.sourceforge.net/project/yydecode/yydecode/0.2.10/yydecode-0.2.10.tar.gz\r\n tar -xzf yydecode-0.2.10.tar.gz\r\n cd yydecode-0.2.10/\r\n ./configure\r\n make\r\n sudo make install\r\n make clean\r\n cd ~/\r\n rm -rf yydecode/\r\n\r\n Note: After installing you can change the yEnc setting in tmux edit accordingly.\r\n\r\n# Threaded Scripts:\r\n\r\n Tmux comes with php threaded scripts, python scripts are still there, but are not used, and will be removed in future\r\n\r\n# Table per group:\r\n\r\n Tmux can now be used with TPG ported from nZEDb, you need to run lib/testing/DB/convert_to_tpg.php to convert binaries, parts and partrepair tables, after this you will be able to use\r\n threaded releases.php\r\n\r\n# Alternate NNTP provider:\r\n\r\n Newznab-tmux has added support for dual NNTP providers, you need to edit the provided config.php.example in www folder.\r\n\r\n# Sphinx support:\r\n\r\n Newznab-tmux now comes with its own Sphinx support, ported from nZEDb. Installation readme is in misc/sphinxsearch folder.\r\n\r\n This version of tmux has many core newznab files modified, use at your own risk.\r\n\r\nTmux is started by following command in cli, from tmux folder: php tmux-ui.php start. Tmux can be gracefuly stopped in similar manner php tmux-ui.php stop.\r\n\r\n\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
+116
View File
@@ -0,0 +1,116 @@
/*
Copyright 2014 GitHub Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.pl-c /* comment */ {
color: #969896;
}
.pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */,
.pl-s .pl-v /* string variable */ {
color: #0099cd;
}
.pl-e /* entity */,
.pl-en /* entity.name */ {
color: #9774cb;
}
.pl-s .pl-s1 /* string source */,
.pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ {
color: #ddd;
}
.pl-ent /* entity.name.tag */ {
color: #7bcc72;
}
.pl-k /* keyword, storage, storage.type */ {
color: #cc2372;
}
.pl-pds /* punctuation.definition.string, string.regexp.character-class */,
.pl-s /* string */,
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */,
.pl-sr /* string.regexp */,
.pl-sr .pl-cce /* string.regexp constant.character.escape */,
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */,
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */ {
color: #3c66e2;
}
.pl-v /* variable */ {
color: #fb8764;
}
.pl-id /* invalid.deprecated */ {
color: #e63525;
}
.pl-ii /* invalid.illegal */ {
background-color: #e63525;
color: #f8f8f8;
}
.pl-sr .pl-cce /* string.regexp constant.character.escape */ {
color: #7bcc72;
font-weight: bold;
}
.pl-ml /* markup.list */ {
color: #c26b2b;
}
.pl-mh /* markup.heading */,
.pl-mh .pl-en /* markup.heading entity.name */,
.pl-ms /* meta.separator */ {
color: #264ec5;
font-weight: bold;
}
.pl-mq /* markup.quote */ {
color: #00acac;
}
.pl-mi /* markup.italic */ {
color: #ddd;
font-style: italic;
}
.pl-mb /* markup.bold */ {
color: #ddd;
font-weight: bold;
}
.pl-md /* markup.deleted, meta.diff.header.from-file */ {
background-color: #ffecec;
color: #bd2c00;
}
.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ {
background-color: #eaffea;
color: #55a532;
}
.pl-mdr /* meta.diff.range */ {
color: #9774cb;
font-weight: bold;
}
.pl-mo /* meta.output */ {
color: #264ec5;
}
+356
View File
@@ -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 https://github.com/';
}
}