diff --git a/.gitignore b/.gitignore index deb6c96d..e24938c0 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,7 @@ lib64 pip-log.txt .DS_Store .travis-solo +Icon +# Documentation +_build diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle deleted file mode 100644 index ab58b511..00000000 Binary files a/docs/_build/doctrees/environment.pickle and /dev/null differ diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree deleted file mode 100644 index afc06d44..00000000 Binary files a/docs/_build/doctrees/index.doctree and /dev/null differ diff --git a/docs/_build/html/.buildinfo b/docs/_build/html/.buildinfo deleted file mode 100644 index 82779c31..00000000 --- a/docs/_build/html/.buildinfo +++ /dev/null @@ -1,4 +0,0 @@ -# Sphinx build info version 1 -# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 5e8db80baf8a4d9eb9443c5cb06f8564 -tags: a205e9ed8462ae86fdd2f73488852ba9 diff --git a/docs/_build/html/_sources/index.txt b/docs/_build/html/_sources/index.txt deleted file mode 100644 index 0ef8ea67..00000000 --- a/docs/_build/html/_sources/index.txt +++ /dev/null @@ -1,47 +0,0 @@ -.. jrnl documentation master file, created by - sphinx-quickstart on Wed Aug 7 13:22:51 2013. - You can adapt this file completely to your liking, but it should at least - contain the root `toctree` directive. - -jrnl: The command-line journal -============================== - -Release v\ |version|. (:ref:`Installation `) - - - >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass')) - >>> r.status_code - 200 - >>> r.headers['content-type'] - 'application/json; charset=utf8' - >>> r.encoding - 'utf-8' - >>> r.text - u'{"type":"User"...' - >>> r.json() - {u'private_gists': 419, u'total_private_repos': 77, ...} - -.. autofunction:: jrnl -.. autofunction:: jrnl.Journal - - -Contents: - -.. toctree:: - :maxdepth: 2 - - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` - diff --git a/docs/_build/html/_static/ajax-loader.gif b/docs/_build/html/_static/ajax-loader.gif deleted file mode 100644 index 61faf8ca..00000000 Binary files a/docs/_build/html/_static/ajax-loader.gif and /dev/null differ diff --git a/docs/_build/html/_static/basic.css b/docs/_build/html/_static/basic.css deleted file mode 100644 index a04c8e13..00000000 --- a/docs/_build/html/_static/basic.css +++ /dev/null @@ -1,540 +0,0 @@ -/* - * basic.css - * ~~~~~~~~~ - * - * Sphinx stylesheet -- basic theme. - * - * :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/* -- main layout ----------------------------------------------------------- */ - -div.clearer { - clear: both; -} - -/* -- relbar ---------------------------------------------------------------- */ - -div.related { - width: 100%; - font-size: 90%; -} - -div.related h3 { - display: none; -} - -div.related ul { - margin: 0; - padding: 0 0 0 10px; - list-style: none; -} - -div.related li { - display: inline; -} - -div.related li.right { - float: right; - margin-right: 5px; -} - -/* -- sidebar --------------------------------------------------------------- */ - -div.sphinxsidebarwrapper { - padding: 10px 5px 0 10px; -} - -div.sphinxsidebar { - float: left; - width: 230px; - margin-left: -100%; - font-size: 90%; -} - -div.sphinxsidebar ul { - list-style: none; -} - -div.sphinxsidebar ul ul, -div.sphinxsidebar ul.want-points { - margin-left: 20px; - list-style: square; -} - -div.sphinxsidebar ul ul { - margin-top: 0; - margin-bottom: 0; -} - -div.sphinxsidebar form { - margin-top: 10px; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - -div.sphinxsidebar #searchbox input[type="text"] { - width: 170px; -} - -div.sphinxsidebar #searchbox input[type="submit"] { - width: 30px; -} - -img { - border: 0; -} - -/* -- search page ----------------------------------------------------------- */ - -ul.search { - margin: 10px 0 0 20px; - padding: 0; -} - -ul.search li { - padding: 5px 0 5px 20px; - background-image: url(file.png); - background-repeat: no-repeat; - background-position: 0 7px; -} - -ul.search li a { - font-weight: bold; -} - -ul.search li div.context { - color: #888; - margin: 2px 0 0 30px; - text-align: left; -} - -ul.keywordmatches li.goodmatch a { - font-weight: bold; -} - -/* -- index page ------------------------------------------------------------ */ - -table.contentstable { - width: 90%; -} - -table.contentstable p.biglink { - line-height: 150%; -} - -a.biglink { - font-size: 1.3em; -} - -span.linkdescr { - font-style: italic; - padding-top: 5px; - font-size: 90%; -} - -/* -- general index --------------------------------------------------------- */ - -table.indextable { - width: 100%; -} - -table.indextable td { - text-align: left; - vertical-align: top; -} - -table.indextable dl, table.indextable dd { - margin-top: 0; - margin-bottom: 0; -} - -table.indextable tr.pcap { - height: 10px; -} - -table.indextable tr.cap { - margin-top: 10px; - background-color: #f2f2f2; -} - -img.toggler { - margin-right: 3px; - margin-top: 3px; - cursor: pointer; -} - -div.modindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -div.genindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -/* -- general body styles --------------------------------------------------- */ - -a.headerlink { - visibility: hidden; -} - -h1:hover > a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink, -dt:hover > a.headerlink { - visibility: visible; -} - -div.body p.caption { - text-align: inherit; -} - -div.body td { - text-align: left; -} - -.field-list ul { - padding-left: 1em; -} - -.first { - margin-top: 0 !important; -} - -p.rubric { - margin-top: 30px; - font-weight: bold; -} - -img.align-left, .figure.align-left, object.align-left { - clear: left; - float: left; - margin-right: 1em; -} - -img.align-right, .figure.align-right, object.align-right { - clear: right; - float: right; - margin-left: 1em; -} - -img.align-center, .figure.align-center, object.align-center { - display: block; - margin-left: auto; - margin-right: auto; -} - -.align-left { - text-align: left; -} - -.align-center { - text-align: center; -} - -.align-right { - text-align: right; -} - -/* -- sidebars -------------------------------------------------------------- */ - -div.sidebar { - margin: 0 0 0.5em 1em; - border: 1px solid #ddb; - padding: 7px 7px 0 7px; - background-color: #ffe; - width: 40%; - float: right; -} - -p.sidebar-title { - font-weight: bold; -} - -/* -- topics ---------------------------------------------------------------- */ - -div.topic { - border: 1px solid #ccc; - padding: 7px 7px 0 7px; - margin: 10px 0 10px 0; -} - -p.topic-title { - font-size: 1.1em; - font-weight: bold; - margin-top: 10px; -} - -/* -- admonitions ----------------------------------------------------------- */ - -div.admonition { - margin-top: 10px; - margin-bottom: 10px; - padding: 7px; -} - -div.admonition dt { - font-weight: bold; -} - -div.admonition dl { - margin-bottom: 0; -} - -p.admonition-title { - margin: 0px 10px 5px 0px; - font-weight: bold; -} - -div.body p.centered { - text-align: center; - margin-top: 25px; -} - -/* -- tables ---------------------------------------------------------------- */ - -table.docutils { - border: 0; - border-collapse: collapse; -} - -table.docutils td, table.docutils th { - padding: 1px 8px 1px 5px; - border-top: 0; - border-left: 0; - border-right: 0; - border-bottom: 1px solid #aaa; -} - -table.field-list td, table.field-list th { - border: 0 !important; -} - -table.footnote td, table.footnote th { - border: 0 !important; -} - -th { - text-align: left; - padding-right: 5px; -} - -table.citation { - border-left: solid 1px gray; - margin-left: 1px; -} - -table.citation td { - border-bottom: none; -} - -/* -- other body styles ----------------------------------------------------- */ - -ol.arabic { - list-style: decimal; -} - -ol.loweralpha { - list-style: lower-alpha; -} - -ol.upperalpha { - list-style: upper-alpha; -} - -ol.lowerroman { - list-style: lower-roman; -} - -ol.upperroman { - list-style: upper-roman; -} - -dl { - margin-bottom: 15px; -} - -dd p { - margin-top: 0px; -} - -dd ul, dd table { - margin-bottom: 10px; -} - -dd { - margin-top: 3px; - margin-bottom: 10px; - margin-left: 30px; -} - -dt:target, .highlighted { - background-color: #fbe54e; -} - -dl.glossary dt { - font-weight: bold; - font-size: 1.1em; -} - -.field-list ul { - margin: 0; - padding-left: 1em; -} - -.field-list p { - margin: 0; -} - -.refcount { - color: #060; -} - -.optional { - font-size: 1.3em; -} - -.versionmodified { - font-style: italic; -} - -.system-message { - background-color: #fda; - padding: 5px; - border: 3px solid red; -} - -.footnote:target { - background-color: #ffa; -} - -.line-block { - display: block; - margin-top: 1em; - margin-bottom: 1em; -} - -.line-block .line-block { - margin-top: 0; - margin-bottom: 0; - margin-left: 1.5em; -} - -.guilabel, .menuselection { - font-family: sans-serif; -} - -.accelerator { - text-decoration: underline; -} - -.classifier { - font-style: oblique; -} - -abbr, acronym { - border-bottom: dotted 1px; - cursor: help; -} - -/* -- code displays --------------------------------------------------------- */ - -pre { - overflow: auto; - overflow-y: hidden; /* fixes display issues on Chrome browsers */ -} - -td.linenos pre { - padding: 5px 0px; - border: 0; - background-color: transparent; - color: #aaa; -} - -table.highlighttable { - margin-left: 0.5em; -} - -table.highlighttable td { - padding: 0 0.5em 0 0.5em; -} - -tt.descname { - background-color: transparent; - font-weight: bold; - font-size: 1.2em; -} - -tt.descclassname { - background-color: transparent; -} - -tt.xref, a tt { - background-color: transparent; - font-weight: bold; -} - -h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { - background-color: transparent; -} - -.viewcode-link { - float: right; -} - -.viewcode-back { - float: right; - font-family: sans-serif; -} - -div.viewcode-block:target { - margin: -1px -10px; - padding: 0 10px; -} - -/* -- math display ---------------------------------------------------------- */ - -img.math { - vertical-align: middle; -} - -div.body div.math p { - text-align: center; -} - -span.eqno { - float: right; -} - -/* -- printout stylesheet --------------------------------------------------- */ - -@media print { - div.document, - div.documentwrapper, - div.bodywrapper { - margin: 0 !important; - width: 100%; - } - - div.sphinxsidebar, - div.related, - div.footer, - #top-link { - display: none; - } -} \ No newline at end of file diff --git a/docs/_build/html/_static/comment-bright.png b/docs/_build/html/_static/comment-bright.png deleted file mode 100644 index 551517b8..00000000 Binary files a/docs/_build/html/_static/comment-bright.png and /dev/null differ diff --git a/docs/_build/html/_static/comment-close.png b/docs/_build/html/_static/comment-close.png deleted file mode 100644 index 09b54be4..00000000 Binary files a/docs/_build/html/_static/comment-close.png and /dev/null differ diff --git a/docs/_build/html/_static/comment.png b/docs/_build/html/_static/comment.png deleted file mode 100644 index 92feb52b..00000000 Binary files a/docs/_build/html/_static/comment.png and /dev/null differ diff --git a/docs/_build/html/_static/default.css b/docs/_build/html/_static/default.css deleted file mode 100644 index e534a078..00000000 --- a/docs/_build/html/_static/default.css +++ /dev/null @@ -1,256 +0,0 @@ -/* - * default.css_t - * ~~~~~~~~~~~~~ - * - * Sphinx stylesheet -- default theme. - * - * :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -@import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -body { - font-family: sans-serif; - font-size: 100%; - background-color: #11303d; - color: #000; - margin: 0; - padding: 0; -} - -div.document { - background-color: #1c4e63; -} - -div.documentwrapper { - float: left; - width: 100%; -} - -div.bodywrapper { - margin: 0 0 0 230px; -} - -div.body { - background-color: #ffffff; - color: #000000; - padding: 0 20px 30px 20px; -} - -div.footer { - color: #ffffff; - width: 100%; - padding: 9px 0 9px 0; - text-align: center; - font-size: 75%; -} - -div.footer a { - color: #ffffff; - text-decoration: underline; -} - -div.related { - background-color: #133f52; - line-height: 30px; - color: #ffffff; -} - -div.related a { - color: #ffffff; -} - -div.sphinxsidebar { -} - -div.sphinxsidebar h3 { - font-family: 'Trebuchet MS', sans-serif; - color: #ffffff; - font-size: 1.4em; - font-weight: normal; - margin: 0; - padding: 0; -} - -div.sphinxsidebar h3 a { - color: #ffffff; -} - -div.sphinxsidebar h4 { - font-family: 'Trebuchet MS', sans-serif; - color: #ffffff; - font-size: 1.3em; - font-weight: normal; - margin: 5px 0 0 0; - padding: 0; -} - -div.sphinxsidebar p { - color: #ffffff; -} - -div.sphinxsidebar p.topless { - margin: 5px 10px 10px 10px; -} - -div.sphinxsidebar ul { - margin: 10px; - padding: 0; - color: #ffffff; -} - -div.sphinxsidebar a { - color: #98dbcc; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - - - -/* -- hyperlink styles ------------------------------------------------------ */ - -a { - color: #355f7c; - text-decoration: none; -} - -a:visited { - color: #355f7c; - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - - - -/* -- body styles ----------------------------------------------------------- */ - -div.body h1, -div.body h2, -div.body h3, -div.body h4, -div.body h5, -div.body h6 { - font-family: 'Trebuchet MS', sans-serif; - background-color: #f2f2f2; - font-weight: normal; - color: #20435c; - border-bottom: 1px solid #ccc; - margin: 20px -20px 10px -20px; - padding: 3px 0 3px 10px; -} - -div.body h1 { margin-top: 0; font-size: 200%; } -div.body h2 { font-size: 160%; } -div.body h3 { font-size: 140%; } -div.body h4 { font-size: 120%; } -div.body h5 { font-size: 110%; } -div.body h6 { font-size: 100%; } - -a.headerlink { - color: #c60f0f; - font-size: 0.8em; - padding: 0 4px 0 4px; - text-decoration: none; -} - -a.headerlink:hover { - background-color: #c60f0f; - color: white; -} - -div.body p, div.body dd, div.body li { - text-align: justify; - line-height: 130%; -} - -div.admonition p.admonition-title + p { - display: inline; -} - -div.admonition p { - margin-bottom: 5px; -} - -div.admonition pre { - margin-bottom: 5px; -} - -div.admonition ul, div.admonition ol { - margin-bottom: 5px; -} - -div.note { - background-color: #eee; - border: 1px solid #ccc; -} - -div.seealso { - background-color: #ffc; - border: 1px solid #ff6; -} - -div.topic { - background-color: #eee; -} - -div.warning { - background-color: #ffe4e4; - border: 1px solid #f66; -} - -p.admonition-title { - display: inline; -} - -p.admonition-title:after { - content: ":"; -} - -pre { - padding: 5px; - background-color: #eeffcc; - color: #333333; - line-height: 120%; - border: 1px solid #ac9; - border-left: none; - border-right: none; -} - -tt { - background-color: #ecf0f3; - padding: 0 1px 0 1px; - font-size: 0.95em; -} - -th { - background-color: #ede; -} - -.warning tt { - background: #efc2c2; -} - -.note tt { - background: #d6d6d6; -} - -.viewcode-back { - font-family: sans-serif; -} - -div.viewcode-block:target { - background-color: #f4debf; - border-top: 1px solid #ac9; - border-bottom: 1px solid #ac9; -} \ No newline at end of file diff --git a/docs/_build/html/_static/doctools.js b/docs/_build/html/_static/doctools.js deleted file mode 100644 index 8614442e..00000000 --- a/docs/_build/html/_static/doctools.js +++ /dev/null @@ -1,235 +0,0 @@ -/* - * doctools.js - * ~~~~~~~~~~~ - * - * Sphinx JavaScript utilities for all documentation. - * - * :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/** - * select a different prefix for underscore - */ -$u = _.noConflict(); - -/** - * make the code below compatible with browsers without - * an installed firebug like debugger -if (!window.console || !console.firebug) { - var names = ["log", "debug", "info", "warn", "error", "assert", "dir", - "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", - "profile", "profileEnd"]; - window.console = {}; - for (var i = 0; i < names.length; ++i) - window.console[names[i]] = function() {}; -} - */ - -/** - * small helper function to urldecode strings - */ -jQuery.urldecode = function(x) { - return decodeURIComponent(x).replace(/\+/g, ' '); -}; - -/** - * small helper function to urlencode strings - */ -jQuery.urlencode = encodeURIComponent; - -/** - * This function returns the parsed url parameters of the - * current request. Multiple values per key are supported, - * it will always return arrays of strings for the value parts. - */ -jQuery.getQueryParameters = function(s) { - if (typeof s == 'undefined') - s = document.location.search; - var parts = s.substr(s.indexOf('?') + 1).split('&'); - var result = {}; - for (var i = 0; i < parts.length; i++) { - var tmp = parts[i].split('=', 2); - var key = jQuery.urldecode(tmp[0]); - var value = jQuery.urldecode(tmp[1]); - if (key in result) - result[key].push(value); - else - result[key] = [value]; - } - return result; -}; - -/** - * highlight a given string on a jquery object by wrapping it in - * span elements with the given class name. - */ -jQuery.fn.highlightText = function(text, className) { - function highlight(node) { - if (node.nodeType == 3) { - var val = node.nodeValue; - var pos = val.toLowerCase().indexOf(text); - if (pos >= 0 && !jQuery(node.parentNode).hasClass(className)) { - var span = document.createElement("span"); - span.className = className; - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - node.parentNode.insertBefore(span, node.parentNode.insertBefore( - document.createTextNode(val.substr(pos + text.length)), - node.nextSibling)); - node.nodeValue = val.substr(0, pos); - } - } - else if (!jQuery(node).is("button, select, textarea")) { - jQuery.each(node.childNodes, function() { - highlight(this); - }); - } - } - return this.each(function() { - highlight(this); - }); -}; - -/** - * Small JavaScript module for the documentation. - */ -var Documentation = { - - init : function() { - this.fixFirefoxAnchorBug(); - this.highlightSearchWords(); - this.initIndexTable(); - }, - - /** - * i18n support - */ - TRANSLATIONS : {}, - PLURAL_EXPR : function(n) { return n == 1 ? 0 : 1; }, - LOCALE : 'unknown', - - // gettext and ngettext don't access this so that the functions - // can safely bound to a different name (_ = Documentation.gettext) - gettext : function(string) { - var translated = Documentation.TRANSLATIONS[string]; - if (typeof translated == 'undefined') - return string; - return (typeof translated == 'string') ? translated : translated[0]; - }, - - ngettext : function(singular, plural, n) { - var translated = Documentation.TRANSLATIONS[singular]; - if (typeof translated == 'undefined') - return (n == 1) ? singular : plural; - return translated[Documentation.PLURALEXPR(n)]; - }, - - addTranslations : function(catalog) { - for (var key in catalog.messages) - this.TRANSLATIONS[key] = catalog.messages[key]; - this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); - this.LOCALE = catalog.locale; - }, - - /** - * add context elements like header anchor links - */ - addContextElements : function() { - $('div[id] > :header:first').each(function() { - $('\u00B6'). - attr('href', '#' + this.id). - attr('title', _('Permalink to this headline')). - appendTo(this); - }); - $('dt[id]').each(function() { - $('\u00B6'). - attr('href', '#' + this.id). - attr('title', _('Permalink to this definition')). - appendTo(this); - }); - }, - - /** - * workaround a firefox stupidity - */ - fixFirefoxAnchorBug : function() { - if (document.location.hash && $.browser.mozilla) - window.setTimeout(function() { - document.location.href += ''; - }, 10); - }, - - /** - * highlight the search words provided in the url in the text - */ - highlightSearchWords : function() { - var params = $.getQueryParameters(); - var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; - if (terms.length) { - var body = $('div.body'); - window.setTimeout(function() { - $.each(terms, function() { - body.highlightText(this.toLowerCase(), 'highlighted'); - }); - }, 10); - $('') - .appendTo($('#searchbox')); - } - }, - - /** - * init the domain index toggle buttons - */ - initIndexTable : function() { - var togglers = $('img.toggler').click(function() { - var src = $(this).attr('src'); - var idnum = $(this).attr('id').substr(7); - $('tr.cg-' + idnum).toggle(); - if (src.substr(-9) == 'minus.png') - $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); - else - $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); - }).css('display', ''); - if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { - togglers.click(); - } - }, - - /** - * helper function to hide the search marks again - */ - hideSearchWords : function() { - $('#searchbox .highlight-link').fadeOut(300); - $('span.highlighted').removeClass('highlighted'); - }, - - /** - * make the url absolute - */ - makeURL : function(relativeURL) { - return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; - }, - - /** - * get the current relative url - */ - getCurrentURL : function() { - var path = document.location.pathname; - var parts = path.split(/\//); - $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { - if (this == '..') - parts.pop(); - }); - var url = parts.join('/'); - return path.substring(url.lastIndexOf('/') + 1, path.length - 1); - } -}; - -// quick alias for translations -_ = Documentation.gettext; - -$(document).ready(function() { - Documentation.init(); -}); diff --git a/docs/_build/html/_static/down-pressed.png b/docs/_build/html/_static/down-pressed.png deleted file mode 100644 index 6f7ad782..00000000 Binary files a/docs/_build/html/_static/down-pressed.png and /dev/null differ diff --git a/docs/_build/html/_static/down.png b/docs/_build/html/_static/down.png deleted file mode 100644 index 3003a887..00000000 Binary files a/docs/_build/html/_static/down.png and /dev/null differ diff --git a/docs/_build/html/_static/file.png b/docs/_build/html/_static/file.png deleted file mode 100644 index d18082e3..00000000 Binary files a/docs/_build/html/_static/file.png and /dev/null differ diff --git a/docs/_build/html/_static/flasky.css b/docs/_build/html/_static/flasky.css deleted file mode 100644 index 79247895..00000000 --- a/docs/_build/html/_static/flasky.css +++ /dev/null @@ -1,479 +0,0 @@ -/* - * flasky.css_t - * ~~~~~~~~~~~~ - * - * :copyright: Copyright 2010 by Armin Ronacher. Modifications by Kenneth Reitz. - * :license: Flask Design License, see LICENSE for details. - */ - - - - -@import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -body { - font-family: 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro'; - font-size: 17px; - background-color: white; - color: #000; - margin: 0; - padding: 0; -} - -div.document { - width: 940px; - margin: 30px auto 0 auto; -} - -div.documentwrapper { - float: left; - width: 100%; -} - -div.bodywrapper { - margin: 0 0 0 220px; -} - -div.sphinxsidebar { - width: 220px; -} - -hr { - border: 1px solid #B1B4B6; -} - -div.body { - background-color: #ffffff; - color: #3E4349; - padding: 0 30px 0 30px; -} - -img.floatingflask { - padding: 0 0 10px 10px; - float: right; -} - -div.footer { - width: 940px; - margin: 20px auto 30px auto; - font-size: 14px; - color: #888; - text-align: right; -} - -div.footer a { - color: #888; -} - -div.related { - display: none; -} - -div.sphinxsidebar a { - color: #444; - text-decoration: none; - border-bottom: 1px dotted #999; -} - -div.sphinxsidebar a:hover { - border-bottom: 1px solid #999; -} - -div.sphinxsidebar { - font-size: 14px; - line-height: 1.5; -} - -div.sphinxsidebarwrapper { - padding: 18px 10px; -} - -div.sphinxsidebarwrapper p.logo { - padding: 0; - margin: -10px 0 0 -20px; - text-align: center; -} - -div.sphinxsidebar h3, -div.sphinxsidebar h4 { - font-family: 'Garamond', 'Georgia', serif; - color: #444; - font-size: 24px; - font-weight: normal; - margin: 0 0 5px 0; - padding: 0; -} - -div.sphinxsidebar h4 { - font-size: 20px; -} - -div.sphinxsidebar h3 a { - color: #444; -} - -div.sphinxsidebar p.logo a, -div.sphinxsidebar h3 a, -div.sphinxsidebar p.logo a:hover, -div.sphinxsidebar h3 a:hover { - border: none; -} - -div.sphinxsidebar p { - color: #555; - margin: 10px 0; -} - -div.sphinxsidebar ul { - margin: 10px 0; - padding: 0; - color: #000; -} - -div.sphinxsidebar input { - border: 1px solid #ccc; - font-family: 'Georgia', serif; - font-size: 1em; -} - -/* -- body styles ----------------------------------------------------------- */ - -a { - color: #004B6B; - text-decoration: underline; -} - -a:hover { - color: #6D4100; - text-decoration: underline; -} - -div.body h1, -div.body h2, -div.body h3, -div.body h4, -div.body h5, -div.body h6 { - font-family: 'Garamond', 'Georgia', serif; - font-weight: normal; - margin: 30px 0px 10px 0px; - padding: 0; -} - -div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } -div.body h2 { font-size: 180%; } -div.body h3 { font-size: 150%; } -div.body h4 { font-size: 130%; } -div.body h5 { font-size: 100%; } -div.body h6 { font-size: 100%; } - -a.headerlink { - color: #ddd; - padding: 0 4px; - text-decoration: none; -} - -a.headerlink:hover { - color: #444; - background: #eaeaea; -} - -div.body p, div.body dd, div.body li { - line-height: 1.4em; -} - -div.admonition { - background: #fafafa; - margin: 20px -30px; - padding: 10px 30px; - border-top: 1px solid #ccc; - border-bottom: 1px solid #ccc; -} - -div.admonition tt.xref, div.admonition a tt { - border-bottom: 1px solid #fafafa; -} - -dd div.admonition { - margin-left: -60px; - padding-left: 60px; -} - -div.admonition p.admonition-title { - font-family: 'Garamond', 'Georgia', serif; - font-weight: normal; - font-size: 24px; - margin: 0 0 10px 0; - padding: 0; - line-height: 1; -} - -div.admonition p.last { - margin-bottom: 0; -} - -div.highlight { - background-color: white; -} - -dt:target, .highlight { - background: #FAF3E8; -} - -div.note { - background-color: #eee; - border: 1px solid #ccc; -} - -div.seealso { - background-color: #ffc; - border: 1px solid #ff6; -} - -div.topic { - background-color: #eee; -} - -p.admonition-title { - display: inline; -} - -p.admonition-title:after { - content: ":"; -} - -pre, tt { - font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; - font-size: 0.9em; -} - -img.screenshot { -} - -tt.descname, tt.descclassname { - font-size: 0.95em; -} - -tt.descname { - padding-right: 0.08em; -} - -img.screenshot { - -moz-box-shadow: 2px 2px 4px #eee; - -webkit-box-shadow: 2px 2px 4px #eee; - box-shadow: 2px 2px 4px #eee; -} - -table.docutils { - border: 1px solid #888; - -moz-box-shadow: 2px 2px 4px #eee; - -webkit-box-shadow: 2px 2px 4px #eee; - box-shadow: 2px 2px 4px #eee; -} - -table.docutils td, table.docutils th { - border: 1px solid #888; - padding: 0.25em 0.7em; -} - -table.field-list, table.footnote { - border: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -table.footnote { - margin: 15px 0; - width: 100%; - border: 1px solid #eee; - background: #fdfdfd; - font-size: 0.9em; -} - -table.footnote + table.footnote { - margin-top: -15px; - border-top: none; -} - -table.field-list th { - padding: 0 0.8em 0 0; -} - -table.field-list td { - padding: 0; -} - -table.footnote td.label { - width: 0px; - padding: 0.3em 0 0.3em 0.5em; -} - -table.footnote td { - padding: 0.3em 0.5em; -} - -dl { - margin: 0; - padding: 0; -} - -dl dd { - margin-left: 30px; -} - -blockquote { - margin: 0 0 0 30px; - padding: 0; -} - -ul, ol { - margin: 10px 0 10px 30px; - padding: 0; -} - -pre { - background: #eee; - padding: 7px 30px; - margin: 15px -30px; - line-height: 1.3em; -} - -dl pre, blockquote pre, li pre { - margin-left: -60px; - padding-left: 60px; -} - -dl dl pre { - margin-left: -90px; - padding-left: 90px; -} - -tt { - background-color: #ecf0f3; - color: #222; - /* padding: 1px 2px; */ -} - -tt.xref, a tt { - background-color: #FBFBFB; - border-bottom: 1px solid white; -} - -a.reference { - text-decoration: none; - border-bottom: 1px dotted #004B6B; -} - -a.reference:hover { - border-bottom: 1px solid #6D4100; -} - -a.footnote-reference { - text-decoration: none; - font-size: 0.7em; - vertical-align: top; - border-bottom: 1px dotted #004B6B; -} - -a.footnote-reference:hover { - border-bottom: 1px solid #6D4100; -} - -a:hover tt { - background: #EEE; -} - - -@media screen and (max-width: 600px) { - - div.sphinxsidebar { - display: none; - } - - div.document { - width: 100%; - - } - - div.documentwrapper { - margin-left: 0; - margin-top: 0; - margin-right: 0; - margin-bottom: 0; - } - - div.bodywrapper { - margin-top: 0; - margin-right: 0; - margin-bottom: 0; - margin-left: 0; - } - - ul { - margin-left: 0; - } - - .document { - width: auto; - } - - .footer { - width: auto; - } - - .bodywrapper { - margin: 0; - } - - .footer { - width: auto; - } - - .github { - display: none; - } - -} - -/* misc. */ - -.revsys-inline { - display: none!important; -} - - - - -div.highlight { - box-shadow: 0px 0px 15px #aaa; - margin: 20px 0px; - border-radius: 5px; -} - -div.highlight:before { - content: "Code block"; - background: #ccc; - background-image: -ms-linear-gradient(top, #E5E5E5 0%, #BBBBBB 100%); - background-image: -moz-linear-gradient(top, #E5E5E5 0%, #BBBBBB 100%); - background-image: -o-linear-gradient(top, #E5E5E5 0%, #BBBBBB 100%); - background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #E5E5E5), color-stop(1, #BBBBBB)); - background-image: -webkit-linear-gradient(top, #E5E5E5 0%, #BBBBBB 100%); - background-image: linear-gradient(to bottom, #E5E5E5 0%, #BBBBBB 100%); - box-shadow: inset 0px 1px 0px #f0f0f0, inset 0px -1px 0px #999; - border-radius: 5px 5px 0px 0px; - display: block; - padding: 5px 0px; - color: #555; - text-shadow: 0px 1px 0px #eee; - text-align: center; -} -div.highlight pre { - border-radius: 0px 0px 5px 5px; - box-shadow: inset 0px 4px 3px -3px #333; - margin: 0px; - background-color: #444; - padding: 10px; -} \ No newline at end of file diff --git a/docs/_build/html/_static/jquery.js b/docs/_build/html/_static/jquery.js deleted file mode 100644 index 198b3ff0..00000000 --- a/docs/_build/html/_static/jquery.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery v1.7.1 jquery.com | jquery.org/license */ -(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"":"")+""),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;g=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="
"+""+"
",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="
t
",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="
",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")}; -f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&i.push({elem:this,matches:d.slice(e)});for(j=0;j0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function() -{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/docs/_build/html/_static/minus.png b/docs/_build/html/_static/minus.png deleted file mode 100644 index da1c5620..00000000 Binary files a/docs/_build/html/_static/minus.png and /dev/null differ diff --git a/docs/_build/html/_static/plus.png b/docs/_build/html/_static/plus.png deleted file mode 100644 index b3cb3742..00000000 Binary files a/docs/_build/html/_static/plus.png and /dev/null differ diff --git a/docs/_build/html/_static/pygments.css b/docs/_build/html/_static/pygments.css deleted file mode 100644 index f62f9ecb..00000000 --- a/docs/_build/html/_static/pygments.css +++ /dev/null @@ -1,70 +0,0 @@ -.highlight .hll { background-color: #404040 } -.highlight { background: #202020; color: #d0d0d0 } -.highlight .c { color: #999999; font-style: italic } /* Comment */ -.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ -.highlight .g { color: #d0d0d0 } /* Generic */ -.highlight .k { color: #6ab825; font-weight: bold } /* Keyword */ -.highlight .l { color: #d0d0d0 } /* Literal */ -.highlight .n { color: #d0d0d0 } /* Name */ -.highlight .o { color: #d0d0d0 } /* Operator */ -.highlight .x { color: #d0d0d0 } /* Other */ -.highlight .p { color: #d0d0d0 } /* Punctuation */ -.highlight .cm { color: #999999; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */ -.highlight .c1 { color: #999999; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ -.highlight .gd { color: #d22323 } /* Generic.Deleted */ -.highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #d22323 } /* Generic.Error */ -.highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #589819 } /* Generic.Inserted */ -.highlight .go { color: #cccccc } /* Generic.Output */ -.highlight .gp { color: #aaaaaa } /* Generic.Prompt */ -.highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */ -.highlight .gt { color: #d22323 } /* Generic.Traceback */ -.highlight .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */ -.highlight .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */ -.highlight .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */ -.highlight .kp { color: #6ab825 } /* Keyword.Pseudo */ -.highlight .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */ -.highlight .ld { color: #d0d0d0 } /* Literal.Date */ -.highlight .m { color: #3677a9 } /* Literal.Number */ -.highlight .s { color: #ed9d13 } /* Literal.String */ -.highlight .na { color: #bbbbbb } /* Name.Attribute */ -.highlight .nb { color: #24909d } /* Name.Builtin */ -.highlight .nc { color: #447fcf; text-decoration: underline } /* Name.Class */ -.highlight .no { color: #40ffff } /* Name.Constant */ -.highlight .nd { color: #ffa500 } /* Name.Decorator */ -.highlight .ni { color: #d0d0d0 } /* Name.Entity */ -.highlight .ne { color: #bbbbbb } /* Name.Exception */ -.highlight .nf { color: #447fcf } /* Name.Function */ -.highlight .nl { color: #d0d0d0 } /* Name.Label */ -.highlight .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */ -.highlight .nx { color: #d0d0d0 } /* Name.Other */ -.highlight .py { color: #d0d0d0 } /* Name.Property */ -.highlight .nt { color: #6ab825; font-weight: bold } /* Name.Tag */ -.highlight .nv { color: #40ffff } /* Name.Variable */ -.highlight .ow { color: #6ab825; font-weight: bold } /* Operator.Word */ -.highlight .w { color: #666666 } /* Text.Whitespace */ -.highlight .mf { color: #3677a9 } /* Literal.Number.Float */ -.highlight .mh { color: #3677a9 } /* Literal.Number.Hex */ -.highlight .mi { color: #3677a9 } /* Literal.Number.Integer */ -.highlight .mo { color: #3677a9 } /* Literal.Number.Oct */ -.highlight .sb { color: #ed9d13 } /* Literal.String.Backtick */ -.highlight .sc { color: #ed9d13 } /* Literal.String.Char */ -.highlight .sd { color: #ed9d13 } /* Literal.String.Doc */ -.highlight .s2 { color: #ed9d13 } /* Literal.String.Double */ -.highlight .se { color: #ed9d13 } /* Literal.String.Escape */ -.highlight .sh { color: #ed9d13 } /* Literal.String.Heredoc */ -.highlight .si { color: #ed9d13 } /* Literal.String.Interpol */ -.highlight .sx { color: #ffa500 } /* Literal.String.Other */ -.highlight .sr { color: #ed9d13 } /* Literal.String.Regex */ -.highlight .s1 { color: #ed9d13 } /* Literal.String.Single */ -.highlight .ss { color: #ed9d13 } /* Literal.String.Symbol */ -.highlight .bp { color: #24909d } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #40ffff } /* Name.Variable.Class */ -.highlight .vg { color: #40ffff } /* Name.Variable.Global */ -.highlight .vi { color: #40ffff } /* Name.Variable.Instance */ -.highlight .il { color: #3677a9 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/docs/_build/html/_static/searchtools.js b/docs/_build/html/_static/searchtools.js deleted file mode 100644 index 56676b25..00000000 --- a/docs/_build/html/_static/searchtools.js +++ /dev/null @@ -1,622 +0,0 @@ -/* - * searchtools.js_t - * ~~~~~~~~~~~~~~~~ - * - * Sphinx JavaScript utilties for the full-text search. - * - * :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - - -/** - * Porter Stemmer - */ -var Stemmer = function() { - - var step2list = { - ational: 'ate', - tional: 'tion', - enci: 'ence', - anci: 'ance', - izer: 'ize', - bli: 'ble', - alli: 'al', - entli: 'ent', - eli: 'e', - ousli: 'ous', - ization: 'ize', - ation: 'ate', - ator: 'ate', - alism: 'al', - iveness: 'ive', - fulness: 'ful', - ousness: 'ous', - aliti: 'al', - iviti: 'ive', - biliti: 'ble', - logi: 'log' - }; - - var step3list = { - icate: 'ic', - ative: '', - alize: 'al', - iciti: 'ic', - ical: 'ic', - ful: '', - ness: '' - }; - - var c = "[^aeiou]"; // consonant - var v = "[aeiouy]"; // vowel - var C = c + "[^aeiouy]*"; // consonant sequence - var V = v + "[aeiou]*"; // vowel sequence - - var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 - var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 - var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 - var s_v = "^(" + C + ")?" + v; // vowel in stem - - this.stemWord = function (w) { - var stem; - var suffix; - var firstch; - var origword = w; - - if (w.length < 3) - return w; - - var re; - var re2; - var re3; - var re4; - - firstch = w.substr(0,1); - if (firstch == "y") - w = firstch.toUpperCase() + w.substr(1); - - // Step 1a - re = /^(.+?)(ss|i)es$/; - re2 = /^(.+?)([^s])s$/; - - if (re.test(w)) - w = w.replace(re,"$1$2"); - else if (re2.test(w)) - w = w.replace(re2,"$1$2"); - - // Step 1b - re = /^(.+?)eed$/; - re2 = /^(.+?)(ed|ing)$/; - if (re.test(w)) { - var fp = re.exec(w); - re = new RegExp(mgr0); - if (re.test(fp[1])) { - re = /.$/; - w = w.replace(re,""); - } - } - else if (re2.test(w)) { - var fp = re2.exec(w); - stem = fp[1]; - re2 = new RegExp(s_v); - if (re2.test(stem)) { - w = stem; - re2 = /(at|bl|iz)$/; - re3 = new RegExp("([^aeiouylsz])\\1$"); - re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - if (re2.test(w)) - w = w + "e"; - else if (re3.test(w)) { - re = /.$/; - w = w.replace(re,""); - } - else if (re4.test(w)) - w = w + "e"; - } - } - - // Step 1c - re = /^(.+?)y$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(s_v); - if (re.test(stem)) - w = stem + "i"; - } - - // Step 2 - re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - suffix = fp[2]; - re = new RegExp(mgr0); - if (re.test(stem)) - w = stem + step2list[suffix]; - } - - // Step 3 - re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - suffix = fp[2]; - re = new RegExp(mgr0); - if (re.test(stem)) - w = stem + step3list[suffix]; - } - - // Step 4 - re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; - re2 = /^(.+?)(s|t)(ion)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(mgr1); - if (re.test(stem)) - w = stem; - } - else if (re2.test(w)) { - var fp = re2.exec(w); - stem = fp[1] + fp[2]; - re2 = new RegExp(mgr1); - if (re2.test(stem)) - w = stem; - } - - // Step 5 - re = /^(.+?)e$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(mgr1); - re2 = new RegExp(meq1); - re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) - w = stem; - } - re = /ll$/; - re2 = new RegExp(mgr1); - if (re.test(w) && re2.test(w)) { - re = /.$/; - w = w.replace(re,""); - } - - // and turn initial Y back to y - if (firstch == "y") - w = firstch.toLowerCase() + w.substr(1); - return w; - } -} - - - -/** - * Simple result scoring code. - */ -var Scorer = { - // Implement the following function to further tweak the score for each result - // The function takes a result array [filename, title, anchor, descr, score] - // and returns the new score. - /* - score: function(result) { - return result[4]; - }, - */ - - // query matches the full name of an object - objNameMatch: 11, - // or matches in the last dotted part of the object name - objPartialMatch: 6, - // Additive scores depending on the priority of the object - objPrio: {0: 15, // used to be importantResults - 1: 5, // used to be objectResults - 2: -5}, // used to be unimportantResults - // Used when the priority is not in the mapping. - objPrioDefault: 0, - - // query found in title - title: 15, - // query found in terms - term: 5 -}; - - -/** - * Search Module - */ -var Search = { - - _index : null, - _queued_query : null, - _pulse_status : -1, - - init : function() { - var params = $.getQueryParameters(); - if (params.q) { - var query = params.q[0]; - $('input[name="q"]')[0].value = query; - this.performSearch(query); - } - }, - - loadIndex : function(url) { - $.ajax({type: "GET", url: url, data: null, - dataType: "script", cache: true, - complete: function(jqxhr, textstatus) { - if (textstatus != "success") { - document.getElementById("searchindexloader").src = url; - } - }}); - }, - - setIndex : function(index) { - var q; - this._index = index; - if ((q = this._queued_query) !== null) { - this._queued_query = null; - Search.query(q); - } - }, - - hasIndex : function() { - return this._index !== null; - }, - - deferQuery : function(query) { - this._queued_query = query; - }, - - stopPulse : function() { - this._pulse_status = 0; - }, - - startPulse : function() { - if (this._pulse_status >= 0) - return; - function pulse() { - var i; - Search._pulse_status = (Search._pulse_status + 1) % 4; - var dotString = ''; - for (i = 0; i < Search._pulse_status; i++) - dotString += '.'; - Search.dots.text(dotString); - if (Search._pulse_status > -1) - window.setTimeout(pulse, 500); - } - pulse(); - }, - - /** - * perform a search for something (or wait until index is loaded) - */ - performSearch : function(query) { - // create the required interface elements - this.out = $('#search-results'); - this.title = $('

' + _('Searching') + '

').appendTo(this.out); - this.dots = $('').appendTo(this.title); - this.status = $('

').appendTo(this.out); - this.output = $('
'); - } - // Prettify the comment rating. - comment.pretty_rating = comment.rating + ' point' + - (comment.rating == 1 ? '' : 's'); - // Make a class (for displaying not yet moderated comments differently) - comment.css_class = comment.displayed ? '' : ' moderate'; - // Create a div for this comment. - var context = $.extend({}, opts, comment); - var div = $(renderTemplate(commentTemplate, context)); - - // If the user has voted on this comment, highlight the correct arrow. - if (comment.vote) { - var direction = (comment.vote == 1) ? 'u' : 'd'; - div.find('#' + direction + 'v' + comment.id).hide(); - div.find('#' + direction + 'u' + comment.id).show(); - } - - if (opts.moderator || comment.text != '[deleted]') { - div.find('a.reply').show(); - if (comment.proposal_diff) - div.find('#sp' + comment.id).show(); - if (opts.moderator && !comment.displayed) - div.find('#cm' + comment.id).show(); - if (opts.moderator || (opts.username == comment.username)) - div.find('#dc' + comment.id).show(); - } - return div; - } - - /** - * A simple template renderer. Placeholders such as <%id%> are replaced - * by context['id'] with items being escaped. Placeholders such as <#id#> - * are not escaped. - */ - function renderTemplate(template, context) { - var esc = $(document.createElement('div')); - - function handle(ph, escape) { - var cur = context; - $.each(ph.split('.'), function() { - cur = cur[this]; - }); - return escape ? esc.text(cur || "").html() : cur; - } - - return template.replace(/<([%#])([\w\.]*)\1>/g, function() { - return handle(arguments[2], arguments[1] == '%' ? true : false); - }); - } - - /** Flash an error message briefly. */ - function showError(message) { - $(document.createElement('div')).attr({'class': 'popup-error'}) - .append($(document.createElement('div')) - .attr({'class': 'error-message'}).text(message)) - .appendTo('body') - .fadeIn("slow") - .delay(2000) - .fadeOut("slow"); - } - - /** Add a link the user uses to open the comments popup. */ - $.fn.comment = function() { - return this.each(function() { - var id = $(this).attr('id').substring(1); - var count = COMMENT_METADATA[id]; - var title = count + ' comment' + (count == 1 ? '' : 's'); - var image = count > 0 ? opts.commentBrightImage : opts.commentImage; - var addcls = count == 0 ? ' nocomment' : ''; - $(this) - .append( - $(document.createElement('a')).attr({ - href: '#', - 'class': 'sphinx-comment-open' + addcls, - id: 'ao' + id - }) - .append($(document.createElement('img')).attr({ - src: image, - alt: 'comment', - title: title - })) - .click(function(event) { - event.preventDefault(); - show($(this).attr('id').substring(2)); - }) - ) - .append( - $(document.createElement('a')).attr({ - href: '#', - 'class': 'sphinx-comment-close hidden', - id: 'ah' + id - }) - .append($(document.createElement('img')).attr({ - src: opts.closeCommentImage, - alt: 'close', - title: 'close' - })) - .click(function(event) { - event.preventDefault(); - hide($(this).attr('id').substring(2)); - }) - ); - }); - }; - - var opts = { - processVoteURL: '/_process_vote', - addCommentURL: '/_add_comment', - getCommentsURL: '/_get_comments', - acceptCommentURL: '/_accept_comment', - deleteCommentURL: '/_delete_comment', - commentImage: '/static/_static/comment.png', - closeCommentImage: '/static/_static/comment-close.png', - loadingImage: '/static/_static/ajax-loader.gif', - commentBrightImage: '/static/_static/comment-bright.png', - upArrow: '/static/_static/up.png', - downArrow: '/static/_static/down.png', - upArrowPressed: '/static/_static/up-pressed.png', - downArrowPressed: '/static/_static/down-pressed.png', - voting: false, - moderator: false - }; - - if (typeof COMMENT_OPTIONS != "undefined") { - opts = jQuery.extend(opts, COMMENT_OPTIONS); - } - - var popupTemplate = '\ -
\ -

\ - Sort by:\ - best rated\ - newest\ - oldest\ -

\ -
Comments
\ -
\ - loading comments...
\ -
    \ -
    \ -

    Add a comment\ - (markup):

    \ -
    \ - reStructured text markup: *emph*, **strong**, \ - ``code``, \ - code blocks: :: and an indented block after blank line
    \ -
    \ - \ -

    \ - \ - Propose a change ▹\ - \ - \ - Propose a change ▿\ - \ -

    \ - \ - \ - \ - \ - \ -
    \ -
    '; - - var commentTemplate = '\ -
    \ -
    \ -
    \ - \ - \ - \ - \ - \ - \ -
    \ -
    \ - \ - \ - \ - \ - \ - \ -
    \ -
    \ -
    \ -

    \ - <%username%>\ - <%pretty_rating%>\ - <%time.delta%>\ -

    \ -
    <#text#>
    \ -

    \ - \ - reply ▿\ - proposal ▹\ - proposal ▿\ - \ - \ -

    \ -
    \
    -<#proposal_diff#>\
    -        
    \ -
      \ -
      \ -
      \ -
      \ - '; - - var replyTemplate = '\ -
    • \ -
      \ -
      \ - \ - \ - \ - \ - \ - \ -
      \ -
    • '; - - $(document).ready(function() { - init(); - }); -})(jQuery); - -$(document).ready(function() { - // add comment anchors for all paragraphs that are commentable - $('.sphinx-has-comment').comment(); - - // highlight search words in search results - $("div.context").each(function() { - var params = $.getQueryParameters(); - var terms = (params.q) ? params.q[0].split(/\s+/) : []; - var result = $(this); - $.each(terms, function() { - result.highlightText(this.toLowerCase(), 'highlighted'); - }); - }); - - // directly open comment window if requested - var anchor = document.location.hash; - if (anchor.substring(0, 9) == '#comment-') { - $('#ao' + anchor.substring(9)).click(); - document.location.hash = '#s' + anchor.substring(9); - } -}); diff --git a/docs/_build/html/genindex.html b/docs/_build/html/genindex.html deleted file mode 100644 index c350b4b1..00000000 --- a/docs/_build/html/genindex.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - Index — jrnl 1.5.0 documentation - - - - - - - - - - - - - - - - - - -
      -
      -
      -
      - - -

      Index

      - -
      - J - -
      -

      J

      -
      - -
      - -
      Journal() (in module jrnl) -
      - -
      - - - - - - -
      -
      - -

      Related Topics

      - - - - -
      -
      -
      - - - - \ No newline at end of file diff --git a/docs/_build/html/index.html b/docs/_build/html/index.html deleted file mode 100644 index 48cb7ba1..00000000 --- a/docs/_build/html/index.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - jrnl: The command-line journal — jrnl 1.5.0 documentation - - - - - - - - - - - - - - - - - - -
      -
      -
      -
      - -
      -

      jrnl: The command-line journal

      -

      Release v1.5.0. (Installation)

      -
      >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
      ->>> r.status_code
      -200
      ->>> r.headers['content-type']
      -'application/json; charset=utf8'
      ->>> r.encoding
      -'utf-8'
      ->>> r.text
      -u'{"type":"User"...'
      ->>> r.json()
      -{u'private_gists': 419, u'total_private_repos': 77, ...}
      -
      -
      -
      -
      -jrnl.Journal()
      -
      - -

      Contents:

      -
      -
        -
      -
      -
      -
      -

      Indices and tables

      - -
      -
      -

      Indices and tables

      - -
      - - -
      -
      -
      -
      -
      -

      Table Of Contents

      - -

      Related Topics

      - - - -
      -
      -
      -
      - - - \ No newline at end of file diff --git a/docs/_build/html/objects.inv b/docs/_build/html/objects.inv deleted file mode 100644 index 2a9bd2c3..00000000 Binary files a/docs/_build/html/objects.inv and /dev/null differ diff --git a/docs/_build/html/search.html b/docs/_build/html/search.html deleted file mode 100644 index 5a3adeaf..00000000 --- a/docs/_build/html/search.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - Search — jrnl 1.5.0 documentation - - - - - - - - - - - - - - - - - - - - - - - - -
      -
      -
      -
      - -

      Search

      -
      - -

      - Please activate JavaScript to enable the search - functionality. -

      -
      -

      - From here you can search these documents. Enter your search - words into the box below and click "search". Note that the search - function will automatically search for all of the words. Pages - containing fewer words won't appear in the result list. -

      -
      - - - -
      - -
      - -
      - -
      -
      -
      -
      -

      Related Topics

      - -
      -
      -
      -
      - - - \ No newline at end of file diff --git a/docs/_build/html/searchindex.js b/docs/_build/html/searchindex.js deleted file mode 100644 index 89137466..00000000 --- a/docs/_build/html/searchindex.js +++ /dev/null @@ -1 +0,0 @@ -Search.setIndex({envversion:42,terms:{status_cod:0,text:0,modul:0,encod:0,header:0,api:0,pass:0,instal:0,total_private_repo:0,index:0,charset:0,content:0,json:0,type:0,applic:0,http:0,get:0,utf8:0,auth:0,user:0,releas:0,private_gist:0,search:0,github:0,utf:0,request:0,thi:[],com:0,page:0,block:[]},objtypes:{"0":"py:function"},objnames:{"0":["py","function","Python function"]},filenames:["index"],titles:["jrnl: The command-line journal"],objects:{jrnl:{Journal:[0,0,1,""]}},titleterms:{welcom:[],journal:0,indic:0,command:0,jrnl:0,tabl:0,line:0,document:[]}}) \ No newline at end of file diff --git a/docs/_themes/1450/static/small_flask.css b/docs/_themes/1450/static/small_flask.css deleted file mode 100755 index bf3634ef..00000000 --- a/docs/_themes/1450/static/small_flask.css +++ /dev/null @@ -1,91 +0,0 @@ -/* - * small_flask.css_t - * ~~~~~~~~~~~~~~~~~ - * - * :copyright: Copyright 2010 by Armin Ronacher. - * :license: Flask Design License, see LICENSE for details. - */ - -body { - margin: 0; - padding: 20px 30px; -} - -div.documentwrapper { - float: none; - background: white; -} - -div.sphinxsidebar { - display: block; - float: none; - width: 102.5%; - margin: 50px -30px -20px -30px; - padding: 10px 20px; - background: #333; - color: white; -} - -div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, -div.sphinxsidebar h3 a { - color: white; -} - -div.sphinxsidebar a { - color: #aaa; -} - -div.sphinxsidebar p.logo { - display: none; -} - -div.document { - width: 100%; - margin: 0; -} - -div.related { - display: block; - margin: 0; - padding: 10px 0 20px 0; -} - -div.related ul, -div.related ul li { - margin: 0; - padding: 0; -} - -div.footer { - display: none; -} - -div.bodywrapper { - margin: 0; -} - -div.body { - min-height: 0; - padding: 0; -} - -.rtd_doc_footer { - display: none; -} - -.document { - width: auto; -} - -.footer { - width: auto; -} - -.footer { - width: auto; -} - -.github { - display: none; -} - diff --git a/docs/_themes/jrnl/index.html b/docs/_themes/jrnl/index.html new file mode 100755 index 00000000..3bc309f1 --- /dev/null +++ b/docs/_themes/jrnl/index.html @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + +
      +
      + +

      Collect your thoughts and notes
      without leaving the command line

      +
      +
      +
      +
      $ jrnl today: Started writing my memoirs. On the command line. Like a boss.
      +
      +
      +
      + +
      +
      +
      + +

      Human friendly.

      +

      jrnl has a natural-language interface so you don't have to remember cryptic shortcuts when you're writing down your thoughts.

      +
      +
      + +

      Future-proof.

      +

      your journals are stored in plain-text files that will still be readable in 50 years when all your fancy iPad apps will have gone the way of the Dodo.

      +
      +
      + +

      Secure.

      +

      Encrypt your journals with the military-grade AES encryption. Even the NSA won't be able to read your dirty secrets.

      +
      +
      +
      +
      + +

      Accessible anywhere.

      +

      Sync your journals with Dropbox and capture your thoughts where ever you are

      +
      +
      + +

      DayOne compatible.

      +

      Read, write and search your DayOne journal from the command line.

      +
      +
      + +

      Free & Open Source.

      +

      jrnl is made by by a bunch of really nice and remarkably attractive people. Maybe even you?

      +
      +
      + +

      For work and play.

      +

      Effortlessly access several journals for all parts of your life.

      +
      +
      +
      + + + + + diff --git a/docs/_themes/1450/layout.html b/docs/_themes/jrnl/layout.html similarity index 100% rename from docs/_themes/1450/layout.html rename to docs/_themes/jrnl/layout.html diff --git a/docs/_themes/1450/relations.html b/docs/_themes/jrnl/relations.html similarity index 100% rename from docs/_themes/1450/relations.html rename to docs/_themes/jrnl/relations.html diff --git a/docs/_themes/jrnl/static/css/jrnl.css b/docs/_themes/jrnl/static/css/jrnl.css new file mode 100644 index 00000000..5a9a0128 --- /dev/null +++ b/docs/_themes/jrnl/static/css/jrnl.css @@ -0,0 +1,321 @@ +.icon { + background-image: url("../img/icons.png"); + width: 32px; + height: 32px; + display: inline-block; + font-size: 40px; + background-size: 200px 120px; +} +@media (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx) { + .icon { + background-image: url("../img/icons@2x.png"); + } +} +.icon.share { + background-position: 0em 0em; +} +.icon.future { + background-position: -1em 0em; +} +.icon.search { + background-position: -2em 0em; +} +.icon.nli { + background-position: -3em 0em; +} +.icon.secure { + background-position: -4em 0em; +} +.icon.sync { + background-position: 0em -1em; +} +.icon.dayone { + background-position: -1em -1em; +} +.icon.github { + background-position: -2em -1em; +} +.icon.folders { + background-position: -3em -1em; +} +.icon.cal { + background-position: -4em -1em; +} +.icon.left { + background-position: 0em -2em; +} +.icon.right { + background-position: -1em -2em; +} +.icon.info { + background-position: -2em -2em; +} +.terminal { + background: #2f1e34; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + padding: 50px 20px 10px 20px; + margin: 40px auto; + width: 500px; + -webkit-box-shadow: 0px 1px 8px #a0acb7; + -moz-box-shadow: 0px 1px 8px #a0acb7; + -o-box-shadow: 0px 1px 8px #a0acb7; + box-shadow: 0px 1px 8px #a0acb7; + position: relative; + color: #f7f8f9; + font-family: "Monaco", "Courier New"; + font-size: 12pt; +} +.terminal #args { + color: #f6f7b9; +} +.terminal #output { + color: #9278b5; +} +.terminal:before { + content: "Terminal"; + display: block; + width: 100%; + position: absolute; + left: 0; + -webkit-box-shadow: inset 0px 1px 0px #f4f4f4, inset 0px -1px 0px #888888; + -moz-box-shadow: inset 0px 1px 0px #f4f4f4, inset 0px -1px 0px #888888; + -o-box-shadow: inset 0px 1px 0px #f4f4f4, inset 0px -1px 0px #888888; + box-shadow: inset 0px 1px 0px #f4f4f4, inset 0px -1px 0px #888888; + margin-top: -50px; + text-align: center; + height: 30px; + line-height: 30px; + color: #777; + text-shadow: 0px 1px 0px #ddd; + -webkit-border-radius: 5px 5px 0px 0px; + -moz-border-radius: 5px 5px 0px 0px; + border-radius: 5px 5px 0px 0px; + background: #eaeaea; + background-image: -moz-linear-gradient(top, #eaeaea 0%, #bababa 100%); + background-image: -webkit-linear-gradient(top, #eaeaea 0%, #bababa 100%); + background-image: -o-linear-gradient(top, #eaeaea 0%, #bababa 100%); + background-image: linear-gradient(to bottom, #eaeaea 0%, #bababa 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eaeaea', endColorstr='#bababa', GradientType=0); +} +.terminal:after { + content: ""; + width: 48px; + height: 30px; + position: absolute; + top: 0px; + left: 10px; + background: url(../img/terminal.png) no-repeat center center; +} +body#landing { + background-color: #47375d; + font-family: "Open Sans", "Helvetica Neue", sans-serif; + font-weight: 300; +} +body#landing #title, +body#landing .row3, +body#landing .row4, +body#landing #prompt { + width: 900px; + margin: 0px auto; +} +body#landing #upper { + *zoom: 1; + background: #f7f8f9; + -webkit-box-shadow: inset 0px -6px 6px -3px #dadfe3; + -moz-box-shadow: inset 0px -6px 6px -3px #dadfe3; + -o-box-shadow: inset 0px -6px 6px -3px #dadfe3; + box-shadow: inset 0px -6px 6px -3px #dadfe3; +} +body#landing #upper:before, +body#landing #upper:after { + content: " "; + display: table; +} +body#landing #upper:after { + clear: both; +} +body#landing #upper #title { + width: 650px; + margin: 150px auto 75px auto; +} +body#landing #upper img { + float: left; + margin-right: 30px; +} +body#landing #upper h1 { + color: #564371; + font-weight: 300; +} +body#landing #upper #prompt { + width: 640px; + margin: 0 auto; + *zoom: 1; +} +body#landing #upper #prompt:before, +body#landing #upper #prompt:after { + content: " "; + display: table; +} +body#landing #upper #prompt:after { + clear: both; +} +body#landing #upper .terminal { + -webkit-border-radius: 6px 6px 0px 0px; + -moz-border-radius: 6px 6px 0px 0px; + border-radius: 6px 6px 0px 0px; + float: left; + margin: 0px; + width: 500px; + min-height: 134px; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} +body#landing #upper .pleft, +body#landing #upper .pright { + text-align: center; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; + float: left; + padding-top: 50px; + width: 70px; +} +body#landing #upper .pleft i, +body#landing #upper .pright i { + opacity: 0.6; + filter: alpha(opacity= 60 ); +} +body#landing #upper .pleft i:hover, +body#landing #upper .pright i:hover { + opacity: 10; + filter: alpha(opacity= 1000 ); + cursor: pointer; +} +body#landing #nav { + background: #7c95ca; + background-image: -moz-linear-gradient(top, #7c95ca 0%, #5e7dc5 100%); + background-image: -webkit-linear-gradient(top, #7c95ca 0%, #5e7dc5 100%); + background-image: -o-linear-gradient(top, #7c95ca 0%, #5e7dc5 100%); + background-image: linear-gradient(to bottom, #7c95ca 0%, #5e7dc5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7c95ca', endColorstr='#5e7dc5', GradientType=0); + height: 60px; + -webkit-box-shadow: 0px 6px 6px -3px #413155; + -moz-box-shadow: 0px 6px 6px -3px #413155; + -o-box-shadow: 0px 6px 6px -3px #413155; + box-shadow: 0px 6px 6px -3px #413155; + text-align: center; +} +body#landing #nav a { + color: #f7f8f9; + text-shadow: 0px -1px 0px #253865; + text-decoration: none; + font-size: 14pt; + line-height: 60px; + margin: 0 40px; +} +body#landing #nav a:hover { + color: #f8d055; + text-shadow: 0px -1px 0px #947206; +} +body#landing #nav a.cta { + background: #725794; + background-image: -moz-linear-gradient(top, #725794 0%, #564371 100%); + background-image: -webkit-linear-gradient(top, #725794 0%, #564371 100%); + background-image: -o-linear-gradient(top, #725794 0%, #564371 100%); + background-image: linear-gradient(to bottom, #725794 0%, #564371 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#725794', endColorstr='#564371', GradientType=0); + -webkit-box-shadow: 0px 1px 0px #413155; + -moz-box-shadow: 0px 1px 0px #413155; + -o-box-shadow: 0px 1px 0px #413155; + box-shadow: 0px 1px 0px #413155; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + padding: 6px 10px 5px 10px; +} +body#landing #nav a.cta:hover { + background: #f6c324; + background-image: -moz-linear-gradient(top, #f6c324 0%, #c59708 100%); + background-image: -webkit-linear-gradient(top, #f6c324 0%, #c59708 100%); + background-image: -o-linear-gradient(top, #f6c324 0%, #c59708 100%); + background-image: linear-gradient(to bottom, #f6c324 0%, #c59708 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6c324', endColorstr='#c59708', GradientType=0); + -webkit-box-shadow: 0px 1px 0px #947206; + -moz-box-shadow: 0px 1px 0px #947206; + -o-box-shadow: 0px 1px 0px #947206; + box-shadow: 0px 1px 0px #947206; + text-shadow: 0px -1px 0px #947206; + color: #f7f8f9; +} +body#landing #lower { + color: #f7f8f9; + padding-top: 40px; +} +body#landing #lower a { + color: #deaa09; + text-decoration: none; +} +body#landing #lower a:hover { + color: #f8d055; + text-decoration: underline; +} +body#landing #lower .row3, +body#landing #lower .row4 { + *zoom: 1; + margin-bottom: 20px; +} +body#landing #lower .row3:before, +body#landing #lower .row4:before, +body#landing #lower .row3:after, +body#landing #lower .row4:after { + content: " "; + display: table; +} +body#landing #lower .row3:after, +body#landing #lower .row4:after { + clear: both; +} +body#landing #lower .row3 .col, +body#landing #lower .row4 .col { + position: relative; + padding-left: 40px; + float: left; + width: 25%; + padding-right: 2%; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} +body#landing #lower .row3 .col i, +body#landing #lower .row4 .col i { + position: absolute; + left: 0; + top: 16px; +} +body#landing #lower .row3 .col h3, +body#landing #lower .row4 .col h3 { + font-size: 12pt; + margin-bottom: .5em; +} +body#landing #lower .row3 .col p, +body#landing #lower .row4 .col p { + font-size: 10pt; + margin: 0; +} +body#landing #lower .row3 .col:last-child, +body#landing #lower .row4 .col:last-child { + padding-right: 0; +} +body#landing #lower .row3 .col { + width: 33.3333%; +} +body#landing #lower .row4 .col { + color: #d4d1da; +} +body#landing #lower .row4 .col i { + opacity: 0.8; + filter: alpha(opacity= 80 ); +} diff --git a/docs/_themes/jrnl/static/css/main.css b/docs/_themes/jrnl/static/css/main.css new file mode 100755 index 00000000..8bb7b4b6 --- /dev/null +++ b/docs/_themes/jrnl/static/css/main.css @@ -0,0 +1,223 @@ +/* ========================================================================== + HTML5 Boilerplate styles - h5bp.com (generated via initializr.com) + ========================================================================== */ + +html, +button, +input, +select, +textarea { + color: #222; +} + +body { + font-size: 1em; + line-height: 1.4; +} + +::-moz-selection { + background: #b3d4fc; + text-shadow: none; +} + +::selection { + background: #b3d4fc; + text-shadow: none; +} + +hr { + display: block; + height: 1px; + border: 0; + border-top: 1px solid #ccc; + margin: 1em 0; + padding: 0; +} + +img { + vertical-align: middle; +} + +fieldset { + border: 0; + margin: 0; + padding: 0; +} + +textarea { + resize: vertical; +} + +.chromeframe { + margin: 0.2em 0; + background: #ccc; + color: #000; + padding: 0.2em 0; +} + + +/* ========================================================================== + Author's custom styles + ========================================================================== */ + + + + + + + + + + + + + + + +/* ========================================================================== + Media Queries + ========================================================================== */ + +@media only screen and (min-width: 35em) { + +} + +@media print, + (-o-min-device-pixel-ratio: 5/4), + (-webkit-min-device-pixel-ratio: 1.25), + (min-resolution: 120dpi) { + +} + +/* ========================================================================== + Helper classes + ========================================================================== */ + +.ir { + background-color: transparent; + border: 0; + overflow: hidden; + *text-indent: -9999px; +} + +.ir:before { + content: ""; + display: block; + width: 0; + height: 150%; +} + +.hidden { + display: none !important; + visibility: hidden; +} + +.visuallyhidden { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +.visuallyhidden.focusable:active, +.visuallyhidden.focusable:focus { + clip: auto; + height: auto; + margin: 0; + overflow: visible; + position: static; + width: auto; +} + +.invisible { + visibility: hidden; +} + +.clearfix:before, +.clearfix:after { + content: " "; + display: table; +} + +.clearfix:after { + clear: both; +} + +.clearfix { + *zoom: 1; +} + +/* ========================================================================== + Print styles + ========================================================================== */ + +@media print { + * { + background: transparent !important; + color: #000 !important; /* Black prints faster: h5bp.com/s */ + box-shadow: none !important; + text-shadow: none !important; + } + + a, + a:visited { + text-decoration: underline; + } + + a[href]:after { + content: " (" attr(href) ")"; + } + + abbr[title]:after { + content: " (" attr(title) ")"; + } + + /* + * Don't show links for images, or javascript/internal links + */ + + .ir a:after, + a[href^="javascript:"]:after, + a[href^="#"]:after { + content: ""; + } + + pre, + blockquote { + border: 1px solid #999; + page-break-inside: avoid; + } + + thead { + display: table-header-group; /* h5bp.com/t */ + } + + tr, + img { + page-break-inside: avoid; + } + + img { + max-width: 100% !important; + } + + @page { + margin: 0.5cm; + } + + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + + h2, + h3 { + page-break-after: avoid; + } +} \ No newline at end of file diff --git a/docs/_themes/jrnl/static/css/normalize.min.css b/docs/_themes/jrnl/static/css/normalize.min.css new file mode 100755 index 00000000..378226f3 --- /dev/null +++ b/docs/_themes/jrnl/static/css/normalize.min.css @@ -0,0 +1 @@ +/*! normalize.css v1.1.2 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}html,button,input,select,textarea{font-family:sans-serif}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em;margin:.83em 0}h3{font-size:1.17em;margin:1em 0}h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}p,pre{margin:1em 0}code,kbd,pre,samp{font-family:monospace,serif;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:'';content:none}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}dl,menu,ol,ul{margin:1em 0}dd{margin:0 0 0 40px}menu,ol,ul{padding:0 0 0 40px}nav ul,nav ol{list-style:none;list-style-image:none}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;*margin-left:-7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;*overflow:visible}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*height:13px;*width:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0} \ No newline at end of file diff --git a/docs/_themes/1450/static/flasky.css_t b/docs/_themes/jrnl/static/flasky.css_t similarity index 98% rename from docs/_themes/1450/static/flasky.css_t rename to docs/_themes/jrnl/static/flasky.css_t index 236e6232..2cbf607b 100755 --- a/docs/_themes/1450/static/flasky.css_t +++ b/docs/_themes/jrnl/static/flasky.css_t @@ -447,15 +447,16 @@ a:hover tt { -div.highlight { +div.highlight-python { box-shadow: 0px 0px 15px #aaa; margin: 20px 0px; border-radius: 5px; } -div.highlight:before { - content: "Code block"; +div.highlight-python:before { + content: " "; background: #ccc; + height: 15px; background-image: -ms-linear-gradient(top, #E5E5E5 0%, #BBBBBB 100%); background-image: -moz-linear-gradient(top, #E5E5E5 0%, #BBBBBB 100%); background-image: -o-linear-gradient(top, #E5E5E5 0%, #BBBBBB 100%); @@ -470,7 +471,8 @@ div.highlight:before { text-shadow: 0px 1px 0px #eee; text-align: center; } -div.highlight pre { +div.highlight-python pre { + color: #f0ede6; border-radius: 0px 0px 5px 5px; box-shadow: inset 0px 4px 3px -3px #333; margin: 0px; diff --git a/docs/_themes/jrnl/static/icons@2x.png b/docs/_themes/jrnl/static/icons@2x.png new file mode 100644 index 00000000..642e0f94 Binary files /dev/null and b/docs/_themes/jrnl/static/icons@2x.png differ diff --git a/docs/_themes/jrnl/static/img/favicon.ico b/docs/_themes/jrnl/static/img/favicon.ico new file mode 100644 index 00000000..e6dcc7fd Binary files /dev/null and b/docs/_themes/jrnl/static/img/favicon.ico differ diff --git a/docs/_themes/jrnl/static/img/favicon.png b/docs/_themes/jrnl/static/img/favicon.png new file mode 100644 index 00000000..e3fe6e89 Binary files /dev/null and b/docs/_themes/jrnl/static/img/favicon.png differ diff --git a/docs/_themes/jrnl/static/img/glyphicons-halflings-white.png b/docs/_themes/jrnl/static/img/glyphicons-halflings-white.png new file mode 100644 index 00000000..a20760bf Binary files /dev/null and b/docs/_themes/jrnl/static/img/glyphicons-halflings-white.png differ diff --git a/docs/_themes/jrnl/static/img/glyphicons-halflings.png b/docs/_themes/jrnl/static/img/glyphicons-halflings.png new file mode 100644 index 00000000..92d4445d Binary files /dev/null and b/docs/_themes/jrnl/static/img/glyphicons-halflings.png differ diff --git a/docs/_themes/jrnl/static/img/header.png b/docs/_themes/jrnl/static/img/header.png new file mode 100644 index 00000000..3c4fad0b Binary files /dev/null and b/docs/_themes/jrnl/static/img/header.png differ diff --git a/docs/_themes/jrnl/static/img/header.svg b/docs/_themes/jrnl/static/img/header.svg new file mode 100644 index 00000000..ec66e4af --- /dev/null +++ b/docs/_themes/jrnl/static/img/header.svg @@ -0,0 +1,2746 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $ jrnl today: Started writing my Memoirs. On the command line. Like a boss. + + Terminal + Terminal + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/_themes/jrnl/static/img/icons.png b/docs/_themes/jrnl/static/img/icons.png new file mode 100644 index 00000000..afe5a620 Binary files /dev/null and b/docs/_themes/jrnl/static/img/icons.png differ diff --git a/docs/_themes/jrnl/static/img/icons@2x.png b/docs/_themes/jrnl/static/img/icons@2x.png new file mode 100644 index 00000000..fa51ea1e Binary files /dev/null and b/docs/_themes/jrnl/static/img/icons@2x.png differ diff --git a/docs/_themes/jrnl/static/img/logo-left.png b/docs/_themes/jrnl/static/img/logo-left.png new file mode 100644 index 00000000..84c1f64d Binary files /dev/null and b/docs/_themes/jrnl/static/img/logo-left.png differ diff --git a/docs/_themes/jrnl/static/img/logo-top.png b/docs/_themes/jrnl/static/img/logo-top.png new file mode 100644 index 00000000..f050855d Binary files /dev/null and b/docs/_themes/jrnl/static/img/logo-top.png differ diff --git a/docs/_themes/jrnl/static/img/logo.png b/docs/_themes/jrnl/static/img/logo.png new file mode 100644 index 00000000..1ea79cf1 Binary files /dev/null and b/docs/_themes/jrnl/static/img/logo.png differ diff --git a/docs/_themes/jrnl/static/img/logo@2x.png b/docs/_themes/jrnl/static/img/logo@2x.png new file mode 100644 index 00000000..9cc3d76b Binary files /dev/null and b/docs/_themes/jrnl/static/img/logo@2x.png differ diff --git a/docs/_themes/jrnl/static/img/terminal.png b/docs/_themes/jrnl/static/img/terminal.png new file mode 100644 index 00000000..b813980e Binary files /dev/null and b/docs/_themes/jrnl/static/img/terminal.png differ diff --git a/docs/_themes/jrnl/static/js/landing.js b/docs/_themes/jrnl/static/js/landing.js new file mode 100644 index 00000000..57ceb46f --- /dev/null +++ b/docs/_themes/jrnl/static/js/landing.js @@ -0,0 +1,88 @@ +var phrases = [ + ["", "today: Started writing my memoirs. On the command line. Like a boss.", ""], + ["", "yesterday 2pm: used jrnl to keep track of accomplished tasks. The done.txt for my todo.txt", ""], + ["-from 2009 -until may", "", "(Displays all entries from January 2009 to last may)"], + ["", "A day on the beach with @beth and @frank. Taggidy-tag-tag.", ""], + ["--tags", "", "@idea 7
      @beth 5"], + ["--export json", "", "(Exports your entire journal to json)"], + ["--encrypt", "", "(256 bit AES encryption. Crack this, NSA.)"] +] + +var args = document.getElementById("args"); +var input = document.getElementById("input"); +var output = document.getElementById("output"); +var right = document.getElementById("right"); +var left = document.getElementById("left"); +var current = 0 + +var next = function() { + reveal(++current % phrases.length); +} +var prev = function() { + reveal(--current % phrases.length); +} + +var reveal = function(idx) { + var args_text = phrases[idx][0]; + var input_text = phrases[idx][1]; + var output_text = phrases[idx][2]; + var old_dix = idx == 0 ? phrases.length - 1 : idx - 1; + console.log(idx, old_dix, "++++++++++++") + var old_args_text = phrases[old_dix][0] + var old_input_text = phrases[old_dix][1] + var old_output_text =phrases[old_dix][2] + console.log(args_text, input_text, output_text) + console.log(old_args_text, old_input_text, old_output_text) + var s4 = function() {fadeIn(output_text, output);} + var s3 = function() {letter(input_text, input, s4);} + var s2 = function() {letter(args_text, args, s3);} + var s1 = function() {unletter(old_args_text, args, s2);} + var s0 = function() {unletter(old_input_text, input, s1);} + fadeOut(old_output_text, output, s0, 10); + // letter(input_text, input); + // output.innerHTML = output_text; +} +var fadeIn = function(text, element, next, step) { + step = step || 0 + var nx = function() { fadeIn(text, element, next, ++step); } + if (step==0) { + element.innerHTML = ""; + setTimeout(nx, 550); + return; + } + if (step==1) {element.innerHTML = text;} + if (step>10 || !text) { if (next) {next(); return;} else return;} + element.style.opacity = (step-1)/10; + element.style.filter = 'alpha(opacity=' + (step-1)*10 + ')'; + setTimeout(nx, 50); +} +var fadeOut = function(text, element, next, step) { + if (step===10) element.innerHTML = text; + if (step<0 || !text) { + element.innerHTML = ""; + if (next) {next(); return;} + else return; + } + element.style.opacity = step/10; + element.style.filter = 'alpha(opacity=' + step*10 + ')'; + var nx = function() { fadeOut(text, element, next, --step); } + setTimeout(nx, 50); +} + +var unletter = function(text, element, next, timeout, index) { + timeout = timeout||10; + if (index==null) index = text.length; + if (index==-1 || !text.length) { if (next) {next(); return;} else return;} + element.innerHTML = text.substring(0, index); + var nx = function() { unletter(text, element, next, timeout, --index); } + setTimeout(nx, timeout); +} + +var letter = function(text, element, next, timeout, index) { + timeout = timeout||35; + index = index||0; + if (index > text.length || !text.length) { if (next) {next(); return;} else return;} + element.innerHTML = text.substring(0, index); + var nx = function() { letter(text, element, next, timeout, ++index); } + setTimeout(nx, timeout); +} diff --git a/docs/_themes/jrnl/static/landing.svg b/docs/_themes/jrnl/static/landing.svg new file mode 100644 index 00000000..f6d6ca19 --- /dev/null +++ b/docs/_themes/jrnl/static/landing.svg @@ -0,0 +1,3364 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + Collect your thoughts and noteswithout leaving the command line. + + + + + + + + + + + + + + + + + + + + + + + + + + Terminal + Terminal + + $ jrnl today: Started writing my Memoirs. On the command line. Like a boss. + + + + + + + + + + + + Collect your thoughts and noteswithout leaving the command line. + Secure.Ecnrypt your Journal with military-grade AES encryption so not even the NSA can read your dirty secrets. Human friendly. jrnl has a natural language interface so you don't have to remember cryptic shortcuts while writing down your thoghts. Future-proof.Your journals are stored as plain-text files and you will still be able to open them in 50 years when all your fancy iPad apps have gone the way of the Dodo. Accessible Anywhere.Ecnrypt your Journal with military-grade AES encryption so not even the NSA can read your dirty secrets. DayOne compatible.Your journals are stored as plain-text files and you will still be able to open them in 50 years when all . Free & Open SourceYour journals are stored as plain-text files and you will still be able to open them in 50 years when all . DayOne compatible.Your journals are stored as plain-text files and you will still be able to open them in 50 years when all . + + + + + + Download + + + Download + Documentation + Documentation + Fork me on Github + Fork me on Github + + jrnl is lovingly crafter by Manuel Ebert and other great people. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/_themes/jrnl/static/less/3L.less b/docs/_themes/jrnl/static/less/3L.less new file mode 100644 index 00000000..583c51f7 --- /dev/null +++ b/docs/_themes/jrnl/static/less/3L.less @@ -0,0 +1,1369 @@ +///* +// * 3L was made for YOU to help you create awesome websites +// * and fill the Internet with excessive amount of Love! ♥ +// * +// * Keep up your good work! +// * +// * Yours faithfully, +// * Mateusz Kocz -> http://radiatingstar.com +// * +// * 3L: -> http://mateuszkocz.github.com/3l +// * +// * Watch 3L on Github: -> https://github.com/mateuszkocz/3l +// * +// * Submit a bug issue: -> https://github.com/mateuszkocz/3l/issues?state=open +// * +// * +// * Licensed under the Apache License v2.0 +// * http://www.apache.org/licenses/LICENSE-2.0 +// * +// * Version: 1.4.0-beta (2012.12.06) +// * +// */ + +///* +// * To compile all of the code you need to use a compiler +// * that supports JavaScript code and guarder mixins. +// * WinLess meets those requirements. You can find it on winless.org +// * +// * If you're on a Mac and your compiler meets the requirements, +// * please, let me know via Twitter or GitHub! +// * +// */ + +///* ACTIVATE SUPPORTING CLASSES */ +///* Uncomment ones you want to use or put them in html or body elements in your style sheet. */ +///* For the explanation what those classes do, read further. */ + + //html { // If you want to use those classes, uncomment also the html element. + //.seo-helper; + //.box-sizing() // Put in the brackets box-model you want to use. + //} // CAUTION! If you're using any of those supporting classes, uncomment that bracket! + +///* +// * SEO & HTML Debugging +// * +// * A useful supporting class that will help a bit with your SEO +// * and usability of your website. +// * +// * Creating a website is a serious business, but sometimes you may +// * forget about some important details. This class will help you. +// * It will let you know when you haven't put an alt attribute on image +// * or kept that attribute empty, when you haven't typed a URL in anchor or when +// * anchor link has rel=nofollow attribute. It will also show you an alert +// * message if you don't have a tag and description or left them empty*. +// * +// * If any of the errors described above happens, according element will +// * get a red outline border drawing your attention and asking for some love +// * or you will get a message with the same purpose. +// * +// * *** * The <title> reminder can alert you even if you have a <title> tag. +// * *** This happens if you have a <link> tag (usually used for style sheets) +// * *** before <title> in your HTML. Just change the order of <link> and +// * *** <title> and you're cool. +// * +// * How to: +// * Place the .seo-helper class in html element. That's it! +// * +// * *** Example: html {.seo-helper} +// * +// * That way every element on your page will be affected +// * by this rule. You can also place it in any other container +// * class element in your code (body, div.wrapper, article and so on) +// * if you don't want for some reasons to check for bugs on whole page +// * but in a single area. +// * +// * Caution! Do not forget to delete this class before finishing your +// * project, unless you want to keep it in continuous project (like blog) +// * and debug every new content on your site. But then you might consider +// * restyling this class to be a bit more eye-pleasing. +// * +// * This may not work in every browser, but since you are a web +// * developer/designer you're probably already using a bleeding +// * edge nightly alpha back-door version of browser, so no problem! +// * It's probably the only class you don't need to care about how +// * your visitors will see it! +// * +// * *** Aside - How it works: +// * *** Section only for people who don't know yet what attribute +// * *** selectors and negation pseudo-class are. +// * *** +// * *** Using negation pseudo-class is like saying "target every element x +// * *** that doesn't have attribute y" or "target every element exept (but 'not') z". +// * *** You can read more about that here ->www.w3.org/TR/selectors/#negation. +// * *** +// * *** Attribute selectors are rules that target elements that have +// * *** some specified attributes (rel, alt, href etc.) and/or specified +// * *** value of this attributes. Read more on this topic here +// * *** ->www.w3.org/TR/selectors/#selectors. +// * +// * For a further explanation and a demo, refer to: +// * -> http://radiatingstar.com/how-to-improve-seo-with-css +// * +// * Why img:not([alt]), img[alt=""] and img[alt^=" "]? +// * First targets images that don't have an alt attribute, second targets +// * ones that have this attribute but it's left empty (probably left by +// * automatic completion of html editor), third is just in case - it +// * might have been left by html editor or manually "to do it later" (clearly +// * a space at the beginning of an alt can't be anything good). +// * +// * Why a[href=""]? +// * If you write an anchor text and leave href to copyPaste URL later, +// * it will reminding you about that. +// * +// * Why a[rel="nofollow"]? +// * For some reasons links on your site may have this attribute and this +// * may generate a huge SEO problem. Better fix it ASAP. (On the other hand +// * nofollow links might be useful in some situations. See here: +// * -> http://en.wikipedia.org/wiki/Nofollow#Control_internal_PageRank_flow) +// * +// * Why div:empty, span:empty, li:empty, p:empty, td:empty, th:empty? +// * It'll just check if you have some redundancy (empty elements) in you code. +// * +// */ + +.seo-helper () { + img:not([alt]), img[alt=""], img[alt^=" "], + a[href=""], a[href^=" "], a[href="#"], a[rel*="nofollow"], + div:empty, span:empty, li:empty, p:empty, td:empty, th:empty, + *[title=""], *[class=""], *[id=""] { + outline: 2px solid red !important; + outline-offset: 3px !important; + } + head, title:empty, link, meta {display: block;} + title:empty:before {content: "You've left the <title> empty!"} + link:before {content: "You don't have a <title>!"} + title ~ link {display: none;} + meta[name="description"][content=""]:before, meta[name="description"][content=" "]:before {content: "You've left description empty!";} + } + +///* +// * Helper classes from HTML5 Boilerplate +// * +// * Classes below help you create a better user experience for both users +// * of browsers and screen readers. Oh, and there's also a clearfix! +// * +// * All the classes comes from HTML5 Boilerplate (-> html5boilerplate.com). Here though, +// * they're changed so that they can be easily used in The LESS Way. +// * They're called "non-semantic" in H5B, but here they become semantic if used well. +// * (Actually they can't be used in any way than good in 3L.) +// * (Actually II they can be semantic in H5B as well, but it's a bit pain to do that.) +// * +// * Usage: +// * Just put them in your classes, id's or elements. +// * +// * Example: +// * .YOUR-AWESOME-CLASS-NAME { +// * // some rules +// * .clearfix; +// * } +// * +// */ + +// For image replacement. +.ir () {border: 0; overflow: hidden; background-color: transparent; *text-indent: -9999px; &:before {content: ""; display: block; width: 0; height: 100%;}} + +// Hide from both screenreaders and browsers: h5bp.com/u +.hidden () {display: none !important; visibility: hidden;} + +// Hide only visually, but have it available for screenreaders: h5bp.com/v +.visuallyhidden () {border: 0;clip: rect(0 0 0 0);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;} + +// Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p +// CAUTION! The .visuallyhidden class is included! If you want your object be both +// .visuallyhidden and .focusabe use only .focusable class. +.focusable () {.visuallyhidden;&:active,&:focus{clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto;}} + +// Hide visually and from screenreaders, but maintain layout. +.invisible () {visibility: hidden;} + +// Contain floats: h5bp.com/q +.clearfix () {*zoom:1;&:before,&:after{content:" ";display:table;}&:after{clear:both;}} + +///* +// * Some other helper classes. +// */ + +.incomplete() {outline: 3px dotted green} +.fixme() {outline: 3px dotted yellow} +.todo() {outline: 3px dotted blue} +.xxx() {outline: 3px dotted red} + +///* +// * Box-sizing +// * +// * Change the basic box-model to the one you want. +// * +// * Basic box-model defines the width and height of an object only as a size of +// * object's content area. In order to know exactly how big is the object you need +// * to add its padding and borders. This may result in many unwanted behaviours. +// * That's why you can define how you want the browser to calculate the width/height: +// * with or without padding, with or without borders. +// * +// * To use this feature just put a value you want: +// * -- content-box ("content" works too) - it's default value from basic model. +// * -- padding-box (also "padding") - width and height declarations will include paddings. +// * -- border-box (and "border") - border and padding included. +// * +// * Usage: +// * 1. .box-sizing(content-box), .box-sizing(content) and .content-box-sizing* for box-sizing: content-box. +// * 2. .box-sizing(padding-box), .box-sizing(padding) and .padding-box-sizing* for box-sizing: padding-box. +// * 3. .box-sizing(border-box), .box-sizing(padding) and .border.box-sizing* for box-sizing: border-box. +// * +// * * Beware not to use those properties without -sizing suffix thus suffixless classes are for background-clip (see this class below). +// * +// * Resources: +// * -- http://paulirish.com/2012/box-sizing-border-box-ftw/ +// * +// * Browsers support: IE8+ and every other. +// * Notable lack of support: IE7- +// * +// */ + +.content-box-sizing(){-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;} +.padding-box-sizing(){-moz-box-sizing:padding-box;-webkit-box-sizing:padding-box;box-sizing:padding-box;} +.border-box-sizing(){-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;} +.box-sizing (padding) {.padding-box-sizing;} +.box-sizing (padding-box){.padding-box-sizing;} +.box-sizing (border){.border-box-sizing;} +.box-sizing (border-box){.border-box-sizing;} +.box-sizing (content){.content-box-sizing;} +.box-sizing (content-box){.content-box-sizing;} + +///* +// * Background-clip +// * +// * Clips the object's background to the desired box according to the box-model. +// * +// * To use this class simply put into an object a .background-clip(box) class, +// * where box means the desired box (see below). You can also use a shorter class +// * .bg-clip or class that corresponds to the clipping you want to get (.content-clip, +// * .padding-clip, .border-clip). +// * +// * Arguments that comes into (box) are: +// * -- content-box or content for content clip, +// * -- padding-box or padding for padding clip, +// * -- border-box or border for border clip. +// * *** You can use values either with or without "-box" suffix. +// * +// * Browsers support: IE9+ and every other. +// * Notable lack of support: IE8- +// * +// */ + +.content-box(){-moz-background-clip:content;background-clip:content-box;} +.padding-box(){-moz-background-clip:padding;background-clip:padding-box;} +.border-box(){-moz-background-clip:border;background-clip:border-box;} +.background-clip (padding){.padding-box;} +.background-clip (padding-box){.padding-box;} +.background-clip (border){.border-box;} +.background-clip (border-box){.border-box;} +.background-clip (content){.content-box;} +.background-clip (content-box){.content-box;} +.bg-clip(@arguments){.background-clip(@arguments);} + +///* +// * Box-shadow +// * Create a shadow behind or inside the element. +// * +// * Usage: +// * In .box-shadow() brackets put arguments for every single shadow. Separate +// * each shadows' arguments with comma. You can put up to five shadows +// * by default but feel free to add a class with as many as you want. +// * Just check how it is done. +// * +// * You can use a default box-shadow which will create a shadow with +// * 0px x and 1px y offsets, 3px of blur and in black colour with 25% transparency. +// * Just place a .box-shadow class without any arguments. +// * +// * Box-shadow property takes following arguments: +// * +// * 1. inset [optional]. +// * 2. x-offset [required]. +// * 3. y-offset [required]. +// * 4. blur [optional]. +// * 5. spread [optional]. +// * 6. color [optional/required]. +// * +// * Resources: +// * -- developer.mozilla.org/en/CSS/box-shadow +// * +// * Browsers support: IE9, Fx3.5, Chrome, Opera, Safari, Opera Mobile, Android Browser +// * Notable lack of support: IE8-, Opera Mini +// * +// * Example: +// * Two box-shadows: one is 1px offset, black, second one is green with 30% opacity, inset, +// * with 5px offsets, 3px of blur and 1px spread. +// * .box-shadow(1px 1px black, inset 5px 5px 3px 1px fade(green,30%)) // fade(colour,XX%) is a LESS native function +// * // that adds alpha channel to colour. Instead of fade() +// * // you can also use rgba or hsla colours declaration. +// * Solution for multiple box-shadows in a single mixin taken from http://www.toekneestuck.com/blog/2012/05/15/less-css-arguments-variable/ +// */ + +.box-shadow(@shadow1, @shadow2:X, ...){ + @shadows: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`; + -webkit-box-shadow: @shadows; + -moz-box-shadow: @shadows; + -o-box-shadow: @shadows; + box-shadow: @shadows; +} + +///* +// * Border-radius +// * Round the element's corners. +// * +// * Usage: +// * Border-radius property takes one to four arguments with px, em and % +// * values and round the element's corners accordingly. You can make +// * ellipticaly roundeded corners putting two sets of values separated with +// * comma using .elliptical-border-radius class. In order to round a single +// * corner use .round-corner class. This class takes two sets of arguments. +// * First one is a declaration of corner you want to round (top-left, top-right, +// * bottom-right, bottom-left), second one (separated from the first with comma), +// * is a set of values in px, em or % that round choosen corner. Second +// * declaration can have one (for circle rounding) or two values (for +// * elliptical rounding). +// * +// * For further explanation of the border-radius property, refer to the +// * resources section above. +// * +// * Resources: +// * -- developer.mozilla.org/en/CSS/border-radius +// * +// * Browsers support: IE9, Fx3.5, Chrome, Opera, Safari, Opera Mobile, Android Browser +// * Notable lack of support: IE8-, Opera Mini +// * +// * Example: +// * 1. Round every corner of the element with 10px radius. +// * .border-radius(10px) +// * 2. Round top-left and bottom-right corners by 10px, top-right +// * and bottom-left corners by 20px. +// * .border-radius(10px 20px) +// * 3 Exemplary use of the .elliptical-border-radius class. +// * .elliptical-border-radius(10px 20px 30px, 40px 50px 60px 70px) +// * 4. Round top-right corner by 10px and 20px (elliptical). +// * .round-corner(top-right, 10px 20px) +// * .border-top-right-radius(10px 20px) // Alternate method. +// * 5. Round similar corners. +// * .border-top-radius(20px 10px); // top-left + top-right (elliptical) +// * .border-left-radius(5px); // top-left + bottom-left +// * +// */ + +// If your rounded corners looks bad with borders add this class to your rounded element. +// -> http://tumble.sneak.co.nz/post/928998513/fixing-the-background-bleed +.border-radius-fix(){.background-clip(padding-box);} + +.border-radius (@radius:5px, ...) { + -webkit-border-radius: @arguments; + -moz-border-radius: @arguments; + border-radius: @arguments; +} +// Alternate name for .border-radius. +.round-corners (@radius:5px, ...) {.border-radius(@arguments);} + +.elliptical-border-radius (@radius1, @radius2) { + -webkit-border-radius: @radius1 ~"/" @radius2; + -moz-border-radius: @radius1 ~"/" @radius2; + border-radius: @radius1 ~"/" @radius2; +} +.round-corner (top-left, @radius...){ + -webkit-border-top-left-radius: @radius; + -moz-border-top-left-radius: @radius; + border-top-left-radius: @radius; +} +.round-corner (top-right, @radius...){ + -webkit-border-top-right-radius: @radius; + -moz-border-top-right-radius: @radius; + border-top-right-radius: @radius; +} +.round-corner (bottom-right, @radius...) { + -webkit-border-bottom-right-radius: @radius; + -moz-border-bottom-right-radius: @radius; + border-bottom-right-radius: @radius; +} +.round-corner (bottom-left, @radius...) { + -webkit-border-bottom-left-radius: @radius; + -moz-border-bottom-left-radius: @radius; + border-bottom-left-radius: @radius; +} +// Another methods to use corner radius. +.border-top-left-radius (...) {.round-corner(top-left,@arguments);} +.border-top-right-radius (...) {.round-corner(top-right,@arguments);} +.border-bottom-right-radius (...) {.round-corner(bottom-right,@arguments);} +.border-bottom-left-radius (...) {.round-corner(bottom-left,@arguments);} + +// Round similar corners. +.border-top-radius (...) {.round-corner(top-left,@arguments);.round-corner(top-right,@arguments);} +.border-bottom-radius (...) {.round-corner(bottom-left,@arguments);.round-corner(bottom-right,@arguments);} +.border-left-radius (...) {.round-corner(top-left,@arguments);.round-corner(bottom-left,@arguments);} +.border-right-radius (...) {.round-corner(top-right,@arguments);.round-corner(bottom-right,@arguments);} + +// Another classes for the same purpose as above. +.round-top-corners (...) {.border-top-radius(@arguments);} +.round-bottom-corners (...) {.border-bottom-radius(@arguments);} +.round-left-corners (...) {.border-left-radius(@arguments);} +.round-right-corners (...) {.border-right-radius(@arguments);} + +///* +// * Opacity +// * Make an object transparent. +// * +// * Opacity takes values between 0.0 (invisible) to 1.0 (default - full +// * visibility) but 3L lets you also use percentages and values from >1 to 100. +// * +// * If you want an element with transparency 1, .5 or 0, use these classes: +// * .not-transparent., .half-transparent, .transparent. +// * +// * Browsers support: full (IE6+) +// * Caution! According to -> caniuse.com/#search=opacity, transparency doesn't +// * work well with PNG images that are itself transparent (use alpha channel) in IE8-. +// * +// * Aside: +// * Do we need the ability to set opacity in numbers from 1 to 100 +// * and in percentages? I think we do, because: +// * 1. You need to use integer numbers in filter property for IE, +// * so there is a possibility that someone will type this kind +// * of value, instead of [0,1]. +// * 2. LESS has a fade() function that uses percentages to makes +// * colours (semi)transparent, so using percentages here will +// * result in more consistent code (same unit in similar situation). +// * 3. Percentages are more intuitive when it comes to transparency and +// * opacity since graphic editors like Photoshop and GIMP use them. +// * +// */ + +.transparent() {.opacity(0);} +.non-transparent() {.opacity(1);} +.half-transparent () {.opacity(.5);} +.opacity () {.non-transparent();} +.opacity (@value) when (isnumber(@value)) and (@value =< 1){ + opacity: @value; + filter: ~"alpha(opacity="@value*100~")"; + } +.opacity (@value) when (isnumber(@value)) and (@value > 1) and not (ispercentage(@value)){ + // INFO: for the explanation of rule "and not (ispercentage(@value))" refer to the class below. + opacity: @value/100; + filter: ~"alpha(opacity="@value~")"; + } +.opacity (@value) when (ispercentage(@value)) { + // Change the @value from percentage to integer (XX% => XX) + @integerValue: `parseInt('@{value}')`; + // Actually the @value should be a number now... but it isn't. + // LESS think of it as a string so we can't do math here. + // We'll use a feature of LESS that automatically makes + // a second value's unit in a sum to be the same as the first one. + // In our case we need a number so we can divide it by 100. + opacity: (0 + @integerValue) /100; + // We don't need a math in filter so no trick. + filter: ~"alpha(opacity="@integerValue~")"; + + // BUG: WinLESS compile this with doubled properties unless the rule + // "and not (ispercentage(@value))" is added in the class above. + // In Firebug (through the LESS native compiler) those properties + // aren't doubled, though. + } + +///* +// * Gradient +// * Create a beautiful gradient without images. +// * +// * Pick a type of a gradient you want to have and put colours in +// * brackets. You can put either two or three colours. In the first case +// * the default colour for old browsers will be the same as the first colour provided. +// * In the second case you can set that colour as a third argument. +// * +// * The default class - .gradient - is the same as .vertical-gradient. +// * +// * You can choose from four types of gradients: +// * 1. Vertical - colour will change from top to bottom. +// * 2. Horizontal - change is from left to right. +// * 3. Diagonal - from top-left to bottom-right. +// * 4. Radial - from the centre of an element to its borders. +// * +// * Gradients tend to be tricky. There's no support for this property +// * in older IE, but "filter" comes to the rescue. It can generate +// * only horizontal and vertical gradients, though. Also IE9 has some +// * strange behaviour -> css3wizardry.com/2010/10/29/css-gradients-for-ie9/. +// * To provide the best experience for your visitors you should use +// * gradient generator (refer to resources above) with "IE9 Support" option checked. +// * +// * Resources: +// * -- gradient generator with broad browsers support and some advanced options: +// * -> www.colorzilla.com/gradient-editor/ +// * -- gradient is a powerful tool - you can generate shapes as a background! +// * -> lea.verou.me/css3patterns/ +// * +// * Browsers support: almost full +// * Notable lack of support: Opera mini +// * Caution! IE6 - IE8 use filter property that can generate only vertical and +// * horizontal gradients. For the best experience in IE9 use gradient generator +// * mentioned above in the resources. +// * +// * TODO: manual for .gradient(). Mention it's still compatible with previous versions of 3L since +// * you need to provide at least 4 values to use it. Anything less will use the old .gradient(). +// * You can provide as much stop colors as you want. +// */ + +// Multi-purpose gradient is in a BETA stage! Uncomment for your own responsibility. +///* +// * FIXME: you don't need to provide the @direction value since default is "to bottom". How to make it works? +// * FIXME: simple radial-gradient should work, but what if you provide some more advanced values? +// * FIXME: does it work with "to top left" and similar or angles? +// */ +// .gradient(@gradientType, @direction, @rest...) { + // @valuesProcessed: ~`"@{rest}".replace(/[\[\]]/g, '')`; + // @directionProcessedOld: ~`"@{direction}".replace(/[\[\]]|\,/g,'').replace("to ","").replace("top","bottom").replace("bottom","top").replace("right","left").replace("left","right").replace("at ","").replace("cover", "farthest-corner")`; + // @directionProcessedNew: ~`"@{direction}".replace(/[\[\]]|\,/g,'')`; +// + // @webkit1: `"-webkit-" + "@{gradientType}" + "-gradient(" + "@{directionProcessedOld}," + "@{valuesProcessed}" + ")"`; + // @webkit2: ~`'@{webkit1}'.replace(/\"/g, '')`; + // background-image: @webkit2; +// + // @moz1: `"-moz-" + "@{gradientType}" + "-gradient(" + "@{directionProcessedOld}," + "@{valuesProcessed}" + ")"`; + // @moz2: ~`'@{moz1}'.replace(/\"/g, '')`; + // background-image: @moz2; +// + // @o1: `"-o-" + "@{gradientType}" + "-gradient(" + "@{directionProcessedOld}," + "@{valuesProcessed}" + ")"`; + // @o2: ~`'@{o1}'.replace(/\"/g, '')`; + // background-image: @o2; +// + // @w3c1: `"@{gradientType}" + "-gradient(" + "@{directionProcessedNew}," + "@{valuesProcessed}" + ")"`; + // @w3c2: ~`'@{w3c1}'.replace(/\"/g, '')`; + // background-image: @w3c2; +// } + +.gradient (@color1, @color2){ + background: @color1; + background-image: -moz-linear-gradient(top, @color1 0%, @color2 100%); + background-image: -webkit-linear-gradient(top, @color1 0%,@color2 100%); + background-image: -o-linear-gradient(top, @color1 0%,@color2 100%); + background-image: linear-gradient(to bottom, @color1 0%,@color2 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{color1}', endColorstr='@{color2}',GradientType=0 ); +} + + +.gradient (@color1, @color2, @color3){ + background: @color3; + background-image: -moz-linear-gradient(top, @color1 0%, @color2 100%); + background-image: -webkit-linear-gradient(top, @color1 0%,@color2 100%); + background-image: -o-linear-gradient(top, @color1 0%,@color2 100%); + background-image: linear-gradient(to bottom, @color1 0%,@color2 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{color1}', endColorstr='@{color2}',GradientType=0 ); +} +// .vertical-gradient = .gradient +.vertical-gradient (@color1,@color2) {.gradient(@color1,@color2)} +.vertical-gradient (@color1,@color2,@color3) {.gradient(@color1,@color2,@color3)} +.horizontal-gradient (@color1, @color2) { + background: @color1; + background-image: -moz-linear-gradient(left, @color1 0%, @color2 100%); + background-image: -webkit-linear-gradient(left, @color1 0%,@color2 100%); + background-image: -o-linear-gradient(left, @color1 0%,@color2 100%); + background-image: linear-gradient(to right, @color1 0%,@color2 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{color1}', endColorstr='@{color2}',GradientType=1 ); +} +.horizontal-gradient (@color1, @color2, @color3) { + background: @color3; + background-image: -moz-linear-gradient(left, @color1 0%, @color2 100%); + background-image: -webkit-linear-gradient(left, @color1 0%,@color2 100%); + background-image: -o-linear-gradient(left, @color1 0%,@color2 100%); + background-image: linear-gradient(to right, @color1 0%,@color2 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{color1}', endColorstr='@{color2}',GradientType=1 ); +} +.diagonal-gradient (@color1, @color2) { + background: @color1; + background-image: -moz-linear-gradient(-45deg, @color1 0%, @color2 100%); + background-image: -webkit-linear-gradient(-45deg, @color1 0%,@color2 100%); + background-image: -o-linear-gradient(-45deg, @color1 0%,@color2 100%); + background-image: linear-gradient(135deg, @color1 0%,@color2 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{color1}', endColorstr='@{color2}',GradientType=1 ); + } +.diagonal-gradient (@color1, @color2,@color3) { + background: @color3; + background-image: -moz-linear-gradient(-45deg, @color1 0%, @color2 100%); + background-image: -webkit-linear-gradient(-45deg, @color1 0%,@color2 100%); + background-image: -o-linear-gradient(-45deg, @color1 0%,@color2 100%); + background-image: linear-gradient(135deg, @color1 0%,@color2 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{color1}', endColorstr='@{color2}',GradientType=1 ); + } +.radial-gradient (@color1, @color2) { + background: @color1; + background-image: -moz-radial-gradient(center, @color1 0%, @color2 100%); + background-image: -webkit-radial-gradient(center, @color1 0%,@color2 100%); + background-image: -o-radial-gradient(center, @color1 0%,@color2 100%); + background-image: radial-gradient(at center, @color1 0%,@color2 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{color1}', endColorstr='@{color2}',GradientType=1 ); + } +.radial-gradient (@color1, @color2,@color3) { + background: @color3; + background-image: -moz-radial-gradient(center, @color1 0%, @color2 100%); + background-image: -webkit-radial-gradient(center, @color1 0%,@color2 100%); + background-image: -o-radial-gradient(center, @color1 0%,@color2 100%); + background-image: radial-gradient(at center, @color1 0%,@color2 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{color1}', endColorstr='@{color2}',GradientType=1 ); + } + +///* +// * Background-size +// * Scale (or not) your background image. +// * +// * This property takes following values: +// * -- auto [default] - it does nothing when used alone; when used with a value +// * it makes sure that image will keep its aspect ratio while being stretched +// * to the required size. (See: examples 3. and 4.) +// * -- contain - scale image to the first border it meets; +// * it may leave some area uncovered but keeps image's aspect ratio, +// * -- cover - scale image to the second border it meets; +// * cover all area but part of an image may not be shown. The image keeps its aspect ratio. +// * -- px, em, % - scale image according to declared value; +// * you can declare one value (x-size) or two values for each size. +// * Using (100%, 100%) stretch the image to cover full area but may not +// * keep its aspect ratio. When you use percentages keep in mind that XX% +// * means XX% of the element size, not XX% of the background image. +// * +// * Consider adding background-repeat property to avoid unwanted repetition of background. +// * +// * Browsers support: IE9+, Fx3.6+, Chrome, Safari, Opera, Opera Mini, Opera Mobile, Android Browser +// * Notable lack of support: IE8- +// * +// * Examples: +// * 1. .background-size(contain); +// * 2. .background-size(cover); +// * 3. .background-size(70%); // = (70% auto). Image is scaled to take 70% of width +// * // of the element and it keeps its own aspect ratio. +// * 4. .background-size(auto, 70%) // Image is scaled to take 70% of element's +// * // height and keeps aspect ratio. +// * 5. background-size(70px 7em); // Size of the background image is now 70px (width) x 7em (height). +// * 6. background-size(70px,7em); // Same as above. Comma is fine too. +// * +// */ + +.background-size (...) { + -moz-background-size: @arguments; + background-size: @arguments; + } +// A shorthand class. +.bg-size (...) {.background-size(@arguments)} + +///* +// * Columns layout +// * +// * Divide a block of text into columns as seen in newspapers. +// * +// * Basic usage: +// * Use .columns() class providing in brackets arguments for columns. +// * Non of those arguments are required, but unless you provide one, columns +// * layout won't work. Available arguments: +// * -- integer - declare a column-count. Unless declared, their width will +// * equal to division of the block's width minus column-gaps and declared integer. +// * Default value is "auto" which means that width of columns will be determined +// * by column-width value. +// * -- width - declare every column width in px, em and % (of containing block). +// * Default value is "auto" - column width will be equal to division of the +// * block's width and declared column-count +// * +// * Usage of supporting classes: +// * You can declare the gaps between columns by .column-gap() class that takes +// * width type argument. Default value is "normal" and equals to 1em. +// * +// * Declare a vertical rule between columns using .column-rule(). It's the same +// * type of declaration as in borders, that is width, style and colour. By default +// * there is no rule. +// * +// * Browsers support: IE10+, Fx, Chrome, Safari, Opera, Opera Mobile, Android Browser +// * Notable lack of support: IE9-, Opera Mini +// * +// * Example: +// * 1. .column(2, 20px) // Two columns with 20px width. +// * 2. .column(5) // Five columns layout. +// * 3. element { +// * .column(100px); // A 100px width columns +// * .column-gap(10px); // with 10px gap between +// * .column-rule(1px solid black); // and 1px thick, solid, black vertical rule. +// * } +// * +// */ + +.columns (...) { + -webkit-columns: @arguments; + -moz-columns: @arguments; + columns: @arguments; + } +.column-gap (@gap) { + -webkit-column-gap: @gap; + -moz-column-gap: @gap; + column-gap: @gap; + } +.columns-gap (@gap) {.column-gap(@gap);} +.column-rule (...) { + -webkit-column-rule: @arguments; + -moz-column-rule: @arguments; + column-rule: @arguments; + } +.columns-rule (...) {.column-rule(@arguments);} +.column-fill (@fill) { + -webkit-column-fill: @fill; + -moz-column-fill: @fill; + column-fill: @fill; +} +.columns-fill (@fill) {.column-fill(@fill);} + +///* +// * Transform +// * 2D and 3D transformation of an object. +// * +// * You can use classes dedicated to specifics transformation, but if you plan +// * to use multiple transformation on an object, use general classes .transform +// * or .transform3d instead. Otherwise the latter transform will override the former. +// * If you want to use some of the 3D transformations, use .transform3d class. It +// * has a 3D specific property transform-style included. You can put both 3D and 2D +// * transformations in .transform3D. +// * +// * Transforms don't affect an object's place in a document and its environment +// * so there's no risk of crashing a layout. +// * +// * Transformations characteristics: +// * -- Rotate takes one argument and rotate object clockwise by specified angle (in deg). +// * -- Scale takes one or two arguments (x,y). If y is not specified it is assumed that x = y. +// * Arguments in interval (0,1) shrink the object. Arguments >1 makes it bigger. +// * -- Skew takes one or two arguments (x,y). If y is not specified it is assumed that y = 0 (no y-skew). +// * Arguments must be in deg. +// * -- Translate takes one or two arguments (w,y). If y is not specified it is assumed y = 0 (no y-translate). +// * Arguments are in px or em. Translate moves the object by specified value. +// * +// * Sometimes you might want to control the point that is the relative base of transformations. +// * For that reason use .transform-origin class. That class takes one or two values. +// * First value defines horizontal position of that point, second refers to vertical position. +// * In case you provide only the first value, the second is set to 50%. Default value is (50% 50%). +// * You can use three types of values: +// * -- pixels that place origin point in position according to the top-left corner of an element +// * to its bottom-right corner. Negative values allowed - in that case position goes to the left +// * and top from the top-left corner, +// * -- percentages that are relative to object's width and height. As in px, the original position +// * is top-left corner (0% 0%), and goes to bottom-right (100% 100%). Negative values does the +// * same as in px. +// * -- keywords: left / center / right for x-axis and top / center / bottom for y-axis. +// * +// * For 3D transformations you can set a perspective using .perspective() class and putting +// * value in brackets . +// * +// * Browsers support: IE9+, Fx3,5+, Chrome, Safari, Opera, Opera Mobile, Android Browser +// * Notable lack of support: IE8-*, Opera Mini +// * * You can use some of the transformation in older IE through filter property. +// * To generate that property refer to -> css3please.com. +// * You can also emulate scale property with zoom property. +// * +// * Examples: +// * 1. .scale(2,.5) // Stretch an object two times and shrink in height by half. +// * 2. .rotate(180deg) // Rotate an object by 180deg. +// * 3. .transform(.scale(2,.5),rotate(180deg)) // Does the combined transformation from examples above. +// * 4. .transform-origin(20% top) // Place the transformation origin at the top, 20% of the object's +// * // width to the right from the top-left corner. +// */ + +.transform-origin (...) { + -webkit-transform-origin: @arguments; + -moz-transform-origin: @arguments; + -ms-transform-origin: @arguments; + -o-transform-origin: @arguments; + transform-origin: @arguments; + } +.perspective (...) { + -webkit-perspective: @arguments; + -moz-perspective: @arguments; + -o-perspective: @arguments; + perspective: @arguments; + } +.backface-visibility(@visibility){ + -webkit-backface-visibility: @visibility; + backface-visibility: @visibility; +} +.transform (...) { + -webkit-transform: @arguments; + -moz-transform: @arguments; + -ms-transform: @arguments; + -o-transform: @arguments; + transform: @arguments; + } +.transform3d (...) { + -webkit-transform: @arguments; + -webkit-transform-style: preserve-3d; + -moz-transform: @arguments; + -moz-transform-style: preserve-3d; + -o-transform: @arguments; + -o-transform-style: preserve-3d; + transform: @arguments; + transform-style: preserve-3d; +} +.rotate (@rotate) { + -webkit-transform: rotate(@rotate); + -moz-transform: rotate(@rotate); + -ms-transform: rotate(@rotate); + -o-transform: rotate(@rotate); + transform: rotate(@rotate); + } +.rotate3d (@deg1, @deg2:0, @deg3:0){ + -webkit-transform: rotateX(@deg1) rotateY(@deg2) rotateZ(@deg3); + -webkit-transform-style: preserve-3d; + -moz-transform: rotateX(@deg1) rotateY(@deg2) rotateZ(@deg3); + -moz-transform-style: preserve-3d; + -o-transform: rotateX(@deg1) rotateY(@deg2) rotateZ(@deg3); + -o-transform-style: preserve-3d; + transform: rotateX(@deg1) rotateY(@deg2) rotateZ(@deg3); + transform-style: preserve-3d; + } +.scale (@scale) { + -webkit-transform: scale(@scale); + -moz-transform: scale(@scale); + -ms-transform: scale(@scale); + -o-transform: scale(@scale); + transform: scale(@scale); + } +.scale (@scale1,@scale2) { + -webkit-transform: scale(@scale1,@scale2); + -moz-transform: scale(@scale1,@scale2); + -ms-transform: scale(@scale1,@scale2); + -o-transform: scale(@scale1,@scale2); + transform: scale(@scale1,@scale2); + } +.scaleX (@scale) { + -webkit-transform: scaleX(@scale); + -moz-transform: scaleX(@scale); + -ms-transform: scaleX(@scale); + -o-transform: scaleX(@scale); + transform: scaleX(@scale); + } +.scaleY (@scale) { + -webkit-transform: scaleY(@scale); + -moz-transform: scaleY(@scale); + -ms-transform: scaleY(@scale); + -o-transform: scaleY(@scale); + transform: scaleY(@scale); + } +.skew (@skew) { + .skewX(@skew); + } +.skew (@skew1, @skew2) { + -webkit-transform: skewX(@skew1) skewY(@skew2); + -moz-transform: skewX(@skew1) skewY(@skew2); + -ms-transform: skewX(@skew1) skewY(@skew2); + -o-transform: skewX(@skew1) skewY(@skew2); + transform: skewX(@skew1) skewY(@skew2); + } +.skewX (@skew) { + -webkit-transform: skewX(@skew); + -moz-transform: skewX(@skew); + -ms-transform: skewX(@skew); + -o-transform: skewX(@skew); + transform: skewX(@skew); + } +.skewY (@skew) { + -webkit-transform: skewY(@skew); + -moz-transform: skewY(@skew); + -ms-transform: skewY(@skew); + -o-transform: skewY(@skew); + transform: skewY(@skew); + } +.translate (@translate) { + -webkit-transform: translate(@translate); + -moz-transform: translate(@translate); + -ms-transform: translate(@translate); + -o-transform: translate(@translate); + transform: translate(@translate); + } +.translate (@translate1, @translate2) { + -webkit-transform: translate(@translate1, @translate2); + -moz-transform: translate(@translate1, @translate2); + -ms-transform: translate(@translate1, @translate2); + -o-transform: translate(@translate1, @translate2); + transform: translate(@translate1, @translate2); + } +.translateX (@translate) { + -webkit-transform: translateX(@translate); + -moz-transform: translateX(@translate); + -ms-transform: translateX(@translate); + -o-transform: translateX(@translate); + transform: translateX(@translate); + } +.translateY (@translate) { + -webkit-transform: translateY(@translate); + -moz-transform: translateY(@translate); + -ms-transform: translateY(@translate); + -o-transform: translateY(@translate); + transform: translateY(@translate); + } + +///* +// * Transition +// * Animate a change between different object states. +// * +// * You can use this class to animate change of up to 5 different properties. +// * If you need more that that (wow!) it's easy to add more of these classes. +// * +// * Transition takes 4 values: +// * -- transition-property - choose a property you want to animate (margin, colour etc.). +// * Default value is "all" which will animate every change that might happen. It's a good +// * idea to explicitly write this value if you want to animate everything, though. We can't +// * be sure if in the future default state won't change to "none", which will break the whole transition. +// * -- transition-duration - specifies how long transition animation will have to take +// * until animation is finished. Put values in s (seconds) or ms (milliseconds). +// * Required value, since default state is 0s (no animation occurs). +// * -- transition-timing-function - this value describe an acceleration function. It can +// * really affect overall experience, so it's good idea to pay attention to that. +// * Timing function takes 4 number values of keywords: linear, ease, ease-in, +// * ease-in-out, ease-out. For further explanation refer to ->developer.mozilla.org/en/CSS/timing-function +// * Default value is "ease". +// * -- transition-delay - in seconds or millisecond describes how long transition will wait +// * until it occurs after a triggering requirement was met. Default value is 0 - instant animation. +// * +// * In case you want to put a transformation property into transition effect, use +// * the .transition-transform class. This class is prepared to automatically add +// * many browsers prefixes required in that case. It is also a bit future friendly, +// * but all at all using transitions on transform is very risky. +// * -> http://radiatingstar.com/transition-with-transform-cant-be-future-proof +// * +// * Usage: +// * For .transition class, put in brackets at least a time value. If you want to animate more than one +// * property or animate everything with different functions, put up to 5 declarations separated with +// * commas. If one of the property you want to animate is "transform" _and_ you want to animate every +// * other properties (or at least not with the same functions), use .transition-transform. As a first +// * value put a time duration for transform property. Do not write this property though. It's auto-added +// * for the first set of values. Add other properties after commas. Refer to the example 3. +// * +// * Browsers support: IE10+, Fx4+, Chrome, Opera, Safari, Opera Mobile, Android Browser +// * Notable lack of support: IE9-, Fx3.6-, Opera Mini +// * *** Transition provides only a visual effects between states. It's perfectly +// * *** safe to use. Users with older browser just won't see a phase of changing. +// * +// * Examples: +// * 1. .transition (all 1s); // Animate all properties for 1 second. +// * 2. .transition (background-color 5s, margin 1s linear 5s) // Animate change of background-color for 5s +// * // and after 5s animate margin change for 1s. +// * 3. .transition-transform (2s linear, padding 3s) // Animate change of transform property (no "transform" declared!) +// * // and padding property. +// * +// * Solution for multiple transitions in a single mixin taken from http://www.toekneestuck.com/blog/2012/05/15/less-css-arguments-variable/ +// */ + +.transition(@transition1, @transition2:X, ...){ + @transitions: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`; + -webkit-transition: @transitions; + -moz-transition: @transitions; + -o-transition: @transitions; + transition: @transitions; +} +.transition-transform (@transformArguments1, @transformArguments2:X, ...) { + @transformArguments: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`; + -webkit-transition: -webkit-transform @transformArguments; + -moz-transition: -moz-transform @transformArguments; + -o-transition: -o-transform @transformArguments; + transition: transform @transformArguments; +} +// FIXME: The specyfic properties also require the unlimited arguments feature. +.transition-property(...) { + -webkit-transition-property: @arguments; + -moz-transition-property: @arguments; + -o-transition-property: @arguments; + transition-property: @arguments; +} +.transition-duration(...) { + -webkit-transition-duration: @arguments; + -moz-transition-duration: @arguments; + -o-transition-duration: @arguments; + transition-duration: @arguments; +} +.transition-timing-function(...) { + -webkit-transition-timing-function: @arguments; + -moz-transition-timing-function: @arguments; + -o-transition-timing-function: @arguments; + transition-timing-function: @arguments; +} +.transition-delay(...) { + -webkit-transition-delay: @arguments; + -moz-transition-delay: @arguments; + -o-transition-delay: @arguments; + transition-delay: @arguments; +} + +///* +// * Animations +// * +// * Create an awesome animation! +// * +// * This class takes from two to five properties: +// * -- animation-name [required] - declare your @keyframes animation name. See below +// * for an easy way to make @keyframes! +// * -- animation-duration [required] - declare how long will it take for an animation +// * to reach end. Value in seconds (s) or milliseconds (ms). +// * -- timing-function - it's the same property as in transition. Refer to +// * that topic for further explanation. +// * -- iteration-count - how many times an animation will repeat. It takes integer +// * or "infinite" keyword (for infinite repetition). Default value is 1. +// * -- direction - indicates whether the animation should play in reverse on +// * alternate cycles. Refer to ->developer.mozilla.org/en/CSS/animation-direction +// * for better explanation. To declare a direction use normal [default value], +// * alternate, reverse or alternate-reverse keyword. +// * +// * Resources: +// * -- developer.mozilla.org/en/CSS/animation +// * +// * Creating @keyframes: +// * Write in your .less file: +// * *** @import 'animationX.less'; +// * where X stands for a number between 1 and 5. Then create a class +// * *** .animationX () {} +// * and in {} write declarations you normally write in @keyframes. +// * Then just put an .animation(animationX [other animation properties]) class in your element. +// * That's all! +// * +// * Example: +// * .toBeAnimated { +// * // Animation with every possible value declared. // +// * .animation(animation1 5s linear 3s infinite alternate); +// * } +// * // Importing prefixed @keyframes for animation1. +// * @import '3L/assets/animations/animation1'; +// * +// * // Declaring @keyframes for animation. Only once! +// * .animation1() { +// * from {margin-top: 3px;} +// * to {margin-top: 333px;} +// * } +// * +// */ + +.animation (...) { + -webkit-animation: @arguments; + -moz-animation: @arguments; + -o-animation: @arguments; + animation: @arguments; + } +.animate (...) {.animation(@arguments);} +.anime (...) {.animation(@arguments);} +// FIXME: The specyfic properties also require the unlimited arguments feature. +.animation-name(...) { + -webkit-animation-name: @arguments; + -moz-animation-name: @arguments; + -o-animation-name: @arguments; + animation-name: @arguments; +} +.animation-duration(...) { + -webkit-animation-duration: @arguments; + -moz-animation-duration: @arguments; + -o-animation-duration: @arguments; + animation-duration: @arguments; +} +.animation-timing-function(...) { + -webkit-animation-timing-function: @arguments; + -moz-animation-timing-function: @arguments; + -o-animation-timing-function: @arguments; + animation-timing-function: @arguments; +} +.animation-delay(...) { + -webkit-animation-delay: @arguments; + -moz-animation-delay: @arguments; + -o-animation-delay: @arguments; + animation-delay: @arguments; +} +.animation-iteration-count(...) { + -webkit-animation-iteration-count: @arguments; + -moz-animation-iteration-count: @arguments; + -o-animation-iteration-count: @arguments; + animation-iteration-count: @arguments; +} +.animation-direction(...) { + -webkit-animation-direction: @arguments; + -moz-animation-direction: @arguments; + -o-animation-direction: @arguments; + animation-direction: @arguments; +} +.animation-fill-mode(...) { + -webkit-animation-fill-mode: @arguments; + -moz-animation-fill-mode: @arguments; + -o-animation-fill-mode: @arguments; + animation-fill-mode: @arguments; +} + +///* +// * User-select +// * controls the selection model and granularity of an element. +// * +// * This property takes following values: +// * -- none - none of the element's content can be selected. +// * -- text [default] - the element's contents follow a standard text content selection model. +// * -- toggle - the element's contents follow a standard toggling content model. +// * -- element - one element at a time may be selected. +// * -- elements - one or more elements at a time may be selected. +// * -- all - Only the entire contents as a whole can be selected. +// * +// * Browsers support: IE10+, Fx0.6+, Chrome, Safari +// * Notable lack of support: IE9-, Opera +// * +// */ + +.user-select (...) { +-webkit-touch-callout: @arguments; +-webkit-user-select: @arguments; +-khtml-user-select: @arguments; +-moz-user-select: @arguments; +-ms-user-select: @arguments; +user-select: @arguments; +} + +///* +// * Filter +// * +// * Advanced image manipulation in your CSS! +// * +// * Note: the filter property works only in Webkit for now. Will the prefixed version for other +// * vendors be supported, is unknown, so the mixin might for now generate useles code. +// * You might want to use just the -webkit-filter property without the help of .filter() mixin. +// * +// * drop-shadow and opacity might be hardware accelerated. +// * +// * Resources: http://www.html5rocks.com/en/tutorials/filters/understanding-css/ +// * +// * TODO: requires testing +// */ +// FIXME: .filter() requires the unlimited arguments feature. +.filter(...) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.grayscale(@amount) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.sepia(@amount) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.saturate(@amount) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.hue-rotation(@angle) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.invert(@amount) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +// .opacity() already taken, hence the -filter suffix. +.opacity-filter(@amount) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.brightness(@amount) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.contrast(@amount) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.blur(@radius) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.drop-shadow(@shadow) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} +.url(@url) { + -webkit-filter: @arguments; + -moz-filter: @arguments; + -ms-filter: @arguments; + -o-filter: @arguments; + filter: @arguments; +} + +///* +// * Border image +// * +// * Browsers support: Chrome, Firefox, Safari, Opera, Chrome for Android, Android Browser, Opera Mobile, Firefox for Android +// * Notable lack of support: IE, Opera Mini +// */ +.border-image(@url, @rest...) { + -webkit-border-image:url(@url) @rest; + -o-border-image:url(@url) @rest; + border-image:url(@url) @rest; +} + +///* +// * Flexible Box Model +// * +// * Resources: https://developer.mozilla.org/en-US/docs/CSS/Using_CSS_flexible_boxes +// * +// * Browsers Support: Chrome, Firefox 18*, Opera 12.1, Opera Mini 12.1 +// * Notable lack of support: IE, Firefox 17 (stable), Safari, Chrome for Android +// */ + +.display-flex() { + display: -webkit-flex; + display: -moz-flex; + display: flex; +} +.display-inline-flex(){ + display: -webkit-inline-flex; + display: -moz-inline-flex; + display: inline-flex; +} +.flex-direction(@direction) { + -webkit-flex-direction: @direction; + -moz-flex-direction: @direction; + flex-direction: @direction; +} +.justify-content(@alignment) { + -webkit-justify-content: @alignment; + -moz-justify-content: @alignment; + justify-content: @alignment; +} +.align-content(@alignment) { + -webkit-align-content: @alignment; + -moz-align-content: @alignment; + align-content: @alignment; +} +.align-items(@alignment) { + -webkit-align-items: @alignment; + -moz-align-items: @alignment; + align-items: @alignment; +} +.align-self(@alignment) { + -webkit-align-self: @alignment; + -moz-align-self: @alignment; + align-self: @alignment; +} +.flex(@arguments){ + -webkit-flex: @arguments; + -moz-flex: @arguments; + flex: @arguments; +} +.flex-basis(@basis) { + -webkit-flex-basis: @basis; + -moz-fles-basis: @basis; + flex-basis: @basis; +} +.flex-grow(@grow) { + -webkit-flex-grow: @grow; + -moz-flex-grow: @grow; + flex-grow: @grow; +} +.flex-shrink(@shrink) { + -webkit-flex-shrink: @shrink; + -moz-flex-shrink: @shrink; + flex-shrink: @shrink; +} +.flex-flow(@arguments) { + -webkit-flex-flow: @arguments; + -moz-flex-flow: @arguments; + flex-flow: @arguments; +} +.flex-direction(@direction) { + -webkit-flex-direction: @direction; + -moz-flex-direction: @direction; + flex-direction: @direction; +} +.flex-wrap(@wrap) { + -webkit-flex-wrap: @wrap; + -moz-flex-wrap: @wrap; + flex-wrap: @wrap; +} +.order(@order) { + -webkit-order: @order; + -moz-order: @order; + order: @order; +} + +///* +// * Appearance +// */ + +.appearance (@appearance) { + -webkit-appearance: @appearance; + -moz-appearance: @appearance; +} + +///* +// * Selection +// * +// * You can use it on the root of your CSS or inside a specyfic element. +// * +// * Examples: +// * 1. .selection(red, blue); +// * 2. p{ +// * .selection(red, blue) +// * } +// */ + +.selection(@text-color, @background-color) { + &::-moz-selection {color: @text-color; background-color: @background-color;} + &::selection {color: @text-color; background-color: @background-color;} +} + +///* +// * hasLayout +// * +// * http://reference.sitepoint.com/css/haslayout +// */ + +.hasLayout() {*zoom: 1;} + +///* +// * Normalize +// */ + +.normalize(){article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}} + +///* +// * Reset +// */ + +.reset() {html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}} + +///* +// * HTML5 Boiler Plate's default stylesheets. +// */ +.h5bp() {html,button,input,select,textarea{color:#222}body{font-size:1em;line-height:1.4}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}img{vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}} +.h5bp-print() {@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important;} a,a:visited{text-decoration:underline;} a[href]:after{content:" (" attr(href) ")";} abbr[title]:after{content:" (" attr(title) ")";} .ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:"";} pre,blockquote{border:1px solid #999;page-break-inside:avoid;} thead{display:table-header-group;} tr,img{page-break-inside:avoid;} img{max-width:100% !important;} @page {margin:0.5cm;}p,h2,h3{orphans:3;widows:3;} h2,h3{page-break-after:avoid;}}.przerwa{color:#ff0000;}} + + +.ninja() { + color: black; + visibility: hidden; +} + diff --git a/docs/_themes/jrnl/static/less/jrnl.less b/docs/_themes/jrnl/static/less/jrnl.less new file mode 100644 index 00000000..10863157 --- /dev/null +++ b/docs/_themes/jrnl/static/less/jrnl.less @@ -0,0 +1,208 @@ +@import "retina"; +@import "3L"; + +@white: #f7f8f9; +@blue: #5e7dc5; +@blue-light: #7c95ca; +@terminal: #2f1e34; +@purple: #47375d; +@purple-shade: #413155; +@purple-light: #725794; +@purple-light-shade: #564371; +@orange: #deaa09; + +.icon, + { + .sprite("../img/icons.png", 32px, 5, 3, 8px); + &.share {.sprite(0, 0)}; + &.future {.sprite(1, 0)}; + &.search {.sprite(2, 0)}; + &.nli {.sprite(3, 0)}; + &.secure {.sprite(4, 0)}; + &.sync {.sprite(0, 1)}; + &.dayone {.sprite(1, 1)}; + &.github {.sprite(2, 1)}; + &.folders{.sprite(3, 1)}; + &.cal {.sprite(4, 1)}; + &.left {.sprite(0, 2)}; + &.right {.sprite(1, 2)}; + &.info {.sprite(2, 2)}; + } + +.terminal + { + background: @terminal; + .border-radius(6px); + @p: 20px; + padding: @p + 30px @p (@p - 10px) @p; + margin: 40px auto; + width: 500px; + .box-shadow(0px 1px 8px darken(@white, 30)); + position: relative; + color: @white; + font-family: "Monaco", "Courier New"; + font-size: 12pt; + #args {color: #f6f7b9} + #output {color: #9278b5} + &:before + { + content: "Terminal"; + display: block; + width: 100%; + position: absolute; + left: 0; + .box-shadow(inset 0px 1px 0px #f4f4f4, inset 0px -1px 0px #888); + margin-top: -50px; + // margin: -@p -@p 0px -@p; + text-align: center; + height: 30px; + line-height: 30px; + color: #777; + text-shadow: 0px 1px 0px #ddd; + .border-radius(5px 5px 0px 0px); + .gradient(#eaeaea, #bababa); + } + &:after + { + content: ""; + width: 48px; + height: 30px; + position: absolute; + top: 0px; + left: 10px; + background: url(../img/terminal.png) no-repeat center center; + } + } + +body#landing + { + background-color: @purple; + font-family: "Open Sans", "Helvetica Neue", sans-serif; + font-weight: 300; + #title, .row3, .row4, #prompt + { + width: 900px; + margin: 0px auto; + } + #upper + { + .clearfix; + background: @white; + .box-shadow(inset 0px -6px 6px -3px darken(@white, 10)); + #title + { + width: 650px; + margin: 150px auto 75px auto; + } + img + { + float: left; + margin-right: 30px; + } + h1 + { + color: @purple-light-shade; + font-weight: 300; + } + #prompt + { + width: 640px; + margin: 0 auto; + .clearfix; + } + .terminal + { + .border-radius(6px 6px 0px 0px); + float: left; + margin: 0px; + width: 500px; + min-height: 134px; + .border-box-sizing; + } + .pleft, .pright + { + text-align: center; + .border-box-sizing; + float: left; + padding-top: 50px; + width: 70px; + i {.opacity(60);} + i:hover {.opacity(1000); cursor: pointer;} + } + } + #nav + { + .gradient(@blue-light, @blue); + height: 60px; + .box-shadow(0px 6px 6px -3px @purple-shade); + text-align: center; + a + { + color: @white; + text-shadow: 0px -1px 0px darken(@blue, 30); + text-decoration: none; + font-size: 14pt; + line-height: 60px; + margin: 0 40px; + &:hover + { + color: lighten(@orange, 20); + text-shadow: 0px -1px 0px darken(@orange, 15); + } + } + a.cta + { + .gradient(@purple-light, @purple-light-shade); + .box-shadow(0px 1px 0px @purple-shade); + .border-radius(5px); + padding: 6px 10px 5px 10px; + &:hover + { + .gradient(lighten(@orange, 10), darken(@orange, 5)); + .box-shadow(0px 1px 0px darken(@orange, 15)); + text-shadow: 0px -1px 0px darken(@orange, 15); + color: @white; + + } + } + } + #lower + { + color: @white; + padding-top: 40px; + a + { + color: @orange; + text-decoration: none; + &:hover + { + color: lighten(@orange, 20); + text-decoration: underline; + } + } + .row3, .row4 { + .clearfix; + margin-bottom: 20px; + .col + { + position: relative; + padding-left: 40px; + i + { + position: absolute; + left: 0; + top: 16px; + } + h3 {font-size: 12pt; margin-bottom: .5em;} + p {font-size: 10pt; margin: 0;} + float: left; + width: 25%; + padding-right: 2%; + .border-box-sizing; + &:last-child {padding-right: 0;} + } + } + .row3 .col { width: 33.3333%; } + .row4 .col { color: mix(@white, @purple, 80); i {.opacity(80);}} + } + } diff --git a/docs/_themes/jrnl/static/less/retina.less b/docs/_themes/jrnl/static/less/retina.less new file mode 100644 index 00000000..3c006c45 --- /dev/null +++ b/docs/_themes/jrnl/static/less/retina.less @@ -0,0 +1,35 @@ +// A helper mixin for applying high-resolution background images (http://www.retinajs.com) + +@highdpi: ~"(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)"; + +.at2x(@path, @w: auto, @h: auto) { + background-image: url(@path); + @at2x_path: ~`@{path}.replace(/\.\w+$/, function(match) { return "@2x" + match; })`; + background-size: @w @h; + + @media @highdpi { + background-image: url("@{at2x_path}"); + } +} + +// Sprite mixin, see https://coderwall.com/p/oztebw + +.sprite (@path, @size, @w, @h, @pad: 0) when (isstring(@path)) + { + background-image: url(@path); + width: @size; + height: @size; + display: inline-block; + @at2x_path: ~`@{path}.replace(/\.[\w\?=]+$/, function(match) { return "@2x" + match; })`; + font-size: @size + @pad; + background-size: (@size + @pad) * @w (@size + @pad) * @h; + @media @highdpi + { + background-image: url("@{at2x_path}"); + } + } + +.sprite(@x, @y) + { + background-position: -@x * 1em -@y * 1em; + } diff --git a/docs/_themes/jrnl/static/normalize.css b/docs/_themes/jrnl/static/normalize.css new file mode 100755 index 00000000..6e8e42d8 --- /dev/null +++ b/docs/_themes/jrnl/static/normalize.css @@ -0,0 +1,527 @@ +/*! normalize.css v1.1.2 | MIT License | git.io/normalize */ + +/* ========================================================================== + HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +summary { + display: block; +} + +/** + * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3. + */ + +audio, +canvas, +video { + display: inline-block; + *display: inline; + *zoom: 1; +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4. + * Known issue: no IE 6 support. + */ + +[hidden] { + display: none; +} + +/* ========================================================================== + Base + ========================================================================== */ + +/** + * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using + * `em` units. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-size: 100%; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Address `font-family` inconsistency between `textarea` and other form + * elements. + */ + +html, +button, +input, +select, +textarea { + font-family: sans-serif; +} + +/** + * Address margins handled incorrectly in IE 6/7. + */ + +body { + margin: 0; +} + +/* ========================================================================== + Links + ========================================================================== */ + +/** + * Address `outline` inconsistency between Chrome and other browsers. + */ + +a:focus { + outline: thin dotted; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* ========================================================================== + Typography + ========================================================================== */ + +/** + * Address font sizes and margins set differently in IE 6/7. + * Address font sizes within `section` and `article` in Firefox 4+, Safari 5, + * and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +h2 { + font-size: 1.5em; + margin: 0.83em 0; +} + +h3 { + font-size: 1.17em; + margin: 1em 0; +} + +h4 { + font-size: 1em; + margin: 1.33em 0; +} + +h5 { + font-size: 0.83em; + margin: 1.67em 0; +} + +h6 { + font-size: 0.67em; + margin: 2.33em 0; +} + +/** + * Address styling not present in IE 7/8/9, Safari 5, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +blockquote { + margin: 1em 40px; +} + +/** + * Address styling not present in Safari 5 and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address differences between Firefox and other browsers. + * Known issue: no IE 6/7 normalization. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +/** + * Address styling not present in IE 6/7/8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address margins set differently in IE 6/7. + */ + +p, +pre { + margin: 1em 0; +} + +/** + * Correct font family set oddly in IE 6, Safari 4/5, and Chrome. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, serif; + _font-family: 'courier new', monospace; + font-size: 1em; +} + +/** + * Improve readability of pre-formatted text in all browsers. + */ + +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +/** + * Address CSS quotes not supported in IE 6/7. + */ + +q { + quotes: none; +} + +/** + * Address `quotes` property not supported in Safari 4. + */ + +q:before, +q:after { + content: ''; + content: none; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* ========================================================================== + Lists + ========================================================================== */ + +/** + * Address margins set differently in IE 6/7. + */ + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +/** + * Address paddings set differently in IE 6/7. + */ + +menu, +ol, +ul { + padding: 0 0 0 40px; +} + +/** + * Correct list images handled incorrectly in IE 7. + */ + +nav ul, +nav ol { + list-style: none; + list-style-image: none; +} + +/* ========================================================================== + Embedded content + ========================================================================== */ + +/** + * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3. + * 2. Improve image quality when scaled in IE 7. + */ + +img { + border: 0; /* 1 */ + -ms-interpolation-mode: bicubic; /* 2 */ +} + +/** + * Correct overflow displayed oddly in IE 9. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* ========================================================================== + Figures + ========================================================================== */ + +/** + * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11. + */ + +figure { + margin: 0; +} + +/* ========================================================================== + Forms + ========================================================================== */ + +/** + * Correct margin displayed oddly in IE 6/7. + */ + +form { + margin: 0; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct color not being inherited in IE 6/7/8/9. + * 2. Correct text not wrapping in Firefox 3. + * 3. Correct alignment displayed oddly in IE 6/7. + */ + +legend { + border: 0; /* 1 */ + padding: 0; + white-space: normal; /* 2 */ + *margin-left: -7px; /* 3 */ +} + +/** + * 1. Correct font size not being inherited in all browsers. + * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5, + * and Chrome. + * 3. Improve appearance and consistency in all browsers. + */ + +button, +input, +select, +textarea { + font-size: 100%; /* 1 */ + margin: 0; /* 2 */ + vertical-align: baseline; /* 3 */ + *vertical-align: middle; /* 3 */ +} + +/** + * Address Firefox 3+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +button, +input { + line-height: normal; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+. + * Correct `select` style inheritance in Firefox 4+ and Opera. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + * 4. Remove inner spacing in IE 7 without affecting normal text inputs. + * Known issue: inner spacing remains in IE 6. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ + *overflow: visible; /* 4 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * 1. Address box sizing set to content-box in IE 8/9. + * 2. Remove excess padding in IE 8/9. + * 3. Remove excess padding in IE 7. + * Known issue: excess padding remains in IE 6. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ + *height: 13px; /* 3 */ + *width: 13px; /* 3 */ +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari 5 and Chrome + * on OS X. + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Remove inner padding and border in Firefox 3+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * 1. Remove default vertical scrollbar in IE 6/7/8/9. + * 2. Improve readability and alignment in all browsers. + */ + +textarea { + overflow: auto; /* 1 */ + vertical-align: top; /* 2 */ +} + +/* ========================================================================== + Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/docs/_build/html/_static/small_flask.css b/docs/_themes/jrnl/static/small_flask.css old mode 100644 new mode 100755 similarity index 100% rename from docs/_build/html/_static/small_flask.css rename to docs/_themes/jrnl/static/small_flask.css diff --git a/docs/_themes/1450/static/sprites.css b/docs/_themes/jrnl/static/sprites.css similarity index 100% rename from docs/_themes/1450/static/sprites.css rename to docs/_themes/jrnl/static/sprites.css diff --git a/docs/_themes/1450/static/sprites.svg b/docs/_themes/jrnl/static/sprites.svg similarity index 100% rename from docs/_themes/1450/static/sprites.svg rename to docs/_themes/jrnl/static/sprites.svg diff --git a/docs/_themes/1450/theme.conf b/docs/_themes/jrnl/theme.conf similarity index 88% rename from docs/_themes/1450/theme.conf rename to docs/_themes/jrnl/theme.conf index 307a1f0d..07698f6f 100755 --- a/docs/_themes/1450/theme.conf +++ b/docs/_themes/jrnl/theme.conf @@ -4,4 +4,4 @@ stylesheet = flasky.css pygments_style = flask_theme_support.FlaskyStyle [options] -touch_icon = +touch_icon = diff --git a/docs/conf.py b/docs/conf.py index ef3ea049..de7b4a8f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -97,7 +97,7 @@ pygments_style = 'native' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' +html_theme = 'jrnl' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -251,4 +251,4 @@ texinfo_documents = [ #texinfo_no_detailmenu = False sys.path.append(os.path.abspath('_themes')) html_theme_path = ['_themes'] -html_theme = '1450' +html_theme = 'jrnl' diff --git a/docs/index.rst b/docs/index.rst index 0ef8ea67..9729a2cf 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -21,27 +21,11 @@ Release v\ |version|. (:ref:`Installation <install>`) >>> r.json() {u'private_gists': 419, u'total_private_repos': 77, ...} -.. autofunction:: jrnl -.. autofunction:: jrnl.Journal - Contents: .. toctree:: :maxdepth: 2 - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` - + installation + usage diff --git a/docs/installation.rst b/docs/installation.rst new file mode 100644 index 00000000..57e7be6f --- /dev/null +++ b/docs/installation.rst @@ -0,0 +1,39 @@ +.. _download: + +Getting started +=============== + +Installation +------------ + +Install *jrnl_* using pip :: + + pip install jrnl + +Or, if you want the option to encrypt your journal, :: + + pip install jrnl[encrypted] + +To install the dependencies for encrypting journals as well + +.. note:: + + Installing the encryption library, `pycrypto`, requires a `gcc` compiler. You can also `install PyCyrypto manually <https://www.dlitz.net/software/pycrypto/>`_ first. + +The first time you run ``jrnl`` you will be asked where your journal file should be created and whether you wish to encrypt it. + + +Quickstart +---------- + +to make a new entry, just type:: + + jrnl yesterday: Called in sick. Used the time to clean the house anspent 4h on writing my book. + +and hit return. `yesterday:` will be interpreted as a timestamp. Everything until the first sentence mark (`.?!`) will be interpreted as the title, the rest as the body. In your journal file, the result will look like this::: + + 2012-03-29 09:00 Called in sick. + Used the time to clean the house and spent 4h on writing my book. + +If you just call ``jrnl``, you will be prompted to compose your entry - but you can also configure *jrnl* to use your external editor. + diff --git a/docs/usage.rst b/docs/usage.rst new file mode 100644 index 00000000..c0350777 --- /dev/null +++ b/docs/usage.rst @@ -0,0 +1,64 @@ +.. _usage: + +Basic Usage +=========== + +*jrnl* has two modes: **composing** and **viewing**. + +Viewing +------- + +:: + + jrnl -n 10 + +will list you the ten latest entries, :: + + jrnl -from "last year" -to march + +everything that happened from the start of last year to the start of last march. If you only want to see the titles of your entries, use :: + + jrnl -short + +Using Tags +---------- + +Keep track of people, projects or locations, by tagging them with an ``@`` in your entries :: + + jrnl Had a wonderful day on the @beach with @Tom and @Anna. + +You can filter your journal entries just like this: :: + + jrnl @pinkie @WorldDomination + +Will print all entries in which either ``@pinkie`` or ``@WorldDomination`` occurred. :: + + jrnl -n 5 -and @pineapple @lubricant + +the last five entries containing both ``@pineapple`` **and** ``@lubricant``. You can change which symbols you'd like to use for tagging in the configuration. + +.. note:: + + ``jrnl @pinkie @WorldDomination`` will switch to viewing mode because although _no_ command line arguments are given, all the input strings look like tags - *jrnl* will assume you want to filter by tag. + + +Composing +--------- + +Composing mode is entered by either starting ``jrnl`` without any arguments -- which will prompt you to write an entry or launch your editor -- or by just writing an entry on the prompt, such as:: + + jrnl today at 3am: I just met Steve Buscemi in a bar! He looked funny. + + +Smart timestamps +~~~~~~~~~~~~~~~~ + +Timestamps that work: + +* at 6am +* yesterday +* last monday +* sunday at noon +* 2 march 2012 +* 7 apr +* 5/20/1998 at 23:42