commit 05cc3a577aa27daaf68f3f0a9c8e6dde056e98a1
Author: alexweissman
Date: Sat Sep 2 20:34:47 2017 -0400
first take
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 00000000..ad9ae2a8
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,17 @@
+# v1.0.2
+## 06/22/2015
+
+1. [](#new)
+ * Added sub-topic pages
+
+# v1.0.1
+## 06/17/2015
+
+1. [](#new)
+ * Added screenshot
+
+# v1.0.0
+## 06/17/2015
+
+1. [](#new)
+ * ChangeLog started...
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..6c650053
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Grav
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..6b30057d
--- /dev/null
+++ b/README.md
@@ -0,0 +1,59 @@
+# RTFM Skeleton
+
+![RTFM Screenshot](assets/rtfm-screenshot.png)
+
+This is a sample skeleton site that mimics the official Grav documentation: http://learn.getgrav.org. This skeleton uses the [learn2 theme](https://github.com/getgrav/grav-theme-learn2)
+
+# Features
+
+* Lightweight and minimal for optimal performance
+* Fully responsive with off-page mobile navigation
+* SCSS based CSS source files for easy customization
+* Built specifically for providing easy to read documentation
+* [Font Awesome](http://fontawesome.io/) icon support
+* Viewed page tracking
+* Integrated support for documentation content sourced/maintained via GitHub
+
+>> If you want more information about using Grav with GitHub, check out [part 1](http://getgrav.org/blog/developing-with-github-part-1) and [part 2](http://getgrav.org/blog/developing-with-github-part-2) of our guide called *Grav Development with Github*.
+
+# Supported Page Templates
+
+* "Docs" template
+* "Chapter" template
+* Error view template
+
+# Configuration
+
+```
+top_level_version: false
+home_url:
+github:
+ enabled: true
+ position: top
+ tree: https://github.com/getgrav/grav-skeleton-rtfm-site/blob/develop/
+ commits: https://github.com/getgrav/grav-skeleton-rtfm-site/commits/develop/
+```
+
+| Setting | Child Setting | Description |
+| :----- | :----- | :----- |
+| top_level_version | | When set to `true`, displays level icons and numbered lists. |
+| home_url | | Enables you to enter a different URL link from the logo (ex: http://google.com) |
+| github | enabled | Can be set to `true` or `false`. When set to `true`, it generates the **Edit this page** link to GitHub for each page. |
+| github | position | Sets the position for the GitHub edit link. Can be set to `top` or `bottom`. |
+| github | tree | Sets the tree by which your site's content is based. Generally the repo your site's content is pulled from. |
+| github | commits | Sets the link to the commits page for the site's content repo. |
+
+## Basic Setup for a New Grav Site
+
+The simplest way to install the learn2 theme with RTFM content for Grav is to download and install the RTFM Skeleton package:
+
+1. [Download RTFM Skeleton](http://getgrav.org/downloads/skeletons#extras)
+2. Unzip the package into your web root folder.
+3. Point your browser at the folder.
+4. Job done!
+
+**TIP:** Check out the [general Grav Installation Instructions](http://learn.getgrav.org/basics/installation) for more details on this process.
+
+---
+
+
diff --git a/accounts/.gitkeep b/accounts/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/assets/rtfm-screenshot.png b/assets/rtfm-screenshot.png
new file mode 100644
index 00000000..f5918017
Binary files /dev/null and b/assets/rtfm-screenshot.png differ
diff --git a/blueprints.yaml b/blueprints.yaml
new file mode 100644
index 00000000..4062ec58
--- /dev/null
+++ b/blueprints.yaml
@@ -0,0 +1,13 @@
+name: RTFM Site
+version: 1.0.2
+description: "RTFM is a sample documentation site using the `learn2` theme. This skeleton is used as the basis for the Grav official documentation: http://learn.getgrav.org"
+icon: book
+author:
+ name: Team Grav
+ email: devs@getgrav.org
+ url: http://getgrav.org
+homepage: https://github.com/getgrav/grav-skeleton-rtfm-site
+demo: http://demo.getgrav.org/rtfm-skeleton
+keywords: rtfm, skeleton, documentation, docs
+bugs: https://github.com/getgrav/grav-skeleton-rtfm-site/issues
+license: MIT
diff --git a/config/plugins/anchors.yaml b/config/plugins/anchors.yaml
new file mode 100644
index 00000000..56003de5
--- /dev/null
+++ b/config/plugins/anchors.yaml
@@ -0,0 +1 @@
+selectors: '#body h2, #body h3, #body h4, #body h5'
diff --git a/config/plugins/highlight.yaml b/config/plugins/highlight.yaml
new file mode 100644
index 00000000..235212f5
--- /dev/null
+++ b/config/plugins/highlight.yaml
@@ -0,0 +1 @@
+theme: learn
diff --git a/config/plugins/simplesearch.yaml b/config/plugins/simplesearch.yaml
new file mode 100644
index 00000000..29412036
--- /dev/null
+++ b/config/plugins/simplesearch.yaml
@@ -0,0 +1,6 @@
+enabled: true
+built_in_css: false
+route: /search
+template: simplesearch_results
+filters:
+ category: docs
diff --git a/config/site.yaml b/config/site.yaml
new file mode 100644
index 00000000..de48656e
--- /dev/null
+++ b/config/site.yaml
@@ -0,0 +1,8 @@
+title: Select2 - The jQuery replacement for select boxes
+metadata:
+ description: Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and pagination (infinite scrolling) of results.
+
+taxonomies: [category,tag]
+summary:
+ size: 300
+
diff --git a/config/system.yaml b/config/system.yaml
new file mode 100755
index 00000000..7e890b07
--- /dev/null
+++ b/config/system.yaml
@@ -0,0 +1,35 @@
+home:
+ alias: '/getting-started'
+
+pages:
+ theme: site
+ markdown_extra: true
+ process:
+ markdown: true
+ twig: false
+
+cache:
+ enabled: true
+ check:
+ method: file
+ driver: auto
+ prefix: 'g'
+
+twig:
+ cache: true
+ debug: false
+ auto_reload: true
+ autoescape: false
+
+assets:
+ css_pipeline: true
+ css_minify: true
+ css_rewrite: true
+ js_pipeline: true
+ js_minify: true
+
+debugger:
+ enabled: false
+ twig: true
+ shutdown:
+ close_connection: true
diff --git a/data/.gitkeep b/data/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/localhost/config/security.yaml b/localhost/config/security.yaml
new file mode 100644
index 00000000..1e631371
--- /dev/null
+++ b/localhost/config/security.yaml
@@ -0,0 +1 @@
+salt: dc7HfDXRG0WT48
diff --git a/localhost/config/system.yaml b/localhost/config/system.yaml
new file mode 100644
index 00000000..1bb055a7
--- /dev/null
+++ b/localhost/config/system.yaml
@@ -0,0 +1,10 @@
+assets:
+ css_pipeline: false
+ js_pipeline: false
+
+twig:
+ cache: true
+ debug: true
+
+debugger:
+ enabled: false
diff --git a/pages/01.getting-started/01.installation/docs.md b/pages/01.getting-started/01.installation/docs.md
new file mode 100644
index 00000000..e0af5612
--- /dev/null
+++ b/pages/01.getting-started/01.installation/docs.md
@@ -0,0 +1,67 @@
+---
+title: Installation
+taxonomy:
+ category: docs
+---
+
+In order to use Select2, you must include the JavaScript and CSS file on
+your website. You can get these files built for you from many different
+locations.
+
+## Using Select2 from a CDN
+
+Select2 is hosted on both the
+cdnjs and
+jsDelivr CDNs, allowing
+you to quickly include Select2 on your website.
+
+### Include the assets
+
+Include the following lines of code in the <head>
+section of your HTML.
+
+```
+
+
+```
+
+>>> Immediately following a new release, it takes some time for CDNs to
+ catch up and get the new versions live on the CDN.
+
+### Initialize Select2
+
+Initialize Select2 on the <select>
element that you want to make awesome.
+
+```
+
+```
+
+### Read the docs
+
+Check out the examples chapter to start using the additional features of Select2.
+
+## Downloading the code locally
+
+In some situations, you can't use Select2 from a CDN and you must include the files through your own static file servers.
+
+### Download the code
+
+
+ Download the code
+
+from GitHub and copy the `dist` directory to your project.
+
+### Include the assets
+
+Include the following lines of code in the `` section of your HTML.
+
+```
+
+
+```
+
+### Read the docs
+
+Check out the examples chapter to start using the additional features of Select2.
diff --git a/pages/01.getting-started/02.basic-usage/docs.md b/pages/01.getting-started/02.basic-usage/docs.md
new file mode 100644
index 00000000..5ee9abc1
--- /dev/null
+++ b/pages/01.getting-started/02.basic-usage/docs.md
@@ -0,0 +1,95 @@
+---
+title: Basic Usage
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+## Single select boxes
+
+Select2 was designed to be a replacement for the standard `` box that is displayed by the browser. By default it supports all options and operations that are available in a standard select box, but with added flexibility.
+
+Select2 can take a regular select box like this...
+
+
+
+and turn it into this...
+
+
+
+
+
+```
+
+ Alabama
+ ...
+ Wyoming
+
+```
+
+
+
+Select2 will register itself as a jQuery function if you use any of the distribution builds, so you can call `.select2()` on any jQuery selector where you would like to initialize Select2.
+
+```
+$('.js-example-basic-single').select2();
+```
+
+## Multi-select boxes (pillbox)
+
+Select2 also supports multi-value select boxes. The select below is declared with the `multiple` attribute.
+
+
+
+```
+
+
+
+ Alabama
+ ...
+ Wyoming
+
+```
+
+
diff --git a/pages/01.getting-started/03.builds-and-modules/docs.md b/pages/01.getting-started/03.builds-and-modules/docs.md
new file mode 100644
index 00000000..bfbf3b01
--- /dev/null
+++ b/pages/01.getting-started/03.builds-and-modules/docs.md
@@ -0,0 +1,63 @@
+---
+title: Builds and modules
+taxonomy:
+ category: docs
+---
+
+## The different Select2 builds
+
+Select2 provides multiple builds that are tailored to different
+environments where it is going to be used. If you think you need to use
+Select2 in a nonstandard environment, like when you are using AMD, you
+should read over the list below.
+
+
+
+
+ Build name
+ When you should use it
+
+
+
+
+
+ Standard (select2.js
/ select2.min.js
)
+
+
+ This is the build that most people should be using for Select2. It
+ includes the most commonly used features.
+
+
+
+
+ Full (select2.full.js
/ select2.full.min.js
)
+
+
+ You should only use this build if you need the additional features
+ from Select2, like the
+ compatibility modules or
+ recommended includes like
+ jquery.mousewheel
+
+
+
+
+
+## Using Select2 with AMD or CommonJS loaders
+
+Select2 should work with most AMD- or CommonJS-compliant module loaders, including RequireJS and almond . Select2 ships with a modified version of the UMD jQuery template that supports both CommonJS and AMD environments.
+
+### Configuration
+
+For most AMD and CommonJS setups, the location of the data files used by Select2 will be automatically determined and handled without you needing to do anything.
+
+If you are using Select2 in a build environment where preexisting module names are changed during a build step, Select2 may not be able to find optional dependencies or language files. You can manually set the prefixes to use for these files using the `amdBase` and `amdLanguageBase` options.
+
+```
+$.fn.select2.defaults.set('amdBase', 'select2/');
+$.fn.select2.defaults.set('amdLanguageBase', 'select2/i18n/');
+```
+
+Select2 internally uses AMD and the r.js build tool to build the files located in the `dist` folder. These are built using the files in the `src` folder, so _you can_ just point your modules to the Select2 source and load in `jquery.select2` or `select2/core` when you want to use Select2. The files located in the `dist` folder are also AMD-compatible, so you can point to that file if you want to load in all of the default Select2 modules.
+
+>>> Due to [a bug in older versions](https://github.com/jrburke/requirejs/issues/1342) of the r.js build tool, Select2 was sometimes placed before jQuery in then compiled build file. Because of this, Select2 will trigger an error because it won't be able to find or load jQuery. By upgrading to version 2.1.18 or higher of the r.js build tool, you will be able to fix the issue.
diff --git a/pages/01.getting-started/chapter.md b/pages/01.getting-started/chapter.md
new file mode 100644
index 00000000..9df28cd5
--- /dev/null
+++ b/pages/01.getting-started/chapter.md
@@ -0,0 +1,73 @@
+---
+title: Getting Started
+taxonomy:
+ category: docs
+---
+
+![Select2 logo](/images/logo.png)
+
+# Select2
+
+The jQuery replacement for select boxes
+
+Select2 gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options.
+
+
+
+
+
+
+
+
Remote data support
+
+ Using AJAX you can efficiently
+ search large lists of items.
+
+
+
+
+
+
+
+
+
+
Fully extensible
+
+ The plugin system
+ allows you to easily customize Select2 to work exactly how you want it
+ to.
+
+
+
+
+
+
Dynamic item creation
+
+ Allow users to type in a new option and
+ add it on the fly .
+
+
+
+
+
+
Full browser support
+
Support for both modern and legacy browsers is built-in, even including Internet Explorer 8.
+
+
+
diff --git a/pages/02.configuration/01.initializing/01.data-attributes/docs.md b/pages/02.configuration/01.initializing/01.data-attributes/docs.md
new file mode 100644
index 00000000..539af56e
--- /dev/null
+++ b/pages/02.configuration/01.initializing/01.data-attributes/docs.md
@@ -0,0 +1,61 @@
+---
+title: Via data-* attributes
+taxonomy:
+ category: docs
+---
+
+It is recommended that you declare your configuration options by [passing in an object](/options/initializing) when initializing Select2. However, you may also define your configuration options by using the HTML5 `data-*` attributes, which will override any options set when initializing Select2 and any [defaults](/options/initializing/defaults).
+
+```
+
+ Alabama
+ ...
+ Wyoming
+
+```
+
+## Nested (subkey) options
+
+Sometimes, you have options that are nested under a top-level option. For example, the options under the `ajax` option:
+
+```
+$(".js-example-data-ajax").select2({
+ ajax: {
+ url: "http://example.org/api/test",
+ cache: false
+ }
+});
+```
+
+To write these options as `data-*` attributes, each level of nesting should be separated by two dashes (`--`):
+
+```
+
+ ...
+
+```
+
+The value of the option is subject to jQuery's parsing rules for HTML5 data attributes.
+
+>>> Due to a jQuery bug , nested options using data-*
attributes do not work in jQuery 1.x .
+
+## `camelCase` options
+
+HTML data attributes are case-insensitive, so any options which contain capital letters will be parsed as if they were all lowercase. Because Select2 has many options which are camelCase, where words are separated by uppercase letters, you must write these options out with dashes instead. So an option that would normally be called allowClear
should instead be defined as `allow-clear`.
+
+This means that if you declare your <select>
tag as...
+```
+
+ ...
+
+```
+
+Will be interpreted the same as initializing Select2 as...
+
+```
+$("select").select2({
+ tags: "true",
+ placeholder: "Select an option",
+ allowClear: true
+});
+```
diff --git a/pages/02.configuration/01.initializing/02.defaults/docs.md b/pages/02.configuration/01.initializing/02.defaults/docs.md
new file mode 100644
index 00000000..c166835a
--- /dev/null
+++ b/pages/02.configuration/01.initializing/02.defaults/docs.md
@@ -0,0 +1,31 @@
+---
+title: Global defaults
+taxonomy:
+ category: docs
+---
+
+In some cases, you need to set the default options for all instances of Select2 in your web application. This is especially useful when you are migrating from past versions of Select2, or you are using non-standard options like custom AMD builds . Select2 exposes the default options through $.fn.select2.defaults
, which allows you to set them globally.
+
+When setting options globally, any past defaults that have been set will be overridden. Default options are only used when an option is requested that has not been set during initialization.
+
+You can set default options by calling `$.fn.select2.defaults.set("key", "value")`. For example:
+
+```
+$.fn.select2.defaults.set("theme", "classic");
+```
+
+## Nested options
+
+To set a default values for cache, use the same notation used for HTML data-*
attributes . Two dashes (`--`) will be replaced by a level of nesting, and a single dash (`-`) will convert the key to a camelCase string:
+
+```
+$.fn.select2.defaults.set("ajax--cache", false);
+```
+
+## Resetting default options
+
+You can reset the default options to their initial values by calling
+
+```
+$.fn.select2.defaults.reset();
+```
diff --git a/pages/02.configuration/01.initializing/docs.md b/pages/02.configuration/01.initializing/docs.md
new file mode 100644
index 00000000..2c1595b5
--- /dev/null
+++ b/pages/02.configuration/01.initializing/docs.md
@@ -0,0 +1,14 @@
+---
+title: Initializing
+taxonomy:
+ category: docs
+---
+
+
+To configure custom options, simply pass an object containing all of the options with which you would like to initialize Select2, in your call to `.select2()`:
+
+```
+$('.js-example-basic-single').select2({
+ placeholder: 'Select an option'
+});
+```
diff --git a/pages/02.configuration/02.deprecated/docs.md b/pages/02.configuration/02.deprecated/docs.md
new file mode 100644
index 00000000..83c7c7e6
--- /dev/null
+++ b/pages/02.configuration/02.deprecated/docs.md
@@ -0,0 +1,210 @@
+---
+title: Deprecated options
+taxonomy:
+ category: docs
+---
+
+
+
+ Select2 offers limited backwards compatibility with the previously 3.5.x
+ release line, allowing people more efficiently transfer across releases
+ and get the latest features. For many of the larger changes, such as the
+ change in how custom data adapters work, compatibility modules were
+ created that will be used to assist in the upgrade process. It is not
+ recommended to rely on these compatibility modules, as they will not
+ always exist, but they make upgrading easier for major changes.
+
+
+
+ The compatibility modules are only included in the
+ full builds of
+ Select2 . These files end in .full.js
, and the
+ compatibility modules are prefixed with select2/compat
.
+
+
+
+
+
+ Simplified function for matching data objects
+
+
+
+ Added in Select2 4.0.0.
+ This method was added to make upgrading easier from earlier versions of
+ Select2.
+
+
+
+ During the Select2 4.0.0 release , the
+ matcher
function was changed to allow for more complex
+ matching of nested objects.
+
+
+
+
+
+ Key
+
+ matcher
+
+
+ Value
+
+ A function taking a search term
and the data object
+ text
.
+
+
+
+
+
+
+ Adapter
+
+ oldMatcher
+
+
+
+
+
+
+ The custom matcher example provides a
+ guide for how to use this in your own application. For those upgrading
+ from older versions of Select2, you just need to wrap your old
+ matcher
with this function to maintain compatibility.
+
+
+
+
+
+ Old initial selections with initSelection
+
+
+
+ Deprecated in Select2 4.0.
+ This has been replaced by another option and is only available in the
+ full builds of
+ Select2.
+
+
+
+ In the past, Select2 required an option called initSelection
+ that was defined whenever a custom data source was being used, allowing
+ for the initial selection for the component to be determined. This has
+ been replaced by the current
method on the
+ data adapter .
+
+
+
+
+
+ Key
+
+ initSelection
+
+
+ Value
+
+ A function taking a callback
+
+
+
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ InitSelection
+
+
+
+
+
+
+
+
+ Querying old data with query
+
+
+
+ Deprecated in Select2 4.0.
+ This has been replaced by another option and is only available in the
+ full builds of
+ Select2.
+
+
+
+ In the past, Select2 supported an option called query
that
+ allowed for a custom data source to be used. This option has been replaced
+ by the query
method on the
+ data adapter and takes a very similar set of
+ parameters.
+
+
+
+
+
+ Key
+
+ query
+
+
+ Value
+
+ A function taking params
(including a callback
)
+
+
+
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ Query
+
+
+
+
+
+
+
+
+
+
+ Deprecated in Select2 4.0.
+ It is now encouraged to use the <select>
tag instead.
+
+
+
+ In past versions of Select2, a <select>
element could
+ only be used with a limited subset of options. An
+ <input type="hidden" />
was required instead, which did
+ not allow for a graceful fallback for users who did not have JavaScript
+ enabled. Select2 now supports the <select>
element for
+ all options, so it is no longer required to use <input />
+ elements with Select2.
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ InputData
+
+
+
diff --git a/pages/02.configuration/docs.md b/pages/02.configuration/docs.md
new file mode 100644
index 00000000..b66ec422
--- /dev/null
+++ b/pages/02.configuration/docs.md
@@ -0,0 +1,298 @@
+---
+title: Configuration
+taxonomy:
+ category: docs
+---
+
+Select2 has the following configuration options available. Note that this page is a work
+in progress. The previous
+release's documentation should cover the gaps here for the time being.
+
+
+
+
+ Option
+ Type
+ Description
+
+
+
+
+ adaptContainerCssClass
+
+
+
+
+ adaptDropdownCssClass
+
+
+
+
+ ajax
+
+
+
+
+ allowClear
+ boolean
+
+ When set to true , causes a clear button to appear on the select box
+ when a value is selected. Clicking the clear button will clear the selected value,
+ effectively resetting the select box back to its placeholder value.
+
+ Default value: false
+
+
+
+ amdBase
+ string
+
+ The base AMD loader path to be used for select2 dependency resolution. This option
+ typically doesn't need to be changed, but is available for situations where module names
+ may change as a result of certain build environments.
+
+ Default value: "./"
+
+
+
+ amdLanguageBase
+ string
+
+ The base AMD loader language path to be used for select2 language file resolution. This
+ option typically doesn't need to be changed, but is available for situations where module
+ names may change as a result of certain build environments.
+
+ Default value: "./i18n/"
+
+
+
+ closeOnSelect
+ boolean
+
+ When set to false , keeps the dropdown open upon selecting an option,
+ making it easy to quickly select multiple items. Note that this option is only
+ applicable to multi-select controls .
+
+ Default value: true
+
+
+
+ containerCss
+
+
+
+
+ containerCssClass
+
+
+
+
+ dataAdapter
+
+
+
+
+ debug
+ boolean
+
+
+
+ dir
+
+
+
+
+ disabled
+ boolean
+
+ When set to true , the select control will be disabled.
+
+ Default value: false
+
+
+
+ dropdownAdapter
+
+
+
+
+ dropdownAutoWidth
+ boolean
+
+
+
+ dropdownCss
+
+
+
+
+ dropdownCssClass
+
+
+
+
+ dropdownParent
+
+
+
+
+ escapeMarkup
+
+
+
+
+ initSelection
+
+
+
+
+ language
+
+
+
+
+ matcher
+
+
+
+
+ maximumInputLength
+ integer
+
+ Maximum number of characters that may be provided for a search term.
+
+ Default value: 0
+
+
+
+ maximumSelectionLength
+ integer
+
+ The maximum number of items that may be selected in a multi-select control. If the
+ value of this option is less than 1, the number of selected items will not be limited.
+
+ Default value: 0
+
+
+
+ minimumInputLength
+ integer
+
+ Minimum number of characters required to start a search. This options is primarily
+ useful in cases where data is loaded via the ajax
option.
+
+ Default value: 0
+
+
+
+ minimumResultsForSearch
+ integer
+
+ The minimum number of results required in the initial population of the dropdown to
+ keep the search box. This option is useful for cases where local data is used with a small
+ result set, and the search box would simply be a waste of screen real estate. Set this
+ value to -1 to permanently hide the search box.
+
+ Default value: 0
+
+
+
+ multiple
+
+
+ This option enables multi-select (pillbox) mode. Select2 will automatically map the value of the `multiple` HTML attribute to this option during initialization.
+
+
+
+ placeholder
+
+
+
+
+ query
+
+
+
+
+ resultsAdapter
+
+
+
+
+ selectionAdapter
+
+
+
+
+ selectOnClose
+ boolean
+
+ Default value: false
+
+
+
+ sorter
+ function
+
+
+
+ tags
+
+
+
+
+ templateResult
+ function
+
+
+
+ templateSelection
+ function
+
+
+
+ theme
+ string
+
+ Default value: default
+
+
+
+ tokenizer
+
+
+
+
+ tokenSeparators
+
+
+
+
+ width
+ string
+
+ Specifies the width
style attribute of the select2 container. The
+ following values are supported:
+
+
+ element
+ Uses the computed element width from any applicable CSS rules.
+
+ resolve
+ Uses the style
attribute value if available, falling
+ back to the computed element width as necessary.
+
+ style
+ Width is determined from the select
element's style
+ attribute. If no style
attribute is found, null is returned as the
+ width.
+
+ {width_value}
+ Valid CSS values can be passed as a string (i.e. 80%
).
+
+
+ Default value: resolve
+
+
+
+
diff --git a/pages/03.appearance/01.markup/docs.md b/pages/03.appearance/01.markup/docs.md
new file mode 100644
index 00000000..2ea41f5e
--- /dev/null
+++ b/pages/03.appearance/01.markup/docs.md
@@ -0,0 +1,115 @@
+---
+title: Basic markup
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+A standard `` box contains any number of `` elements. Each of these is rendered as an option in the dropdown menu. Select2 preserves this behavior when initialized on a `` element that contains `` elements.
+
+## Disabling a Select2 control
+
+Select2 will respond to the disabled
attribute on `` elements. You can also initialize Select2 with `disabled: true` to get the same effect.
+
+
+
+
+
+
+
+
+
+
+
+ Enable
+
+
+ Disable
+
+
+
+
+
+
+
+
+## Labels
+
+You can, and should, use a `` with Select2, just like any other `` element.
+
+
+
+
+ Click this to focus the single select element
+
+
+
+
+
+ Click this to focus the multiple select element
+
+
+
+
+
+```
+
+ Click this to highlight the single select element
+
+
+
+
+
+ Click this to highlight the multiple select element
+
+
+
+```
+
+
diff --git a/pages/03.appearance/02.theming/docs.md b/pages/03.appearance/02.theming/docs.md
new file mode 100644
index 00000000..a7d51ef5
--- /dev/null
+++ b/pages/03.appearance/02.theming/docs.md
@@ -0,0 +1,68 @@
+---
+title: Theming
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+## Theme support
+
+
+ Select2 supports custom themes using the
+ theme option
+ so you can style Select2 to match the rest of your application.
+
+
+
+ These are using the classic
theme, which matches the old
+ look of Select2.
+
+
+
+
+```
+$(".js-example-theme-single").select2({
+ theme: "classic"
+});
+
+$(".js-example-theme-multiple").select2({
+ theme: "classic"
+});
+```
+
+Various display options of the Select2 component can be changed:
+You can access the <option>
element
+(or <optgroup>
) and any attributes on those elements
+using .element
.
+
+## Responsive design - Percent width
+
+Select2's width can be set to a percentage of its parent to support
+responsive design. The two Select2 boxes below are styled to 50% and 75%
+width respectively.
+
+
+
+```
+
+
+```
+
+>>>> Select2 will do its best to resolve the percent width specified via a CSS class, but it is not always possible. The best way to ensure that Select2 is using a percent based width is to inline the `style` declaration into the tag.
diff --git a/pages/03.appearance/chapter.md b/pages/03.appearance/chapter.md
new file mode 100644
index 00000000..a42194f8
--- /dev/null
+++ b/pages/03.appearance/chapter.md
@@ -0,0 +1,11 @@
+---
+title: Appearance
+taxonomy:
+ category: docs
+---
+
+### Chapter 3
+
+# Appearance
+
+The appearance of your Select2 controls can be customized via the standard HTML attributes for `` elements, as well as various [configuration options](/configuration).
diff --git a/pages/04.searching/docs.md b/pages/04.searching/docs.md
new file mode 100644
index 00000000..f71a0b82
--- /dev/null
+++ b/pages/04.searching/docs.md
@@ -0,0 +1,80 @@
+---
+title: Search
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+The appearance and behavior of the search control can be easily customized with Select2.
+
+## Customizing how results are matched
+
+You may customize the way that Select2 matches search terms by passing a callback to the `matcher` option. This example matches results only if the term appears in the beginning of the string as opposed to anywhere:
+
+
+
+
+
+
+
+
+
+>>> This custom matcher uses a [compatibility module](/configuration/deprecated) that is only bundled in the [full version of Select2](/getting-started/builds). You also have the option of using a more complex matcher .
+
+## Limiting search term length
+
+You may limit the maximum length of search terms by using the `maximumInputLength` option:
+
+```
+$('select').select2({
+ maximumInputLength: 20 // only allow terms up to 20 characters long
+});
+```
+
+## Limiting display of the search box to large result sets
+
+The `minimumResultsForSearch` option determines the minimum number of results required in the initial population of the dropdown to display the search box.
+
+This option is useful for cases where local data is used with a small result set, and the search box would simply be a waste of screen real estate. Set this value to -1 to permanently hide the search box.
+
+```
+$('select').select2({
+ minimumResultsForSearch: 20 // at least 20 results must be displayed
+});
+```
+
+## Hiding the search box
+
+Select2 allows you to hide the search box depending on the number of options which are displayed. In this example, we use the value `Infinity` to tell Select2 to never display the search box.
+
+
+
+
+
+
+
+
diff --git a/pages/05.dropdown/docs.md b/pages/05.dropdown/docs.md
new file mode 100644
index 00000000..6a00f951
--- /dev/null
+++ b/pages/05.dropdown/docs.md
@@ -0,0 +1,124 @@
+---
+title: Dropdown
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+This chapter covers the appearance and behavior of the dropdown menu.
+
+## Templating
+
+The appearance of search results in the dropdown can be customized by using the `templateResult` option:
+
+
+
+
+
+
+
+
+
+## Disabling options
+
+Select2 will correctly handle disabled options, both with data coming from a standard select (when the `disabled` attribute is set) and from remote sources, where the object has disabled: true
set.
+
+
+
+ First
+ Second (disabled)
+ Third
+
+
+
+
+
+```
+
+ First
+ Second (disabled)
+ Third
+
+```
+
+
+
+## Automatic selection
+
+Select2 can be configured to automatically select the currently highlighted result when the dropdown is closed by using the `selectOnClose` option:
+
+```
+$('select').select2({
+ selectOnClose: true
+});
+```
+
+## Forcing the dropdown to remain open after selection
+
+You may use the `closeOnSelect` option to prevent the dropdown from closing when a result is selected:
+
+```
+$('select').select2({
+ closeOnSelect: false
+});
+```
+
+## Dropdown placement
+
+The `dropdownParent` option allows you to pick an element for the dropdown to be appended to:
+
+```
+$('select').select2({
+ dropdownParent: $('#my_amazing_modal')
+});
+```
+
+### Using a Select2 control inside a Bootstrap modal
+
+If you're having trouble using the search box inside a Bootstrap modal, trying setting the `dropdownParent` option to the modal element.
+
+## Dropdown option groups
+
+In HTML, `` elements can be grouped by wrapping them with in an ` ` element:
+
+```
+
+
+ Nested option
+
+
+```
+
+Select2 will automatically pick these up and render them appropriately in the dropdown.
+
+### Hierarchical options
+
+Only a single level of nesting is allowed per the HTML specification. If you nest an `` within another ``, Select2 will not be able to detect the extra level of nesting and errors may be triggered as a result.
+
+Furthermore, `` elements **cannot** be made selectable. This is a limitation of the HTML specification and is not a limitation that Select2 can overcome.
+
+If you wish to create a true hierarchy of selectable options, use an `` instead of an ` ` and change the style with CSS . Please note that this approach may be considered "less accessible" as it relies on CSS styling, rather than the semantic meaning of ``, to generate the effect.
diff --git a/pages/06.selections/docs.md b/pages/06.selections/docs.md
new file mode 100644
index 00000000..109d9527
--- /dev/null
+++ b/pages/06.selections/docs.md
@@ -0,0 +1,92 @@
+---
+title: Selections
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+When a selection is made by the user, Select2 will convert the selected `` element into a JSON object based on the following rules:
+
+```
+{
+ "id": "value attribute" || "option text",
+ "text": "label attribute" || "option text",
+ "element": HTMLOptionElement
+}
+```
+
+` ` elements will be converted into data objects using the following rules:
+
+```
+{
+ "text": "label attribute",
+ "children": [ option data object, ... ],
+ "element": HTMLOptGroupElement
+}
+```
+
+By default, Select2 will then display the `text` property of the selected result.
+
+## Templating
+
+The appearance of selected results can be customized by using the `templateSelection` configuration option. This takes a callback that transforms the selection data object into a string representation or jQuery object:
+
+
+
+
+
+
+
+
+
+If your selection template contains HTML, you must wrap your rendered result in a jQuery object. Otherwise, Select2 will assume that your template only returns text and will escape it. You may find it helpful to use a client-side templating engine like [Handlebars](http://handlebarsjs.com/) to define your templates.
+
+## Limiting the number of selections
+
+Select2 multi-value select boxes can set restrictions regarding the maximum number of options that can be selected. The select below is declared with the `multiple` attribute with `maximumSelectionLength` in the select2 options.
+
+
+
+
+
+
+
+## Clearable selections
+
+You can allow users to clear their current selections with the `allowClear` option when initializing Select2. Setting this option to `true` will enable an "x" icon that will reset the selection to the placeholder.
+
+```
+$('select').select2({
+ placeholder: 'This is my placeholder',
+ allowClear: true
+});
+```
diff --git a/pages/07.placeholders/docs.md b/pages/07.placeholders/docs.md
new file mode 100644
index 00000000..5ac4c2b6
--- /dev/null
+++ b/pages/07.placeholders/docs.md
@@ -0,0 +1,81 @@
+---
+title: Placeholders
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+Select2 supports displaying a placeholder value using the `placeholder` configuration option. The placeholder value will be displayed until a selection is made.
+
+## Text placeholders
+
+The most common situation is to use a string of text as your placeholder value.
+
+**In order for a string placeholder value to appear**, you must have a blank `` as the first option in your `` control. This is because the browser tries to select the first option by default. If your first option were non-empty, the browser would display this instead of the placeholder. Note that this issue does not apply to multiple selects.
+
+
+
+
+
+
+
+>>> Select2 uses the `placeholder` attribute on multiple select boxes, which requires IE 10+. You can support it in older versions with the Placeholders.js polyfill .
+
+## Default selection placeholders
+
+Alternatively, the value of the `placeholder` option can be a data object representing a default selection (``). In this case the `id` of the data object should match the `value` of the corresponding default selection.
+
+```
+$('select').select2({
+ placeholder: {
+ id: '-1', // the value of the option
+ text: 'Select an option'
+ }
+});
+```
+
+## Using placeholders with AJAX
+
+Select2 supports placeholders for all configurations, including AJAX. You will still need to add in the empty ` ` if you are using a single select.
+
+## Customizing placeholder appearance
+
+When using Select2 **in single-selection mode**, the placeholder option will be passed through the `templateSelection` callback if specified. You can use some additional logic in this callback to check the `id` property and apply an alternative transformation to your placeholder option:
+
+```
+$('select').select2({
+ templateSelection: function (data) {
+ if (data.id === '') { // adjust for custom placeholder values
+ return 'Custom styled placeholder text';
+ }
+
+ return data.text;
+ }
+});
+```
+
+>>>>> **When multiple selections are allowed**, the placeholder will be displayed using the `placeholder` attribute on the search box. You can customize the display of this placeholder using CSS, as explained in the following Stack Overflow answer: [Change an input's HTML5 placeholder color with CSS](http://stackoverflow.com/q/2610497/359284).
+
+## Placeholders in legacy Internet Explorer versions
+
+Select2 uses the native `placeholder` attribute on input boxes for the multiple select, and that attribute is not supported in older versions of Internet Explorer. You need to include [Placeholders.js](https://github.com/jamesallardice/Placeholders.js) on your page, or use the full build, in order to add `placeholder` attribute support to input boxes.
diff --git a/pages/08.tagging/docs.md b/pages/08.tagging/docs.md
new file mode 100644
index 00000000..f918f734
--- /dev/null
+++ b/pages/08.tagging/docs.md
@@ -0,0 +1,129 @@
+---
+title: Free-text entry
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+In addition to a prepopulated menu of options, Select2 can also allow free-text responses. This feature is called "tagging". To enable free-text responses, set the tags
option to `true`:
+
+
+
+
+ orange
+ white
+ purple
+
+
+
+
+```
+$(".js-example-tags").select2({
+ tags: true
+})
+```
+
+Note that when tagging is enabled the user can select from the pre-existing options or create a new option by picking the first choice, which is what the user has typed into the search box so far.
+
+## Tagging with multi-value select boxes
+
+Tagging can also be used in multi-value select boxes. In the example below, we set the multiple="multiple"
attribute on a Select2 control that also has tags: true
enabled:
+
+
+
+
+ orange
+ white
+ purple
+
+
+
+
+Try entering a value that isn't listed in the dropdown - you'll be able to add it as a new option!
+
+## Automatic tokenization into tags
+
+Select2 supports ability to add choices automatically as the user is
+typing into the search field. Try typing in the search field below and
+entering a space or a comma.
+
+The separators that should be used when tokenizing can be specified
+using the tokenSeparators
+options.
+
+
+
+
+ red
+ blue
+ green
+
+
+
+
+```
+$(".js-example-tokenizer").select2({
+ tags: true,
+ tokenSeparators: [',', ' ']
+})
+```
+
+## Customizing tag creation
+
+### Tag properties
+
+You may add extra properties to newly created tags by defining a `createTag` callback:
+
+```
+$('select').select2({
+ createTag: function (params) {
+ var term = $.trim(params.term);
+
+ if (term === '') {
+ return null;
+ }
+
+ return {
+ id: term,
+ text: term,
+ newTag: true // add additional parameters
+ }
+ }
+});
+```
+
+### Constraining tag creation
+
+You may control when Select2 will allow the user to create a new tag, by adding some logic to `createTag` to return `null` if an invalid value is entered:
+
+```
+$('select').select2({
+ createTag: function (params) {
+ // Don't offset to create a tag if there is no @ symbol
+ if (params.term.indexOf('@') === -1) {
+ // Return null to disable tag creation
+ return null;
+ }
+
+ return {
+ id: params.term,
+ text: params.term
+ }
+ }
+});
+```
+
+## Customizing tag placement in the dropdown
+
+You may control the placement of the newly created option by defining a `insertTag` callback:
+
+```
+$('select').select2({
+ insertTag: function (data, tag) {
+ // Insert the tag at the end of the results
+ data.push(tag);
+ }
+});
+```
diff --git a/pages/09.data-sources/01.formats/docs.md b/pages/09.data-sources/01.formats/docs.md
new file mode 100644
index 00000000..baa23e64
--- /dev/null
+++ b/pages/09.data-sources/01.formats/docs.md
@@ -0,0 +1,111 @@
+---
+title: The Select2 data format
+taxonomy:
+ category: docs
+---
+
+Select2 can render programmatically supplied data from an array or remote data source (AJAX) as dropdown options. These will be rendered as actual ` ` elements in the target `` control.
+
+In order to accomplish this, Select2 expects a very specific data format. This format consists of a JSON object containing an array of objects keyed by the `results` key.
+
+```
+{
+ "results": [
+ {
+ "id": 1,
+ "text": "Option 1"
+ },
+ {
+ "id": 2,
+ "text": "Option 2"
+ }
+ ],
+ "pagination": {
+ "more": true
+ }
+}
+```
+
+Each object should contain, _at a minimum_, an `id` and a `text` property. The `text` property will be displayed by default unless you are using `templateResult` and `templateSelection` to customize the way options and selections are rendered.
+
+The response object may also contain pagination data, if you would like to use the "infinite scroll" feature. This should be specified under the `pagination` key.
+
+Any additional parameters passed in with data objects will be included on the data objects that Select2 exposes.
+
+## Transforming data into the required format
+
+### Generating `id` properties
+
+Select2 requires that the `id` property is used to uniquely identify the options that are displayed in the results list. If you use a property other than `id` (like `pk`) to uniquely identify an option, you need to map your old property to `id` before passing it to Select2.
+
+If you cannot do this on your server or you are in a situation where the API cannot be changed, you can do this in JavaScript before passing it to Select2:
+
+```
+var data = $.map(yourArrayData, function (obj) {
+ obj.id = obj.id || obj.pk; // replace pk with your identifier
+
+ return obj;
+});
+```
+
+### Generating `text` properties
+
+Just like with the `id` property, Select2 requires that the text that should be displayed for an option is stored in the `text` property. You can map this property from any existing property using the following JavaScript:
+
+```
+var data = $.map(yourArrayData, function (obj) {
+ obj.text = obj.text || obj.name; // replace name with the property used for the text
+
+ return obj;
+});
+```
+
+## Automatic string casting
+
+Because the `value` attribute on a `` tag must be a string, and Select2 generates the `value` attribute from the `id` property of the data objects, the `id` property on each data object must also be a string.
+
+Select2 will attempt to convert anything that is not a string to a string, which will work for most situations, but it is recommended to explicitly convert your `id`s to strings ahead of time.
+
+Blank `id`s or an `id` with a value of `0` are not permitted.
+
+## Grouped options
+
+When options are to be generated in `` sections, options should be nested under the `children` key of each group object. The label for the group should be specified as the `text` property on the group's corresponding data object.
+
+```
+{
+ "results": [
+ {
+ "text": "Group 1",
+ "children" : [
+ {
+ "id": 1,
+ "text": "Option 1.1"
+ }
+ {
+ "id": 2,
+ "text": "Option 1.2"
+ }
+ ]
+ },
+ {
+ "text": "Group 2",
+ "children" : [
+ {
+ "id": 3,
+ "text": "Option 2.1"
+ }
+ {
+ "id": 4,
+ "text": "Option 2.2"
+ }
+ ]
+ }
+ ],
+ "paginate": {
+ "more": true
+ }
+}
+```
+
+>>>> Because Select2 generates an `` when creating nested options, only [a single level of nesting is supported](/dropdown/option-groups). Any additional levels of nesting is not guaranteed to be displayed properly across all browsers and devices.
diff --git a/pages/09.data-sources/02.ajax/docs.md b/pages/09.data-sources/02.ajax/docs.md
new file mode 100644
index 00000000..e47147c7
--- /dev/null
+++ b/pages/09.data-sources/02.ajax/docs.md
@@ -0,0 +1,180 @@
+---
+title: Ajax (remote data)
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+Select2 comes with AJAX support built in, using jQuery's AJAX methods. In this example, we can search for repositories using GitHub's API.
+
+
+ select2/select2
+
+
+When using Select2 with remote data, the HTML required for the `select` is the same as any other Select2. If you need to provide default selections, you just need to include an `option` for each selection that contains the value and text that should be displayed.
+
+```
+
+ select2/select2
+
+```
+
+You can configure how Select2 searches for remote data using the `ajax` option. More information on the individual options
+that Select2 handles can be found in the [options documentation for `ajax`](/configuration).
+
+
+
+
+
+Select2 will pass any options in the `ajax` object to jQuery's `$.ajax` function, or the `transport` function you specify.
+
+>>> Select2 expects results from the remote endpoint to be filtered on the **server side**. If server-side filtering is not possible, you may be interested in using Select2's support for data arrays instead.
+
+## Rate-limiting requests
+
+You can tell Select2 to wait until the user has finished typing their search term before triggering the AJAX request. Simply use the `ajax.delay` configuration option to tell Select2 how long to wait after a user has stopped typing before sending the request:
+
+```
+$('select').select2({
+ ajax: {
+ delay: 250 // wait 250 milliseconds before triggering the request
+ }
+});
+```
+
+## Transforming response data
+
+You can use the ajax.processResults
option to transform the data returned by your API into the format expected by Select2:
+
+```
+$('select').select2({
+ ajax: {
+ url: '/example/api',
+ processResults: function (data) {
+ return {
+ results: data.items
+ };
+ }
+ }
+});
+```
+
+## Default values
+
+You may wish to set a pre-selected default value for a Select2 control that receives its data from an AJAX request.
+
+To do this, please refer to the following Stack Overflow answer: [Select2 4.0.0 initial value with AJAX](http://stackoverflow.com/q/30316586/359284#30328989).
+
+## Additional request parameters
+
+By default, Select2 will send the search query term as well as the pagination data as query parameters in requests.
+
+Sometimes, you may need to add additional query parameters to the request. You can modify the parameters that are sent with the request by overriding the `ajax.data` option:
+
+```
+$('select').select2({
+ ajax: {
+ data: function (params) {
+ var query = {
+ search: params.term,
+ page: params.page
+ }
+
+ // Query parameters will be ?search=[term]&page=[page]
+ return query;
+ }
+ }
+});
+```
+
+## Dynamic URLs
+
+If there isn't a single url for your search results, or you need to call a function to determine the url to use, you can specify a callback for the `ajax.url` option to generate the url. The current search query will be passed in through the `params` option:
+
+```
+$('select').select2({
+ ajax: {
+ url: function (params) {
+ return '/some/url/' + params.term;
+ }
+ }
+});
+```
+
+## Alternative transport methods
+
+Select2 uses the transport method defined in `ajax.transport` to send requests to your API. By default this transport method is `jQuery.ajax`, but it can be easily overridden:
+
+```
+$('select').select2({
+ ajax: {
+ transport: function (params, success, failure) {
+ var request = new AjaxRequest(params.url, params);
+ request.on('success', success);
+ request.on('failure', failure);
+ }
+ }
+});
+```
diff --git a/pages/09.data-sources/03.arrays/docs.md b/pages/09.data-sources/03.arrays/docs.md
new file mode 100644
index 00000000..db4cd225
--- /dev/null
+++ b/pages/09.data-sources/03.arrays/docs.md
@@ -0,0 +1,61 @@
+---
+title: Arrays
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+## Loading array data
+
+You may use the `data` configuration option to load dropdown options from a local array.
+
+You can provide initial selections with array data by providing the option tag for the selected values, similar to how it would be done for a standard select.
+
+
+
+
+
+
+
+ duplicate
+
+
+
+
+
+
+
diff --git a/pages/09.data-sources/chapter.md b/pages/09.data-sources/chapter.md
new file mode 100644
index 00000000..7d866b36
--- /dev/null
+++ b/pages/09.data-sources/chapter.md
@@ -0,0 +1,11 @@
+---
+title: Data sources
+taxonomy:
+ category: docs
+---
+
+### Chapter 3
+
+# Data sources
+
+In addition to handling `` elements that explicitly appear in your markup, Select2 can also retrieve the results from other data sources such as a remote JSON API or a local Javascript array.
diff --git a/pages/10.programmatic-control/01.methods/docs.md b/pages/10.programmatic-control/01.methods/docs.md
new file mode 100644
index 00000000..5c6f74e7
--- /dev/null
+++ b/pages/10.programmatic-control/01.methods/docs.md
@@ -0,0 +1,164 @@
+---
+title: Methods
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+Select2 supports methods that allow programmatic control of the component.
+
+## Selecting a value
+
+To programmatically select a value for a Select2 control, use the jQuery `.val()` method:
+
+```
+$('select').val('US'); // Select the option with a value of 'US'
+$('select').trigger('change'); // Notify any JS components that the value changed
+```
+
+Select2 will listen for the `change` event on the `` element that it is attached to. When you make any external changes that need to be reflected in Select2 (such as changing the value), you should trigger this event.
+
+### Limiting the scope of the `change` event
+
+It's common for other components to be listening to the `change` event, or for custom event handlers to be attached that may have side effects. To limit the scope to **only** notify Select2 of the change, use the `.select2` event namespace:
+
+```
+$('select').val('US'); // Change the value or make some change to the internal state
+$('select').trigger('change.select2'); // Notify only Select2 of changes
+```
+
+## Retrieving the selected values
+
+There are two ways to programmatically access the selection data: using `.select2('data')`, or by using a jQuery selector.
+
+### Using the `data` method
+
+Calling `select2('data')` will return a JavaScript array of objects representing the current selection. Each object will contain all of the properties/values that were in the source data objects passed through `processResults` and `templateResult` callbacks (as in Loading data from an array and Connecting to a remote data source ).
+
+```
+$('select').select2('data');
+```
+
+### Using a jQuery selector
+
+Selected items can also be accessed via the `:selected` jQuery selector:
+
+```
+$('select').find(':selected');
+```
+
+It is possible to extend the `` elements representing selection with the HTML data-* attributes containing arbitrary data from the source data objects:
+
+```
+$('select').select2({
+ // ...
+ templateSelection: function (data, container) {
+ $(data.element).attr('data-custom-attribute', data.customValue);
+ return data.text;
+ }
+});
+
+// Retrieve custom attribute value of the first selected element
+$('select').find(':selected').attr('data-custom-attribute')
+```
+
+## Opening the dropdown
+
+Methods handled directly by Select2 can be invoked by passing the name of the method to `.select2(...)`.
+
+The `open` method will cause the dropdown menu to open, displaying the selectable options:
+
+```
+$('select').select2('open');
+```
+
+## Closing the dropdown
+
+The `close` method will cause the dropdown menu to close, hiding the selectable options:
+
+```
+$('select').select2('close');
+```
+
+## Destroying the Select2 control
+
+The `destroy` method will remove the Select2 widget from the target element. It will revert back to a standard `select` control:
+
+```
+$('select').select2('destroy');
+```
+
+## Clearing selections
+
+You may clear all current selections in a Select2 control by setting the value of the control to `null`:
+
+```
+$('select').val(null).trigger('change');
+```
+
+## Examples
+
+
+
+
Single select
+
+
+ Set "California"
+
+
+
+ Open
+
+
+
+ Close
+
+
+
+ Destroy
+
+
+
+ Re-initialize
+
+
+
+
+
+
Multiple select
+
+
+ Set to California and Alabama
+
+
+
+ Clear
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/10.programmatic-control/02.events/docs.md b/pages/10.programmatic-control/02.events/docs.md
new file mode 100644
index 00000000..d4807ca8
--- /dev/null
+++ b/pages/10.programmatic-control/02.events/docs.md
@@ -0,0 +1,97 @@
+---
+title: Events
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+Select2 will trigger a few different events when different actions are taken using the component, allowing you to add custom hooks and perform actions.
+
+| Event | Description |
+| ----- | ----------- |
+| `change` | Triggered whenever an option is selected or removed. |
+| `select2:closing` | Triggered before the dropdown is closed. This event can be prevented. |
+| `select2:close` | Triggered whenever the dropdown is closed. select2:closing
is fired before this and can be prevented. |
+| `select2:opening` | Triggered before the dropdown is opened. This event can be prevented. |
+| `select2:open` | Triggered whenever the dropdown is opened. select2:opening
is fired before this and can be prevented. |
+| `select2:selecting` | Triggered before a result is selected. This event can be prevented. |
+| `select2:select` | Triggered whenever a result is selected. select2:selecting
is fired before this and can be prevented. |
+| `select2:unselecting` | Triggered before a selection is removed. This event can be prevented. |
+| `select2:unselect` | Triggered whenever a selection is removed. select2:unselecting
is fired before this and can be prevented. |
+
+## Listening for events
+
+```
+$('select').on('select2:select', function (e) {
+ // Do something
+});
+```
+
+## Event data
+
+When `select2:select` is triggered, data from the selection can ba accessed via the `params.data` property:
+
+```
+$('select').on('select2:select', function (e) {
+ console.log(e.params.data)
+});
+```
+
+### What events can be prevented? How can I prevent a selection from being made?
+
+
+## Examples
+
+
+
+
+
+
+
+
+
+## Internal Select2 events
+
+Select2 has an internal event system that works independently of the DOM event system. This internal event system is only accessible from plugins and adapters that are connected to Select2.
diff --git a/pages/10.programmatic-control/chapter.md b/pages/10.programmatic-control/chapter.md
new file mode 100644
index 00000000..397aec54
--- /dev/null
+++ b/pages/10.programmatic-control/chapter.md
@@ -0,0 +1,9 @@
+---
+title: Programmatic control
+taxonomy:
+ category: docs
+---
+
+### Chapter 3
+
+# Programmatic Control
diff --git a/pages/11.i18n/docs.md b/pages/11.i18n/docs.md
new file mode 100644
index 00000000..caac35a4
--- /dev/null
+++ b/pages/11.i18n/docs.md
@@ -0,0 +1,77 @@
+---
+title: Internationalization
+taxonomy:
+ category: docs
+process:
+ twig: true
+never_cache_twig: true
+---
+
+## Multiple languages (localization)
+
+Select2 supports displaying the messages in different languages, as well
+as providing your own
+custom messages
+that can be displayed.
+
+The language does not have to be defined when Select2 is being
+initialized, but instead can be defined in the [lang]
+attribute of any parent elements as [lang="es"]
.
+
+
+
+```
+$(".js-example-language").select2({
+ language: "es"
+});
+```
+
+## RTL support
+
+Select2 will work on RTL websites if the dir
attribute is
+set on the <select>
or any parents of it. You can also
+initialize Select2 with dir: "rtl"
set.
+
+
+
+```
+$(".js-example-rtl").select2({
+ dir: "rtl"
+});
+```
+
+## Transliteration support (diacritics)
+
+Select2's default matcher will ignore diacritics, making it easier for
+users to filter results in international selects. Type "aero" into the
+select below.
+
+
+
+
+ Aeróbics
+ Aeróbics en Agua
+ Aerografía
+ Aeromodelaje
+ Águilas
+ Ajedrez
+ Ala Delta
+ Álbumes de Música
+ Alusivos
+ Análisis de Escritura a Mano
+
+
+
+
+```
+$(".js-example-diacritics").select2();
+```
diff --git a/pages/12.advanced/adapters.html b/pages/12.advanced/adapters.html
new file mode 100644
index 00000000..c0807ede
--- /dev/null
+++ b/pages/12.advanced/adapters.html
@@ -0,0 +1,209 @@
+
+
+
+
+ Select2 allows plugins to add additional functionality through the core
+ adapters. You can change almost anything involving the way Select2 works
+ to the way Select2 interacts with the page by modifying the core adapters.
+ Most third-party plugins should provide decorators (used to wrap adapters)
+ and custom adapters that you can use.
+
+
+
+ Each adapter contains a set of methods which will must always be defined.
+ Along with the global methods that all adapters must implement, these
+ methods must be implemented.
+
+
+
+ All adapters
+
+
+
+ All adapters must implement a set of methods that Select2 will use to
+ display them and bind any internal events.
+
+
+
+// The basic HTML that should be rendered by Select2. A jQuery or DOM element
+// should be returned, which will automatically be placed by Select2 within the
+// DOM.
+//
+// @returns A jQuery or DOM element that contains any elements that must be
+// rendered by Select2.
+Adapter.render = function () {
+ return $jq;
+};
+
+// Bind to any Select2 or DOM events.
+//
+// @param container The Select2 object that is bound to the jQuery element. You
+// can listen to Select2 events with `on` and trigger Select2 events using the
+// `trigger` method.
+// @param $container The jQuery DOM node that all default adapters will be
+// rendered within.
+Adapter.bind = function (container, $container) { };
+
+// Position the DOM element within the Select2 DOM container, or in another
+// place. This allows adapters to be located outside of the Select2 DOM,
+// such as at the end of the document or in a specific place within the Select2
+// DOM node.
+//
+// Note: This method is not called on data adapters.
+//
+// @param $rendered The rendered DOM element that was returned from the call to
+// `render`. This may have been modified by Select2, but the root element
+// will always be the same.
+// @param $defaultContainer The default container that Select2 will typically
+// place the rendered DOM element within. For most adapters, this is the
+// Select2 DOM element.
+Adapter.position = function ($rendered, $defaultContainer) { };
+
+// Destroy any events or DOM elements that have been created.
+// This is called when `select2("destroy")` is called on an element.
+Adapter.destroy = function () { };
+
+
+
+ Container (selection)
+
+
+
+ The selection is what is shown to the user as a replacement of the
+ standard <select>
box. It controls the display of the
+ selection option(s), as well anything else that needs to be embedded
+ within the container, such as a search box.
+
+
+
+ Key
+
+ selectionAdapter
+
+
+ Default
+
+ SingleSelection
or
+ MultipleSelection
+
+
+ Base
+
+ BaseSelection
+
+
+
+
+// Update the selected data.
+//
+// @param data An array of data objects that have been generated by the data
+// adapter. If no objects should be selected, an empty array will be passed.
+//
+// Note: An array will always be passed into this method, even if Select2 is
+// attached to a source which only accepts a single selection.
+SelectionAdapter.update = function (data) { };
+
+
+
+ Data set
+
+
+
+ The data set is what Select2 uses to generate the possible results that
+ can be selected, as well as the currently selected results.
+
+
+
+ Key
+
+ dataAdapter
+
+
+ Default
+
+ SelectAdapter
+
+
+ Base
+
+ BaseAdapter
+
+
+
+
+// Get the currently selected options. This is called when trying to get the
+// initial selection for Select2, as well as when Select2 needs to determine
+// what options within the results are selected.
+//
+// @param callback A function that should be called when the current selection
+// has been retrieved. The first parameter to the function should be an array
+// of data objects.
+DataAdapter.current = function (callback) {
+ callback(currentData);
+}
+
+// Get a set of options that are filtered based on the parameters that have
+// been passed on in.
+//
+// @param params An object containing any number of parameters that the query
+// could be affected by. Only the core parameters will be documented.
+// @param params.term A user-supplied term. This is typically the value of the
+// search box, if one exists, but can also be an empty string or null value.
+// @param params.page The specific page that should be loaded. This is typically
+// provided when working with remote data sets, which rely on pagination to
+// determine what objects should be displayed.
+// @param callback The function that should be called with the queried results.
+DataAdapter.query = function (params, callback) {
+ callback(queryiedData);
+}
+
+
+
+ Dropdown
+
+
+
+ The dropdown adapter defines the main container that the dropdown should
+ be held in. It does not define any extra methods that can be used
+ for decorators , but it is common for decorators to attach to the
+ render
and position
methods to alter how the
+ dropdown is altered and positioned.
+
+
+
+ Key
+
+ dropdownAdapter
+
+
+ Default
+
+ DropdownAdapter
+
+
+
+
+ Results
+
+
+
+ The results adapter controls the list of results that the user can select
+ from. While the results adapter does not define any additional methods
+ that must be implemented, it makes extensive use of the Select2 event
+ system for controlling the display of results and messages.
+
+
+
+ Key
+
+ resultsAdapter
+
+
+ Default
+
+ ResultsAdapter
+
+
+
diff --git a/pages/12.advanced/backwards-compatibility.html b/pages/12.advanced/backwards-compatibility.html
new file mode 100644
index 00000000..4bdd9372
--- /dev/null
+++ b/pages/12.advanced/backwards-compatibility.html
@@ -0,0 +1,200 @@
+
+
+
+
+ Select2 offers limited backwards compatibility with the previously 3.5.x
+ release line, allowing people more efficiently transfer across releases
+ and get the latest features. For many of the larger changes, such as the
+ change in how custom data adapters work, compatibility modules were
+ created that will be used to assist in the upgrade process. It is not
+ recommended to rely on these compatibility modules, as they will not
+ always exist, but they make upgrading easier for major changes.
+
+
+
+ The compatibility modules are only included in the
+ full builds of
+ Select2 . These files end in .full.js
, and the
+ compatibility modules are prefixed with select2/compat
.
+
+
+
+ Simplified function for matching data objects
+
+
+
+ Added in Select2 4.0.0.
+ This method was added to make upgrading easier from earlier versions of
+ Select2.
+
+
+
+ During the Select2 4.0.0 release , the
+ matcher
function was changed to allow for more complex
+ matching of nested objects.
+
+
+
+
+
+ Key
+
+ matcher
+
+
+ Value
+
+ A function taking a search term
and the data object
+ text
.
+
+
+
+
+
+
+ Adapter
+
+ oldMatcher
+
+
+
+
+
+
+ The custom matcher example provides a
+ guide for how to use this in your own application. For those upgrading
+ from older versions of Select2, you just need to wrap your old
+ matcher
with this function to maintain compatibility.
+
+
+
+ Old initial selections with initSelection
+
+
+
+ Deprecated in Select2 4.0.
+ This has been replaced by another option and is only available in the
+ full builds of
+ Select2.
+
+
+
+ In the past, Select2 required an option called initSelection
+ that was defined whenever a custom data source was being used, allowing
+ for the initial selection for the component to be determined. This has
+ been replaced by the current
method on the
+ data adapter .
+
+
+
+
+
+ Key
+
+ initSelection
+
+
+ Value
+
+ A function taking a callback
+
+
+
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ InitSelection
+
+
+
+
+
+
+ Querying old data with query
+
+
+
+ Deprecated in Select2 4.0.
+ This has been replaced by another option and is only available in the
+ full builds of
+ Select2.
+
+
+
+ In the past, Select2 supported an option called query
that
+ allowed for a custom data source to be used. This option has been replaced
+ by the query
method on the
+ data adapter and takes a very similar set of
+ parameters.
+
+
+
+
+
+ Key
+
+ query
+
+
+ Value
+
+ A function taking params
(including a callback
)
+
+
+
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ Query
+
+
+
+
+
+
+
+
+ Deprecated in Select2 4.0.
+ It is now encouraged to use the <select>
tag instead.
+
+
+
+ In past versions of Select2, a <select>
element could
+ only be used with a limited subset of options. An
+ <input type="hidden" />
was required instead, which did
+ not allow for a graceful fallback for users who did not have JavaScript
+ enabled. Select2 now supports the <select>
element for
+ all options, so it is no longer required to use <input />
+ elements with Select2.
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ InputData
+
+
+
diff --git a/pages/12.advanced/core-options.html b/pages/12.advanced/core-options.html
new file mode 100644
index 00000000..c32ca56f
--- /dev/null
+++ b/pages/12.advanced/core-options.html
@@ -0,0 +1,790 @@
+
+
+
+
+ Select2 supports a small subset of options in every build that is
+ generated. Each option typically has a decorator that is required that
+ wraps an adapter, adding support for the option. This is only required
+ when a custom adapter is being used, as Select2 will build the required
+ adapters by default.
+
+
+
+ Select2 will automatically apply decorators to any adapters which have not
+ been manually overridden. The only time you need to decorate adapters is
+ when you are using third-party adapters not provided by Select2, or you
+ are using features not provided in the Select2 core. You can apply a
+ decorator to an adapter using the
+ Utils.Decorate
method provided with
+ Select2.
+
+
+
+$.fn.select2.amd.require(
+ ["select2/utils", "select2/selection/single", "select2/selection/placeholder"],
+ function (Utils, SingleSelection, Placeholder) {
+ var CustomSelectionAdapter = Utils.Decorate(SingleSelection, Placeholder);
+});
+
+
+
+ All core options that use decorators or adapters will clearly state it
+ in the "Decorator" or "Adapter" part of the documentation. Decorators are
+ typically only compatible with a specific type of adapter, so make sure to
+ note what adapter is given.
+
+
+
+ Declaring configuration in the data-*
attributes
+
+
+
+ It is recommended that you declare your configuration options for Select2
+ when initializing Select2. You can also define your configuration options
+ by using the HTML5 data-*
attributes, which will override
+ any options set when initializing Select2 and any defaults.
+
+
+
+ This means that if you declare your <select>
tag as...
+
+
+
+<select data-tags="true" data-placeholder="Select an option"></select>
+
+
+
+ Will be interpreted the same as initializing Select2 as...
+
+
+
+$("select").select2({
+ tags: "true",
+ placeholder: "Select an option"
+});
+
+
+
+ You can also define nested configurations, which are typically needed for
+ options such as AJAX. Each level of nesting should be separated by two
+ dashes (--
) instead of one. Due to
+ a jQuery bug ,
+ nested options using data-*
attributes
+ do not work in jQuery 1.x .
+
+
+
+<select data-ajax--url="http://example.org/api/test" data-ajax--cache="true"></select>
+
+
+
+ Which will be interpreted the same as initializing Select2 with...
+
+
+
+$("select").select2({
+ ajax: {
+ url: "http://example.org/api/test",
+ cache: "true"
+ }
+});
+
+
+
+ The value of the option is subject to jQuery's
+ parsing rules for
+ HTML5 data attributes.
+
+
+
+ AMD compatibility
+
+
+
+ You can find more information on how to integrate Select2 with your
+ existing AMD-based project by
+ viewing the 4.0 release notes .
+ Select2 automatically loads some modules when the adapters are being
+ automatically constructed, so those who are using Select2 with a custom
+ AMD build using their own system may need to specify the paths that are
+ generated to the Select2 modules.
+
+
+
+
+
+ Key
+
+ amdBase
+
+
+ Default
+
+ select2/
+
+
+
+
+
+ Key
+
+ amdLanguageBase
+
+
+ Default
+
+ select2/i18n/
+
+
+
+
+
+
+ Displaying selections
+
+
+
+ Select2 provides options that allow you to directly affect how the
+ container that holds the current selection is displayed.
+
+
+
+ Placeholders
+
+
+
+ Select2 can display a placeholder for a single-value select that will
+ replace an option, or be shown when no options are selected for
+ multiple-value selects. You can find an example on the
+ example page .
+
+
+
+
+
+ Key
+
+ placeholder
+
+
+ Value
+ string or object
+
+
+
+
+
+ Adapter
+
+ SelectionAdapter
+
+
+ Decorator
+
+ Placeholder
+ and
+ HidePlaceholder
+
+
+
+
+
+
+ Heads up!
+ Because browsers assume that the first option
in
+ single-value select boxes is selected, you should add an empty
+ <option></option>
tag that the placeholder
+ should use or it may not work.
+
+
+
+
+
+ If the value is a string , the placeholder will be
+ displayed when a blank option is used as the placeholder.
+ The value will be the message to show to users as the
+ placeholders.
+
+
+
+placeholder: "Select a repository"
+
+
+
+ If the value is an object , the object should be
+ compatible with Select2's internal objects. The id
should
+ be the id to look for when determining if the placeholder should be
+ displayed. The text
should be the placeholder to display
+ when that option is selected.
+
+
+
+placeholder: {
+ id: "-1",
+ text: "Select a repository"
+}
+
+
+
+ You should pass in an object when you are using a
+ framework that creates its own placeholder option . The
+ id should be the same as the value
+ attribute on the option
.
+
+
+
+ You can allow a selected option to be cleared back to the placeholder by
+ enabling the allowClear
option.
+
+
+
+
+
+ Key
+ allowClear
+
+ Value
+ boolean
+
+
+
+
+
+ Adapter
+
+ SelectionAdapter
+
+
+ Decorator
+
+ AllowClear
+
+
+
+
+
+
+ This will display an "x" that the user can click to clear the current
+ selection. It is designed to be used for cases where a single selection
+ can be made.
+
+
+
+ Multiple selections
+
+
+
+ Select2 can display either a single selection or multiple selections.
+
+
+
+ Key
+ multiple
+
+ Value
+ boolean (true
or false
)
+
+
+
+ This option will determine what the SelectAdapter
(used by
+ default) should use to set the value of the underlying select
+ element. It will also determine if the MultipleSelection
+ adapter should be used.
+
+
+
+ Container width
+
+
+
+ Select2 will try to match the width of the original element as closely as
+ possible. Sometimes this isn't perfect, which is what you can tell Select2
+ how to determine the width.
+
+
+
+
+
+
+
+ Value
+ Description
+
+
+
+
+ "element"
+
+ Uses javascript to calculate the width of the source element.
+
+
+
+ "style"
+
+ Copies the value of the width style
attribute set on the source element.
+
+
+
+ "resolve"
+
+ Tries to use style
to determine the width, falling back to element
.
+
+
+
+ Anything else
+
+ The value of the width
option is directly set as the width of the container.
+
+
+
+
+
+
+
+ Key
+ width
+
+ Value
+ string
+
+
+
+
+
+ Internationalization (Language support)
+
+
+
+ Messages will be displayed to users when necessary, such as when no
+ search results were found or more characters need to be entered in order
+ for a search to be made. These messages have been
+ translated into many languages
+ by contributors to Select2, but you can also provide your own
+ translations.
+
+
+
+
+
+ Key
+ language
+
+ Value
+ object or string
+
+
+
+
+
+ Module
+
+ Translation
+
+
+
+
+
+
+ Heads up! When using translations provided by Select2,
+ you must make sure to include the translation file in your page after
+ Select2.
+
+
+
+
+
+ When a string is passed in as the language, Select2 will try to resolve
+ it into a language file. This allows you to specify your own language
+ files, which must be defined as an AMD module. If the language file
+ cannot be found, Select2 will assume it is a language code controlled by
+ Select2, and it will try to load the translations for that language
+ instead.
+
+
+
+ You can include your own translations by providing an object similar to
+ the one below.
+
+
+
+language: {
+ // You can find all of the options in the language files provided in the
+ // build. They all must be functions that return the string that should be
+ // displayed.
+ inputTooShort: function () {
+ return "You must enter more characters...";
+ }
+}
+
+
+
+ Templating results and selections
+
+
+
+ By default, Select2 will display the option text within the list of
+ results and when the option has been selected. Select2 comes with options
+ that allow you to further customize the display of results and selections,
+ allowing you to display them however you want.
+
+
+
+ Customizing the display of selections
+
+
+
+ When an option is displayed after it has been selected, it is passed
+ through a formatting function that determines what is displayed. By
+ default, the function only returns the text
key of the data
+ object.
+
+
+
+ Key
+ templateSelection
+
+ Value
+ A function taking a selection
object
+
+
+
+ Anything rendered as a selection is templated.
+ This includes placeholders and pre-existing selections that are displayed,
+ so you must ensure that your templating functions can support them.
+
+
+
+ The templateSelection
function should return a string
+ containing the text to be displayed, or an object (such as a jQuery
+ object) that contains the data that should be displayed.
+
+
+
+ Strings are assumed to contain only text and will be
+ passed through the escapeMarkup
function, which strips any
+ HTML markup.
+
+
+
+
+ Anything else will be passed
+ directly to jQuery.fn.append
+ and will be handled directly by jQuery. Any markup, such as
+ HTML, returned will not be escaped and it is up to you to escape any
+ malicious input provided by users.
+
+
+
+ Customizing the display of results
+
+
+
+ When an option is displayed after it has been selected, it is passed
+ through a formatting function that determines what is displayed. By
+ default, the function only returns the text
key of the data
+ object.
+
+
+
+ Key
+ templateResult
+
+ Value
+ A function taking a result
object
+
+
+
+ Anything rendered in the results is templated.
+ This includes results such as the "Searching..." and "Loading more..."
+ text which will periodically be displayed, which allows you to add more
+ advanced formatting to these automatically generated options.
+
+
+
+ The templateResult
function should return a string
+ containing the text to be displayed, or an object (such as a jQuery
+ object) that contains the data that should be displayed. It can also
+ return null
, which will prevent the option from being
+ displayed in the results list.
+
+
+
+ Strings are assumed to contain only text and will be
+ passed through the escapeMarkup
function, which strips any
+ HTML markup.
+
+
+
+
+ Anything else will be passed
+ directly to jQuery.fn.append
+ and will be handled directly by jQuery. Any markup, such as
+ HTML, returned will not be escaped and it is up to you to escape any
+ malicious input provided by users.
+
+
+
+ Returning and displaying results
+
+
+
+ Select2 can work on many different data sets ranging from local options,
+ the same way that a <select>
typically works, from
+ remote options where a server generates the results that users can select
+ from.
+
+
+
+ Array
+
+
+
+ Select2 allows creating the results based on an array of data objects that
+ is included when initializing Select2.
+
+
+
+
+
+ Key
+ data
+
+ Value
+ array of objects
+
+
+
+
+
+ Adapter
+
+ ArrayAdapter
+
+
+
+
+
+
+ The objects that the users can select from should be passed as an array
+ with each object containing id
and text
+ properties.
+
+
+
+ AJAX
+
+
+
+ Select2 allows searching for results from remote data sources using AJAX
+ requests.
+
+
+
+
+
+ Key
+ ajax
+
+ Value
+ object
+
+
+
+
+
+ Adapter
+
+ AjaxAdapter
+
+
+
+
+
+
+ All options passed to this option will be directly passed to the
+ $.ajax
function that executes AJAX requests. There are a few
+ custom options that Select2 will intercept, allowing you to customize the
+ request as it is being made.
+
+
+ajax: {
+ // The number of milliseconds to wait for the user to stop typing before
+ // issuing the ajax request.
+ delay: 250,
+ // You can craft a custom url based on the parameters that are passed into the
+ // request. This is useful if you are using a framework which has
+ // JavaScript-based functions for generating the urls to make requests to.
+ //
+ // @param params The object containing the parameters used to generate the
+ // request.
+ // @returns The url that the request should be made to.
+ url: function (params) {
+ return UrlGenerator.Random();
+ },
+ // You can pass custom data into the request based on the parameters used to
+ // make the request. For `GET` requests, the default method, these are the
+ // query parameters that are appended to the url. For `POST` requests, this
+ // is the form data that will be passed into the request. For other requests,
+ // the data returned from here should be customized based on what jQuery and
+ // your server are expecting.
+ //
+ // @param params The object containing the parameters used to generate the
+ // request.
+ // @returns Data to be directly passed into the request.
+ data: function (params) {
+ var queryParameters = {
+ q: params.term
+ }
+
+ return queryParameters;
+ },
+ // You can modify the results that are returned from the server, allowing you
+ // to make last-minute changes to the data, or find the correct part of the
+ // response to pass to Select2. Keep in mind that results should be passed as
+ // an array of objects.
+ //
+ // @param data The data as it is returned directly by jQuery.
+ // @returns An object containing the results data as well as any required
+ // metadata that is used by plugins. The object should contain an array of
+ // data objects as the `results` key.
+ processResults: function (data) {
+ return {
+ results: data
+ };
+ },
+ // You can use a custom AJAX transport function if you do not want to use the
+ // default one provided by jQuery.
+ //
+ // @param params The object containing the parameters used to generate the
+ // request.
+ // @param success A callback function that takes `data`, the results from the
+ // request.
+ // @param failure A callback function that indicates that the request could
+ // not be completed.
+ // @returns An object that has an `abort` function that can be called to abort
+ // the request if needed.
+ transport: function (params, success, failure) {
+ var $request = $.ajax(params);
+
+ $request.then(success);
+ $request.fail(failure);
+
+ return $request;
+ }
+}
+
+
+
+
+
+
+ Users can create their own options based on the text that they have
+ entered.
+
+
+
+
+
+ Key
+ tags
+
+ Value
+ boolean / array of objects
+
+
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ Tags
+
+
+
+
+
+
+ If the tags
option is passed into Select2, if a user types
+ anything into the search box which doesn't already exist, it will be
+ displayed at the top and the user will be able to select it.
+
+
+
+ For backwards compatibility , if an array of objects is
+ passed in with the tags
option, the options will be
+ automatically created and the user will be able to select from them.
+ This is the same as how array data
+ works , and has similar limitations.
+
+
+
+ Change how options are matched when searching
+
+
+
+ When users filter down the results by entering search terms into the
+ search box, Select2 uses an internal "matcher" to match search terms to
+ results. When a remote data set is used, Select2 expects that the
+ returned results have already been filtered.
+
+
+
+ Key
+
+ matcher
+
+
+ Value
+
+ A function taking search params
and the
+ data
object.
+
+
+
+
+ Select2 will pass the individual data objects that have been passed back
+ from the data adapter into the matcher
individually to
+ determine if they should be displayed. Only the first-level objects will
+ be passed in, so if you are working with nested data, you need to
+ match those individually .
+
+
+
+matcher: function (params, data) {
+ // If there are no search terms, return all of the data
+ if ($.trim(params.term) === '') {
+ return data;
+ }
+
+ // `params.term` should be the term that is used for searching
+ // `data.text` is the text that is displayed for the data object
+ if (data.text.indexOf(params.term) > -1) {
+ var modifiedData = $.extend({}, data, true);
+ modifiedData.text += ' (matched)';
+
+ // You can return modified objects from here
+ // This includes matching the `children` how you want in nested data sets
+ return modifiedData;
+ }
+
+ // Return `null` if the term should not be displayed
+ return null;
+}
+
+
+
+ This allows for more advanced matching when working with nested objects,
+ allowing you to handle them however you want. For those who are not
+ looking to implement highly customized matching, but instead are just
+ looking to change the matching algorithm for the text, a
+ compatibility modules has been created to
+ make it easier.
+
+
diff --git a/pages/12.advanced/dropdown.html b/pages/12.advanced/dropdown.html
new file mode 100644
index 00000000..87629077
--- /dev/null
+++ b/pages/12.advanced/dropdown.html
@@ -0,0 +1,308 @@
+
+
+
+
+ Select2 allows you to change the way that the dropdown works, allowing you
+ to do anything from attach it to a different location in the document or
+ add a search box.
+
+
+
+ Attached to body
+
+
+
+ By default, Select2 will attach the dropdown to the end of the body and
+ will absolutely position it to appear below the selection container.
+
+
+
+
+
+ Key
+ dropdownParent
+
+ Value
+ jQuery element or DOM node
+
+
+
+ Adapter
+
+ DropdownAdapter
+
+
+ Decorator
+
+ AttachBody
+
+
+
+
+
+
+ Heads up!
+ This will cause DOM events to be raised outside of the standard
+ Select2 DOM container. This can cause issues with
+ third-party components such as modals.
+
+
+
+
+
+ When the dropdown is attached to the body, you are not limited to just
+ displaying the dropdown below the container. Select2 will display above
+ the container if there is not enough space below the container, but there
+ is enough space above it. You are also not limited to displaying the
+ dropdown within the parent container, which means Select2 will render
+ correctly inside of modals and other small containers.
+
+
+
+ Attached below the container
+
+
+
+ Select2 can place the dropdown directly after the selection container, so
+ it will appear in the same location within the DOM as the rest of Select2.
+
+
+
+
+
+ Adapter
+
+ DropdownAdapter
+
+
+ Decorator
+
+ AttachContainer
+
+
+
+
+
+
+
Check your build. This module is only included in the
+
full builds of
+ Select2.
+
+
+
+
+
+
+ Harvest Chosen
+ migrators!
+
+ If you are migrating to Select2 from Chosen, this option will cause
+ Select2 to position the dropdown in a similar way.
+
+
+
+ Search
+
+
+
+ Users can filter down the results by typing a search term into a box that
+ is displayed at the top of the dropdown.
+
+
+
+ Adapter
+
+ DropdownAdapter
+
+
+ Decorator
+
+ DropdownSearch
+
+
+
+
+ A search box is added to the top of the dropdown automatically for select
+ boxes where only a single option can be selected.
+
+
+
+
+
+ Sometimes when working with large data sets, it is more efficient to start
+ filtering the results when the search term is a certain length. This is
+ very common when working with remote data sets, as allows for only
+ significant search terms to be used.
+
+
+
+
+
+ Key
+ minimumInputLength
+
+ Value
+ integer
+
+
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ MinimumInputLength
+
+
+
+
+
+
+
+
+ In some cases, search terms need to be limited to a certain range. Select2
+ allows you to limit the length of the search term such that it does not
+ exceed a certain length.
+
+
+
+
+
+ Key
+ maximumInputLength
+
+ Value
+ integer
+
+
+
+
+
+ Adapter
+
+ DataAdapter
+
+
+ Decorator
+
+ MaximumInputLength
+
+
+
+
+
+
+
+
+ When working with smaller data sets, the search box can take up more space
+ that is necessary, as there are not enough results for filtering to be
+ effective. Select2 allows you to only display the search box when the
+ number of search results reaches a certain threshold.
+
+
+
+
+
+ Key
+ minimumResultsForSearch
+
+ Value
+ integer
+
+
+
+
+
+ Adapter
+
+ DropdownAdapter
+
+
+ Decorator
+
+ MinimumResultsForSearch
+
+
+
+
+
+
+ Select the highlighted option on close
+
+
+
+ When users close the dropdown, the last highlighted option can be
+ automatically selected. This is commonly used in combination with
+ tagging and placeholders
+ and other situations where the user is required to select an option, or
+ they need to be able to quickly select multiple options.
+
+
+
+ Adapter
+
+ ResultsAdapter
+
+
+ Decorator
+
+ SelectOnClose
+
+
+
+
+ Close the dropdown when a result is selected
+
+
+
+ Select2 will automatically close the dropdown when an element is selected,
+ similar to what is done with a normal select box. This behavior can be
+ changed though to keep the dropdown open when results are selected,
+ allowing for multiple options to be selected quickly.
+
+
+
+
+
+ Key
+ closeOnSelect
+
+ Default
+ true
+
+
+
+
+
+ Adapter
+
+ DropdownAdapter
+
+
+ Decorator
+
+ CloseOnSelect
+
+
+
+
+
+
+ If this decorator is not used (or closeOnSelect
is set to
+ false
), the dropdown will not automatically close when a
+ result is selected. The dropdown will also never close if the
+ ctrl key is held down when the result is selected.
+
+
diff --git a/pages/12.advanced/events.html b/pages/12.advanced/events.html
new file mode 100644
index 00000000..bf4f39a9
--- /dev/null
+++ b/pages/12.advanced/events.html
@@ -0,0 +1,50 @@
+
+
+
+
+ Select2 has an internal event system that is used to notify parts of the
+ component that state has changed, as well as an adapter that allows some
+ of these events to be relayed to the outside word.
+
+
+
+ Adapter
+
+ SelectionAdapter
+
+
+ Decorator
+
+ EventRelay
+
+
+
+
+ Public events
+
+
+
+ All public events are relayed using the jQuery event system, and they are
+ triggered on the <select>
element that Select2 is
+ attached to. You can attach to them using the
+ .on
method provided
+ by jQuery.
+
+
+
+ Internal events
+
+
+
+ Select2 triggers internal events using its own internal event system,
+ which allows adapters to communicate with each other. These events are not
+ accessible through the jQuery event system.
+
+
+
+ You can find more information on the public events triggered by individual
+ adapters in the individual adapter documentation .
+
+
diff --git a/pages/12.advanced/setting-default-options.html b/pages/12.advanced/setting-default-options.html
new file mode 100644
index 00000000..f2c74f60
--- /dev/null
+++ b/pages/12.advanced/setting-default-options.html
@@ -0,0 +1,37 @@
+
+ Setting default options
+
+
+ In some cases, you need to set the default options for all instances of
+ Select2 in your web application. This is especially useful when you are
+ migrating from past versions of Select2, or you are using non-standard
+ options like custom AMD builds . Select2 exposes the
+ default options through $.fn.select2.defaults
, which allows
+ you to set them globally.
+
+
+
+ When setting options globally, any past defaults that have been set will
+ be overriden. Default options are only used when an option is requested
+ that has not been set during initialization.
+
+
+
+ You can set default options by calling
+ $.fn.select2.defaults.set("key", "value")
. The key that is
+ set should take the same format as keys set using
+ HTML data-*
attributes which
+ means that two dashes (--
) will be replaced by a level of
+ nesting, and a single dash (-
) will convert it to a camelCase
+ string.
+
+
+
+$.fn.select2.defaults.set("theme", "classic");
+
+
+
+ You can reset the default options by calling
+ $.fn.select2.defaults.reset()
.
+
+
diff --git a/pages/images/flags/ak.png b/pages/images/flags/ak.png
new file mode 100755
index 00000000..d79dc4fe
Binary files /dev/null and b/pages/images/flags/ak.png differ
diff --git a/pages/images/flags/al.png b/pages/images/flags/al.png
new file mode 100755
index 00000000..a729794e
Binary files /dev/null and b/pages/images/flags/al.png differ
diff --git a/pages/images/flags/ar.png b/pages/images/flags/ar.png
new file mode 100755
index 00000000..6357a8f6
Binary files /dev/null and b/pages/images/flags/ar.png differ
diff --git a/pages/images/flags/az.png b/pages/images/flags/az.png
new file mode 100755
index 00000000..b6d8aaea
Binary files /dev/null and b/pages/images/flags/az.png differ
diff --git a/pages/images/flags/ca.png b/pages/images/flags/ca.png
new file mode 100755
index 00000000..9d6d955f
Binary files /dev/null and b/pages/images/flags/ca.png differ
diff --git a/pages/images/flags/co.png b/pages/images/flags/co.png
new file mode 100755
index 00000000..888e8308
Binary files /dev/null and b/pages/images/flags/co.png differ
diff --git a/pages/images/flags/ct.png b/pages/images/flags/ct.png
new file mode 100755
index 00000000..a953918a
Binary files /dev/null and b/pages/images/flags/ct.png differ
diff --git a/pages/images/flags/de.png b/pages/images/flags/de.png
new file mode 100755
index 00000000..1bfb3bad
Binary files /dev/null and b/pages/images/flags/de.png differ
diff --git a/pages/images/flags/fl.png b/pages/images/flags/fl.png
new file mode 100755
index 00000000..199a2f16
Binary files /dev/null and b/pages/images/flags/fl.png differ
diff --git a/pages/images/flags/ga.png b/pages/images/flags/ga.png
new file mode 100755
index 00000000..03f52bb8
Binary files /dev/null and b/pages/images/flags/ga.png differ
diff --git a/pages/images/flags/hi.png b/pages/images/flags/hi.png
new file mode 100755
index 00000000..36de7a58
Binary files /dev/null and b/pages/images/flags/hi.png differ
diff --git a/pages/images/flags/ia.png b/pages/images/flags/ia.png
new file mode 100755
index 00000000..c2c4cf0f
Binary files /dev/null and b/pages/images/flags/ia.png differ
diff --git a/pages/images/flags/id.png b/pages/images/flags/id.png
new file mode 100755
index 00000000..bfbf897f
Binary files /dev/null and b/pages/images/flags/id.png differ
diff --git a/pages/images/flags/il.png b/pages/images/flags/il.png
new file mode 100755
index 00000000..5c13e67a
Binary files /dev/null and b/pages/images/flags/il.png differ
diff --git a/pages/images/flags/in.png b/pages/images/flags/in.png
new file mode 100755
index 00000000..5952580b
Binary files /dev/null and b/pages/images/flags/in.png differ
diff --git a/pages/images/flags/ks.png b/pages/images/flags/ks.png
new file mode 100755
index 00000000..9190b24d
Binary files /dev/null and b/pages/images/flags/ks.png differ
diff --git a/pages/images/flags/ky.png b/pages/images/flags/ky.png
new file mode 100755
index 00000000..5c8d0cad
Binary files /dev/null and b/pages/images/flags/ky.png differ
diff --git a/pages/images/flags/la.png b/pages/images/flags/la.png
new file mode 100755
index 00000000..3f2c4785
Binary files /dev/null and b/pages/images/flags/la.png differ
diff --git a/pages/images/flags/ma.png b/pages/images/flags/ma.png
new file mode 100755
index 00000000..a5020813
Binary files /dev/null and b/pages/images/flags/ma.png differ
diff --git a/pages/images/flags/md.png b/pages/images/flags/md.png
new file mode 100755
index 00000000..1717a264
Binary files /dev/null and b/pages/images/flags/md.png differ
diff --git a/pages/images/flags/me.png b/pages/images/flags/me.png
new file mode 100755
index 00000000..7e696f3e
Binary files /dev/null and b/pages/images/flags/me.png differ
diff --git a/pages/images/flags/mi.png b/pages/images/flags/mi.png
new file mode 100755
index 00000000..49494fcf
Binary files /dev/null and b/pages/images/flags/mi.png differ
diff --git a/pages/images/flags/mn.png b/pages/images/flags/mn.png
new file mode 100755
index 00000000..602f36b3
Binary files /dev/null and b/pages/images/flags/mn.png differ
diff --git a/pages/images/flags/mo.png b/pages/images/flags/mo.png
new file mode 100755
index 00000000..413ea1a6
Binary files /dev/null and b/pages/images/flags/mo.png differ
diff --git a/pages/images/flags/ms.png b/pages/images/flags/ms.png
new file mode 100755
index 00000000..d3e4a1cd
Binary files /dev/null and b/pages/images/flags/ms.png differ
diff --git a/pages/images/flags/mt.png b/pages/images/flags/mt.png
new file mode 100755
index 00000000..6822acb9
Binary files /dev/null and b/pages/images/flags/mt.png differ
diff --git a/pages/images/flags/nc.png b/pages/images/flags/nc.png
new file mode 100755
index 00000000..9555820d
Binary files /dev/null and b/pages/images/flags/nc.png differ
diff --git a/pages/images/flags/nd.png b/pages/images/flags/nd.png
new file mode 100755
index 00000000..87e401cf
Binary files /dev/null and b/pages/images/flags/nd.png differ
diff --git a/pages/images/flags/ne.png b/pages/images/flags/ne.png
new file mode 100755
index 00000000..a69e15fc
Binary files /dev/null and b/pages/images/flags/ne.png differ
diff --git a/pages/images/flags/nh.png b/pages/images/flags/nh.png
new file mode 100755
index 00000000..d6ad1cb6
Binary files /dev/null and b/pages/images/flags/nh.png differ
diff --git a/pages/images/flags/nj.png b/pages/images/flags/nj.png
new file mode 100755
index 00000000..f2c64660
Binary files /dev/null and b/pages/images/flags/nj.png differ
diff --git a/pages/images/flags/nm.png b/pages/images/flags/nm.png
new file mode 100755
index 00000000..c2731811
Binary files /dev/null and b/pages/images/flags/nm.png differ
diff --git a/pages/images/flags/nv.png b/pages/images/flags/nv.png
new file mode 100755
index 00000000..8f1a855d
Binary files /dev/null and b/pages/images/flags/nv.png differ
diff --git a/pages/images/flags/ny.png b/pages/images/flags/ny.png
new file mode 100755
index 00000000..794b86e3
Binary files /dev/null and b/pages/images/flags/ny.png differ
diff --git a/pages/images/flags/oh.png b/pages/images/flags/oh.png
new file mode 100755
index 00000000..08601a6d
Binary files /dev/null and b/pages/images/flags/oh.png differ
diff --git a/pages/images/flags/ok.png b/pages/images/flags/ok.png
new file mode 100755
index 00000000..543be913
Binary files /dev/null and b/pages/images/flags/ok.png differ
diff --git a/pages/images/flags/or.png b/pages/images/flags/or.png
new file mode 100755
index 00000000..846b4a69
Binary files /dev/null and b/pages/images/flags/or.png differ
diff --git a/pages/images/flags/pa.png b/pages/images/flags/pa.png
new file mode 100755
index 00000000..55f6c0ff
Binary files /dev/null and b/pages/images/flags/pa.png differ
diff --git a/pages/images/flags/ri.png b/pages/images/flags/ri.png
new file mode 100755
index 00000000..5cece5db
Binary files /dev/null and b/pages/images/flags/ri.png differ
diff --git a/pages/images/flags/sc.png b/pages/images/flags/sc.png
new file mode 100755
index 00000000..9e393039
Binary files /dev/null and b/pages/images/flags/sc.png differ
diff --git a/pages/images/flags/sd.png b/pages/images/flags/sd.png
new file mode 100755
index 00000000..154618f4
Binary files /dev/null and b/pages/images/flags/sd.png differ
diff --git a/pages/images/flags/tn.png b/pages/images/flags/tn.png
new file mode 100755
index 00000000..321b48cb
Binary files /dev/null and b/pages/images/flags/tn.png differ
diff --git a/pages/images/flags/tx.png b/pages/images/flags/tx.png
new file mode 100755
index 00000000..0914b319
Binary files /dev/null and b/pages/images/flags/tx.png differ
diff --git a/pages/images/flags/ut.png b/pages/images/flags/ut.png
new file mode 100755
index 00000000..7a01ae63
Binary files /dev/null and b/pages/images/flags/ut.png differ
diff --git a/pages/images/flags/va.png b/pages/images/flags/va.png
new file mode 100755
index 00000000..ce58c015
Binary files /dev/null and b/pages/images/flags/va.png differ
diff --git a/pages/images/flags/vt.png b/pages/images/flags/vt.png
new file mode 100755
index 00000000..fe1b19fe
Binary files /dev/null and b/pages/images/flags/vt.png differ
diff --git a/pages/images/flags/wa.png b/pages/images/flags/wa.png
new file mode 100755
index 00000000..0c0d8f0f
Binary files /dev/null and b/pages/images/flags/wa.png differ
diff --git a/pages/images/flags/wi.png b/pages/images/flags/wi.png
new file mode 100755
index 00000000..2569f176
Binary files /dev/null and b/pages/images/flags/wi.png differ
diff --git a/pages/images/flags/wv.png b/pages/images/flags/wv.png
new file mode 100755
index 00000000..b4038996
Binary files /dev/null and b/pages/images/flags/wv.png differ
diff --git a/pages/images/flags/wy.png b/pages/images/flags/wy.png
new file mode 100755
index 00000000..82a453cc
Binary files /dev/null and b/pages/images/flags/wy.png differ
diff --git a/pages/images/logo.png b/pages/images/logo.png
new file mode 100644
index 00000000..8de094fc
Binary files /dev/null and b/pages/images/logo.png differ
diff --git a/plugins/.gitkeep b/plugins/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/plugins/anchors/CHANGELOG.md b/plugins/anchors/CHANGELOG.md
new file mode 100644
index 00000000..6e5b3f15
--- /dev/null
+++ b/plugins/anchors/CHANGELOG.md
@@ -0,0 +1,36 @@
+# v1.5.1
+## 07/14/2016
+
+1. [](#improved)
+ * Translate some blueprint options
+
+# v1.5.0
+## 01/06/2016
+
+1. [](#improved)
+ * Disable anchors in Admin
+
+# v1.4.0
+## 08/25/2015
+
+1. [](#improved)
+ * Added blueprints for Grav Admin plugin
+
+# v1.3.0
+## 07/20/2015
+
+1. [](#new)
+ * Updated `anchors.js` to version 1.2.1
+ * Added new options such as 'placement', 'visible', 'icon' and 'class'
+
+# v1.2.0
+## 03/01/2015
+
+1. [](#new)
+ * Updated `anchors.js` to version 0.3.0
+
+# v1.1.0
+## 11/30/2014
+
+1. [](#new)
+ * ChangeLog started...
diff --git a/plugins/anchors/LICENSE b/plugins/anchors/LICENSE
new file mode 100644
index 00000000..484793ad
--- /dev/null
+++ b/plugins/anchors/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Grav
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/plugins/anchors/README.md b/plugins/anchors/README.md
new file mode 100644
index 00000000..01c6e912
--- /dev/null
+++ b/plugins/anchors/README.md
@@ -0,0 +1,84 @@
+# Grav Anchors Plugin
+
+
+`anchors` is a [Grav](http://github.com/getgrav/grav) plugin that provides automatic header anchors via the [anchorjs](http://bryanbraun.github.io/anchorjs) jQuery plugin.
+
+# Installation
+
+## GPM Installation (Preferred)
+
+The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). From the root of your Grav install type:
+
+ bin/gpm install anchors
+
+## Manual Installation
+
+If for some reason you can't use GPM you can manually install this plugin. Download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `anchors`.
+
+You should now have all the plugin files under
+
+ /your/site/grav/user/plugins/anchors
+
+# Usage
+
+To best understand how Anchors works, you should read through the original [project documentation](https://github.com/bryanbraun/anchorjs).
+
+## Configuration:
+
+Simply copy the `user/plugins/breadcrumbs/anchors.yaml` into `user/config/plugins/anchors.yaml` and make your modifications.
+
+ enabled: true # enable or disable the plugin
+ active: true # active by default, if false then you must activate per-page
+ selectors: 'h1,h2,h3,h4' # css elements to activate on. Uses jQuery style selectors
+ placement: right # either "left" or "right"
+ visible: hover # Active on "hover" or "always" visible
+ icon: # default link or a specific character like: #, ¶, ❡, and §.
+ class: # adds the provided class to the anchor html
+ truncate: 64 # truncates the generated ID to the specified character length
+
+You can override any default settings from the page headers:
+
+eg:
+
+ ---
+ title: Sample Code With Custom Theme
+ anchors:
+ active: true
+ selectors: .blog h1, .blog h2
+ ---
+
+ # Header
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas accumsan porta diam,
+ nec sagittis odio euismod nec. Etiam eu rutrum eros.
+
+ ## Sub Header
+
+ Proin commodo lobortis elementum.
+ Integer vel ultrices massa, nec ornare urna. Phasellus tincidunt rutrum dolor, vestibulum
+ faucibus ligula laoreet id. Donec hendrerit arcu vitae lacus mattis facilisis. Praesent
+ tortor nibh, pulvinar nec orci ac, rhoncus pharetra nunc.
+
+
+You can also disable anchors for a particular page if causes issues:
+
+ ---
+ title: Sample Code with Highlight disabled
+ anchors:
+ active: false
+ ---
+
+ # Header
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas accumsan porta diam,
+ nec sagittis odio euismod nec. Etiam eu rutrum eros.
+
+ ## Sub Header
+
+ Proin commodo lobortis elementum.
+ Integer vel ultrices massa, nec ornare urna. Phasellus tincidunt rutrum dolor, vestibulum
+ faucibus ligula laoreet id. Donec hendrerit arcu vitae lacus mattis facilisis. Praesent
+ tortor nibh, pulvinar nec orci ac, rhoncus pharetra nunc.
+
+
+> Note: If you want to see this plugin in action, have a look at [Grav Learn Site](http://learn.getgrav.org)
diff --git a/plugins/anchors/anchors.php b/plugins/anchors/anchors.php
new file mode 100644
index 00000000..2e3ac215
--- /dev/null
+++ b/plugins/anchors/anchors.php
@@ -0,0 +1,80 @@
+ ['onPluginsInitialized', 0]
+ ];
+ }
+
+ /**
+ * Initialize configuration
+ */
+ public function onPluginsInitialized()
+ {
+ if ($this->isAdmin()) {
+ $this->active = false;
+ } else {
+ $this->enable([
+ 'onPageInitialized' => ['onPageInitialized', 0],
+ 'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
+ ]);
+ }
+ }
+
+ /**
+ * Initialize configuration
+ */
+ public function onPageInitialized()
+ {
+ $defaults = (array) $this->config->get('plugins.anchors');
+
+ /** @var Page $page */
+ $page = $this->grav['page'];
+ if (isset($page->header()->anchors)) {
+ $this->config->set('plugins.anchors', array_merge($defaults, $page->header()->anchors));
+ }
+ }
+
+ /**
+ * if enabled on this page, load the JS + CSS and set the selectors.
+ */
+ public function onTwigSiteVariables()
+ {
+ if ($this->config->get('plugins.anchors.active')) {
+ $selectors = $this->config->get('plugins.anchors.selectors', 'h1,h2,h3,h4');
+
+ $visible = "visible: '{$this->config->get('plugins.anchors.visible', 'hover')}',";
+ $placement = "placement: '{$this->config->get('plugins.anchors.placement', 'right')}',";
+ $icon = $this->config->get('plugins.anchors.icon') ? "icon: '{$this->config->get('plugins.anchors.icon')}'," : '';
+ $class = $this->config->get('plugins.anchors.class') ? "class: '{$this->config->get('plugins.anchors.class')}'," : '';
+ $truncate = "truncate: {$this->config->get('plugins.anchors.truncate', 64)}";
+
+ $this->grav['assets']->addJs('plugin://anchors/js/anchor.min.js');
+
+ $anchors_init = "$(document).ready(function() {
+ anchors.options = {
+ $visible
+ $placement
+ $icon
+ $class
+ $truncate
+ };
+ anchors.add('$selectors');
+ });";
+
+
+ $this->grav['assets']->addInlineJs($anchors_init);
+ }
+ }
+}
diff --git a/plugins/anchors/anchors.yaml b/plugins/anchors/anchors.yaml
new file mode 100644
index 00000000..7a8bde90
--- /dev/null
+++ b/plugins/anchors/anchors.yaml
@@ -0,0 +1,8 @@
+enabled: true # enable or disable the plugin
+active: true # active by default, if false then you must activate per-page
+selectors: 'h1,h2,h3,h4' # css elements to activate on. Uses jQuery style selectors
+placement: right # either "left" or "right"
+visible: hover # Active on "hover" or "always" visible
+icon: # default link or a specific character like: #, ¶, ❡, and §.
+class: # adds the provided class to the anchor html
+truncate: 64 # truncates the generated ID to the specified character length
diff --git a/plugins/anchors/blueprints.yaml b/plugins/anchors/blueprints.yaml
new file mode 100644
index 00000000..46e61318
--- /dev/null
+++ b/plugins/anchors/blueprints.yaml
@@ -0,0 +1,91 @@
+name: Anchors
+version: 1.5.1
+description: "This plugin provides automatic header anchors via the [anchorjs](http://bryanbraun.github.io/anchorjs) jQuery plugin."
+icon: anchor
+author:
+ name: Team Grav
+ email: devs@getgrav.org
+ url: http://getgrav.org
+homepage: https://github.com/getgrav/grav-plugin-anchors
+demo: http://learn.getgrav.org
+keywords: anchor, header, plugin, code
+bugs: https://github.com/getgrav/grav-plugin-anchors/issues
+license: MIT
+
+form:
+ validation: strict
+ fields:
+ enabled:
+ type: toggle
+ label: PLUGIN_ADMIN.PLUGIN_STATUS
+ highlight: 1
+ default: 0
+ options:
+ 1: PLUGIN_ADMIN.ENABLED
+ 0: PLUGIN_ADMIN.DISABLED
+ validate:
+ type: bool
+
+ active:
+ type: toggle
+ label: Active
+ highlight: 1
+ default: 1
+ options:
+ 1: PLUGIN_ADMIN.ENABLED
+ 0: PLUGIN_ADMIN.DISABLED
+ validate:
+ type: bool
+ help: Activate for all pages. If disabled then you must activate per-page
+
+ selectors:
+ type: text
+ label: Selectors
+ size: large
+ default: 'h1,h2,h3,h4'
+ placeholder: "Anchor Selectors"
+ help: Comma separated list of header selectors to activate on
+
+ placement:
+ type: select
+ label: Placement
+ classes: fancy
+ help: "Either `left` or `right`"
+ default: 'right'
+ options:
+ 'left': 'left'
+ 'right': 'right'
+
+ visible:
+ type: select
+ label: Visible
+ classes: fancy
+ help: "Hover activates on `hover` else will always display"
+ default: 'hover'
+ options:
+ 'hover': 'hover'
+ 'always': 'always'
+
+ icon:
+ type: text
+ label: Icon
+ size: medium
+ default: ''
+ help: "Replace the default link icon with the character(s) provided, e.g. #, ¶, ❡ or §"
+
+ class:
+ type: text
+ label: Class
+ size: medium
+ default: ''
+ help: "Adds the provided class to the anchor html"
+
+ truncate:
+ type: text
+ size: x-small
+ label: Truncate
+ help: "Truncates the generated ID to the specified character length"
+ default: 64
+ validate:
+ type: number
+ min: 0
\ No newline at end of file
diff --git a/plugins/anchors/js/anchor.min.js b/plugins/anchors/js/anchor.min.js
new file mode 100644
index 00000000..7f34489f
--- /dev/null
+++ b/plugins/anchors/js/anchor.min.js
@@ -0,0 +1,6 @@
+/**
+ * AnchorJS - v3.2.2 - 2016-10-05
+ * https://github.com/bryanbraun/anchorjs
+ * Copyright (c) 2016 Bryan Braun; Licensed MIT
+ */
+!function(A,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(A.AnchorJS=e(),A.anchors=new A.AnchorJS)}(this,function(){"use strict";function A(A){function e(A){A.icon=A.hasOwnProperty("icon")?A.icon:"",A.visible=A.hasOwnProperty("visible")?A.visible:"hover",A.placement=A.hasOwnProperty("placement")?A.placement:"right",A.class=A.hasOwnProperty("class")?A.class:"",A.truncate=A.hasOwnProperty("truncate")?Math.floor(A.truncate):64}function t(A){var e;if("string"==typeof A||A instanceof String)e=[].slice.call(document.querySelectorAll(A));else{if(!(Array.isArray(A)||A instanceof NodeList))throw new Error("The selector provided to AnchorJS was invalid.");e=[].slice.call(A)}return e}function n(){if(null===document.head.querySelector("style.anchorjs")){var A,e=document.createElement("style"),t=" .anchorjs-link { opacity: 0; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }",n=" *:hover > .anchorjs-link, .anchorjs-link:focus { opacity: 1; }",i=' @font-face { font-family: "anchorjs-icons"; src: url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype"); }',o=" [data-anchorjs-icon]::after { content: attr(data-anchorjs-icon); }";e.className="anchorjs",e.appendChild(document.createTextNode("")),A=document.head.querySelector('[rel="stylesheet"], style'),void 0===A?document.head.appendChild(e):document.head.insertBefore(e,A),e.sheet.insertRule(t,e.sheet.cssRules.length),e.sheet.insertRule(n,e.sheet.cssRules.length),e.sheet.insertRule(o,e.sheet.cssRules.length),e.sheet.insertRule(i,e.sheet.cssRules.length)}}this.options=A||{},this.elements=[],e(this.options),this.isTouchDevice=function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(A){var i,o,s,c,r,a,h,l,u,d,f,p,w=[];if(e(this.options),p=this.options.visible,"touch"===p&&(p=this.isTouchDevice()?"always":"hover"),A||(A="h1, h2, h3, h4, h5, h6"),i=t(A),0===i.length)return!1;for(n(),o=document.querySelectorAll("[id]"),s=[].map.call(o,function(A){return A.id}),r=0;r-1,t=A.lastChild&&(" "+A.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return e||t||!1}}return A});
diff --git a/plugins/breadcrumbs/CHANGELOG.md b/plugins/breadcrumbs/CHANGELOG.md
new file mode 100644
index 00000000..2751e5c0
--- /dev/null
+++ b/plugins/breadcrumbs/CHANGELOG.md
@@ -0,0 +1,50 @@
+# v1.5.1
+## xx/xx/2016
+
+1. [](#improved)
+ * Removed Grav trait in favor of `Grav::instance()`
+
+# v1.5.0
+## 07/14/2016
+
+1. [](#improved)
+ * non-routable pages are not linked
+
+# v1.4.0
+## 08/25/2015
+
+1. [](#improved)
+ * Added blueprints for Grav Admin plugin
+
+# v1.3.0
+## 03/06/2015
+
+1. [](#new)
+ * Added toggle for showing home item
+ * Added configurable home icon
+ * Added configurable divider icon
+ * Added toggle to link trailing item
+
+# v1.2.3
+## 02/05/2015
+
+2. [](#improved)
+ * Added support for HHVM
+
+# v1.2.2
+## 01/23/2015
+
+2. [](#improved)
+ * Added microdata information
+
+# v1.2.1
+## 01/09/2015
+
+2. [](#improved)
+ * NOTE: BREAKING CHANGE: Moved templates into `partials/` subfolder for consistency.
+
+# v1.2.0
+## 11/30/2014
+
+1. [](#new)
+ * ChangeLog started...
diff --git a/plugins/breadcrumbs/LICENSE b/plugins/breadcrumbs/LICENSE
new file mode 100644
index 00000000..484793ad
--- /dev/null
+++ b/plugins/breadcrumbs/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Grav
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/plugins/breadcrumbs/README.md b/plugins/breadcrumbs/README.md
new file mode 100644
index 00000000..18a0c582
--- /dev/null
+++ b/plugins/breadcrumbs/README.md
@@ -0,0 +1,82 @@
+# Grav Breadcrumbs Plugin
+
+![Breadcrumbs](assets/readme_1.png)
+
+`Breadcrumbs` is a [Grav](http://github.com/getgrav/grav) plugin that adds links to the previous pages (following the hierarchical structure).
+It is particularly useful if you are using Grav to run a blog.
+
+# Installation
+
+Installing the Breadcrumbs plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
+
+## GPM Installation (Preferred)
+
+The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
+
+ bin/gpm install breadcrumbs
+
+This will install the Breadcrumbs plugin into your `/user/plugins` directory within Grav. Its files can be found under `/your/site/grav/user/plugins/breadcrumbs`.
+
+## Manual Installation
+
+To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `breadcrumbs`. You can find these files either on [GitHub](https://github.com/getgrav/grav-plugin-breadcrumbs) or via [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+
+You should now have all the plugin files under
+
+ /your/site/grav/user/plugins/breadcrumbs
+
+>> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins, and a theme to be installed in order to operate.
+
+# Usage
+
+The `breadcrumbs` plugin doesn't require any configuration. The moment you install it, it is ready to use.
+
+Something you might want to do is to override the look and feel of the breadcrumbs, and with Grav it is super easy.
+
+Copy the template file [breadcrumbs.html.twig](templates/partials/breadcrumbs.html.twig) into the `templates` folder of your custom theme, and that is it.
+
+```
+/your/site/grav/user/themes/custom-theme/templates/partials/breadcrumbs.html.twig
+```
+
+You can now edit the override and tweak it however you prefer.
+
+# Updating
+
+As development for the Breadcrumbs plugin continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Breadcrumbs is easy, and can be done through Grav's GPM system, as well as manually.
+
+## GPM Update (Preferred)
+
+The simplest way to update this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
+
+ bin/gpm update breadcrumbs
+
+This command will check your Grav install to see if your Breadcrumbs plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The plugin will automatically update and clear Grav's cache.
+
+## Manual Update
+
+Manually updating Breadcrumbs is pretty simple. Here is what you will need to do to get this done:
+
+* Delete the `your/site/user/plugins/breadcrumbs` directory.
+* Downalod the new version of the Breadcrumbs plugin from either [GitHub](https://github.com/getgrav/grav-plugin-breadcrumbs) or [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+* Unzip the zip file in `your/site/user/plugins` and rename the resulting folder to `breadcrumbs`.
+* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing `bin/grav clear-cache`.
+
+> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/plugins`) will remain intact.
+
+## Configuration
+
+Simply copy the `user/plugins/breadcrumbs/breadcrumbs.yaml` into `user/config/plugins/breadcrumbs.yaml` and make your modifications.
+
+```
+enabled: true
+show_all: true
+built_in_css: true
+include_home: true
+icon_home: ''
+icon_divider_classes: 'fa fa-angle-right'
+link_trailing: false
+```
+
+Options are pretty self explanatory.
+
diff --git a/plugins/breadcrumbs/assets/readme_1.png b/plugins/breadcrumbs/assets/readme_1.png
new file mode 100644
index 00000000..78374123
Binary files /dev/null and b/plugins/breadcrumbs/assets/readme_1.png differ
diff --git a/plugins/breadcrumbs/blueprints.yaml b/plugins/breadcrumbs/blueprints.yaml
new file mode 100644
index 00000000..004ce5ed
--- /dev/null
+++ b/plugins/breadcrumbs/blueprints.yaml
@@ -0,0 +1,83 @@
+name: Breadcrumbs
+version: 1.5.0
+description: The **Breadcrumbs** plugin provides a simple method to display the depth of your content/navigation structure.
+icon: caret-square-o-right
+author:
+ name: Team Grav
+ email: devs@getgrav.org
+ url: http://getgrav.org
+homepage: https://github.com/getgrav/grav-plugin-breadcrumbs
+demo: http://demo.getgrav.org/blog-skeleton
+keywords: breadcrumbs, plugin, navigation, depth
+bugs: https://github.com/getgrav/grav-plugin-breadcrumbs/issues
+license: MIT
+
+form:
+ validation: strict
+ fields:
+ enabled:
+ type: toggle
+ label: Plugin status
+ highlight: 1
+ default: 1
+ options:
+ 1: Enabled
+ 0: Disabled
+ validate:
+ type: bool
+
+ show_all:
+ type: toggle
+ label: Show even with one item
+ highlight: 1
+ default: 1
+ options:
+ 1: Enabled
+ 0: Disabled
+ validate:
+ type: bool
+
+ built_in_css:
+ type: toggle
+ label: Use built in CSS
+ highlight: 1
+ default: 1
+ options:
+ 1: Enabled
+ 0: Disabled
+ validate:
+ type: bool
+
+ include_home:
+ type: toggle
+ label: Include Home
+ highlight: 1
+ default: 1
+ options:
+ 1: Enabled
+ 0: Disabled
+ validate:
+ type: bool
+
+ icon_home:
+ type: text
+ size: medium
+ label: Icon Home
+ default: ''
+
+ icon_divider_classes:
+ type: text
+ size: medium
+ label: Icon Divider Classes
+ default: 'fa fa-angle-right'
+
+ link_trailing:
+ type: toggle
+ label: Link Trailing
+ highlight: 1
+ default: 0
+ options:
+ 1: Enabled
+ 0: Disabled
+ validate:
+ type: bool
diff --git a/plugins/breadcrumbs/breadcrumbs.php b/plugins/breadcrumbs/breadcrumbs.php
new file mode 100644
index 00000000..b8e337c5
--- /dev/null
+++ b/plugins/breadcrumbs/breadcrumbs.php
@@ -0,0 +1,55 @@
+ ['onPluginsInitialized', 0]
+ ];
+ }
+
+ /**
+ * Initialize configuration
+ */
+ public function onPluginsInitialized()
+ {
+ if ($this->isAdmin()) {
+ $this->active = false;
+ return;
+ }
+
+ $this->enable([
+ 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
+ 'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
+ ]);
+ }
+
+ /**
+ * Add current directory to twig lookup paths.
+ */
+ public function onTwigTemplatePaths()
+ {
+ $this->grav['twig']->twig_paths[] = __DIR__ . '/templates';
+ }
+
+ /**
+ * Set needed variables to display breadcrumbs.
+ */
+ public function onTwigSiteVariables()
+ {
+ require_once __DIR__ . '/classes/breadcrumbs.php';
+
+ $this->grav['twig']->twig_vars['breadcrumbs'] = new Breadcrumbs($this->config->get('plugins.breadcrumbs'));
+
+ if ($this->config->get('plugins.breadcrumbs.built_in_css')) {
+ $this->grav['assets']->add('plugin://breadcrumbs/css/breadcrumbs.css');
+ }
+ }
+}
diff --git a/plugins/breadcrumbs/breadcrumbs.yaml b/plugins/breadcrumbs/breadcrumbs.yaml
new file mode 100644
index 00000000..b6814af7
--- /dev/null
+++ b/plugins/breadcrumbs/breadcrumbs.yaml
@@ -0,0 +1,7 @@
+enabled: true
+show_all: true
+built_in_css: true
+include_home: true
+icon_home: ''
+icon_divider_classes: 'fa fa-angle-right'
+link_trailing: false
diff --git a/plugins/breadcrumbs/classes/breadcrumbs.php b/plugins/breadcrumbs/classes/breadcrumbs.php
new file mode 100644
index 00000000..e1312eda
--- /dev/null
+++ b/plugins/breadcrumbs/classes/breadcrumbs.php
@@ -0,0 +1,68 @@
+config = $config;
+ }
+
+ /**
+ * Get all items in breadcrumbs.
+ *
+ * @return array
+ */
+ public function get()
+ {
+ if (!$this->breadcrumbs) {
+ $this->build();
+ }
+ return $this->breadcrumbs;
+ }
+
+ /**
+ * Build breadcrumbs.
+ *
+ * @internal
+ */
+ protected function build()
+ {
+ $hierarchy = array();
+ $grav = Grav::instance();
+ $current = $grav['page'];
+
+ while ($current && !$current->root()) {
+ $hierarchy[$current->url()] = $current;
+ $current = $current->parent();
+ }
+
+ // Page cannot be routed.
+ if (!$current) {
+ $this->breadcrumbs = array();
+ return;
+ }
+
+ if ($this->config['include_home']) {
+ $home = $grav['pages']->dispatch('/');
+ if ($home && !array_key_exists($home->url(), $hierarchy)) {
+ $hierarchy[] = $home;
+ }
+ }
+
+
+ $this->breadcrumbs = array_reverse($hierarchy);
+ }
+}
diff --git a/plugins/breadcrumbs/css/breadcrumbs.css b/plugins/breadcrumbs/css/breadcrumbs.css
new file mode 100644
index 00000000..90a9df69
--- /dev/null
+++ b/plugins/breadcrumbs/css/breadcrumbs.css
@@ -0,0 +1,18 @@
+#breadcrumbs {
+ height: 3rem;
+ line-height: 3rem;
+ padding-left: 3rem;
+}
+#breadcrumbs span {
+ display: inline-block;
+ padding: 0 1rem;
+}
+#breadcrumbs span:first-child {
+ padding-left: 0;
+}
+#breadcrumbs i {
+ display: inline-block;
+ width: 20px;
+ text-align: center;
+}
+
diff --git a/plugins/breadcrumbs/templates/partials/breadcrumbs.html.twig b/plugins/breadcrumbs/templates/partials/breadcrumbs.html.twig
new file mode 100644
index 00000000..9198ffdb
--- /dev/null
+++ b/plugins/breadcrumbs/templates/partials/breadcrumbs.html.twig
@@ -0,0 +1,27 @@
+{% set crumbs = breadcrumbs.get() %}
+{% set breadcrumbs_config = config.plugins.breadcrumbs %}
+{% set divider = breadcrumbs_config.icon_divider_classes %}
+
+{% if crumbs|length > 1 or breadcrumbs_config.show_all %}
+
+ {% if breadcrumbs_config.icon_home %}
+
+ {% endif %}
+ {% for crumb in crumbs %}
+ {% if not loop.last %}
+ {% if crumb.routable %}
+
{{ crumb.menu }}
+ {% else %}
+
{{ crumb.menu }}
+ {% endif %}
+
+ {% else %}
+ {% if breadcrumbs_config.link_trailing %}
+
{{ crumb.menu }}
+ {% else %}
+
{{ crumb.menu }}
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+
+{% endif %}
diff --git a/plugins/error/CHANGELOG.md b/plugins/error/CHANGELOG.md
new file mode 100644
index 00000000..dbb0d786
--- /dev/null
+++ b/plugins/error/CHANGELOG.md
@@ -0,0 +1,54 @@
+# v1.6.0
+## 10/19/2016
+
+1. [](#improved)
+ * Added Croatian translation
+ * Improved `autoescape: true` support
+1. [](#bugfix)
+ * Fixed issue where template file for `error` page type is only available if page was not found
+
+# v1.5.1
+## 07/18/2016
+
+1. [](#improved)
+ * Added chinese and german translations
+1. [](#bugfix)
+ * Fixed issue with the Smartypants plugin running before Twig was processed
+
+# v1.5.0
+## 07/14/2015
+
+1. [](#improved)
+ * Translate some blueprint configuration options
+ * Allow translating the error message
+ * Added french, russian, romanian, danish, italian
+
+# v1.4.1
+## 12/11/2015
+
+1. [](#bugfix)
+ * Fixed CLI command for PHP 5.5 and lower
+
+# v1.4.0
+## 11/21/2015
+
+1. [](#new)
+ * Implemented CLI commands for the plugin
+
+# v1.3.0
+## 08/25/2015
+
+1. [](#improved)
+ * Added blueprints for Grav Admin plugin
+
+# v1.2.2
+## 01/06/2015
+
+1. [](#new)
+ * Added a default `error.json.twig` file
+
+# v1.2.1
+## 11/30/2014
+
+1. [](#new)
+ * ChangeLog started...
diff --git a/plugins/error/LICENSE b/plugins/error/LICENSE
new file mode 100644
index 00000000..484793ad
--- /dev/null
+++ b/plugins/error/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Grav
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/plugins/error/README.md b/plugins/error/README.md
new file mode 100644
index 00000000..94ff08e3
--- /dev/null
+++ b/plugins/error/README.md
@@ -0,0 +1,93 @@
+# Grav Error Plugin
+
+![GPM Installation](assets/readme_1.png)
+
+`error` is a [Grav](http://github.com/getgrav/grav) Plugin and allows to redirect errors to nice output pages.
+
+This plugin is required and you'll find it in any package distributed that contains Grav. If you decide to clone Grav from GitHub you will most likely want to install this.
+
+# Installation
+
+Installing the Error plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
+
+## GPM Installation (Preferred)
+
+The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
+
+ bin/gpm install error
+
+This will install the Error plugin into your `/user/plugins` directory within Grav. Its files can be found under `/your/site/grav/user/plugins/error`.
+
+## Manual Installation
+
+To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `error`. You can find these files either on [GitHub](https://github.com/getgrav/grav-plugin-error) or via [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+
+You should now have all the plugin files under
+
+ /your/site/grav/user/plugins/error
+
+>> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Problems](https://github.com/getgrav/grav-plugin-problems) plugin, and a theme to be installed in order to operate.
+
+# Usage
+
+The `error` plugin doesn't require any configuration. The moment you install it, it is ready to use.
+
+Something you might want to do is to override the look and feel of the error page, and with Grav it is super easy.
+
+### Template
+
+Copy the template file [error.html.twig](templates/error.html.twig) into the `templates` folder of your custom theme and that is it.
+
+```
+/your/site/grav/user/themes/custom-theme/templates/error.html.twig
+```
+
+You can now edit the override and tweak it however you prefer.
+
+### Page
+
+Copy the page file [error.md](pages/error.md) into the `pages` folder of your user directory and that is it.
+
+```
+/your/site/grav/user/pages/error/error.md
+```
+
+You can now edit the override and tweak it however you prefer.
+
+# Custom error pages
+
+The configuration allows to specify pages different than `/error` for specific error codes. By default, the `404` error leads to the `/error` page. If you change that, make sure the page you point to has a `error` template (which means, its markdown file is `error.md` or in the page frontmatter you specify `template: error`.
+
+# CLI Usage
+The `error` plugin comes with a CLI command that outputs the `grav.log` in a beautified way, with possibility of limiting the amount of errors displayed, as well as include the trace in the output.
+
+### Commands
+
+| `bin/plugin error log` | |
+|------------------------|-----------------------------------------------------------------|
+| [ --limit N \| -l N ] | The amount of errors to display. Default is 5 |
+| [ --trace \| -t ] | When used, it will add the backtrace in the output of the error |
+
+
+# Updating
+
+As development for the Error plugin continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Error is easy, and can be done through Grav's GPM system, as well as manually.
+
+## GPM Update (Preferred)
+
+The simplest way to update this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
+
+ bin/gpm update error
+
+This command will check your Grav install to see if your Error plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The plugin will automatically update and clear Grav's cache.
+
+## Manual Update
+
+Manually updating Error is pretty simple. Here is what you will need to do to get this done:
+
+* Delete the `your/site/user/plugins/error` directory.
+* Downalod the new version of the Error plugin from either [GitHub](https://github.com/getgrav/grav-plugin-error) or [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+* Unzip the zip file in `your/site/user/plugins` and rename the resulting folder to `error`.
+* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing `bin/grav clear-cache`.
+
+> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/plugins`) will remain intact.
diff --git a/plugins/error/assets/readme_1.png b/plugins/error/assets/readme_1.png
new file mode 100644
index 00000000..930b87bb
Binary files /dev/null and b/plugins/error/assets/readme_1.png differ
diff --git a/plugins/error/blueprints.yaml b/plugins/error/blueprints.yaml
new file mode 100644
index 00000000..6ce715f7
--- /dev/null
+++ b/plugins/error/blueprints.yaml
@@ -0,0 +1,32 @@
+name: Error
+version: 1.6.0
+description: Displays the error page.
+icon: warning
+author:
+ name: Team Grav
+ email: devs@getgrav.org
+ url: http://getgrav.org
+homepage: https://github.com/getgrav/grav-plugin-error
+keywords: error, plugin, required
+bugs: https://github.com/getgrav/grav-plugin-error/issues
+license: MIT
+
+form:
+ validation: strict
+ fields:
+ enabled:
+ type: toggle
+ label: PLUGIN_ADMIN.PLUGIN_STATUS
+ highlight: 1
+ default: 0
+ options:
+ 1: PLUGIN_ADMIN.ENABLED
+ 0: PLUGIN_ADMIN.DISABLED
+ validate:
+ type: bool
+
+ routes.404:
+ type: text
+ size: medium
+ label: 404 Route
+ default: '/error'
diff --git a/plugins/error/cli/LogCommand.php b/plugins/error/cli/LogCommand.php
new file mode 100644
index 00000000..8a6c69a8
--- /dev/null
+++ b/plugins/error/cli/LogCommand.php
@@ -0,0 +1,130 @@
+ 'green',
+ 'INFO' => 'cyan',
+ 'NOTICE' => 'yellow',
+ 'WARNING' => 'yellow',
+ 'ERROR' => 'red',
+ 'CRITICAL' => 'red',
+ 'ALERT' => 'red',
+ 'EMERGENCY' => 'magenta'
+ ];
+
+ /**
+ *
+ */
+ protected function configure()
+ {
+ $this->logfile = LOG_DIR . 'grav.log';
+ $this
+ ->setName("log")
+ ->setDescription("Outputs the Error Log")
+ ->addOption(
+ 'trace',
+ 't',
+ InputOption::VALUE_NONE,
+ 'Include the errors stack trace in the output'
+ )
+ ->addOption(
+ 'limit',
+ 'l',
+ InputArgument::OPTIONAL,
+ 'Outputs only the last X amount of errors. Use as --limit 10 / -l 10 [default 5]',
+ 5
+ )
+ ->setHelp('The log outputs the Errors Log in Console')
+ ;
+ }
+
+ /**
+ * @return int|null|void
+ */
+ protected function serve()
+ {
+ $this->options = [
+ 'trace' => $this->input->getOption('trace'),
+ 'limit' => $this->input->getOption('limit')
+ ];
+
+ if (!file_exists($this->logfile)) {
+ $this->output->writeln("\n" . "Log file not found." . "\n");
+ exit;
+ }
+
+ $log = file_get_contents($this->logfile);
+ $lines = explode("\n", $log);
+
+ if (!is_numeric($this->options['limit'])) {
+ $this->options['limit'] = 5;
+ }
+
+ $lines = array_slice($lines, -($this->options['limit'] + 1));
+
+ foreach ($lines as $line) {
+ $this->output->writeln($this->parseLine($line));
+ }
+ }
+
+ /**
+ * @param $line
+ *
+ * @return null|string
+ */
+ protected function parseLine($line)
+ {
+ $bit = explode(': ', $line);
+ $line1 = explode('] ', $bit[0]);
+
+ if (!$line1[0]) {
+ return null;
+ }
+
+ $line2 = explode(' - ', $bit[1]);
+
+ $date = $line1[0] . ']';
+ $type = str_replace('grav.', '', $line1[1]);
+ $color = $this->colors[$type];
+ $error = $line2[0];
+ $trace = implode(': ', array_slice($bit, 2));
+
+ $output = [];
+
+ $output[] = '';
+ $output[] = '' . $date . ' ';
+ $output[] = sprintf(' <%s>%s%s> ' . $error . ' ', $color, $type, $color);
+
+ if ($this->options['trace']) {
+ $output[] = ' TRACE: ';
+ $output[] = ' ' . $trace;
+ }
+
+ $output[] = '' . str_repeat('-', strlen($date)) . ' ';
+
+ return implode("\n", $output);
+ }
+}
+
diff --git a/plugins/error/error.php b/plugins/error/error.php
new file mode 100644
index 00000000..71b7d352
--- /dev/null
+++ b/plugins/error/error.php
@@ -0,0 +1,65 @@
+ ['onPageNotFound', 0],
+ 'onGetPageTemplates' => ['onGetPageTemplates', 0],
+ 'onTwigTemplatePaths' => ['onTwigTemplatePaths', -10]
+ ];
+ }
+
+ /**
+ * Display error page if no page was found for the current route.
+ *
+ * @param Event $event
+ */
+ public function onPageNotFound(Event $event)
+ {
+ /** @var Pages $pages */
+ $pages = $this->grav['pages'];
+
+ // Try to load user error page.
+ $page = $pages->dispatch($this->config->get('plugins.error.routes.404', '/error'), true);
+
+ if (!$page) {
+ // If none provided use built in error page.
+ $page = new Page;
+ $page->init(new \SplFileInfo(__DIR__ . '/pages/error.md'));
+ }
+
+ $event->page = $page;
+ $event->stopPropagation();
+ }
+
+ /**
+ * Add page template types.
+ */
+ public function onGetPageTemplates(Event $event)
+ {
+ /** @var Types $types */
+ $types = $event->types;
+ $types->register('error');
+ }
+
+ /**
+ * Add current directory to twig lookup paths.
+ */
+ public function onTwigTemplatePaths()
+ {
+ $this->grav['twig']->twig_paths[] = __DIR__ . '/templates';
+ }
+}
diff --git a/plugins/error/error.yaml b/plugins/error/error.yaml
new file mode 100644
index 00000000..0a51d4c4
--- /dev/null
+++ b/plugins/error/error.yaml
@@ -0,0 +1,3 @@
+enabled: true
+routes:
+ 404: '/error'
diff --git a/plugins/error/languages.yaml b/plugins/error/languages.yaml
new file mode 100644
index 00000000..a4d60af8
--- /dev/null
+++ b/plugins/error/languages.yaml
@@ -0,0 +1,44 @@
+en:
+ PLUGIN_ERROR:
+ ERROR: "Error"
+ ERROR_MESSAGE: "Woops. Looks like this page doesn't exist."
+de:
+ PLUGIN_ERROR:
+ ERROR: "Fehler"
+ ERROR_MESSAGE: "Uuups. Sieht aus als ob diese Seite nicht existiert."
+hr:
+ PLUGIN_ERROR:
+ ERROR: "Greška"
+ ERROR_MESSAGE: "Uups. Izgleda da ova stranica ne postoji."
+ro:
+ PLUGIN_ERROR:
+ ERROR: "Eroare"
+ ERROR_MESSAGE: "Ooops. Se pare că pagina nu există."
+fr:
+ PLUGIN_ERROR:
+ ERROR: "Erreur"
+ ERROR_MESSAGE: "Oups. Il semble que cette page n’existe pas."
+it:
+ PLUGIN_ERROR:
+ ERROR: "Errore"
+ ERROR_MESSAGE: "Ooops. A quanto pare, questa pagina non esiste."
+ru:
+ PLUGIN_ERROR:
+ ERROR: "Ошибка"
+ ERROR_MESSAGE: "Упс. Похоже, этой страницы не существует."
+da:
+ PLUGIN_ERROR:
+ ERROR: "Fejl"
+ ERROR_MESSAGE: "Ups. Det ser ud til at siden ikke eksisterer."
+zh:
+ PLUGIN_ERROR:
+ ERROR: "错误"
+ ERROR_MESSAGE: "呃,似乎这个页面不存在。"
+cs:
+ PLUGIN_ERROR:
+ ERROR: "Chyba"
+ ERROR_MESSAGE: "A jéje. Vypadá to, že hledaná stránka tu není."
+pl:
+ PLUGIN_ERROR:
+ ERROR: "Błąd"
+ ERROR_MESSAGE: "Ups. Wygląda na to, że ta strona nie istnieje."
diff --git a/plugins/error/pages/error.md b/plugins/error/pages/error.md
new file mode 100644
index 00000000..615b50c3
--- /dev/null
+++ b/plugins/error/pages/error.md
@@ -0,0 +1,13 @@
+---
+title: Page not Found
+robots: noindex,nofollow
+template: error
+routable: false
+http_response_code: 404
+twig_first: true
+process:
+ twig: true
+---
+
+{{ 'PLUGIN_ERROR.ERROR_MESSAGE'|t }}
+
diff --git a/plugins/error/templates/error.html.twig b/plugins/error/templates/error.html.twig
new file mode 100644
index 00000000..420702b3
--- /dev/null
+++ b/plugins/error/templates/error.html.twig
@@ -0,0 +1,3 @@
+{{ 'PLUGIN_ERROR.ERROR'|t }} {{ header.http_response_code }}
+
+{{ page.content|raw }}
diff --git a/plugins/error/templates/error.json.twig b/plugins/error/templates/error.json.twig
new file mode 100644
index 00000000..27472f13
--- /dev/null
+++ b/plugins/error/templates/error.json.twig
@@ -0,0 +1 @@
+{{ page.content|json_encode()|raw }}
\ No newline at end of file
diff --git a/plugins/highlight/CHANGELOG.md b/plugins/highlight/CHANGELOG.md
new file mode 100644
index 00000000..0f429fe8
--- /dev/null
+++ b/plugins/highlight/CHANGELOG.md
@@ -0,0 +1,38 @@
+# v1.3.2
+## 05/xx/2017
+
+1. [](#new)
+ * Added option for line numbers
+
+# v1.3.1
+## 07/14/2016
+
+1. [](#bugfix)
+ * Fixed a typo in the Monokai theme name
+
+# v1.3.0
+## 01/22/2016
+
+1. [](#new)
+ * Updated `highlight.js` to version 9.1.0
+1. [](#improved)
+ * Use common language strings in blueprints
+
+# v1.2.1
+## 01/06/2016
+
+1. [](#bugfix)
+ * Fixed the example listed in the README
+
+# v1.2.0
+## 07/20/2015
+
+1. [](#new)
+ * Updated `highlight.js` to version 8.6.0
+ * Added new themes
+
+# v1.1.0
+## 11/30/2014
+
+1. [](#new)
+ * ChangeLog started...
diff --git a/plugins/highlight/LICENSE b/plugins/highlight/LICENSE
new file mode 100644
index 00000000..484793ad
--- /dev/null
+++ b/plugins/highlight/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Grav
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/plugins/highlight/README.md b/plugins/highlight/README.md
new file mode 100644
index 00000000..bfa12398
--- /dev/null
+++ b/plugins/highlight/README.md
@@ -0,0 +1,150 @@
+# Grav Highlight Plugin
+
+![Highlight](assets/readme_1.png)
+
+`highlight` is a [Grav](http://github.com/getgrav/grav) plugin that adds simple and powerful code highlighting functionality utilizing the jQuery plugin [Highlight.js](https://highlightjs.org/).
+
+# Installation
+
+Installing the Highlight plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
+
+## GPM Installation (Preferred)
+
+The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
+
+ bin/gpm install highlight
+
+This will install the Highlight plugin into your `/user/plugins` directory within Grav. Its files can be found under `/your/site/grav/user/plugins/highlight`.
+
+## Manual Installation
+
+To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `highlight`. You can find these files either on [GitHub](https://github.com/getgrav/grav-plugin-highlight) or via [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+
+You should now have all the plugin files under
+
+ /your/site/grav/user/plugins/highlight
+
+>> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins, and a theme to be installed in order to operate.
+
+# Usage
+
+To best understand how Highlight works, you should read through the original project [documentation](https://highlightjs.org/usage/).
+
+You can override any default settings from the page headers:
+
+eg:
+
+ ---
+ title: Sample Code With Custom Theme
+ highlight:
+ theme: monokai
+ ---
+
+ ```
+ @font-face {
+ font-family: Chunkfive; src: url('Chunkfive.otf');
+ }
+
+ body, .usertext {
+ color: #F0F0F0; background: #600;
+ font-family: Chunkfive, sans;
+ }
+
+ @import url(print.css);
+ @media print {
+ a[href^=http]::after {
+ content: attr(href)
+ }
+ }
+ ```
+
+
+You can also disable highlighting for a particular page if causes issues:
+
+ ---
+ title: Sample Code with Highlight disabled
+ highlight:
+ enabled: false
+ ---
+
+ ```
+ @font-face {
+ font-family: Chunkfive; src: url('Chunkfive.otf');
+ }
+
+ body, .usertext {
+ color: #F0F0F0; background: #600;
+ font-family: Chunkfive, sans;
+ }
+
+ @import url(print.css);
+ @media print {
+ a[href^=http]::after {
+ content: attr(href)
+ }
+ }
+ ```
+
+Further, you can also enable line numbers on a specific page, or globally (in highlight.yaml):
+
+ ---
+ title: Sample Code with Highlight and line numbers enabled
+ highlight:
+ enabled: true
+ lines: true
+ ---
+
+Valid theme options include:
+
+| | | |
+| :--------------------- | :-------------------- | ----------------------- |
+| arta | ascetic | atelier-dune.dark |
+| atelier-dune.light | atelier-forest.dark | atelier-forest.light |
+| atelier-heath.dark | atelier-heath.light | atelier-lakeside.dark |
+| atelier-lakeside.light | atelier-seaside.dark | atelier-seaside.light |
+| brown_paper | codepen-embed | color-brewer |
+| dark | default | docco |
+| far | foundation | github |
+| googlecode | hybrid | idea |
+| ir_black | kimbie.dark | kimbie.light |
+| learn | magula | mono-blue |
+| monokai_sublime | monokai | obsidian |
+| paraiso.dark | paraiso.light | pojoaque |
+| railscasts | rainbow | school_book |
+| solarized_dark | solarized_light | sunburst |
+| tomorrow-night-blue | tomorrow-night-bright | tomorrow-night-eighties |
+| tomorrow-night | tomorrow | vs |
+| xcode | zenburn | |
+| agate | androidstudio | atelier-cave.dark |
+| atelier-cave.light | atelier-estuary.dark | atelier-estuary.light |
+| atelier-plateau.dark | atelier-plateau.light | atelier-savanna.dark |
+| atelier-savanna.light | atelier-sulphurpool.dark | atelier-sulphurpool.light |
+| darkula | github-gist | pojoaque |
+| school_bank | | |
+
+Check out a [live demo](https://highlightjs.org/static/demo/) of these themes.
+
+> Note: If you want to see this plugin in action, have a look at [Grav Learn Site](http://learn.getgrav.org)
+
+# Updating
+
+As development for the Highlight plugin continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Highlight is easy, and can be done through Grav's GPM system, as well as manually.
+
+## GPM Update (Preferred)
+
+The simplest way to update this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
+
+ bin/gpm update highlight
+
+This command will check your Grav install to see if your Highlight plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The plugin will automatically update and clear Grav's cache.
+
+## Manual Update
+
+Manually updating Highlight is pretty simple. Here is what you will need to do to get this done:
+
+* Delete the `your/site/user/plugins/highlight` directory.
+* Downalod the new version of the Highlight plugin from either [GitHub](https://github.com/getgrav/grav-plugin-highlight) or [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+* Unzip the zip file in `your/site/user/plugins` and rename the resulting folder to `highlight`.
+* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing `bin/grav clear-cache`.
+
+> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/plugins`) will remain intact.
diff --git a/plugins/highlight/assets/readme_1.png b/plugins/highlight/assets/readme_1.png
new file mode 100644
index 00000000..e27c1c5f
Binary files /dev/null and b/plugins/highlight/assets/readme_1.png differ
diff --git a/plugins/highlight/blueprints.yaml b/plugins/highlight/blueprints.yaml
new file mode 100644
index 00000000..1506a430
--- /dev/null
+++ b/plugins/highlight/blueprints.yaml
@@ -0,0 +1,87 @@
+name: Highlight
+version: 1.3.2
+description: "This plugin provides code highlighting functionality via the [Highlight.js](https://highlightjs.org/) jQuery plugin."
+icon: code
+author:
+ name: Team Grav
+ email: devs@getgrav.org
+ url: http://getgrav.org
+homepage: https://github.com/getgrav/grav-plugin-highlight
+demo: http://learn.getgrav.org
+keywords: highlight, plugin, code
+bugs: https://github.com/getgrav/grav-plugin-highlight/issues
+license: MIT
+
+form:
+ validation: strict
+ fields:
+ enabled:
+ type: toggle
+ label: PLUGIN_ADMIN.PLUGIN_STATUS
+ highlight: 1
+ default: 0
+ options:
+ 1: PLUGIN_ADMIN.ENABLED
+ 0: PLUGIN_ADMIN.DISABLED
+ validate:
+ type: bool
+
+ theme:
+ type: select
+ label: CSS Theme
+ default: default
+ options:
+ default: Default
+ monokai: Monokai
+ learn: Grav Learn
+ railscasts: Railscasts
+ arta: Arta
+ ascetic: Ascetic
+ brown-paper: Brown Paper
+ atelier-dune.dark: Atelier Dune Dark
+ atelier-dune.light: Atelier Dune Light
+ atelier-forest.dark: Atelier Forest Dark
+ atelier-forest.light: Atelier Forest Light
+ atelier-heath.dark: Atelier Heath Dark
+ atelier-heath.light: Atelier Heath Light
+ atelier-lakeside.dark: Atelier Lakeside Dark
+ atelier-lakeside.light: Atelier Lakeside Light
+ atelier-seaside.dark: Atelier Seaside Dark
+ atelier-seaside.light: Atelier Seaside Light
+ brown_paper: Brown Paper
+ codepen-embed: Codepen Embed
+ color-brewer: Color Brewer
+ dark: Dark
+ docco: Docco
+ far: Far
+ foundation: Foundation
+ github: Github
+ googlecode: GoogleCode
+ grayscale: Grayscale
+ hopscotch: Hopscotch
+ hybrid: Hybrid
+ idea: Idea
+ ir-black: IR-Black
+ kimbie.dark: Kimbie Dark
+ kimbie.light: Kimbie Light
+ magula: Magula
+ mono-blue: Mono Blue
+ monokai-sublime: Monokai Sublime
+ obsidian: Obsidian
+ paraiso-dark: Paraiso Dark
+ paraiso-light: Paraiso Light
+ pojoaque: Pojoaque
+ rainbow: Rainbow
+ school-book: School Book
+ solarized-dark: Solarized Dark
+ solarized-light: Solarized Light
+ sunburst: Sunburst
+ tomorrow-night-blue: Tomorrow Night Blue
+ tomorrow-night-bright: Tomorrow Night Bright
+ tomorrow-night-eighties: Tomorrow Night Eighties
+ tomorrow-night: Tomorrow Night
+ tomorrow: Tomorrow
+ vs: VS
+ xcode: XCode
+ zenburn: Zenburn
+
diff --git a/plugins/highlight/css/agate.css b/plugins/highlight/css/agate.css
new file mode 100644
index 00000000..8d64547c
--- /dev/null
+++ b/plugins/highlight/css/agate.css
@@ -0,0 +1,108 @@
+/*!
+ * Agate by Taufik Nurrohman
+ * ----------------------------------------------------
+ *
+ * #ade5fc
+ * #a2fca2
+ * #c6b4f0
+ * #d36363
+ * #fcc28c
+ * #fc9b9b
+ * #ffa
+ * #fff
+ * #333
+ * #62c8f3
+ * #888
+ *
+ */
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #333;
+ color: white;
+}
+
+.hljs-name,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-code,
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-tag {
+ color: #62c8f3;
+}
+
+.hljs-variable,
+.hljs-template-variable,
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #ade5fc;
+}
+
+.hljs-string,
+.hljs-bullet {
+ color: #a2fca2;
+}
+
+.hljs-type,
+.hljs-title,
+.hljs-section,
+.hljs-attribute,
+.hljs-quote,
+.hljs-built_in,
+.hljs-builtin-name {
+ color: #ffa;
+}
+
+.hljs-number,
+.hljs-symbol,
+.hljs-bullet {
+ color: #d36363;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal {
+ color: #fcc28c;
+}
+
+.hljs-comment,
+.hljs-deletion,
+.hljs-code {
+ color: #888;
+}
+
+.hljs-regexp,
+.hljs-link {
+ color: #c6b4f0;
+}
+
+.hljs-meta {
+ color: #fc9b9b;
+}
+
+.hljs-deletion {
+ background-color: #fc9b9b;
+ color: #333;
+}
+
+.hljs-addition {
+ background-color: #a2fca2;
+ color: #333;
+}
+
+.hljs a {
+ color: inherit;
+}
+
+.hljs a:focus,
+.hljs a:hover {
+ color: inherit;
+ text-decoration: underline;
+}
diff --git a/plugins/highlight/css/androidstudio.css b/plugins/highlight/css/androidstudio.css
new file mode 100644
index 00000000..bc8e473b
--- /dev/null
+++ b/plugins/highlight/css/androidstudio.css
@@ -0,0 +1,66 @@
+/*
+Date: 24 Fev 2015
+Author: Pedro Oliveira
+*/
+
+.hljs {
+ color: #a9b7c6;
+ background: #282b2e;
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+}
+
+.hljs-number,
+.hljs-literal,
+.hljs-symbol,
+.hljs-bullet {
+ color: #6897BB;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-deletion {
+ color: #cc7832;
+}
+
+.hljs-variable,
+.hljs-template-variable,
+.hljs-link {
+ color: #629755;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #808080;
+}
+
+.hljs-meta {
+ color: #bbb529;
+}
+
+.hljs-string,
+.hljs-attribute,
+.hljs-addition {
+ color: #6A8759;
+}
+
+.hljs-section,
+.hljs-title,
+.hljs-type {
+ color: #ffc66d;
+}
+
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #e8bf6a;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/arduino-light.css b/plugins/highlight/css/arduino-light.css
new file mode 100644
index 00000000..4b8b7fd3
--- /dev/null
+++ b/plugins/highlight/css/arduino-light.css
@@ -0,0 +1,88 @@
+/*
+
+Arduino® Light Theme - Stefania Mellai
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #FFFFFF;
+}
+
+.hljs,
+.hljs-subst {
+ color: #434f54;
+}
+
+.hljs-keyword,
+.hljs-attribute,
+.hljs-selector-tag,
+.hljs-doctag,
+.hljs-name {
+ color: #00979D;
+}
+
+.hljs-built_in,
+.hljs-literal,
+.hljs-bullet,
+.hljs-code,
+.hljs-addition {
+ color: #D35400;
+}
+
+.hljs-regexp,
+.hljs-symbol,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-link,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+ color: #00979D;
+}
+
+.hljs-type,
+.hljs-string,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-quote,
+.hljs-template-tag,
+.hljs-deletion {
+ color: #005C5F;
+}
+
+.hljs-title,
+.hljs-section {
+ color: #880000;
+ font-weight: bold;
+}
+
+.hljs-comment {
+ color: rgba(149,165,166,.8);
+}
+
+.hljs-meta-keyword {
+ color: #728E00;
+}
+
+.hljs-meta {
+ color: #728E00;
+ color: #434f54;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-function {
+ color: #728E00;
+}
+
+.hljs-number {
+ color: #8A7B52;
+}
diff --git a/plugins/highlight/css/arta.css b/plugins/highlight/css/arta.css
new file mode 100644
index 00000000..75ef3a9e
--- /dev/null
+++ b/plugins/highlight/css/arta.css
@@ -0,0 +1,73 @@
+/*
+Date: 17.V.2011
+Author: pumbur
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #222;
+}
+
+.hljs,
+.hljs-subst {
+ color: #aaa;
+}
+
+.hljs-section {
+ color: #fff;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-meta {
+ color: #444;
+}
+
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-regexp {
+ color: #ffcc33;
+}
+
+.hljs-number,
+.hljs-addition {
+ color: #00cc66;
+}
+
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-template-variable,
+.hljs-attribute,
+.hljs-link {
+ color: #32aaee;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #6644aa;
+}
+
+.hljs-title,
+.hljs-variable,
+.hljs-deletion,
+.hljs-template-tag {
+ color: #bb1166;
+}
+
+.hljs-section,
+.hljs-doctag,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/ascetic.css b/plugins/highlight/css/ascetic.css
new file mode 100644
index 00000000..48397e88
--- /dev/null
+++ b/plugins/highlight/css/ascetic.css
@@ -0,0 +1,45 @@
+/*
+
+Original style from softwaremaniacs.org (c) Ivan Sagalaev
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: white;
+ color: black;
+}
+
+.hljs-string,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-section,
+.hljs-addition,
+.hljs-attribute,
+.hljs-link {
+ color: #888;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-meta,
+.hljs-deletion {
+ color: #ccc;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-section,
+.hljs-name,
+.hljs-type,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/atelier-cave.dark.css b/plugins/highlight/css/atelier-cave.dark.css
new file mode 100644
index 00000000..f907beec
--- /dev/null
+++ b/plugins/highlight/css/atelier-cave.dark.css
@@ -0,0 +1,113 @@
+/* Base16 Atelier Cave Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Cave Comment */
+.hljs-comment {
+ color: #7e7887;
+}
+
+/* Atelier-Cave Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #be4678;
+}
+
+/* Atelier-Cave Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #aa573c;
+}
+
+/* Atelier-Cave Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #a06e3b;
+}
+
+/* Atelier-Cave Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #2a9292;
+}
+
+/* Atelier-Cave Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #398bc6;
+}
+
+/* Atelier-Cave Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #576ddb;
+}
+
+/* Atelier-Cave Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #955ae7;
+}
+
+.diff .hljs-deletion,
+.diff .hljs-addition {
+ color: #19171c;
+ display: inline-block;
+ width: 100%;
+}
+
+.diff .hljs-deletion {
+ background-color: #be4678;
+}
+
+.diff .hljs-addition {
+ background-color: #2a9292;
+}
+
+.diff .hljs-change {
+ color: #576ddb;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #19171c;
+ color: #8b8792;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-cave.light.css b/plugins/highlight/css/atelier-cave.light.css
new file mode 100644
index 00000000..5df8b4c8
--- /dev/null
+++ b/plugins/highlight/css/atelier-cave.light.css
@@ -0,0 +1,113 @@
+/* Base16 Atelier Cave Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Cave Comment */
+.hljs-comment {
+ color: #655f6d;
+}
+
+/* Atelier-Cave Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #be4678;
+}
+
+/* Atelier-Cave Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #aa573c;
+}
+
+/* Atelier-Cave Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #a06e3b;
+}
+
+/* Atelier-Cave Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #2a9292;
+}
+
+/* Atelier-Cave Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #398bc6;
+}
+
+/* Atelier-Cave Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #576ddb;
+}
+
+/* Atelier-Cave Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #955ae7;
+}
+
+.diff .hljs-deletion,
+.diff .hljs-addition {
+ color: #19171c;
+ display: inline-block;
+ width: 100%;
+}
+
+.diff .hljs-deletion {
+ background-color: #be4678;
+}
+
+.diff .hljs-addition {
+ background-color: #2a9292;
+}
+
+.diff .hljs-change {
+ color: #576ddb;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #efecf4;
+ color: #585260;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-dune.dark.css b/plugins/highlight/css/atelier-dune.dark.css
new file mode 100644
index 00000000..88ea51a9
--- /dev/null
+++ b/plugins/highlight/css/atelier-dune.dark.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Dune Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Dune Comment */
+.hljs-comment {
+ color: #999580;
+}
+
+/* Atelier-Dune Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #d73737;
+}
+
+/* Atelier-Dune Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #b65611;
+}
+
+/* Atelier-Dune Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #ae9513;
+}
+
+/* Atelier-Dune Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #60ac39;
+}
+
+/* Atelier-Dune Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #1fad83;
+}
+
+/* Atelier-Dune Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #6684e1;
+}
+
+/* Atelier-Dune Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #b854d4;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #20201d;
+ color: #a6a28c;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-dune.light.css b/plugins/highlight/css/atelier-dune.light.css
new file mode 100644
index 00000000..87ffd806
--- /dev/null
+++ b/plugins/highlight/css/atelier-dune.light.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Dune Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Dune Comment */
+.hljs-comment {
+ color: #7d7a68;
+}
+
+/* Atelier-Dune Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #d73737;
+}
+
+/* Atelier-Dune Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #b65611;
+}
+
+/* Atelier-Dune Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #ae9513;
+}
+
+/* Atelier-Dune Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #60ac39;
+}
+
+/* Atelier-Dune Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #1fad83;
+}
+
+/* Atelier-Dune Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #6684e1;
+}
+
+/* Atelier-Dune Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #b854d4;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #fefbec;
+ color: #6e6b5e;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-estuary.dark.css b/plugins/highlight/css/atelier-estuary.dark.css
new file mode 100644
index 00000000..65d0f7fe
--- /dev/null
+++ b/plugins/highlight/css/atelier-estuary.dark.css
@@ -0,0 +1,113 @@
+/* Base16 Atelier Estuary Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Estuary Comment */
+.hljs-comment {
+ color: #878573;
+}
+
+/* Atelier-Estuary Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #ba6236;
+}
+
+/* Atelier-Estuary Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #ae7313;
+}
+
+/* Atelier-Estuary Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #a5980d;
+}
+
+/* Atelier-Estuary Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #7d9726;
+}
+
+/* Atelier-Estuary Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #5b9d48;
+}
+
+/* Atelier-Estuary Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #36a166;
+}
+
+/* Atelier-Estuary Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #5f9182;
+}
+
+.diff .hljs-deletion,
+.diff .hljs-addition {
+ color: #22221b;
+ display: inline-block;
+ width: 100%;
+}
+
+.diff .hljs-deletion {
+ background-color: #ba6236;
+}
+
+.diff .hljs-addition {
+ background-color: #7d9726;
+}
+
+.diff .hljs-change {
+ color: #36a166;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #22221b;
+ color: #929181;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-estuary.light.css b/plugins/highlight/css/atelier-estuary.light.css
new file mode 100644
index 00000000..d2f70c1d
--- /dev/null
+++ b/plugins/highlight/css/atelier-estuary.light.css
@@ -0,0 +1,113 @@
+/* Base16 Atelier Estuary Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Estuary Comment */
+.hljs-comment {
+ color: #6c6b5a;
+}
+
+/* Atelier-Estuary Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #ba6236;
+}
+
+/* Atelier-Estuary Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #ae7313;
+}
+
+/* Atelier-Estuary Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #a5980d;
+}
+
+/* Atelier-Estuary Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #7d9726;
+}
+
+/* Atelier-Estuary Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #5b9d48;
+}
+
+/* Atelier-Estuary Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #36a166;
+}
+
+/* Atelier-Estuary Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #5f9182;
+}
+
+.diff .hljs-deletion,
+.diff .hljs-addition {
+ color: #22221b;
+ display: inline-block;
+ width: 100%;
+}
+
+.diff .hljs-deletion {
+ background-color: #ba6236;
+}
+
+.diff .hljs-addition {
+ background-color: #7d9726;
+}
+
+.diff .hljs-change {
+ color: #36a166;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #f4f3ec;
+ color: #5f5e4e;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-forest.dark.css b/plugins/highlight/css/atelier-forest.dark.css
new file mode 100644
index 00000000..0e4294ba
--- /dev/null
+++ b/plugins/highlight/css/atelier-forest.dark.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Forest Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Forest Comment */
+.hljs-comment {
+ color: #9c9491;
+}
+
+/* Atelier-Forest Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #f22c40;
+}
+
+/* Atelier-Forest Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #df5320;
+}
+
+/* Atelier-Forest Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #c38418;
+}
+
+/* Atelier-Forest Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #7b9726;
+}
+
+/* Atelier-Forest Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #3d97b8;
+}
+
+/* Atelier-Forest Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #407ee7;
+}
+
+/* Atelier-Forest Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #6666ea;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #1b1918;
+ color: #a8a19f;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-forest.light.css b/plugins/highlight/css/atelier-forest.light.css
new file mode 100644
index 00000000..e08e3dc1
--- /dev/null
+++ b/plugins/highlight/css/atelier-forest.light.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Forest Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Forest Comment */
+.hljs-comment {
+ color: #766e6b;
+}
+
+/* Atelier-Forest Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #f22c40;
+}
+
+/* Atelier-Forest Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #df5320;
+}
+
+/* Atelier-Forest Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #c38418;
+}
+
+/* Atelier-Forest Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #7b9726;
+}
+
+/* Atelier-Forest Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #3d97b8;
+}
+
+/* Atelier-Forest Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #407ee7;
+}
+
+/* Atelier-Forest Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #6666ea;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #f1efee;
+ color: #68615e;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-heath.dark.css b/plugins/highlight/css/atelier-heath.dark.css
new file mode 100644
index 00000000..a063feb0
--- /dev/null
+++ b/plugins/highlight/css/atelier-heath.dark.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Heath Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Heath Comment */
+.hljs-comment {
+ color: #9e8f9e;
+}
+
+/* Atelier-Heath Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #ca402b;
+}
+
+/* Atelier-Heath Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #a65926;
+}
+
+/* Atelier-Heath Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #bb8a35;
+}
+
+/* Atelier-Heath Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #918b3b;
+}
+
+/* Atelier-Heath Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #159393;
+}
+
+/* Atelier-Heath Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #516aec;
+}
+
+/* Atelier-Heath Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #7b59c0;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #1b181b;
+ color: #ab9bab;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-heath.light.css b/plugins/highlight/css/atelier-heath.light.css
new file mode 100644
index 00000000..6c56d040
--- /dev/null
+++ b/plugins/highlight/css/atelier-heath.light.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Heath Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Heath Comment */
+.hljs-comment {
+ color: #776977;
+}
+
+/* Atelier-Heath Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #ca402b;
+}
+
+/* Atelier-Heath Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #a65926;
+}
+
+/* Atelier-Heath Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #bb8a35;
+}
+
+/* Atelier-Heath Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #918b3b;
+}
+
+/* Atelier-Heath Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #159393;
+}
+
+/* Atelier-Heath Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #516aec;
+}
+
+/* Atelier-Heath Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #7b59c0;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #f7f3f7;
+ color: #695d69;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-lakeside.dark.css b/plugins/highlight/css/atelier-lakeside.dark.css
new file mode 100644
index 00000000..852f72e1
--- /dev/null
+++ b/plugins/highlight/css/atelier-lakeside.dark.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Lakeside Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Lakeside Comment */
+.hljs-comment {
+ color: #7195a8;
+}
+
+/* Atelier-Lakeside Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #d22d72;
+}
+
+/* Atelier-Lakeside Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #935c25;
+}
+
+/* Atelier-Lakeside Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #8a8a0f;
+}
+
+/* Atelier-Lakeside Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #568c3b;
+}
+
+/* Atelier-Lakeside Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #2d8f6f;
+}
+
+/* Atelier-Lakeside Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #257fad;
+}
+
+/* Atelier-Lakeside Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #6b6bb8;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #161b1d;
+ color: #7ea2b4;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-lakeside.light.css b/plugins/highlight/css/atelier-lakeside.light.css
new file mode 100644
index 00000000..06f208cc
--- /dev/null
+++ b/plugins/highlight/css/atelier-lakeside.light.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Lakeside Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Lakeside Comment */
+.hljs-comment {
+ color: #5a7b8c;
+}
+
+/* Atelier-Lakeside Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #d22d72;
+}
+
+/* Atelier-Lakeside Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #935c25;
+}
+
+/* Atelier-Lakeside Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #8a8a0f;
+}
+
+/* Atelier-Lakeside Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #568c3b;
+}
+
+/* Atelier-Lakeside Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #2d8f6f;
+}
+
+/* Atelier-Lakeside Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #257fad;
+}
+
+/* Atelier-Lakeside Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #6b6bb8;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #ebf8ff;
+ color: #516d7b;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-plateau.dark.css b/plugins/highlight/css/atelier-plateau.dark.css
new file mode 100644
index 00000000..10b8f8ea
--- /dev/null
+++ b/plugins/highlight/css/atelier-plateau.dark.css
@@ -0,0 +1,113 @@
+/* Base16 Atelier Plateau Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/plateau) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Plateau Comment */
+.hljs-comment {
+ color: #7e7777;
+}
+
+/* Atelier-Plateau Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #ca4949;
+}
+
+/* Atelier-Plateau Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #b45a3c;
+}
+
+/* Atelier-Plateau Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #a06e3b;
+}
+
+/* Atelier-Plateau Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #4b8b8b;
+}
+
+/* Atelier-Plateau Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #5485b6;
+}
+
+/* Atelier-Plateau Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #7272ca;
+}
+
+/* Atelier-Plateau Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #8464c4;
+}
+
+.diff .hljs-deletion,
+.diff .hljs-addition {
+ color: #1b1818;
+ display: inline-block;
+ width: 100%;
+}
+
+.diff .hljs-deletion {
+ background-color: #ca4949;
+}
+
+.diff .hljs-addition {
+ background-color: #4b8b8b;
+}
+
+.diff .hljs-change {
+ color: #7272ca;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #1b1818;
+ color: #8a8585;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-plateau.light.css b/plugins/highlight/css/atelier-plateau.light.css
new file mode 100644
index 00000000..1c19cf61
--- /dev/null
+++ b/plugins/highlight/css/atelier-plateau.light.css
@@ -0,0 +1,113 @@
+/* Base16 Atelier Plateau Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/plateau) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Plateau Comment */
+.hljs-comment {
+ color: #655d5d;
+}
+
+/* Atelier-Plateau Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #ca4949;
+}
+
+/* Atelier-Plateau Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #b45a3c;
+}
+
+/* Atelier-Plateau Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #a06e3b;
+}
+
+/* Atelier-Plateau Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #4b8b8b;
+}
+
+/* Atelier-Plateau Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #5485b6;
+}
+
+/* Atelier-Plateau Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #7272ca;
+}
+
+/* Atelier-Plateau Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #8464c4;
+}
+
+.diff .hljs-deletion,
+.diff .hljs-addition {
+ color: #1b1818;
+ display: inline-block;
+ width: 100%;
+}
+
+.diff .hljs-deletion {
+ background-color: #ca4949;
+}
+
+.diff .hljs-addition {
+ background-color: #4b8b8b;
+}
+
+.diff .hljs-change {
+ color: #7272ca;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #f4ecec;
+ color: #585050;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-savanna.dark.css b/plugins/highlight/css/atelier-savanna.dark.css
new file mode 100644
index 00000000..444e2de8
--- /dev/null
+++ b/plugins/highlight/css/atelier-savanna.dark.css
@@ -0,0 +1,113 @@
+/* Base16 Atelier Savanna Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/savanna) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Savanna Comment */
+.hljs-comment {
+ color: #78877d;
+}
+
+/* Atelier-Savanna Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #b16139;
+}
+
+/* Atelier-Savanna Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #9f713c;
+}
+
+/* Atelier-Savanna Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #a07e3b;
+}
+
+/* Atelier-Savanna Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #489963;
+}
+
+/* Atelier-Savanna Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #1c9aa0;
+}
+
+/* Atelier-Savanna Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #478c90;
+}
+
+/* Atelier-Savanna Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #55859b;
+}
+
+.diff .hljs-deletion,
+.diff .hljs-addition {
+ color: #171c19;
+ display: inline-block;
+ width: 100%;
+}
+
+.diff .hljs-deletion {
+ background-color: #b16139;
+}
+
+.diff .hljs-addition {
+ background-color: #489963;
+}
+
+.diff .hljs-change {
+ color: #478c90;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #171c19;
+ color: #87928a;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-savanna.light.css b/plugins/highlight/css/atelier-savanna.light.css
new file mode 100644
index 00000000..5eeb2949
--- /dev/null
+++ b/plugins/highlight/css/atelier-savanna.light.css
@@ -0,0 +1,113 @@
+/* Base16 Atelier Savanna Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/savanna) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Savanna Comment */
+.hljs-comment {
+ color: #5f6d64;
+}
+
+/* Atelier-Savanna Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #b16139;
+}
+
+/* Atelier-Savanna Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #9f713c;
+}
+
+/* Atelier-Savanna Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #a07e3b;
+}
+
+/* Atelier-Savanna Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #489963;
+}
+
+/* Atelier-Savanna Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #1c9aa0;
+}
+
+/* Atelier-Savanna Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #478c90;
+}
+
+/* Atelier-Savanna Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #55859b;
+}
+
+.diff .hljs-deletion,
+.diff .hljs-addition {
+ color: #171c19;
+ display: inline-block;
+ width: 100%;
+}
+
+.diff .hljs-deletion {
+ background-color: #b16139;
+}
+
+.diff .hljs-addition {
+ background-color: #489963;
+}
+
+.diff .hljs-change {
+ color: #478c90;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #ecf4ee;
+ color: #526057;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-seaside.dark.css b/plugins/highlight/css/atelier-seaside.dark.css
new file mode 100644
index 00000000..0bcfd1b2
--- /dev/null
+++ b/plugins/highlight/css/atelier-seaside.dark.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Seaside Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Seaside Comment */
+.hljs-comment {
+ color: #809980;
+}
+
+/* Atelier-Seaside Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #e6193c;
+}
+
+/* Atelier-Seaside Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #87711d;
+}
+
+/* Atelier-Seaside Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #98981b;
+}
+
+/* Atelier-Seaside Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #29a329;
+}
+
+/* Atelier-Seaside Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #1999b3;
+}
+
+/* Atelier-Seaside Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #3d62f5;
+}
+
+/* Atelier-Seaside Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #ad2bee;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #131513;
+ color: #8ca68c;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-seaside.light.css b/plugins/highlight/css/atelier-seaside.light.css
new file mode 100644
index 00000000..6023d4be
--- /dev/null
+++ b/plugins/highlight/css/atelier-seaside.light.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Seaside Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Seaside Comment */
+.hljs-comment {
+ color: #687d68;
+}
+
+/* Atelier-Seaside Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #e6193c;
+}
+
+/* Atelier-Seaside Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #87711d;
+}
+
+/* Atelier-Seaside Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #98981b;
+}
+
+/* Atelier-Seaside Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #29a329;
+}
+
+/* Atelier-Seaside Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #1999b3;
+}
+
+/* Atelier-Seaside Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #3d62f5;
+}
+
+/* Atelier-Seaside Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #ad2bee;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #f4fbf4;
+ color: #5e6e5e;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-sulphurpool.dark.css b/plugins/highlight/css/atelier-sulphurpool.dark.css
new file mode 100644
index 00000000..dda8af3c
--- /dev/null
+++ b/plugins/highlight/css/atelier-sulphurpool.dark.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Sulphurpool Dark - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Sulphurpool Comment */
+.hljs-comment {
+ color: #898ea4;
+}
+
+/* Atelier-Sulphurpool Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #c94922;
+}
+
+/* Atelier-Sulphurpool Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #c76b29;
+}
+
+/* Atelier-Sulphurpool Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #c08b30;
+}
+
+/* Atelier-Sulphurpool Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #ac9739;
+}
+
+/* Atelier-Sulphurpool Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #22a2c9;
+}
+
+/* Atelier-Sulphurpool Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #3d8fd1;
+}
+
+/* Atelier-Sulphurpool Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #6679cc;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #202746;
+ color: #979db4;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/atelier-sulphurpool.light.css b/plugins/highlight/css/atelier-sulphurpool.light.css
new file mode 100644
index 00000000..2149b4c4
--- /dev/null
+++ b/plugins/highlight/css/atelier-sulphurpool.light.css
@@ -0,0 +1,94 @@
+/* Base16 Atelier Sulphurpool Light - Theme */
+/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */
+/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
+
+/* Atelier-Sulphurpool Comment */
+.hljs-comment {
+ color: #6b7394;
+}
+
+/* Atelier-Sulphurpool Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #c94922;
+}
+
+/* Atelier-Sulphurpool Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #c76b29;
+}
+
+/* Atelier-Sulphurpool Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #c08b30;
+}
+
+/* Atelier-Sulphurpool Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #ac9739;
+}
+
+/* Atelier-Sulphurpool Aqua */
+.hljs-title,
+.css .hljs-hexcolor {
+ color: #22a2c9;
+}
+
+/* Atelier-Sulphurpool Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #3d8fd1;
+}
+
+/* Atelier-Sulphurpool Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #6679cc;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #f5f7ff;
+ color: #5e6687;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/brown-paper.css b/plugins/highlight/css/brown-paper.css
new file mode 100644
index 00000000..f0197b92
--- /dev/null
+++ b/plugins/highlight/css/brown-paper.css
@@ -0,0 +1,64 @@
+/*
+
+Brown Paper style from goldblog.com.ua (c) Zaripov Yura
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background:#b7a68e url(./brown-papersq.png);
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal {
+ color:#005599;
+ font-weight:bold;
+}
+
+.hljs,
+.hljs-subst {
+ color: #363c69;
+}
+
+.hljs-string,
+.hljs-title,
+.hljs-section,
+.hljs-type,
+.hljs-attribute,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-built_in,
+.hljs-addition,
+.hljs-variable,
+.hljs-template-tag,
+.hljs-template-variable,
+.hljs-link,
+.hljs-name {
+ color: #2c009f;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-meta,
+.hljs-deletion {
+ color: #802022;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-doctag,
+.hljs-title,
+.hljs-section,
+.hljs-type,
+.hljs-name,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/codepen-embed.css b/plugins/highlight/css/codepen-embed.css
new file mode 100644
index 00000000..195c4a07
--- /dev/null
+++ b/plugins/highlight/css/codepen-embed.css
@@ -0,0 +1,60 @@
+/*
+ codepen.io Embed Theme
+ Author: Justin Perry
+ Original theme - https://github.com/chriskempson/tomorrow-theme
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #222;
+ color: #fff;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #777;
+}
+
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-regexp,
+.hljs-meta,
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-params,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-link,
+.hljs-deletion {
+ color: #ab875d;
+}
+
+.hljs-section,
+.hljs-title,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-type,
+.hljs-attribute {
+ color: #9b869b;
+}
+
+.hljs-string,
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-addition {
+ color: #8f9c6c;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/color-brewer.css b/plugins/highlight/css/color-brewer.css
new file mode 100644
index 00000000..7934d986
--- /dev/null
+++ b/plugins/highlight/css/color-brewer.css
@@ -0,0 +1,71 @@
+/*
+
+Colorbrewer theme
+Original: https://github.com/mbostock/colorbrewer-theme (c) Mike Bostock
+Ported by Fabrício Tavares de Oliveira
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #fff;
+}
+
+.hljs,
+.hljs-subst {
+ color: #000;
+}
+
+.hljs-string,
+.hljs-meta,
+.hljs-symbol,
+.hljs-template-tag,
+.hljs-template-variable,
+.hljs-addition {
+ color: #756bb1;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #636363;
+}
+
+.hljs-number,
+.hljs-regexp,
+.hljs-literal,
+.hljs-bullet,
+.hljs-link {
+ color: #31a354;
+}
+
+.hljs-deletion,
+.hljs-variable {
+ color: #88f;
+}
+
+
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-title,
+.hljs-section,
+.hljs-built_in,
+.hljs-doctag,
+.hljs-type,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-strong {
+ color: #3182bd;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-attribute {
+ color: #e6550d;
+}
diff --git a/plugins/highlight/css/dark.css b/plugins/highlight/css/dark.css
new file mode 100644
index 00000000..b4724f5f
--- /dev/null
+++ b/plugins/highlight/css/dark.css
@@ -0,0 +1,63 @@
+/*
+
+Dark style from softwaremaniacs.org (c) Ivan Sagalaev
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #444;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-section,
+.hljs-link {
+ color: white;
+}
+
+.hljs,
+.hljs-subst {
+ color: #ddd;
+}
+
+.hljs-string,
+.hljs-title,
+.hljs-name,
+.hljs-type,
+.hljs-attribute,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-built_in,
+.hljs-addition,
+.hljs-variable,
+.hljs-template-tag,
+.hljs-template-variable {
+ color: #d88;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-deletion,
+.hljs-meta {
+ color: #777;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-title,
+.hljs-section,
+.hljs-doctag,
+.hljs-type,
+.hljs-name,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/darkula.css b/plugins/highlight/css/darkula.css
new file mode 100644
index 00000000..c01f9a7f
--- /dev/null
+++ b/plugins/highlight/css/darkula.css
@@ -0,0 +1,74 @@
+/*
+
+Darkula color scheme from the JetBrains family of IDEs
+
+*/
+
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #2b2b2b;
+}
+
+.hljs {
+ color: #bababa;
+}
+
+.hljs-strong,
+.hljs-emphasis {
+ color: #a8a8a2;
+}
+
+.hljs-bullet,
+.hljs-quote,
+.hljs-link,
+.hljs-number,
+.hljs-regexp,
+.hljs-literal {
+ color: #6896ba;
+}
+
+.hljs-code,
+.hljs-selector-class {
+ color: #a6e22e;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-section,
+.hljs-attribute,
+.hljs-name,
+.hljs-variable {
+ color: #cb7832;
+}
+
+.hljs-params {
+ color: #b9b9b9;
+}
+
+.hljs-string,
+.hljs-subst,
+.hljs-type,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-symbol,
+.hljs-selector-id,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-template-tag,
+.hljs-template-variable,
+.hljs-addition {
+ color: #e0c46c;
+}
+
+.hljs-comment,
+.hljs-deletion,
+.hljs-meta {
+ color: #7f7f7f;
+}
diff --git a/plugins/highlight/css/default.css b/plugins/highlight/css/default.css
new file mode 100644
index 00000000..aee40746
--- /dev/null
+++ b/plugins/highlight/css/default.css
@@ -0,0 +1,77 @@
+/*
+
+Original highlight.js style (c) Ivan Sagalaev
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #F0F0F0;
+}
+
+.hljs,
+.hljs-subst {
+ color: #444;
+}
+
+.hljs-keyword,
+.hljs-attribute,
+.hljs-selector-tag,
+.hljs-meta-keyword,
+.hljs-doctag,
+.hljs-name {
+ font-weight: bold;
+}
+
+.hljs-built_in,
+.hljs-literal,
+.hljs-bullet,
+.hljs-code,
+.hljs-addition {
+ color: #1F811F;
+}
+
+.hljs-regexp,
+.hljs-symbol,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-link,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+ color: #BC6060;
+}
+
+.hljs-type,
+.hljs-string,
+.hljs-number,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-quote,
+.hljs-template-tag,
+.hljs-deletion {
+ color: #880000;
+}
+
+.hljs-title,
+.hljs-section {
+ color: #880000;
+ font-weight: bold;
+}
+
+.hljs-comment {
+ color: #888888;
+}
+
+.hljs-meta {
+ color: #2B6EA1;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/docco.css b/plugins/highlight/css/docco.css
new file mode 100644
index 00000000..db366be3
--- /dev/null
+++ b/plugins/highlight/css/docco.css
@@ -0,0 +1,97 @@
+/*
+Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars)
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ color: #000;
+ background: #f8f8ff;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #408080;
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-subst {
+ color: #954121;
+}
+
+.hljs-number {
+ color: #40a070;
+}
+
+.hljs-string,
+.hljs-doctag {
+ color: #219161;
+}
+
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-section,
+.hljs-type {
+ color: #19469d;
+}
+
+.hljs-params {
+ color: #00f;
+}
+
+.hljs-title {
+ color: #458;
+ font-weight: bold;
+}
+
+.hljs-tag,
+.hljs-name,
+.hljs-attribute {
+ color: #000080;
+ font-weight: normal;
+}
+
+.hljs-variable,
+.hljs-template-variable {
+ color: #008080;
+}
+
+.hljs-regexp,
+.hljs-link {
+ color: #b68;
+}
+
+.hljs-symbol,
+.hljs-bullet {
+ color: #990073;
+}
+
+.hljs-built_in,
+.hljs-builtin-name {
+ color: #0086b3;
+}
+
+.hljs-meta {
+ color: #999;
+ font-weight: bold;
+}
+
+.hljs-deletion {
+ background: #fdd;
+}
+
+.hljs-addition {
+ background: #dfd;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/far.css b/plugins/highlight/css/far.css
new file mode 100644
index 00000000..2b3f87b5
--- /dev/null
+++ b/plugins/highlight/css/far.css
@@ -0,0 +1,71 @@
+/*
+
+FAR Style (c) MajestiC
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #000080;
+}
+
+.hljs,
+.hljs-subst {
+ color: #0ff;
+}
+
+.hljs-string,
+.hljs-attribute,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-template-tag,
+.hljs-template-variable,
+.hljs-addition {
+ color: #ff0;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-section,
+.hljs-type,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-variable {
+ color: #fff;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-doctag,
+.hljs-deletion {
+ color: #888;
+}
+
+.hljs-number,
+.hljs-regexp,
+.hljs-literal,
+.hljs-link {
+ color: #0f0;
+}
+
+.hljs-meta {
+ color: #008080;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-title,
+.hljs-section,
+.hljs-name,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/foundation.css b/plugins/highlight/css/foundation.css
new file mode 100644
index 00000000..f1fe64b3
--- /dev/null
+++ b/plugins/highlight/css/foundation.css
@@ -0,0 +1,88 @@
+/*
+Description: Foundation 4 docs style for highlight.js
+Author: Dan Allen
+Website: http://foundation.zurb.com/docs/
+Version: 1.0
+Date: 2013-04-02
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #eee; color: black;
+}
+
+.hljs-link,
+.hljs-emphasis,
+.hljs-attribute,
+.hljs-addition {
+ color: #070;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong,
+.hljs-string,
+.hljs-deletion {
+ color: #d14;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-quote,
+.hljs-comment {
+ color: #998;
+ font-style: italic;
+}
+
+.hljs-section,
+.hljs-title {
+ color: #900;
+}
+
+.hljs-class .hljs-title,
+.hljs-type {
+ color: #458;
+}
+
+.hljs-variable,
+.hljs-template-variable {
+ color: #336699;
+}
+
+.hljs-bullet {
+ color: #997700;
+}
+
+.hljs-meta {
+ color: #3344bb;
+}
+
+.hljs-code,
+.hljs-number,
+.hljs-literal,
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #099;
+}
+
+.hljs-regexp {
+ background-color: #fff0ff;
+ color: #880088;
+}
+
+.hljs-symbol {
+ color: #990073;
+}
+
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #007700;
+}
diff --git a/plugins/highlight/css/github-gist.css b/plugins/highlight/css/github-gist.css
new file mode 100644
index 00000000..155f0b91
--- /dev/null
+++ b/plugins/highlight/css/github-gist.css
@@ -0,0 +1,71 @@
+/**
+ * GitHub Gist Theme
+ * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro
+ */
+
+.hljs {
+ display: block;
+ background: white;
+ padding: 0.5em;
+ color: #333333;
+ overflow-x: auto;
+}
+
+.hljs-comment,
+.hljs-meta {
+ color: #969896;
+}
+
+.hljs-string,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-strong,
+.hljs-emphasis,
+.hljs-quote {
+ color: #df5000;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-type {
+ color: #a71d5d;
+}
+
+.hljs-literal,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-attribute {
+ color: #0086b3;
+}
+
+.hljs-section,
+.hljs-name {
+ color: #63a35c;
+}
+
+.hljs-tag {
+ color: #333333;
+}
+
+.hljs-title,
+.hljs-attr,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+ color: #795da3;
+}
+
+.hljs-addition {
+ color: #55a532;
+ background-color: #eaffea;
+}
+
+.hljs-deletion {
+ color: #bd2c00;
+ background-color: #ffecec;
+}
+
+.hljs-link {
+ text-decoration: underline;
+}
diff --git a/plugins/highlight/css/github.css b/plugins/highlight/css/github.css
new file mode 100644
index 00000000..791932b8
--- /dev/null
+++ b/plugins/highlight/css/github.css
@@ -0,0 +1,99 @@
+/*
+
+github.com style (c) Vasily Polovnyov
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ color: #333;
+ background: #f8f8f8;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #998;
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-subst {
+ color: #333;
+ font-weight: bold;
+}
+
+.hljs-number,
+.hljs-literal,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag .hljs-attr {
+ color: #008080;
+}
+
+.hljs-string,
+.hljs-doctag {
+ color: #d14;
+}
+
+.hljs-title,
+.hljs-section,
+.hljs-selector-id {
+ color: #900;
+ font-weight: bold;
+}
+
+.hljs-subst {
+ font-weight: normal;
+}
+
+.hljs-type,
+.hljs-class .hljs-title {
+ color: #458;
+ font-weight: bold;
+}
+
+.hljs-tag,
+.hljs-name,
+.hljs-attribute {
+ color: #000080;
+ font-weight: normal;
+}
+
+.hljs-regexp,
+.hljs-link {
+ color: #009926;
+}
+
+.hljs-symbol,
+.hljs-bullet {
+ color: #990073;
+}
+
+.hljs-built_in,
+.hljs-builtin-name {
+ color: #0086b3;
+}
+
+.hljs-meta {
+ color: #999;
+ font-weight: bold;
+}
+
+.hljs-deletion {
+ background: #fdd;
+}
+
+.hljs-addition {
+ background: #dfd;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/googlecode.css b/plugins/highlight/css/googlecode.css
new file mode 100644
index 00000000..884ad635
--- /dev/null
+++ b/plugins/highlight/css/googlecode.css
@@ -0,0 +1,89 @@
+/*
+
+Google Code style (c) Aahan Krish
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: white;
+ color: black;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #800;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-section,
+.hljs-title,
+.hljs-name {
+ color: #008;
+}
+
+.hljs-variable,
+.hljs-template-variable {
+ color: #660;
+}
+
+.hljs-string,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-regexp {
+ color: #080;
+}
+
+.hljs-literal,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-meta,
+.hljs-number,
+.hljs-link {
+ color: #066;
+}
+
+.hljs-title,
+.hljs-doctag,
+.hljs-type,
+.hljs-attr,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-params {
+ color: #606;
+}
+
+.hljs-attribute,
+.hljs-subst {
+ color: #000;
+}
+
+.hljs-formula {
+ background-color: #eee;
+ font-style: italic;
+}
+
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #9B703F
+}
+
+.hljs-addition {
+ background-color: #baeeba;
+}
+
+.hljs-deletion {
+ background-color: #ffc8bd;
+}
+
+.hljs-doctag,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/grayscale.css b/plugins/highlight/css/grayscale.css
new file mode 100644
index 00000000..5376f340
--- /dev/null
+++ b/plugins/highlight/css/grayscale.css
@@ -0,0 +1,101 @@
+/*
+
+grayscale style (c) MY Sun
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ color: #333;
+ background: #fff;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #777;
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-subst {
+ color: #333;
+ font-weight: bold;
+}
+
+.hljs-number,
+.hljs-literal {
+ color: #777;
+}
+
+.hljs-string,
+.hljs-doctag,
+.hljs-formula {
+ color: #333;
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAJ0lEQVQIW2O8e/fufwYGBgZBQUEQxcCIIfDu3Tuwivfv30NUoAsAALHpFMMLqZlPAAAAAElFTkSuQmCC) repeat;
+}
+
+.hljs-title,
+.hljs-section,
+.hljs-selector-id {
+ color: #000;
+ font-weight: bold;
+}
+
+.hljs-subst {
+ font-weight: normal;
+}
+
+.hljs-class .hljs-title,
+.hljs-type,
+.hljs-name {
+ color: #333;
+ font-weight: bold;
+}
+
+.hljs-tag {
+ color: #333;
+}
+
+.hljs-regexp {
+ color: #333;
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAAPUlEQVQYV2NkQAN37979r6yszIgujiIAU4RNMVwhuiQ6H6wQl3XI4oy4FMHcCJPHcDS6J2A2EqUQpJhohQDexSef15DBCwAAAABJRU5ErkJggg==) repeat;
+}
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-link {
+ color: #000;
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAKElEQVQIW2NkQAO7d+/+z4gsBhJwdXVlhAvCBECKwIIwAbhKZBUwBQA6hBpm5efZsgAAAABJRU5ErkJggg==) repeat;
+}
+
+.hljs-built_in,
+.hljs-builtin-name {
+ color: #000;
+ text-decoration: underline;
+}
+
+.hljs-meta {
+ color: #999;
+ font-weight: bold;
+}
+
+.hljs-deletion {
+ color: #fff;
+ background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAADCAYAAABS3WWCAAAAE0lEQVQIW2MMDQ39zzhz5kwIAQAyxweWgUHd1AAAAABJRU5ErkJggg==) repeat;
+}
+
+.hljs-addition {
+ color: #000;
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAALUlEQVQYV2N89+7dfwYk8P79ewZBQUFkIQZGOiu6e/cuiptQHAPl0NtNxAQBAM97Oejj3Dg7AAAAAElFTkSuQmCC) repeat;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/hopscotch.css b/plugins/highlight/css/hopscotch.css
new file mode 100644
index 00000000..32e60d23
--- /dev/null
+++ b/plugins/highlight/css/hopscotch.css
@@ -0,0 +1,83 @@
+/*
+ * Hopscotch
+ * by Jan T. Sott
+ * https://github.com/idleberg/Hopscotch
+ *
+ * This work is licensed under the Creative Commons CC0 1.0 Universal License
+ */
+
+/* Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #989498;
+}
+
+/* Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-link,
+.hljs-deletion {
+ color: #dd464c;
+}
+
+/* Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params {
+ color: #fd8b19;
+}
+
+/* Yellow */
+.hljs-class .hljs-title {
+ color: #fdcc59;
+}
+
+/* Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #8fc13e;
+}
+
+/* Aqua */
+.hljs-meta {
+ color: #149b93;
+}
+
+/* Blue */
+.hljs-function,
+.hljs-section,
+.hljs-title {
+ color: #1290bf;
+}
+
+/* Purple */
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #c85e7c;
+}
+
+.hljs {
+ display: block;
+ background: #322931;
+ color: #b9b5b8;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/hybrid.css b/plugins/highlight/css/hybrid.css
new file mode 100644
index 00000000..29735a18
--- /dev/null
+++ b/plugins/highlight/css/hybrid.css
@@ -0,0 +1,102 @@
+/*
+
+vim-hybrid theme by w0ng (https://github.com/w0ng/vim-hybrid)
+
+*/
+
+/*background color*/
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #1d1f21;
+}
+
+/*selection color*/
+.hljs::selection,
+.hljs span::selection {
+ background: #373b41;
+}
+
+.hljs::-moz-selection,
+.hljs span::-moz-selection {
+ background: #373b41;
+}
+
+/*foreground color*/
+.hljs {
+ color: #c5c8c6;
+}
+
+/*color: fg_yellow*/
+.hljs-title,
+.hljs-name {
+ color: #f0c674;
+}
+
+/*color: fg_comment*/
+.hljs-comment,
+.hljs-meta,
+.hljs-meta .hljs-keyword {
+ color: #707880;
+}
+
+/*color: fg_red*/
+.hljs-number,
+.hljs-symbol,
+.hljs-literal,
+.hljs-deletion,
+.hljs-link {
+ color: #cc6666
+}
+
+/*color: fg_green*/
+.hljs-string,
+.hljs-doctag,
+.hljs-addition,
+.hljs-regexp,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+ color: #b5bd68;
+}
+
+/*color: fg_purple*/
+.hljs-attribute,
+.hljs-code,
+.hljs-selector-id {
+ color: #b294bb;
+}
+
+/*color: fg_blue*/
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-bullet,
+.hljs-tag {
+ color: #81a2be;
+}
+
+/*color: fg_aqua*/
+.hljs-subst,
+.hljs-variable,
+.hljs-template-tag,
+.hljs-template-variable {
+ color: #8abeb7;
+}
+
+/*color: fg_orange*/
+.hljs-type,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-quote,
+.hljs-section,
+.hljs-selector-class {
+ color: #de935f;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/idea.css b/plugins/highlight/css/idea.css
new file mode 100644
index 00000000..3bf1892b
--- /dev/null
+++ b/plugins/highlight/css/idea.css
@@ -0,0 +1,97 @@
+/*
+
+Intellij Idea-like styling (c) Vasily Polovnyov
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ color: #000;
+ background: #fff;
+}
+
+.hljs-subst,
+.hljs-title {
+ font-weight: normal;
+ color: #000;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #808080;
+ font-style: italic;
+}
+
+.hljs-meta {
+ color: #808000;
+}
+
+.hljs-tag {
+ background: #efefef;
+}
+
+.hljs-section,
+.hljs-name,
+.hljs-literal,
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-type,
+.hljs-selector-id,
+.hljs-selector-class {
+ font-weight: bold;
+ color: #000080;
+}
+
+.hljs-attribute,
+.hljs-number,
+.hljs-regexp,
+.hljs-link {
+ font-weight: bold;
+ color: #0000ff;
+}
+
+.hljs-number,
+.hljs-regexp,
+.hljs-link {
+ font-weight: normal;
+}
+
+.hljs-string {
+ color: #008000;
+ font-weight: bold;
+}
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-formula {
+ color: #000;
+ background: #d0eded;
+ font-style: italic;
+}
+
+.hljs-doctag {
+ text-decoration: underline;
+}
+
+.hljs-variable,
+.hljs-template-variable {
+ color: #660e7a;
+}
+
+.hljs-addition {
+ background: #baeeba;
+}
+
+.hljs-deletion {
+ background: #ffc8bd;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/ir-black.css b/plugins/highlight/css/ir-black.css
new file mode 100644
index 00000000..bd4c755e
--- /dev/null
+++ b/plugins/highlight/css/ir-black.css
@@ -0,0 +1,73 @@
+/*
+ IR_Black style (c) Vasily Mikhailitchenko
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #000;
+ color: #f8f8f8;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-meta {
+ color: #7c7c7c;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-tag,
+.hljs-name {
+ color: #96cbfe;
+}
+
+.hljs-attribute,
+.hljs-selector-id {
+ color: #ffffb6;
+}
+
+.hljs-string,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-addition {
+ color: #a8ff60;
+}
+
+.hljs-subst {
+ color: #daefa3;
+}
+
+.hljs-regexp,
+.hljs-link {
+ color: #e9c062;
+}
+
+.hljs-title,
+.hljs-section,
+.hljs-type,
+.hljs-doctag {
+ color: #ffffb6;
+}
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-literal {
+ color: #c6c5fe;
+}
+
+.hljs-number,
+.hljs-deletion {
+ color:#ff73fd;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/kimbie.dark.css b/plugins/highlight/css/kimbie.dark.css
new file mode 100644
index 00000000..d139cb5d
--- /dev/null
+++ b/plugins/highlight/css/kimbie.dark.css
@@ -0,0 +1,74 @@
+/*
+ Name: Kimbie (dark)
+ Author: Jan T. Sott
+ License: Creative Commons Attribution-ShareAlike 4.0 Unported License
+ URL: https://github.com/idleberg/Kimbie-highlight.js
+*/
+
+/* Kimbie Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #d6baad;
+}
+
+/* Kimbie Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-meta {
+ color: #dc3958;
+}
+
+/* Kimbie Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-deletion,
+.hljs-link {
+ color: #f79a32;
+}
+
+/* Kimbie Yellow */
+.hljs-title,
+.hljs-section,
+.hljs-attribute {
+ color: #f06431;
+}
+
+/* Kimbie Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #889b4a;
+}
+
+/* Kimbie Purple */
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-function {
+ color: #98676a;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #221a0f;
+ color: #d3af86;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/kimbie.light.css b/plugins/highlight/css/kimbie.light.css
new file mode 100644
index 00000000..04ff6ed3
--- /dev/null
+++ b/plugins/highlight/css/kimbie.light.css
@@ -0,0 +1,74 @@
+/*
+ Name: Kimbie (light)
+ Author: Jan T. Sott
+ License: Creative Commons Attribution-ShareAlike 4.0 Unported License
+ URL: https://github.com/idleberg/Kimbie-highlight.js
+*/
+
+/* Kimbie Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #a57a4c;
+}
+
+/* Kimbie Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-meta {
+ color: #dc3958;
+}
+
+/* Kimbie Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-deletion,
+.hljs-link {
+ color: #f79a32;
+}
+
+/* Kimbie Yellow */
+.hljs-title,
+.hljs-section,
+.hljs-attribute {
+ color: #f06431;
+}
+
+/* Kimbie Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #889b4a;
+}
+
+/* Kimbie Purple */
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-function {
+ color: #98676a;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #fbebd4;
+ color: #84613d;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/learn.css b/plugins/highlight/css/learn.css
new file mode 100644
index 00000000..2f8a6756
--- /dev/null
+++ b/plugins/highlight/css/learn.css
@@ -0,0 +1,62 @@
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ color: #4d4d4c;
+ padding: 0.5em;
+}
+
+/* Tomorrow Comment */
+.hljs-comment,
+.hljs-title {
+ color: #8e908c;
+}
+
+/* Tomorrow Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-strong,
+.hljs-bullet {
+ color: #c82829;
+}
+
+/* Tomorrow Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-pragma,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant,
+.hljs-emphasis {
+ color: #f5871f;
+}
+
+
+/* Tomorrow Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header {
+ color: #718c00;
+}
+
+/* Tomorrow Aqua */
+.hljs-symbol,
+.hljs-link_label {
+ color: #3e999f;
+}
+
+/* Tomorrow Blue */
+.hljs-function {
+ color: #4271ae;
+}
+
+/* Tomorrow Purple */
+.hljs-keyword,
+.hljs-link_url {
+ color: #8959a8;
+}
diff --git a/plugins/highlight/css/magula.css b/plugins/highlight/css/magula.css
new file mode 100644
index 00000000..44dee5e8
--- /dev/null
+++ b/plugins/highlight/css/magula.css
@@ -0,0 +1,70 @@
+/*
+Description: Magula style for highligh.js
+Author: Ruslan Keba
+Website: http://rukeba.com/
+Version: 1.0
+Date: 2009-01-03
+Music: Aphex Twin / Xtal
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background-color: #f4f4f4;
+}
+
+.hljs,
+.hljs-subst {
+ color: black;
+}
+
+.hljs-string,
+.hljs-title,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-attribute,
+.hljs-addition,
+.hljs-variable,
+.hljs-template-tag,
+.hljs-template-variable {
+ color: #050;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #777;
+}
+
+.hljs-number,
+.hljs-regexp,
+.hljs-literal,
+.hljs-type,
+.hljs-link {
+ color: #800;
+}
+
+.hljs-deletion,
+.hljs-meta {
+ color: #00e;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-doctag,
+.hljs-title,
+.hljs-section,
+.hljs-built_in,
+.hljs-tag,
+.hljs-name {
+ font-weight: bold;
+ color: navy;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/mono-blue.css b/plugins/highlight/css/mono-blue.css
new file mode 100644
index 00000000..884c97c7
--- /dev/null
+++ b/plugins/highlight/css/mono-blue.css
@@ -0,0 +1,59 @@
+/*
+ Five-color theme from a single blue hue.
+*/
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #eaeef3;
+}
+
+.hljs {
+ color: #00193a;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-title,
+.hljs-section,
+.hljs-doctag,
+.hljs-name,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-comment {
+ color: #738191;
+}
+
+.hljs-string,
+.hljs-title,
+.hljs-section,
+.hljs-built_in,
+.hljs-literal,
+.hljs-type,
+.hljs-addition,
+.hljs-tag,
+.hljs-quote,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #0048ab;
+}
+
+.hljs-meta,
+.hljs-subst,
+.hljs-symbol,
+.hljs-regexp,
+.hljs-attribute,
+.hljs-deletion,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-link,
+.hljs-bullet {
+ color: #4c81c9;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/monokai-sublime.css b/plugins/highlight/css/monokai-sublime.css
new file mode 100644
index 00000000..2864170d
--- /dev/null
+++ b/plugins/highlight/css/monokai-sublime.css
@@ -0,0 +1,83 @@
+/*
+
+Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #23241f;
+}
+
+.hljs,
+.hljs-tag,
+.hljs-subst {
+ color: #f8f8f2;
+}
+
+.hljs-strong,
+.hljs-emphasis {
+ color: #a8a8a2;
+}
+
+.hljs-bullet,
+.hljs-quote,
+.hljs-number,
+.hljs-regexp,
+.hljs-literal,
+.hljs-link {
+ color: #ae81ff;
+}
+
+.hljs-code,
+.hljs-title,
+.hljs-section,
+.hljs-selector-class {
+ color: #a6e22e;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-name,
+.hljs-attr {
+ color: #f92672;
+}
+
+.hljs-symbol,
+.hljs-attribute {
+ color: #66d9ef;
+}
+
+.hljs-params,
+.hljs-class .hljs-title {
+ color: #f8f8f2;
+}
+
+.hljs-string,
+.hljs-type,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-selector-id,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-addition,
+.hljs-variable,
+.hljs-template-variable {
+ color: #e6db74;
+}
+
+.hljs-comment,
+.hljs-deletion,
+.hljs-meta {
+ color: #75715e;
+}
diff --git a/plugins/highlight/css/monokai.css b/plugins/highlight/css/monokai.css
new file mode 100644
index 00000000..775d53f9
--- /dev/null
+++ b/plugins/highlight/css/monokai.css
@@ -0,0 +1,70 @@
+/*
+Monokai style - ported by Luigi Maselli - http://grigio.org
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #272822; color: #ddd;
+}
+
+.hljs-tag,
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-strong,
+.hljs-name {
+ color: #f92672;
+}
+
+.hljs-code {
+ color: #66d9ef;
+}
+
+.hljs-class .hljs-title {
+ color: white;
+}
+
+.hljs-attribute,
+.hljs-symbol,
+.hljs-regexp,
+.hljs-link {
+ color: #bf79db;
+}
+
+.hljs-string,
+.hljs-bullet,
+.hljs-subst,
+.hljs-title,
+.hljs-section,
+.hljs-emphasis,
+.hljs-type,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-addition,
+.hljs-variable,
+.hljs-template-tag,
+.hljs-template-variable {
+ color: #a6e22e;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-deletion,
+.hljs-meta {
+ color: #75715e;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-doctag,
+.hljs-title,
+.hljs-section,
+.hljs-type,
+.hljs-selector-id {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/obsidian.css b/plugins/highlight/css/obsidian.css
new file mode 100644
index 00000000..356630fa
--- /dev/null
+++ b/plugins/highlight/css/obsidian.css
@@ -0,0 +1,88 @@
+/**
+ * Obsidian style
+ * ported by Alexander Marenin (http://github.com/ioncreature)
+ */
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #282b2e;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-selector-id {
+ color: #93c763;
+}
+
+.hljs-number {
+ color: #ffcd22;
+}
+
+.hljs {
+ color: #e0e2e4;
+}
+
+.hljs-attribute {
+ color: #668bb0;
+}
+
+.hljs-code,
+.hljs-class .hljs-title,
+.hljs-section {
+ color: white;
+}
+
+.hljs-regexp,
+.hljs-link {
+ color: #d39745;
+}
+
+.hljs-meta {
+ color: #557182;
+}
+
+.hljs-tag,
+.hljs-name,
+.hljs-bullet,
+.hljs-subst,
+.hljs-emphasis,
+.hljs-type,
+.hljs-built_in,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-addition,
+.hljs-variable,
+.hljs-template-tag,
+.hljs-template-variable {
+ color: #8cbbad;
+}
+
+.hljs-string,
+.hljs-symbol {
+ color: #ec7600;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-deletion {
+ color: #818e96;
+}
+
+.hljs-selector-class {
+ color: #A082BD
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-doctag,
+.hljs-title,
+.hljs-section,
+.hljs-type,
+.hljs-name,
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/paraiso-dark.css b/plugins/highlight/css/paraiso-dark.css
new file mode 100644
index 00000000..e7292401
--- /dev/null
+++ b/plugins/highlight/css/paraiso-dark.css
@@ -0,0 +1,72 @@
+/*
+ Paraíso (dark)
+ Created by Jan T. Sott (http://github.com/idleberg)
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
+*/
+
+/* Paraíso Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #8d8687;
+}
+
+/* Paraíso Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-link,
+.hljs-meta {
+ color: #ef6155;
+}
+
+/* Paraíso Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-deletion {
+ color: #f99b15;
+}
+
+/* Paraíso Yellow */
+.hljs-title,
+.hljs-section,
+.hljs-attribute {
+ color: #fec418;
+}
+
+/* Paraíso Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #48b685;
+}
+
+/* Paraíso Purple */
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #815ba4;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #2f1e2e;
+ color: #a39e9b;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/paraiso-light.css b/plugins/highlight/css/paraiso-light.css
new file mode 100644
index 00000000..944857cd
--- /dev/null
+++ b/plugins/highlight/css/paraiso-light.css
@@ -0,0 +1,72 @@
+/*
+ Paraíso (light)
+ Created by Jan T. Sott (http://github.com/idleberg)
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
+*/
+
+/* Paraíso Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #776e71;
+}
+
+/* Paraíso Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-link,
+.hljs-meta {
+ color: #ef6155;
+}
+
+/* Paraíso Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-deletion {
+ color: #f99b15;
+}
+
+/* Paraíso Yellow */
+.hljs-title,
+.hljs-section,
+.hljs-attribute {
+ color: #fec418;
+}
+
+/* Paraíso Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #48b685;
+}
+
+/* Paraíso Purple */
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #815ba4;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #e7e9db;
+ color: #4f424c;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/paraiso.dark.css b/plugins/highlight/css/paraiso.dark.css
new file mode 100644
index 00000000..0f7eedbf
--- /dev/null
+++ b/plugins/highlight/css/paraiso.dark.css
@@ -0,0 +1,96 @@
+/*
+ Paraíso (dark)
+ Created by Jan T. Sott (http://github.com/idleberg)
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
+*/
+
+/* Paraíso Comment */
+.hljs-comment,
+.hljs-title {
+ color: #8d8687;
+}
+
+/* Paraíso Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #ef6155;
+}
+
+/* Paraíso Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #f99b15;
+}
+
+/* Paraíso Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #fec418;
+}
+
+/* Paraíso Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #48b685;
+}
+
+/* Paraíso Aqua */
+.css .hljs-hexcolor {
+ color: #5bc4bf;
+}
+
+/* Paraíso Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #06b6ef;
+}
+
+/* Paraíso Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #815ba4;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #2f1e2e;
+ color: #a39e9b;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/paraiso.light.css b/plugins/highlight/css/paraiso.light.css
new file mode 100644
index 00000000..1562007f
--- /dev/null
+++ b/plugins/highlight/css/paraiso.light.css
@@ -0,0 +1,96 @@
+/*
+ Paraíso (light)
+ Created by Jan T. Sott (http://github.com/idleberg)
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
+*/
+
+/* Paraíso Comment */
+.hljs-comment,
+.hljs-title {
+ color: #776e71;
+}
+
+/* Paraíso Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.hljs-name,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #ef6155;
+}
+
+/* Paraíso Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #f99b15;
+}
+
+/* Paraíso Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rule .hljs-attribute {
+ color: #fec418;
+}
+
+/* Paraíso Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #48b685;
+}
+
+/* Paraíso Aqua */
+.css .hljs-hexcolor {
+ color: #5bc4bf;
+}
+
+/* Paraíso Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #06b6ef;
+}
+
+/* Paraíso Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #815ba4;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #e7e9db;
+ color: #4f424c;
+ padding: 0.5em;
+ -webkit-text-size-adjust: none;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+}
diff --git a/plugins/highlight/css/pojoaque.css b/plugins/highlight/css/pojoaque.css
new file mode 100644
index 00000000..2e07847b
--- /dev/null
+++ b/plugins/highlight/css/pojoaque.css
@@ -0,0 +1,83 @@
+/*
+
+Pojoaque Style by Jason Tate
+http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html
+Based on Solarized Style from http://ethanschoonover.com/solarized
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ color: #dccf8f;
+ background: url(./pojoaque.jpg) repeat scroll left top #181914;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #586e75;
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-addition {
+ color: #b64926;
+}
+
+.hljs-number,
+.hljs-string,
+.hljs-doctag,
+.hljs-regexp {
+ color: #468966;
+}
+
+.hljs-title,
+.hljs-section,
+.hljs-built_in,
+.hljs-name {
+ color: #ffb03b;
+}
+
+.hljs-variable,
+.hljs-template-variable,
+.hljs-class .hljs-title,
+.hljs-type,
+.hljs-tag {
+ color: #b58900;
+}
+
+.hljs-attribute {
+ color: #b89859;
+}
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-link,
+.hljs-subst,
+.hljs-meta {
+ color: #cb4b16;
+}
+
+.hljs-deletion {
+ color: #dc322f;
+}
+
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #d3a60c;
+}
+
+.hljs-formula {
+ background: #073642;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/railscasts.css b/plugins/highlight/css/railscasts.css
new file mode 100644
index 00000000..008cdc5b
--- /dev/null
+++ b/plugins/highlight/css/railscasts.css
@@ -0,0 +1,106 @@
+/*
+
+Railscasts-like style (c) Visoft, Inc. (Damien White)
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #232323;
+ color: #e6e1dc;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #bc9458;
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #c26230;
+}
+
+.hljs-string,
+.hljs-number,
+.hljs-regexp,
+.hljs-variable,
+.hljs-template-variable {
+ color: #a5c261;
+}
+
+.hljs-subst {
+ color: #519f50;
+}
+
+.hljs-tag,
+.hljs-name {
+ color: #e8bf6a;
+}
+
+.hljs-type {
+ color: #da4939;
+}
+
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-attr,
+.hljs-link {
+ color: #6d9cbe;
+}
+
+.hljs-params {
+ color: #d0d0ff;
+}
+
+.hljs-attribute {
+ color: #cda869;
+}
+
+.hljs-meta {
+ color: #9b859d;
+}
+
+.hljs-title,
+.hljs-section {
+ color: #ffc66d;
+}
+
+.hljs-addition {
+ background-color: #144212;
+ color: #e6e1dc;
+ display: inline-block;
+ width: 100%;
+}
+
+.hljs-deletion {
+ background-color: #600;
+ color: #e6e1dc;
+ display: inline-block;
+ width: 100%;
+}
+
+.hljs-selector-class {
+ color: #9b703f;
+}
+
+.hljs-selector-id {
+ color: #8b98ab;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-link {
+ text-decoration: underline;
+}
diff --git a/plugins/highlight/css/rainbow.css b/plugins/highlight/css/rainbow.css
new file mode 100644
index 00000000..905eb8ef
--- /dev/null
+++ b/plugins/highlight/css/rainbow.css
@@ -0,0 +1,85 @@
+/*
+
+Style with support for rainbow parens
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #474949;
+ color: #d1d9e1;
+}
+
+
+.hljs-comment,
+.hljs-quote {
+ color: #969896;
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-type,
+.hljs-addition {
+ color: #cc99cc;
+}
+
+.hljs-number,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+ color: #f99157;
+}
+
+.hljs-string,
+.hljs-doctag,
+.hljs-regexp {
+ color: #8abeb7;
+}
+
+.hljs-title,
+.hljs-name,
+.hljs-section,
+.hljs-built_in {
+ color: #b5bd68;
+}
+
+.hljs-variable,
+.hljs-template-variable,
+.hljs-selector-id,
+.hljs-class .hljs-title {
+ color: #ffcc66;
+}
+
+.hljs-section,
+.hljs-name,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-subst,
+.hljs-meta,
+.hljs-link {
+ color: #f99157;
+}
+
+.hljs-deletion {
+ color: #dc322f;
+}
+
+.hljs-formula {
+ background: #eee8d5;
+}
+
+.hljs-attr,
+.hljs-attribute {
+ color: #81a2be;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/school-book.css b/plugins/highlight/css/school-book.css
new file mode 100644
index 00000000..964b51d8
--- /dev/null
+++ b/plugins/highlight/css/school-book.css
@@ -0,0 +1,72 @@
+/*
+
+School Book style from goldblog.com.ua (c) Zaripov Yura
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 15px 0.5em 0.5em 30px;
+ font-size: 11px;
+ line-height:16px;
+}
+
+pre{
+ background:#f6f6ae url(./school-book.png);
+ border-top: solid 2px #d2e8b9;
+ border-bottom: solid 1px #d2e8b9;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal {
+ color:#005599;
+ font-weight:bold;
+}
+
+.hljs,
+.hljs-subst {
+ color: #3e5915;
+}
+
+.hljs-string,
+.hljs-title,
+.hljs-section,
+.hljs-type,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-attribute,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-addition,
+.hljs-variable,
+.hljs-template-tag,
+.hljs-template-variable,
+.hljs-link {
+ color: #2c009f;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-deletion,
+.hljs-meta {
+ color: #e60415;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal,
+.hljs-doctag,
+.hljs-title,
+.hljs-section,
+.hljs-type,
+.hljs-name,
+.hljs-selector-id,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/solarized-dark.css b/plugins/highlight/css/solarized-dark.css
new file mode 100644
index 00000000..b4c0da1f
--- /dev/null
+++ b/plugins/highlight/css/solarized-dark.css
@@ -0,0 +1,84 @@
+/*
+
+Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #002b36;
+ color: #839496;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #586e75;
+}
+
+/* Solarized Green */
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-addition {
+ color: #859900;
+}
+
+/* Solarized Cyan */
+.hljs-number,
+.hljs-string,
+.hljs-meta .hljs-meta-string,
+.hljs-literal,
+.hljs-doctag,
+.hljs-regexp {
+ color: #2aa198;
+}
+
+/* Solarized Blue */
+.hljs-title,
+.hljs-section,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #268bd2;
+}
+
+/* Solarized Yellow */
+.hljs-attribute,
+.hljs-attr,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-class .hljs-title,
+.hljs-type {
+ color: #b58900;
+}
+
+/* Solarized Orange */
+.hljs-symbol,
+.hljs-bullet,
+.hljs-subst,
+.hljs-meta,
+.hljs-meta .hljs-keyword,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-link {
+ color: #cb4b16;
+}
+
+/* Solarized Red */
+.hljs-built_in,
+.hljs-deletion {
+ color: #dc322f;
+}
+
+.hljs-formula {
+ background: #073642;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/solarized-light.css b/plugins/highlight/css/solarized-light.css
new file mode 100644
index 00000000..fdcfcc72
--- /dev/null
+++ b/plugins/highlight/css/solarized-light.css
@@ -0,0 +1,84 @@
+/*
+
+Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #fdf6e3;
+ color: #657b83;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #93a1a1;
+}
+
+/* Solarized Green */
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-addition {
+ color: #859900;
+}
+
+/* Solarized Cyan */
+.hljs-number,
+.hljs-string,
+.hljs-meta .hljs-meta-string,
+.hljs-literal,
+.hljs-doctag,
+.hljs-regexp {
+ color: #2aa198;
+}
+
+/* Solarized Blue */
+.hljs-title,
+.hljs-section,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #268bd2;
+}
+
+/* Solarized Yellow */
+.hljs-attribute,
+.hljs-attr,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-class .hljs-title,
+.hljs-type {
+ color: #b58900;
+}
+
+/* Solarized Orange */
+.hljs-symbol,
+.hljs-bullet,
+.hljs-subst,
+.hljs-meta,
+.hljs-meta .hljs-keyword,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-link {
+ color: #cb4b16;
+}
+
+/* Solarized Red */
+.hljs-built_in,
+.hljs-deletion {
+ color: #dc322f;
+}
+
+.hljs-formula {
+ background: #eee8d5;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/sunburst.css b/plugins/highlight/css/sunburst.css
new file mode 100644
index 00000000..f56dd5e9
--- /dev/null
+++ b/plugins/highlight/css/sunburst.css
@@ -0,0 +1,102 @@
+/*
+
+Sunburst-like style (c) Vasily Polovnyov
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #000;
+ color: #f8f8f8;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #aeaeae;
+ font-style: italic;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-type {
+ color: #e28964;
+}
+
+.hljs-string {
+ color: #65b042;
+}
+
+.hljs-subst {
+ color: #daefa3;
+}
+
+.hljs-regexp,
+.hljs-link {
+ color: #e9c062;
+}
+
+.hljs-title,
+.hljs-section,
+.hljs-tag,
+.hljs-name {
+ color: #89bdff;
+}
+
+.hljs-class .hljs-title,
+.hljs-doctag {
+ text-decoration: underline;
+}
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-number {
+ color: #3387cc;
+}
+
+.hljs-params,
+.hljs-variable,
+.hljs-template-variable {
+ color: #3e87e3;
+}
+
+.hljs-attribute {
+ color: #cda869;
+}
+
+.hljs-meta {
+ color: #8996a8;
+}
+
+.hljs-formula {
+ background-color: #0e2231;
+ color: #f8f8f8;
+ font-style: italic;
+}
+
+.hljs-addition {
+ background-color: #253b22;
+ color: #f8f8f8;
+}
+
+.hljs-deletion {
+ background-color: #420e09;
+ color: #f8f8f8;
+}
+
+.hljs-selector-class {
+ color: #9b703f;
+}
+
+.hljs-selector-id {
+ color: #8b98ab;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/tomorrow-night-blue.css b/plugins/highlight/css/tomorrow-night-blue.css
new file mode 100644
index 00000000..78e59cc8
--- /dev/null
+++ b/plugins/highlight/css/tomorrow-night-blue.css
@@ -0,0 +1,75 @@
+/* Tomorrow Night Blue Theme */
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+/* Original theme - https://github.com/chriskempson/tomorrow-theme */
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+
+/* Tomorrow Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #7285b7;
+}
+
+/* Tomorrow Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-deletion {
+ color: #ff9da4;
+}
+
+/* Tomorrow Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-meta,
+.hljs-link {
+ color: #ffc58f;
+}
+
+/* Tomorrow Yellow */
+.hljs-attribute {
+ color: #ffeead;
+}
+
+/* Tomorrow Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #d1f1a9;
+}
+
+/* Tomorrow Blue */
+.hljs-title,
+.hljs-section {
+ color: #bbdaff;
+}
+
+/* Tomorrow Purple */
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #ebbbff;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #002451;
+ color: white;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/tomorrow-night-bright.css b/plugins/highlight/css/tomorrow-night-bright.css
new file mode 100644
index 00000000..e05af8ae
--- /dev/null
+++ b/plugins/highlight/css/tomorrow-night-bright.css
@@ -0,0 +1,74 @@
+/* Tomorrow Night Bright Theme */
+/* Original theme - https://github.com/chriskempson/tomorrow-theme */
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+
+/* Tomorrow Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #969896;
+}
+
+/* Tomorrow Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-deletion {
+ color: #d54e53;
+}
+
+/* Tomorrow Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-meta,
+.hljs-link {
+ color: #e78c45;
+}
+
+/* Tomorrow Yellow */
+.hljs-attribute {
+ color: #e7c547;
+}
+
+/* Tomorrow Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #b9ca4a;
+}
+
+/* Tomorrow Blue */
+.hljs-title,
+.hljs-section {
+ color: #7aa6da;
+}
+
+/* Tomorrow Purple */
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #c397d8;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: black;
+ color: #eaeaea;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/tomorrow-night-eighties.css b/plugins/highlight/css/tomorrow-night-eighties.css
new file mode 100644
index 00000000..08fd51c7
--- /dev/null
+++ b/plugins/highlight/css/tomorrow-night-eighties.css
@@ -0,0 +1,74 @@
+/* Tomorrow Night Eighties Theme */
+/* Original theme - https://github.com/chriskempson/tomorrow-theme */
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+
+/* Tomorrow Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #999999;
+}
+
+/* Tomorrow Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-deletion {
+ color: #f2777a;
+}
+
+/* Tomorrow Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-meta,
+.hljs-link {
+ color: #f99157;
+}
+
+/* Tomorrow Yellow */
+.hljs-attribute {
+ color: #ffcc66;
+}
+
+/* Tomorrow Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #99cc99;
+}
+
+/* Tomorrow Blue */
+.hljs-title,
+.hljs-section {
+ color: #6699cc;
+}
+
+/* Tomorrow Purple */
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #cc99cc;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #2d2d2d;
+ color: #cccccc;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/tomorrow-night.css b/plugins/highlight/css/tomorrow-night.css
new file mode 100644
index 00000000..ddd270a4
--- /dev/null
+++ b/plugins/highlight/css/tomorrow-night.css
@@ -0,0 +1,75 @@
+/* Tomorrow Night Theme */
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+/* Original theme - https://github.com/chriskempson/tomorrow-theme */
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+
+/* Tomorrow Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #969896;
+}
+
+/* Tomorrow Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-deletion {
+ color: #cc6666;
+}
+
+/* Tomorrow Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-meta,
+.hljs-link {
+ color: #de935f;
+}
+
+/* Tomorrow Yellow */
+.hljs-attribute {
+ color: #f0c674;
+}
+
+/* Tomorrow Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #b5bd68;
+}
+
+/* Tomorrow Blue */
+.hljs-title,
+.hljs-section {
+ color: #81a2be;
+}
+
+/* Tomorrow Purple */
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #b294bb;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: #1d1f21;
+ color: #c5c8c6;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/tomorrow.css b/plugins/highlight/css/tomorrow.css
new file mode 100644
index 00000000..026a62fe
--- /dev/null
+++ b/plugins/highlight/css/tomorrow.css
@@ -0,0 +1,72 @@
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+
+/* Tomorrow Comment */
+.hljs-comment,
+.hljs-quote {
+ color: #8e908c;
+}
+
+/* Tomorrow Red */
+.hljs-variable,
+.hljs-template-variable,
+.hljs-tag,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-regexp,
+.hljs-deletion {
+ color: #c82829;
+}
+
+/* Tomorrow Orange */
+.hljs-number,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-literal,
+.hljs-type,
+.hljs-params,
+.hljs-meta,
+.hljs-link {
+ color: #f5871f;
+}
+
+/* Tomorrow Yellow */
+.hljs-attribute {
+ color: #eab700;
+}
+
+/* Tomorrow Green */
+.hljs-string,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-addition {
+ color: #718c00;
+}
+
+/* Tomorrow Blue */
+.hljs-title,
+.hljs-section {
+ color: #4271ae;
+}
+
+/* Tomorrow Purple */
+.hljs-keyword,
+.hljs-selector-tag {
+ color: #8959a8;
+}
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ background: white;
+ color: #4d4d4c;
+ padding: 0.5em;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/vs.css b/plugins/highlight/css/vs.css
new file mode 100644
index 00000000..c5d07d31
--- /dev/null
+++ b/plugins/highlight/css/vs.css
@@ -0,0 +1,68 @@
+/*
+
+Visual Studio-like style based on original C# coloring by Jason Diamond
+
+*/
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: white;
+ color: black;
+}
+
+.hljs-comment,
+.hljs-quote,
+.hljs-variable {
+ color: #008000;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-built_in,
+.hljs-name,
+.hljs-tag {
+ color: #00f;
+}
+
+.hljs-string,
+.hljs-title,
+.hljs-section,
+.hljs-attribute,
+.hljs-literal,
+.hljs-template-tag,
+.hljs-template-variable,
+.hljs-type,
+.hljs-addition {
+ color: #a31515;
+}
+
+.hljs-deletion,
+.hljs-selector-attr,
+.hljs-selector-pseudo,
+.hljs-meta {
+ color: #2b91af;
+}
+
+.hljs-doctag {
+ color: #808080;
+}
+
+.hljs-attr {
+ color: #f00;
+}
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-link {
+ color: #00b0e8;
+}
+
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/css/xcode.css b/plugins/highlight/css/xcode.css
new file mode 100644
index 00000000..43dddad8
--- /dev/null
+++ b/plugins/highlight/css/xcode.css
@@ -0,0 +1,93 @@
+/*
+
+XCode style (c) Angel Garcia
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #fff;
+ color: black;
+}
+
+.hljs-comment,
+.hljs-quote {
+ color: #006a00;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-literal {
+ color: #aa0d91;
+}
+
+.hljs-name {
+ color: #008;
+}
+
+.hljs-variable,
+.hljs-template-variable {
+ color: #660;
+}
+
+.hljs-string {
+ color: #c41a16;
+}
+
+.hljs-regexp,
+.hljs-link {
+ color: #080;
+}
+
+.hljs-title,
+.hljs-tag,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-number,
+.hljs-meta {
+ color: #1c00cf;
+}
+
+.hljs-section,
+.hljs-class .hljs-title,
+.hljs-type,
+.hljs-attr,
+.hljs-built_in,
+.hljs-builtin-name,
+.hljs-params {
+ color: #5c2699;
+}
+
+.hljs-attribute,
+.hljs-subst {
+ color: #000;
+}
+
+.hljs-formula {
+ background-color: #eee;
+ font-style: italic;
+}
+
+.hljs-addition {
+ background-color: #baeeba;
+}
+
+.hljs-deletion {
+ background-color: #ffc8bd;
+}
+
+.hljs-selector-id,
+.hljs-selector-class {
+ color: #9b703f;
+}
+
+.hljs-doctag,
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
diff --git a/plugins/highlight/css/zenburn.css b/plugins/highlight/css/zenburn.css
new file mode 100644
index 00000000..07be5020
--- /dev/null
+++ b/plugins/highlight/css/zenburn.css
@@ -0,0 +1,80 @@
+/*
+
+Zenburn style from voldmar.ru (c) Vladimir Epifanov
+based on dark.css by Ivan Sagalaev
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ padding: 0.5em;
+ background: #3f3f3f;
+ color: #dcdcdc;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-tag {
+ color: #e3ceab;
+}
+
+.hljs-template-tag {
+ color: #dcdcdc;
+}
+
+.hljs-number {
+ color: #8cd0d3;
+}
+
+.hljs-variable,
+.hljs-template-variable,
+.hljs-attribute {
+ color: #efdcbc;
+}
+
+.hljs-literal {
+ color: #efefaf;
+}
+
+.hljs-subst {
+ color: #8f8f8f;
+}
+
+.hljs-title,
+.hljs-name,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-section,
+.hljs-type {
+ color: #efef8f;
+}
+
+.hljs-symbol,
+.hljs-bullet,
+.hljs-link {
+ color: #dca3a3;
+}
+
+.hljs-deletion,
+.hljs-string,
+.hljs-built_in,
+.hljs-builtin-name {
+ color: #cc9393;
+}
+
+.hljs-addition,
+.hljs-comment,
+.hljs-quote,
+.hljs-meta {
+ color: #7f9f7f;
+}
+
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
diff --git a/plugins/highlight/highlight.php b/plugins/highlight/highlight.php
new file mode 100644
index 00000000..dbf202db
--- /dev/null
+++ b/plugins/highlight/highlight.php
@@ -0,0 +1,65 @@
+ ['onPageInitialized', 0]
+ ];
+ }
+
+ /**
+ * Initialize configuration
+ */
+ public function onPageInitialized()
+ {
+ if ($this->isAdmin()) {
+ $this->active = false;
+ return;
+ }
+
+ $defaults = (array) $this->config->get('plugins.highlight');
+
+ /** @var Page $page */
+ $page = $this->grav['page'];
+ if (isset($page->header()->highlight)) {
+ $this->config->set('plugins.highlight', array_merge($defaults, $page->header()->highlight));
+ }
+ if ($this->config->get('plugins.highlight.enabled')) {
+ $this->enable([
+ 'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
+ ]);
+ }
+ }
+
+ /**
+ * if enabled on this page, load the JS + CSS theme.
+ */
+ public function onTwigSiteVariables()
+ {
+ $init = "$(document).ready(function() {\n";
+ $init .= "$('pre code').each(function(i, block) {\n";
+ $init .= "hljs.highlightBlock(block);\n";
+ if ($this->config->get('plugins.highlight.lines')) {
+ $init .= "hljs.initLineNumbersOnLoad();\n";
+ }
+ $init .= "});\n";
+ $init .= "});\n";
+ $theme = $this->config->get('plugins.highlight.theme') ?: 'default';
+ $this->grav['assets']->addCss('plugin://highlight/css/'.$theme.'.css');
+ $this->grav['assets']->addJs('plugin://highlight/js/highlight.pack.js');
+ if ($this->config->get('plugins.highlight.lines')) {
+ $this->grav['assets']->addJs('plugin://highlight/js/highlightjs-line-numbers.min.js');
+ }
+ $this->grav['assets']->addInlineJs($init);
+ }
+}
diff --git a/plugins/highlight/highlight.yaml b/plugins/highlight/highlight.yaml
new file mode 100644
index 00000000..ed0b4bc1
--- /dev/null
+++ b/plugins/highlight/highlight.yaml
@@ -0,0 +1,3 @@
+enabled: true
+theme: default
+lines: false
diff --git a/plugins/highlight/js/highlight.pack.js b/plugins/highlight/js/highlight.pack.js
new file mode 100644
index 00000000..1ee2e583
--- /dev/null
+++ b/plugins/highlight/js/highlight.pack.js
@@ -0,0 +1,2 @@
+/*! highlight.js v9.1.0 | BSD3 License | git.io/hljslicense */
+!function(e){"undefined"!=typeof exports?e(exports):(self.hljs=e({}),"function"==typeof define&&define.amd&&define("hljs",[],function(){return self.hljs}))}(function(e){function n(e){return e.replace(/&/gm,"&").replace(//gm,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0==t.index}function a(e){return/^(no-?highlight|plain|text)$/i.test(e)}function i(e){var n,t,r,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",t=/\blang(?:uage)?-([\w-]+)\b/i.exec(i))return E(t[1])?t[1]:"no-highlight";for(i=i.split(/\s+/),n=0,r=i.length;r>n;n++)if(E(i[n])||a(i[n]))return i[n]}function o(e,n){var t,r={};for(t in e)r[t]=e[t];if(n)for(t in n)r[t]=n[t];return r}function u(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function c(e,r,a){function i(){return e.length&&r.length?e[0].offset!=r[0].offset?e[0].offset"}function u(e){l+=""+t(e)+">"}function c(e){("start"==e.event?o:u)(e.node)}for(var s=0,l="",f=[];e.length||r.length;){var g=i();if(l+=n(a.substr(s,g[0].offset-s)),s=g[0].offset,g==e){f.reverse().forEach(u);do c(g.splice(0,1)[0]),g=i();while(g==e&&g.length&&g[0].offset==s);f.reverse().forEach(o)}else"start"==g[0].event?f.push(g[0].node):f.pop(),c(g.splice(0,1)[0])}return l+n(a.substr(s))}function s(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,i){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var u={},c=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");u[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?c("keyword",a.k):Object.keys(a.k).forEach(function(e){c(e,a.k[e])}),a.k=u}a.lR=t(a.l||/\b\w+\b/,!0),i&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&i.tE&&(a.tE+=(a.e?"|":"")+i.tE)),a.i&&(a.iR=t(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]);var s=[];a.c.forEach(function(e){e.v?e.v.forEach(function(n){s.push(o(e,n))}):s.push("self"==e?a:e)}),a.c=s,a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,i);var l=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=l.length?t(l.join("|"),!0):{exec:function(){return null}}}}r(e)}function l(e,t,a,i){function o(e,n){for(var t=0;t";return i+=e+'">',i+n+o}function p(){if(!L.k)return n(M);var e="",t=0;L.lR.lastIndex=0;for(var r=L.lR.exec(M);r;){e+=n(M.substr(t,r.index-t));var a=g(L,r);a?(B+=a[1],e+=h(a[0],n(r[0]))):e+=n(r[0]),t=L.lR.lastIndex,r=L.lR.exec(M)}return e+n(M.substr(t))}function d(){var e="string"==typeof L.sL;if(e&&!R[L.sL])return n(M);var t=e?l(L.sL,M,!0,y[L.sL]):f(M,L.sL.length?L.sL:void 0);return L.r>0&&(B+=t.r),e&&(y[L.sL]=t.top),h(t.language,t.value,!1,!0)}function b(){return void 0!==L.sL?d():p()}function v(e,t){var r=e.cN?h(e.cN,"",!0):"";e.rB?(k+=r,M=""):e.eB?(k+=n(t)+r,M=""):(k+=r,M=t),L=Object.create(e,{parent:{value:L}})}function m(e,t){if(M+=e,void 0===t)return k+=b(),0;var r=o(t,L);if(r)return k+=b(),v(r,t),r.rB?0:t.length;var a=u(L,t);if(a){var i=L;i.rE||i.eE||(M+=t),k+=b();do L.cN&&(k+=""),B+=L.r,L=L.parent;while(L!=a.parent);return i.eE&&(k+=n(t)),M="",a.starts&&v(a.starts,""),i.rE?0:t.length}if(c(t,L))throw new Error('Illegal lexeme "'+t+'" for mode "'+(L.cN||"")+'"');return M+=t,t.length||1}var N=E(e);if(!N)throw new Error('Unknown language: "'+e+'"');s(N);var w,L=i||N,y={},k="";for(w=L;w!=N;w=w.parent)w.cN&&(k=h(w.cN,"",!0)+k);var M="",B=0;try{for(var C,j,I=0;;){if(L.t.lastIndex=I,C=L.t.exec(t),!C)break;j=m(t.substr(I,C.index-I),C[0]),I=C.index+j}for(m(t.substr(I)),w=L;w.parent;w=w.parent)w.cN&&(k+="");return{r:B,value:k,language:e,top:L}}catch(O){if(-1!=O.message.indexOf("Illegal"))return{r:0,value:n(t)};throw O}}function f(e,t){t=t||x.languages||Object.keys(R);var r={r:0,value:n(e)},a=r;return t.forEach(function(n){if(E(n)){var t=l(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}}),a.language&&(r.second_best=a),r}function g(e){return x.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,n){return n.replace(/\t/g,x.tabReplace)})),x.useBR&&(e=e.replace(/\n/g," ")),e}function h(e,n,t){var r=n?w[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function p(e){var n=i(e);if(!a(n)){var t;x.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ /g,"\n")):t=e;var r=t.textContent,o=n?l(n,r,!0):f(r),s=u(t);if(s.length){var p=document.createElementNS("http://www.w3.org/1999/xhtml","div");p.innerHTML=o.value,o.value=c(s,u(p),r)}o.value=g(o.value),e.innerHTML=o.value,e.className=h(e.className,n,o.language),e.result={language:o.language,re:o.r},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.r})}}function d(e){x=o(x,e)}function b(){if(!b.called){b.called=!0;var e=document.querySelectorAll("pre code");Array.prototype.forEach.call(e,p)}}function v(){addEventListener("DOMContentLoaded",b,!1),addEventListener("load",b,!1)}function m(n,t){var r=R[n]=t(e);r.aliases&&r.aliases.forEach(function(e){w[e]=n})}function N(){return Object.keys(R)}function E(e){return e=(e||"").toLowerCase(),R[e]||R[w[e]]}var x={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},R={},w={};return e.highlight=l,e.highlightAuto=f,e.fixMarkup=g,e.highlightBlock=p,e.configure=d,e.initHighlighting=b,e.initHighlightingOnLoad=v,e.registerLanguage=m,e.listLanguages=N,e.getLanguage=E,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e});hljs.registerLanguage("cpp",function(t){var e={cN:"keyword",b:"\\b[a-z\\d_]*_t\\b"},r={cN:"string",v:[t.inherit(t.QSM,{b:'((u8?|U)|L)?"'}),{b:'(u8?|U)?R"',e:'"',c:[t.BE]},{b:"'\\\\?.",e:"'",i:"."}]},i={cN:"number",v:[{b:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{b:t.CNR}],r:0},s={cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef"},c:[{b:/\\\n/,r:0},{bK:"include",e:"$",k:{"meta-keyword":"include"},c:[t.inherit(r,{cN:"meta-string"}),{cN:"meta-string",b:"<",e:">",i:"\\n"}]},r,t.CLCM,t.CBCM]},a=t.IR+"\\s*\\(",c={keyword:"int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong",built_in:"std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"};return{aliases:["c","cc","h","c++","h++","hpp"],k:c,i:"",c:[e,t.CLCM,t.CBCM,i,r,s,{b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:c,c:["self",e]},{b:t.IR+"::",k:c},{bK:"new throw return else",r:0},{cN:"function",b:"("+t.IR+"[\\*&\\s]+)+"+a,rB:!0,e:/[{;=]/,eE:!0,k:c,i:/[^\w\s\*&]/,c:[{b:a,rB:!0,c:[t.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:c,r:0,c:[t.CLCM,t.CBCM,r,i]},t.CLCM,t.CBCM,s]}]}});hljs.registerLanguage("python",function(e){var r={cN:"meta",b:/^(>>>|\.\.\.) /},b={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[r],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[r],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},a={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},l={cN:"params",b:/\(/,e:/\)/,c:["self",r,a,b]};return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)/,c:[r,a,b,e.HCM,{v:[{cN:"function",bK:"def",r:10},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,l,{b:/->/,eW:!0,k:"None"}]},{cN:"meta",b:/^[\t ]*@/,e:/$/},{b:/\b(print|exec)\(/}]}});hljs.registerLanguage("makefile",function(e){var a={cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]};return{aliases:["mk","mak"],c:[e.HCM,{b:/^\w+\s*\W*=/,rB:!0,r:0,starts:{e:/\s*\W*=/,eE:!0,starts:{e:/$/,r:0,c:[a]}}},{cN:"section",b:/^[\w]+:\s*$/},{cN:"meta",b:/^\.PHONY:/,e:/$/,k:{"meta-keyword":".PHONY"},l:/[\.\w]+/},{b:/^\t+/,e:/$/,r:0,c:[e.QSM,a]}]}});hljs.registerLanguage("javascript",function(e){return{aliases:["js"],k:{keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/,e:/>\s*[);\]]/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:[e.CLCM,e.CBCM]}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+e.IR,r:0},{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}});hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:"^\\[.+\\]:",rB:!0,c:[{cN:"symbol",b:"\\[",e:"\\]:",eB:!0,eE:!0,starts:{cN:"link",e:"$"}}]}]}});hljs.registerLanguage("cs",function(e){var t="abstract as base bool break byte case catch char checked const continue decimal dynamic default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long null when object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while async protected public private internal ascending descending from get group into join let orderby partial select set value var where yield",r=e.IR+"(<"+e.IR+">)?";return{aliases:["csharp"],k:t,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"doctag",v:[{b:"///",r:0},{b:""},{b:"?",e:">"}]}]}),e.CLCM,e.CBCM,{cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},e.ASM,e.QSM,e.CNM,{bK:"class interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"namespace",e:/[{;=]/,i:/[^\s:]/,c:[e.inherit(e.TM,{b:"[a-zA-Z](\\.?\\w)*"}),e.CLCM,e.CBCM]},{bK:"new return throw await",r:0},{cN:"function",b:"("+r+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}});hljs.registerLanguage("diff",function(e){return{aliases:["patch"],c:[{cN:"meta",r:10,v:[{b:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"comment",v:[{b:/Index: /,e:/$/},{b:/=====/,e:/=====$/},{b:/^\-\-\-/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+\+\+/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"addition",b:"^\\!",e:"$"}]}});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\s*\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:c,r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}});hljs.registerLanguage("yaml",function(e){var a={literal:"{ } true false yes no Yes No True False null"},b="^[ \\-]*",r="[a-zA-Z_][\\w\\-]*",t={cN:"attr",v:[{b:b+r+":"},{b:b+'"'+r+'":'},{b:b+"'"+r+"':"}]},c={cN:"template-variable",v:[{b:"{{",e:"}}"},{b:"%{",e:"}"}]},l={cN:"string",r:0,v:[{b:/'/,e:/'/},{b:/"/,e:/"/}],c:[e.BE,c]};return{cI:!0,aliases:["yml","YAML","yaml"],c:[t,{cN:"meta",b:"^---s*$",r:10},{cN:"string",b:"[\\|>] *$",rE:!0,c:l.c,e:t.v[0].b},{b:"<%[%=-]?",e:"[%-]?%>",sL:"ruby",eB:!0,eE:!0,r:0},{cN:"type",b:"!!"+e.UIR},{cN:"meta",b:"&"+e.UIR+"$"},{cN:"meta",b:"\\*"+e.UIR+"$"},{cN:"bullet",b:"^ *-",r:0},l,e.HCM,e.CNM],k:a}});hljs.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",r={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},s={b:"->{",e:"}"},n={v:[{b:/\$\d/},{b:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{b:/[\$%@][^\s\w{]/,r:0}]},i=[e.BE,r,n],o=[n,e.HCM,e.C("^\\=\\w","\\=cut",{eW:!0}),s,{cN:"string",c:i,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"function",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",eE:!0,r:5,c:[e.TM]},{b:"-\\w\\b",r:0},{b:"^__DATA__$",e:"^__END__$",sL:"mojolicious",c:[{b:"^@@.*",e:"$",cN:"comment"}]}];return r.c=o,s.c=o,{aliases:["pl"],k:t,c:o}});hljs.registerLanguage("json",function(e){var t={literal:"true false null"},i=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:i,k:t},s={b:"{",e:"}",c:[{cN:"attr",b:'\\s*"',e:'"\\s*:\\s*',eB:!0,eE:!0,c:[e.BE],i:"\\n",starts:r}],i:"\\S"},n={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return i.splice(i.length,0,s,n),{c:i,k:t,i:"\\S"}});hljs.registerLanguage("twig",function(e){var t={cN:"params",b:"\\(",e:"\\)"},a="attribute block constant cycle date dump include max min parent random range source template_from_string",r={bK:a,k:{name:a},r:0,c:[t]},c={b:/\|[A-Za-z_]+:?/,k:"abs batch capitalize convert_encoding date date_modify default escape first format join json_encode keys last length lower merge nl2br number_format raw replace reverse round slice sort split striptags title trim upper url_encode",c:[r]},s="autoescape block do embed extends filter flush for if import include macro sandbox set spaceless use verbatim";return s=s+" "+s.split(" ").map(function(e){return"end"+e}).join(" "),{aliases:["craftcms"],cI:!0,sL:"xml",c:[e.C(/\{#/,/#}/),{cN:"template-tag",b:/\{%/,e:/%}/,c:[{cN:"name",b:/\w+/,k:s,starts:{eW:!0,c:[c,r],r:0}}]},{cN:"template-variable",b:/\{\{/,e:/}}/,c:["self",c,r]}]}});hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},s={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/-?[a-z\.]+/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,s,a,t]}});hljs.registerLanguage("objectivec",function(e){var t={cN:"built_in",b:"(AV|CA|CF|CG|CI|MK|MP|NS|UI|XC)\\w+"},i={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,o="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],k:i,l:n,i:"",c:[t,e.CLCM,e.CBCM,e.CNM,e.QSM,{cN:"string",v:[{b:'@"',e:'"',i:"\\n",c:[e.BE]},{b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"}]},{cN:"meta",b:"#",e:"$",c:[{cN:"meta-string",v:[{b:'"',e:'"'},{b:"<",e:">"}]}]},{cN:"class",b:"("+o.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:o,l:n,c:[e.UTM]},{b:"\\."+e.UIR,r:0}]}});hljs.registerLanguage("dts",function(e){var a={cN:"string",v:[e.inherit(e.QSM,{b:'((u8?|U)|L)?"'}),{b:'(u8?|U)?R"',e:'"',c:[e.BE]},{b:"'\\\\?.",e:"'",i:"."}]},c={cN:"number",v:[{b:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{b:e.CNR}],r:0},b={cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},c:[{b:/\\\n/,r:0},{bK:"include",e:"$",k:{"meta-keyword":"include"},c:[e.inherit(a,{cN:"meta-string"}),{cN:"meta-string",b:"<",e:">",i:"\\n"}]},a,e.CLCM,e.CBCM]},i={cN:"variable",b:"\\&[a-z\\d_]*\\b"},r={cN:"meta-keyword",b:"/[a-z][a-z\\d-]*/"},d={cN:"symbol",b:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},n={cN:"params",b:"<",e:">",c:[c,i]},s={cN:"class",b:/[a-zA-Z_][a-zA-Z\d_@]*\s{/,e:/[{;=]/,rB:!0,eE:!0},t={cN:"class",b:"/\\s*{",e:"};",r:10,c:[i,r,d,s,n,e.CLCM,e.CBCM,c,a]};return{k:"",c:[t,i,r,d,s,n,e.CLCM,e.CBCM,c,a,b,{b:e.IR+"::",k:""}]}});hljs.registerLanguage("apache",function(e){var r={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"section",b:"?",e:">"},{cN:"attribute",b:/\w+/,r:0,k:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"meta",b:"\\s\\[",e:"\\]$"},{cN:"variable",b:"[\\$%]\\{",e:"\\}",c:["self",r]},r,e.QSM]}}],i:/\S/}});hljs.registerLanguage("xml",function(s){var t="[A-Za-z0-9\\._:-]+",e={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php"},r={eW:!0,i:/,r:0,c:[e,{cN:"attr",b:t,r:0},{b:"=",r:0,c:[{cN:"string",c:[e],v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s\/>]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"meta",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},s.C("",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},e,{cN:"meta",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},r]}]}});hljs.registerLanguage("coffeescript",function(e){var c={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={cN:"subst",b:/#\{/,e:/}/,k:c},s=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,r]},{b:/"/,e:/"/,c:[e.BE,r]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[r,e.HCM]},{b:"//[gim]*",r:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{b:"@"+n},{b:"`",e:"`",eB:!0,eE:!0,sL:"javascript"}];r.c=s;var i=e.inherit(e.TM,{b:n}),t="(\\(.*\\))?\\s*\\B[-=]>",o={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:c,c:["self"].concat(s)}]};return{aliases:["coffee","cson","iced"],k:c,i:/\/\*/,c:s.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+n+"\\s*=\\s*"+t,e:"[-=]>",rB:!0,c:[i,o]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:t,e:"[-=]>",rB:!0,c:[o]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{b:n+":",e:":",rB:!0,rE:!0,r:0}])}});hljs.registerLanguage("ruby",function(e){var b="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",c="and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",r={cN:"doctag",b:"@[A-Za-z]+"},a={b:"#<",e:">"},s=[e.C("#","$",{c:[r]}),e.C("^\\=begin","^\\=end",{c:[r],r:10}),e.C("^__END__","\\n$")],n={cN:"subst",b:"#\\{",e:"}",k:c},t={cN:"string",c:[e.BE,n],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}]},i={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:c},d=[t,a,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+e.IR+"::)?"+e.IR}]}].concat(s)},{cN:"function",bK:"def",e:"$|;",c:[e.inherit(e.TM,{b:b}),i].concat(s)},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":",c:[t,{b:b}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+e.RSR+")\\s*",c:[a,{cN:"regexp",c:[e.BE,n],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(s),r:0}].concat(s);n.c=d,i.c=d;var o="[>?]>",l="[\\w#]+\\(\\w+\\):\\d+:\\d+>",u="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",w=[{b:/^\s*=>/,starts:{e:"$",c:d}},{cN:"meta",b:"^("+o+"|"+l+"|"+u+")",starts:{e:"$",c:d}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:c,i:/\/\*/,c:s.concat(w).concat(d)}});hljs.registerLanguage("nginx",function(e){var r={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},b={eW:!0,l:"[a-z/_]+",k:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,r],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[r]},{cN:"regexp",c:[e.BE,r],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},r]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s+{",rB:!0,e:"{",c:[{cN:"section",b:e.UIR}],r:0},{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"attribute",b:e.UIR,starts:b}],r:0}],i:"[^\\s\\}]"}});hljs.registerLanguage("java",function(e){var a=e.UIR+"(<"+e.UIR+"(\\s*,\\s*"+e.UIR+")*>)?",t="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",r="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",c={cN:"number",b:r,r:0};return{aliases:["jsp"],k:t,i:/<\/|#/,c:[e.C("/\\*\\*","\\*/",{r:0,c:[{b:/\w+@/,r:0},{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return else",r:0},{cN:"function",b:"("+a+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:t,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},c,{cN:"meta",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("php",function(e){var c={b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},a={cN:"meta",b:/<\?(php)?|\?>/},i={cN:"string",c:[e.BE,a],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},t={v:[e.BNM,e.CNM]};return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.CLCM,e.HCM,e.C("/\\*","\\*/",{c:[{cN:"doctag",b:"@[A-Za-z]+"},a]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:/<<<['"]?\w+['"]?$/,e:/^\w+;?$/,c:[e.BE,{cN:"subst",v:[{b:/\$\w+/},{b:/\{\$/,e:/\}/}]}]},a,c,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",c,e.CBCM,i,t]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},i,t]}});hljs.registerLanguage("ini",function(e){var b={cN:"string",c:[e.BE],v:[{b:"'''",e:"'''",r:10},{b:'"""',e:'"""',r:10},{b:'"',e:'"'},{b:"'",e:"'"}]};return{aliases:["toml"],cI:!0,i:/\S/,c:[e.C(";","$"),e.HCM,{cN:"section",b:/^\s*\[+/,e:/\]+/},{b:/^[a-z0-9\[\]_-]+\s*=\s*/,e:"$",rB:!0,c:[{cN:"attr",b:/[a-z0-9\[\]_-]+/},{b:/=/,eW:!0,r:0,c:[{cN:"literal",b:/\bon|off|true|false|yes|no\b/},{cN:"variable",v:[{b:/\$[\w\d"][\w\d_]*/},{b:/\$\{(.*?)}/}]},b,{cN:"number",b:/([\+\-]+)?[\d]+_[\d_]+/},e.NM]}]}]}});hljs.registerLanguage("http",function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],i:"\\S",c:[{b:"^"+t,e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{b:"^[A-Z]+ (.*?) "+t+"$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0},{b:t},{cN:"keyword",b:"[A-Z]+"}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{e:"$",r:0}},{b:"\\n\\n",starts:{sL:[],eW:!0}}]}});hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>{}*]/,c:[{bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke",e:/;/,eW:!0,k:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes c cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle d data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration e each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract f failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function g general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http i id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists k keep keep_duplicates key keys kill l language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim m main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex n name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding p package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime t table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}});
\ No newline at end of file
diff --git a/plugins/highlight/js/highlightjs-line-numbers.min.js b/plugins/highlight/js/highlightjs-line-numbers.min.js
new file mode 100644
index 00000000..6d0a3cbe
--- /dev/null
+++ b/plugins/highlight/js/highlightjs-line-numbers.min.js
@@ -0,0 +1 @@
+!function(e){"use strict";function t(){"complete"===document.readyState?n():e.addEventListener("DOMContentLoaded",n)}function n(){try{var e=document.querySelectorAll("code.hljs");for(var t in e)e.hasOwnProperty(t)&&r(e[t])}catch(n){console.error("LineNumbers error: ",n)}}function r(e){if("object"==typeof e){var t=e.parentNode,n=o(t.textContent);if(n>1){for(var r="",c=0;n>c;c++)r+=c+1+"\n";var l=document.createElement("code");l.className="hljs hljs-line-numbers",l.style["float"]="left",l.textContent=r,t.insertBefore(l,e)}}}function o(e){if(0===e.length)return 0;var t=/\r\n|\r|\n/g,n=e.match(t);return n=n?n.length:0,e[e.length-1].match(t)||(n+=1),n}"undefined"==typeof e.hljs?console.error("highlight.js not detected!"):(e.hljs.initLineNumbersOnLoad=t,e.hljs.lineNumbersBlock=r)}(window);
\ No newline at end of file
diff --git a/plugins/problems/CHANGELOG.md b/plugins/problems/CHANGELOG.md
new file mode 100644
index 00000000..e7ed40f4
--- /dev/null
+++ b/plugins/problems/CHANGELOG.md
@@ -0,0 +1,105 @@
+# v1.4.7
+## 05/16/2017
+
+1. [](#improved)
+ * Added check for Exif module if this feature is enabled
+
+# v1.4.6
+## 02/17/2017
+
+1. [](#improved)
+ * Return 500 error code if there is a problem instead of 200 [https://github.com/getgrav/grav/issues/1291](https://github.com/getgrav/grav/issues/1291)
+
+# v1.4.5
+## 09/14/2016
+
+1. [](#bugfix)
+ * Show the correct status for the Zip extension check
+
+# v1.4.4
+## 09/08/2016
+
+1. [](#new)
+ * Added check for new root folder `tmp` and try to create if missing
+1. [](#bugfix)
+ * Fixed Whoops error if `backup` folder doesn't exist and cannot be created
+
+# v1.4.3
+## 05/27/2016
+
+1. [](#new)
+ * Reverted compression checks
+
+# v1.4.2
+## 05/23/2016
+
+1. [](#new)
+ * Check for compression issues
+
+# v1.4.1
+## 05/03/2016
+
+1. [](#new)
+ * Added a check for XML support in PHP
+1. [](#improved)
+ * Use common language strings in blueprints
+
+# v1.4.0
+## 01/06/2016
+
+1. [](#improved)
+ * Avoid generating errors on .DS_Store files added to the bin/ folder by OSX
+ * Removed executable checks for bin/* commands. Going to document instead.
+
+# v1.3.3
+## 12/09/2015
+
+1. [](#new)
+ * Set minimum PHP requirements to 5.5.9
+1. [](#improved)
+ * Ensure problems plugin runs before admin
+
+# v1.3.2
+## 12/09/2015
+
+1. [](#improved)
+ * Skip windows platforms for executable permissions check
+ * Removed mod_headers from required Apache modules check
+
+# v1.3.1
+## 12/07/2015
+
+1. [](#improved)
+ * Added executable check on `/bin/` files
+
+# v1.3.0
+## 12/07/2015
+
+1. [](#improved)
+ * Added check for PHP `OpenSSL`, `Mbstring` and `Curl` are installed
+ * Added check to ensure `mod_rewrite` and `mod_headers` are installed if running Apache
+
+# v1.2.0
+## 08/25/2015
+
+1. [](#improved)
+ * Added blueprints for Grav Admin plugin
+
+# v1.1.6
+## 06/16/2015
+
+2. [](#new)
+ * Try to create missing `backup` folder if it is missing
+
+# v1.1.5
+## 05/09/2015
+
+2. [](#new)
+ * Added check for `backup` folder for Grav > 0.9.27
+
+# v1.1.4
+## 04/26/2015
+
+2. [](#new)
+ * Changelog started
+
diff --git a/plugins/problems/LICENSE b/plugins/problems/LICENSE
new file mode 100644
index 00000000..484793ad
--- /dev/null
+++ b/plugins/problems/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Grav
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/plugins/problems/README.md b/plugins/problems/README.md
new file mode 100644
index 00000000..9280bbd5
--- /dev/null
+++ b/plugins/problems/README.md
@@ -0,0 +1,89 @@
+# Grav Problems Plugin
+
+![Problems](assets/readme_1.png)
+
+`Problems` is a [Grav](http://github.com/getgrav/grav) Plugin and allows to detect issues.
+
+This plugin is included in any package distributed that contains Grav. If you decide to clone Grav from GitHub, you will most likely want to install this.
+
+# Installation
+
+Installing the Problems plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
+
+## GPM Installation (Preferred)
+
+The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
+
+ bin/gpm install problems
+
+This will install the Problems plugin into your `/user/plugins` directory within Grav. Its files can be found under `/your/site/grav/user/plugins/problems`.
+
+## Manual Installation
+
+To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `problems`. You can find these files either on [GitHub](https://github.com/getgrav/grav-plugin-problems) or via [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+
+You should now have all the plugin files under
+
+ /your/site/grav/user/plugins/problems
+
+>> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins, and a theme to be installed in order to operate.
+
+# Usage
+
+`Problems` runs in the background and most of the time you will not know it is there. Although as soon as an issue is caught, the plugin will let you know.
+
+`Problems` checks for the following common issues:
+
+| Check | Description |
+| :---------------------------------- | :-------------------------------------------------------------------------------------------------------- |
+| Apache `mod_rewrite` | Checks to ensure `mod_rewrite` is enabled if you are running an Apache server. |
+| PHP Version | Checks to make sure the PHP version being run by the server meets or exceeds Grav's minimum requirements. |
+| PHP GD (Image Manipulation Library) | Checks to make sure that PHP GD is installed. |
+| PHP Curl (Data Transfer Library) | Checks to make sure that PHP Curl is installed. |
+| PHP OpenSSL (Secure Sockets Library) | Checks to make sure that PHP OpenSSL is installed. |
+| PHP Mbstring (Multibyte String Library) | Checks to make sure that PHP Mbstring is installed. |
+| .htaccess | Checks to make sure that there is an `.htaccess` file in Grav's root directory. |
+| `bin/*` executable | Checks that all the files in the `bin/` folder are exectuable. |
+| Cache | Checks the `/cache` folder's existence and verifies that it is writeable. |
+| Logs | Checks the `/logs` folder's existence and verifies that it is writeable. |
+| Images | Checks the `/images` folder's existence and verifies that it is writeable. |
+| Assets | Checks the `/assets` folder's existence and verifies that it is writeable. |
+| System | Checks the `/system` folder's existence. |
+| Data | Checks the `/user/data` folder's existence and verifies that it is writeable. |
+| Pages | Checks the `/user/images` folder's existence. |
+| Config | Checks the `/user/config` folder's existence. |
+| Error | Checks to make sure the **Error** plugin is installed in `/user/plugins/error`. |
+| Plugins | Checks the `/user/plugins` folder's existence. |
+| Themes | Checks the `/user/themes` folder's existence. |
+| Vendor | Checks the `/vendor` folder's existence. |
+
+If an issue is discovered, you will be greeted with a page that lists these checks and whether or not your install passed or failed them. Green checks mean it passed, and a red x indicates that the there is something amiss with the item.
+
+Problems uses the cache as refresh indicator. That means that if nothing has changed anywhere, the plugin will just skip its validation tests altogether.
+
+If a change is caught and the cache is refreshed, the plugin will loop through its validation tests and making sure nothing is out of place.
+
+`Problems` gets also triggered if any fatal exception is caught.
+
+# Updating
+
+As development for the Problems plugin continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Problems is easy, and can be done through Grav's GPM system, as well as manually.
+
+## GPM Update (Preferred)
+
+The simplest way to update this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
+
+ bin/gpm update problems
+
+This command will check your Grav install to see if your Problems plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The plugin will automatically update and clear Grav's cache.
+
+## Manual Update
+
+Manually updating Problems is pretty simple. Here is what you will need to do to get this done:
+
+* Delete the `your/site/user/plugins/problems` directory.
+* Download the new version of the Problems plugin from either [GitHub](https://github.com/getgrav/grav-plugin-problems) or [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+* Unzip the zip file in `your/site/user/plugins` and rename the resulting folder to `problems`.
+* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing `bin/grav clear-cache`.
+
+> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/plugins`) will remain intact.
diff --git a/plugins/problems/assets/readme_1.png b/plugins/problems/assets/readme_1.png
new file mode 100644
index 00000000..bd6f9160
Binary files /dev/null and b/plugins/problems/assets/readme_1.png differ
diff --git a/plugins/problems/blueprints.yaml b/plugins/problems/blueprints.yaml
new file mode 100644
index 00000000..7360395b
--- /dev/null
+++ b/plugins/problems/blueprints.yaml
@@ -0,0 +1,37 @@
+name: Problems
+version: 1.4.7
+description: Detects and reports problems found in the site.
+icon: exclamation-circle
+author:
+ name: Team Grav
+ email: devs@getgrav.org
+ url: http://getgrav.org
+homepage: https://github.com/getgrav/grav-plugin-problems
+keywords: problems, plugin, detector, assistant, required
+bugs: https://github.com/getgrav/grav-plugin-problems/issues
+license: MIT
+
+form:
+ validation: strict
+ fields:
+ enabled:
+ type: toggle
+ label: PLUGIN_ADMIN.PLUGIN_STATUS
+ highlight: 1
+ default: 0
+ options:
+ 1: PLUGIN_ADMIN.ENABLED
+ 0: PLUGIN_ADMIN.DISABLED
+ validate:
+ type: bool
+
+ built_in_css:
+ type: toggle
+ label: Use built in CSS
+ highlight: 1
+ default: 1
+ options:
+ 1: PLUGIN_ADMIN.ENABLED
+ 0: PLUGIN_ADMIN.DISABLED
+ validate:
+ type: bool
diff --git a/plugins/problems/css/problems.css b/plugins/problems/css/problems.css
new file mode 100644
index 00000000..4917e548
--- /dev/null
+++ b/plugins/problems/css/problems.css
@@ -0,0 +1,71 @@
+section#body {
+ padding-top: 3rem;
+}
+
+ul.problems {
+ list-style: none;
+ padding: 0;
+ margin-top: 3rem;
+}
+
+ul.problems li {
+ margin-bottom: 1rem;
+ padding: 1rem;
+}
+
+ul.problems li.success {
+ background: #F1F9F1;
+ border-left: 5px solid #5CB85C;
+ color: #3d8b3d;
+}
+
+ul.problems li.error {
+ background: #FDF7F7;
+ border-left: 5px solid #D9534F;
+ color: #b52b27;
+}
+
+ul.problems li.info {
+ background: #F4F8FA;
+ border-left: 5px solid #5bc0de;
+ color: #28a1c5;
+}
+
+ul.problems .fa {
+ font-size: 3rem;
+ vertical-align: middle;
+ margin-left: 1rem;
+ display: block;
+ float: left;
+}
+
+ul.problems p {
+ display: block;
+ margin: 0.5rem 0.5rem 0.5rem 5rem;
+}
+
+.button.big {
+ font-size: 1.2rem;
+}
+
+.center {
+ text-align: center;
+}
+
+.underline {
+ text-decoration: underline;
+}
+
+.clearfix:after {
+ visibility: hidden;
+ display: block;
+ font-size: 0;
+ content: " ";
+ clear: both;
+ height: 0;
+ }
+.clearfix { display: inline-block; }
+/* start commented backslash hack \*/
+* html .clearfix { height: 1%; }
+.clearfix { display: block; }
+/* close commented backslash hack */
diff --git a/plugins/problems/css/template.css b/plugins/problems/css/template.css
new file mode 100644
index 00000000..ba59ac88
--- /dev/null
+++ b/plugins/problems/css/template.css
@@ -0,0 +1,762 @@
+@import url(//fonts.googleapis.com/css?family=Montserrat:400|Raleway:300,400,600|Inconsolata);
+
+#header #logo h3, #header #navbar ul, #header #navbar .panel-activation, #footer p {
+ position: relative;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ -moz-transform: translateY(-50%);
+ -o-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%); }
+
+.button, .button-secondary {
+ display: inline-block;
+ padding: 7px 20px; }
+
+html, body {
+ height: 100%; }
+
+body {
+ background: white;
+ color: #444444;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale; }
+
+a {
+ color: #1bb3e9; }
+ a:hover {
+ color: #0e6e90; }
+
+b, strong, label, th {
+ font-weight: 600; }
+
+#container {
+ min-height: 100%;
+ position: relative; }
+
+.fullwidth #body {
+ padding-left: 0;
+ padding-right: 0; }
+
+#body {
+ padding-top: 8rem;
+ padding-bottom: 11rem; }
+
+.default-animation, #body, #header, #header #logo h3, .modular .showcase .button {
+ -webkit-transition: all 0.5s ease;
+ -moz-transition: all 0.5s ease;
+ transition: all 0.5s ease; }
+
+.padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .blog-content-list, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, #footer {
+ padding-left: 7rem;
+ padding-right: 7rem; }
+ @media only all and (max-width: 59.938rem) {
+ .padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .blog-content-list, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, #footer {
+ padding-left: 4rem;
+ padding-right: 4rem; } }
+ @media only all and (max-width: 47.938rem) {
+ .padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .blog-content-list, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, #footer {
+ padding-left: 1rem;
+ padding-right: 1rem; } }
+
+.padding-vert {
+ padding-top: 3rem;
+ padding-bottom: 3rem; }
+
+#header {
+ position: fixed;
+ z-index: 10;
+ width: 100%;
+ height: 5rem;
+ background-color: rgba(255, 255, 255, 0.9);
+ box-shadow: 0 0.05rem 1rem rgba(0, 0, 0, 0.15); }
+ #header.scrolled {
+ height: 3rem;
+ background-color: rgba(255, 255, 255, 0.9) !important;
+ box-shadow: 0 0.05rem 1rem rgba(0, 0, 0, 0.15) !important; }
+ #header.scrolled #logo h3 {
+ color: #444444 !important;
+ font-size: 1.6rem !important; }
+ #header.scrolled #logo a {
+ color: #444444 !important; }
+ #header.scrolled #navbar a {
+ color: #1bb3e9 !important; }
+ #header.scrolled #navbar a:before, #header.scrolled #navbar a:after {
+ background-color: #1bb3e9 !important; }
+ #header > .grid, #header #logo, #header #navbar {
+ height: 100%; }
+ #header #logo {
+ float: left; }
+ #header #logo h3 {
+ font-size: 2rem;
+ line-height: 2rem;
+ margin: 0;
+ text-transform: uppercase; }
+ #header #logo h3 a {
+ color: #444444; }
+ #header #navbar {
+ font-size: 0.9rem; }
+ #header #navbar ul {
+ display: inline-block;
+ margin: 0;
+ list-style: none;
+ float: right; }
+ #header #navbar ul li {
+ float: left;
+ position: relative; }
+ #header #navbar ul li a {
+ font-family: "Montserrat", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ display: inline-block;
+ padding: 0.1rem 0.8rem; }
+ #header #navbar ul li a:before, #header #navbar ul li a:after {
+ content: "";
+ position: absolute;
+ width: 100%;
+ height: 1px;
+ bottom: 0;
+ left: 0;
+ background-color: #1bb3e9;
+ visibility: hidden;
+ -webkit-transform: scaleX(0);
+ -moz-transform: scaleX(0);
+ -ms-transform: scaleX(0);
+ -o-transform: scaleX(0);
+ transform: scaleX(0);
+ -webkit-transition: all 0.2s ease;
+ -moz-transition: all 0.2s ease;
+ transition: all 0.2s ease; }
+ #header #navbar ul li a:hover:before {
+ visibility: visible;
+ -webkit-transform: scaleX(0.75);
+ -moz-transform: scaleX(0.75);
+ -ms-transform: scaleX(0.75);
+ -o-transform: scaleX(0.75);
+ transform: scaleX(0.75); }
+ #header #navbar ul li.active a:after {
+ top: 0;
+ visibility: visible;
+ -webkit-transform: scaleX(0.75);
+ -moz-transform: scaleX(0.75);
+ -ms-transform: scaleX(0.75);
+ -o-transform: scaleX(0.75);
+ transform: scaleX(0.75); }
+ @media only all and (max-width: 59.938rem) {
+ #header #navbar ul {
+ display: none; } }
+ #header #navbar .panel-activation {
+ display: none;
+ font-size: 2rem;
+ cursor: pointer;
+ float: right; }
+ @media only all and (max-width: 59.938rem) {
+ #header #navbar .panel-activation {
+ display: inline-block; } }
+
+.header-image.fullwidth #body {
+ padding-left: 0;
+ padding-right: 0; }
+ .header-image.fullwidth #body > .listing-row {
+ padding-left: 7rem;
+ padding-right: 7rem; }
+.header-image .listing-row:last-child {
+ margin-bottom: 2rem; }
+.header-image #body > .blog-header {
+ margin-top: -9.5rem;
+ padding-top: 9rem; }
+.header-image #breadcrumbs {
+ margin-top: 1rem; }
+.header-image #header {
+ background-color: rgba(255, 255, 255, 0);
+ box-shadow: none; }
+ .header-image #header #logo h3, .header-image #header #logo a {
+ color: white; }
+ .header-image #header a, .header-image #header .menu-btn {
+ color: white; }
+ .header-image #header a:before, .header-image #header a:after {
+ background-color: rgba(255, 255, 255, 0.7) !important; }
+
+#footer {
+ position: absolute;
+ background: #333;
+ height: 6rem;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ color: #999;
+ text-align: center; }
+ #footer a:hover {
+ color: #fff; }
+ #footer .totop {
+ position: absolute;
+ bottom: 5rem;
+ text-align: center;
+ left: 0;
+ right: 0; }
+ #footer .totop span {
+ font-size: 1.7rem;
+ line-height: 2.5rem;
+ background: #333;
+ width: 3rem;
+ height: 2rem;
+ border-radius: 3px;
+ display: inline-block;
+ text-align: top; }
+ #footer p {
+ margin: 0; }
+ #footer p .fa {
+ color: #fff; }
+
+body {
+ font-family: "Raleway", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ font-weight: 400; }
+
+h1, h2, h3, h4, h5, h6 {
+ font-family: "Montserrat", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ font-weight: 400;
+ text-rendering: optimizeLegibility;
+ letter-spacing: -0px; }
+
+h1 {
+ font-size: 3.2rem; }
+ @media only all and (max-width: 47.938rem) {
+ h1 {
+ font-size: 2.5rem;
+ line-height: 1.2;
+ margin-bottom: 2.5rem; } }
+
+@media only all and (min-width: 48rem) and (max-width: 59.938rem) {
+ h2 {
+ font-size: 2.1rem; } }
+@media only all and (max-width: 47.938rem) {
+ h2 {
+ font-size: 2rem; } }
+
+@media only all and (min-width: 48rem) and (max-width: 59.938rem) {
+ h3 {
+ font-size: 1.7rem; } }
+@media only all and (max-width: 47.938rem) {
+ h3 {
+ font-size: 1.6rem; } }
+
+@media only all and (min-width: 48rem) and (max-width: 59.938rem) {
+ h4 {
+ font-size: 1.35rem; } }
+@media only all and (max-width: 47.938rem) {
+ h4 {
+ font-size: 1.25rem; } }
+
+h1 {
+ text-align: center;
+ letter-spacing: -3px; }
+
+h2 {
+ letter-spacing: -2px; }
+
+h3 {
+ letter-spacing: -1px; }
+
+h1 + h2 {
+ margin: -2rem 0 2rem 0;
+ font-size: 2rem;
+ line-height: 1;
+ text-align: center;
+ font-family: "Raleway", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ font-weight: 300; }
+ @media only all and (min-width: 48rem) and (max-width: 59.938rem) {
+ h1 + h2 {
+ font-size: 1.6rem; } }
+ @media only all and (max-width: 47.938rem) {
+ h1 + h2 {
+ font-size: 1.5rem; } }
+
+h2 + h3 {
+ margin: 0.5rem 0 2rem 0;
+ font-size: 2rem;
+ line-height: 1;
+ text-align: center;
+ font-family: "Raleway", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ font-weight: 300; }
+ @media only all and (min-width: 48rem) and (max-width: 59.938rem) {
+ h2 + h3 {
+ font-size: 1.6rem; } }
+ @media only all and (max-width: 47.938rem) {
+ h2 + h3 {
+ font-size: 1.5rem; } }
+
+blockquote {
+ border-left: 10px solid #f0f2f4; }
+ blockquote p {
+ font-size: 1.1rem;
+ color: #999; }
+ blockquote cite {
+ display: block;
+ text-align: right;
+ color: #666;
+ font-size: 1.2rem; }
+
+blockquote > blockquote > blockquote {
+ margin: 0; }
+ blockquote > blockquote > blockquote p {
+ padding: 15px;
+ display: block;
+ font-size: 1rem;
+ margin-top: 0rem;
+ margin-bottom: 0rem; }
+ blockquote > blockquote > blockquote > p {
+ margin-left: -71px;
+ border-left: 10px solid #F0AD4E;
+ background: #FCF8F2;
+ color: #df8a13; }
+ blockquote > blockquote > blockquote > blockquote > p {
+ margin-left: -94px;
+ border-left: 10px solid #D9534F;
+ background: #FDF7F7;
+ color: #b52b27; }
+ blockquote > blockquote > blockquote > blockquote > blockquote > p {
+ margin-left: -118px;
+ border-left: 10px solid #5BC0DE;
+ background: #F4F8FA;
+ color: #28a1c5; }
+ blockquote > blockquote > blockquote > blockquote > blockquote > blockquote > p {
+ margin-left: -142px;
+ border-left: 10px solid #5CB85C;
+ background: #F1F9F1;
+ color: #3d8b3d; }
+
+code,
+kbd,
+pre,
+samp {
+ font-family: "Inconsolata", monospace; }
+
+code {
+ background: #f9f2f4;
+ color: #9c1d3d; }
+
+pre {
+ padding: 2rem;
+ background: #f6f6f6;
+ border: 1px solid #dddddd;
+ border-radius: 3px; }
+ pre code {
+ color: #237794;
+ background: inherit; }
+
+hr {
+ border-bottom: 4px solid #f0f2f4; }
+
+.page-title {
+ margin-top: -25px;
+ padding: 25px;
+ float: left;
+ clear: both;
+ background: #1bb3e9;
+ color: white; }
+
+fieldset {
+ border: 1px solid #dddddd; }
+
+textarea, input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select[multiple=multiple] {
+ background-color: white;
+ border: 1px solid #dddddd;
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06); }
+ textarea:hover, input[type="email"]:hover, input[type="number"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="text"]:hover, input[type="url"]:hover, input[type="color"]:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="month"]:hover, input[type="time"]:hover, input[type="week"]:hover, select[multiple=multiple]:hover {
+ border-color: #c4c4c4; }
+ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus {
+ border-color: #1bb3e9;
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 5px rgba(21, 163, 214, 0.7); }
+
+.form-field .required {
+ color: #F3443F;
+ font-size: 3rem;
+ line-height: 3rem;
+ vertical-align: top;
+ height: 1.5rem;
+ display: inline-block; }
+
+form .buttons {
+ text-align: center; }
+form input {
+ font-weight: 400; }
+
+table {
+ border: 1px solid #eaeaea; }
+
+th {
+ background: #f7f7f7;
+ padding: 0.5rem; }
+
+td {
+ padding: 0.5rem;
+ border: 1px solid #eaeaea; }
+
+.button {
+ background: white;
+ color: #1bb3e9;
+ border: 1px solid #1bb3e9;
+ border-radius: 3px; }
+ .button:hover {
+ background: #1bb3e9;
+ color: white; }
+ .button:active {
+ box-shadow: 0 1px 0 #118ab5; }
+
+.button-secondary {
+ background: white;
+ color: #f6635e;
+ border: 1px solid #f6635e;
+ border-radius: 3px; }
+ .button-secondary:hover {
+ background: #f6635e;
+ color: white; }
+ .button-secondary:active {
+ box-shadow: 0 1px 0 #f32b24; }
+
+.bullets {
+ margin: 1.7rem 0;
+ margin-left: -0.85rem;
+ margin-right: -0.85rem;
+ overflow: auto; }
+
+.bullet {
+ float: left;
+ padding: 0 0.85rem; }
+
+.two-column-bullet {
+ width: 50%; }
+ @media only all and (max-width: 47.938rem) {
+ .two-column-bullet {
+ width: 100%; } }
+
+.three-column-bullet {
+ width: 33.33333%; }
+ @media only all and (max-width: 47.938rem) {
+ .three-column-bullet {
+ width: 100%; } }
+
+.four-column-bullet {
+ width: 25%; }
+ @media only all and (max-width: 47.938rem) {
+ .four-column-bullet {
+ width: 100%; } }
+
+.bullet-icon {
+ float: left;
+ background: #1bb3e9;
+ padding: 0.875rem;
+ width: 3.5rem;
+ height: 3.5rem;
+ border-radius: 50%;
+ color: white;
+ font-size: 1.75rem;
+ text-align: center; }
+
+.bullet-icon-1 {
+ background: #1bb3e9; }
+
+.bullet-icon-2 {
+ background: #1be9da; }
+
+.bullet-icon-3 {
+ background: #d5e91b; }
+
+.bullet-content {
+ margin-left: 4.55rem; }
+
+#panel {
+ color: white; }
+ #panel .navigation {
+ list-style: none;
+ padding: 0; }
+ #panel .navigation li {
+ padding: 0.5rem 1rem;
+ border-bottom: 1px solid #404040;
+ font-weight: 600; }
+ #panel .navigation li.active {
+ background: #fff; }
+ #panel .navigation li.active a {
+ color: #444444; }
+ #panel .navigation li.active a:hover {
+ color: #444444; }
+ #panel .navigation li:last-child {
+ border-bottom: 0; }
+ #panel .navigation li a:hover {
+ color: white; }
+
+/* Menu Appearance */
+.pushy {
+ position: fixed;
+ width: 250px;
+ height: 100%;
+ top: 0;
+ z-index: 9999;
+ background: #333333;
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+ /* enables momentum scrolling in iOS overflow elements */ }
+
+/* Menu Movement */
+.pushy-left {
+ -webkit-transform: translate3d(-250px, 0, 0);
+ -moz-transform: translate3d(-250px, 0, 0);
+ -ms-transform: translate3d(-250px, 0, 0);
+ -o-transform: translate3d(-250px, 0, 0);
+ transform: translate3d(-250px, 0, 0); }
+
+.pushy-open {
+ -webkit-transform: translate3d(0, 0, 0);
+ -moz-transform: translate3d(0, 0, 0);
+ -ms-transform: translate3d(0, 0, 0);
+ -o-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0); }
+
+.container-push, .push-push {
+ -webkit-transform: translate3d(250px, 0, 0);
+ -moz-transform: translate3d(250px, 0, 0);
+ -ms-transform: translate3d(250px, 0, 0);
+ -o-transform: translate3d(250px, 0, 0);
+ transform: translate3d(250px, 0, 0); }
+
+/* Menu Transitions */
+.pushy, #container, .push {
+ -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.16, 0.68, 0.43, 0.99);
+ -moz-transition: -moz-transform 0.2s cubic-bezier(0.16, 0.68, 0.43, 0.99);
+ transition: transform 0.2s cubic-bezier(0.16, 0.68, 0.43, 0.99);
+ /* improves performance issues on mobile*/
+ -webkit-perspective: 1000; }
+
+/* Site Overlay */
+.site-overlay {
+ display: none; }
+
+.pushy-active .site-overlay {
+ display: block;
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 250px;
+ z-index: 9999; }
+
+.blog-header {
+ padding-top: 2rem;
+ padding-bottom: 2rem; }
+ .blog-header.blog-header-image {
+ background-size: cover;
+ background-position: center; }
+ .blog-header.blog-header-image h1, .blog-header.blog-header-image h2 {
+ color: white; }
+ .blog-header h1 {
+ font-size: 4rem;
+ margin-top: 0; }
+ @media only all and (min-width: 48rem) and (max-width: 59.938rem) {
+ .blog-header h1 {
+ font-size: 3rem; } }
+ @media only all and (max-width: 47.938rem) {
+ .blog-header h1 {
+ font-size: 2.5rem;
+ line-height: 1.2;
+ margin-bottom: 2.5rem; } }
+ .blog-header + .blog-content {
+ padding-top: 3rem; }
+
+.list-item {
+ border-bottom: 1px solid #eeeeee;
+ margin-bottom: 3rem; }
+ .list-item:last-child {
+ border-bottom: 0; }
+ .list-item .list-blog-header {
+ position: relative; }
+ .list-item .list-blog-header h4 {
+ margin-bottom: 0.5rem; }
+ .list-item .list-blog-header h4 a {
+ color: #444444; }
+ .list-item .list-blog-header h4 a:hover {
+ color: #1bb3e9; }
+ .list-item .list-blog-header img {
+ display: block;
+ margin-top: 1rem;
+ border-radius: 3px; }
+ .list-item .list-blog-date {
+ float: right;
+ text-align: center; }
+ .list-item .list-blog-date span {
+ display: block;
+ font-size: 1.75rem;
+ font-weight: 600;
+ line-height: 110%; }
+ .list-item .list-blog-date em {
+ display: block;
+ border-top: 1px solid #eeeeee;
+ font-style: normal;
+ text-transform: uppercase; }
+
+.blog-content-item .list-blog-padding > p:nth-child(2) {
+ font-size: 1.2rem; }
+
+.tags a {
+ display: inline-block;
+ font-size: 0.8rem;
+ border: 1px solid #1bb3e9;
+ border-radius: 3px;
+ padding: 0.1rem 0.4rem;
+ margin-bottom: 0.2rem;
+ text-transform: uppercase; }
+
+.archives {
+ padding: 0;
+ list-style: none; }
+ .archives li {
+ border-bottom: 1px solid #eeeeee;
+ line-height: 2rem; }
+ .archives li:last-child {
+ border-bottom: 0; }
+
+.syndicate a {
+ margin-bottom: 1rem; }
+
+div#breadcrumbs {
+ padding-left: 0; }
+
+#sidebar {
+ padding-left: 3rem; }
+ @media only all and (max-width: 47.938rem) {
+ #sidebar {
+ padding-left: 0; } }
+ #sidebar .sidebar-content {
+ margin-bottom: 3rem; }
+ #sidebar .sidebar-content h4 {
+ margin-bottom: 1rem; }
+ #sidebar .sidebar-content p, #sidebar .sidebar-content ul {
+ margin-top: 1rem; }
+
+ul.pagination {
+ margin: 0 0 3rem;
+ text-align: left; }
+
+#error {
+ text-align: center;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+ padding-bottom: 6rem; }
+ #error h1 {
+ font-size: 5rem; }
+ #error p {
+ margin: 1rem 0; }
+
+.modular.header-image #body > .showcase {
+ margin-top: -9.5rem;
+ padding-top: 9rem; }
+.modular.header-image #header {
+ background-color: rgba(255, 255, 255, 0);
+ box-shadow: none; }
+ .modular.header-image #header #logo h3 {
+ color: white; }
+ .modular.header-image #header #navbar a {
+ color: white; }
+.modular .showcase {
+ padding-top: 4rem;
+ padding-bottom: 4rem;
+ background-color: #666;
+ background-size: cover;
+ background-attachment: fixed;
+ background-position: center;
+ text-align: center;
+ color: white; }
+ .modular .showcase h1 {
+ font-size: 4rem;
+ margin-top: 0; }
+ @media only all and (min-width: 48rem) and (max-width: 59.938rem) {
+ .modular .showcase h1 {
+ font-size: 3rem; } }
+ @media only all and (max-width: 47.938rem) {
+ .modular .showcase h1 {
+ font-size: 2.5rem;
+ line-height: 1.2;
+ margin-bottom: 2.5rem; } }
+ .modular .showcase .button {
+ color: white;
+ padding: 0.7rem 2rem;
+ margin-top: 2rem;
+ background: rgba(255, 255, 255, 0);
+ border: 1px solid white;
+ border-radius: 3px;
+ box-shadow: none;
+ font-size: 1.3rem; }
+ .modular .showcase .button:hover {
+ background: rgba(255, 255, 255, 0.2); }
+
+.modular .features {
+ padding: 3rem 0;
+ text-align: center; }
+ .modular .features:after {
+ content: "";
+ display: table;
+ clear: both; }
+ .modular .features h2 {
+ margin: 0;
+ line-height: 100%; }
+ .modular .features p {
+ margin: 1rem 0;
+ font-size: 1.2rem; }
+ @media only all and (max-width: 47.938rem) {
+ .modular .features p {
+ font-size: 1rem; } }
+ .modular .features .feature-items {
+ margin-top: 2rem; }
+ .modular .features .feature {
+ display: block;
+ float: left;
+ width: 25%;
+ vertical-align: top;
+ margin-top: 2rem;
+ margin-bottom: 1rem; }
+ @media only all and (max-width: 47.938rem) {
+ .modular .features .feature {
+ width: 100%; } }
+ .modular .features .feature i.fa {
+ font-size: 2rem;
+ color: #1bb3e9; }
+ .modular .features .feature h4 {
+ margin: 0;
+ font-size: 1.1rem; }
+ .modular .features .feature p {
+ display: inline-block;
+ font-size: 1rem;
+ margin: 0.2rem 0 1rem; }
+ .modular .features.big {
+ text-align: center; }
+ .modular .features.big .feature {
+ width: 50%; }
+ .modular .features.big i.fa {
+ font-size: 3rem;
+ float: left; }
+ .modular .features.big .feature-content {
+ padding-right: 2rem; }
+ .modular .features.big .feature-content.push {
+ margin-left: 5rem; }
+ .modular .features.big .feature-content h4 {
+ font-size: 1.3rem;
+ text-align: left; }
+ .modular .features.big .feature-content p {
+ padding: 0;
+ text-align: left; }
+
+.callout {
+ background: #f6f6f6;
+ padding: 3rem 0.938rem; }
+ .callout .align-left {
+ float: left;
+ margin-right: 2rem; }
+ .callout .align-right {
+ float: right;
+ margin-left: 2rem; }
+ .callout img {
+ border-radius: 3px; }
+
+.modular .modular-row:last-child {
+ margin-bottom: 2rem; }
+
+/*# sourceMappingURL=template.css.map */
diff --git a/plugins/problems/html/problems.html b/plugins/problems/html/problems.html
new file mode 100644
index 00000000..241d6b77
--- /dev/null
+++ b/plugins/problems/html/problems.html
@@ -0,0 +1,28 @@
+
+
+
+
+ Grav Problems
+
+
+
+
+
+
+
+
+
+ Issues Found
+ Please Review and Resolve before continuing...
+
+
+ Reload Page
+
+
+
+
+
+
+
diff --git a/plugins/problems/problems.php b/plugins/problems/problems.php
new file mode 100644
index 00000000..3b21f0e3
--- /dev/null
+++ b/plugins/problems/problems.php
@@ -0,0 +1,332 @@
+ ['onPluginsInitialized', 100001],
+ 'onFatalException' => ['onFatalException', 0]
+ ];
+ }
+
+ public function onFatalException()
+ {
+ if ($this->isAdmin()) {
+ $this->active = false;
+ return;
+ }
+
+ // Run through potential issues
+ if ($this->problemChecker()) {
+ $this->renderProblems();
+ }
+ }
+
+ public function onPluginsInitialized()
+ {
+ if ($this->isAdmin()) {
+ $this->active = false;
+ return;
+ }
+
+ /** @var Cache $cache */
+ $cache = $this->grav['cache'];
+ $validated_prefix = 'problem-check-';
+
+ $this->check = CACHE_DIR . $validated_prefix . $cache->getKey();
+
+ if (!file_exists($this->check)) {
+ // If no issues remain, save a state file in the cache
+ if (!$this->problemChecker()) {
+ // delete any existing validated files
+ foreach (new \GlobIterator(CACHE_DIR . $validated_prefix . '*') as $fileInfo) {
+ @unlink($fileInfo->getPathname());
+ }
+
+ // create a file in the cache dir so it only runs on cache changes
+ touch($this->check);
+
+ } else {
+ $this->renderProblems();
+ }
+
+ }
+ }
+
+ protected function renderProblems()
+ {
+ $theme = 'antimatter';
+
+ /** @var Uri $uri */
+ $uri = $this->grav['uri'];
+ $baseUrlRelative = $uri->rootUrl(false);
+ $themeUrl = $baseUrlRelative . '/' . USER_PATH . basename(THEMES_DIR) . '/' . $theme;
+ $problemsUrl = $baseUrlRelative . '/user/plugins/problems';
+
+ $html = file_get_contents(__DIR__ . '/html/problems.html');
+
+ /**
+ * Process the results, ignore the statuses passed as $ignore_status
+ *
+ * @param $results
+ * @param $ignore_status
+ */
+ $processResults = function ($results, $ignore_status) {
+ $problems = '';
+
+ foreach ($results as $key => $result) {
+ if ($key == 'files' || $key == 'apache' || $key == 'execute') {
+ foreach ($result as $key_text => $value_text) {
+ foreach ($value_text as $status => $text) {
+ if ($status == $ignore_status) continue;
+ $problems .= $this->getListRow($status, '' . $key_text . ' ' . $text);
+ }
+ }
+ } else {
+ foreach ($result as $status => $text) {
+ if ($status == $ignore_status) continue;
+ $problems .= $this->getListRow($status, $text);
+ }
+ }
+ }
+
+ return $problems;
+ };
+
+ // First render the errors
+ $problems = $processResults($this->results, 'success');
+
+ // Then render the successful checks
+ $problems .= $processResults($this->results, 'error');
+
+ $html = str_replace('%%BASE_URL%%', $baseUrlRelative, $html);
+ $html = str_replace('%%THEME_URL%%', $themeUrl, $html);
+ $html = str_replace('%%PROBLEMS_URL%%', $problemsUrl, $html);
+ $html = str_replace('%%PROBLEMS%%', $problems, $html);
+
+ echo $html;
+ http_response_code(500);
+
+ exit();
+
+
+ }
+
+ protected function getListRow($status, $text)
+ {
+ if ($status == 'error') {
+ $icon = 'fa-times';
+ } elseif ($status == 'info') {
+ $icon = 'fa-info';
+ } else {
+ $icon = 'fa-check';
+ }
+ $output = "\n";
+ $output .= ''. $text . '
';
+ return $output;
+ }
+
+ protected function problemChecker()
+ {
+ $min_php_version = defined('GRAV_PHP_MIN') ? GRAV_PHP_MIN : '5.4.0';
+ $problems_found = false;
+
+ $essential_files = [
+ 'cache' => true,
+ 'logs' => true,
+ 'images' => true,
+ 'assets' => true,
+ 'system' => false,
+ 'user/data' => true,
+ 'user/pages' => false,
+ 'user/config' => false,
+ 'user/plugins/error' => false,
+ 'user/plugins' => false,
+ 'user/themes' => false,
+ 'vendor' => false
+ ];
+
+ if (version_compare(GRAV_VERSION, '0.9.27', ">=")) {
+ $essential_files['backup'] = true;
+ $backup_folder = ROOT_DIR . 'backup';
+ // try to create backup folder if missing
+ if (!file_exists($backup_folder)) {
+ @mkdir($backup_folder, 0770);
+ }
+ }
+
+ if (version_compare(GRAV_VERSION, '1.1.4', ">=")) {
+ $essential_files['tmp'] = true;
+ $tmp_folder = ROOT_DIR . 'tmp';
+ // try to create tmp folder if missing
+ if (!file_exists($tmp_folder)) {
+ @mkdir($tmp_folder, 0770);
+ }
+ }
+
+ // Perform some Apache checks
+ if (strpos(php_sapi_name(), 'apache') !== false) {
+
+ $require_apache_modules = ['mod_rewrite'];
+ $apache_modules = apache_get_modules();
+
+ $apache_status = [];
+
+ foreach ($require_apache_modules as $module) {
+ if (in_array($module, $apache_modules)) {
+ $apache_module_adjective = ' Apache module is enabled';
+ $apache_module_status = 'success';
+ } else {
+ $problems_found = true;
+ $apache_module_adjective = ' Apache module is not installed or enabled';
+ $apache_module_status = 'error';
+ }
+ $apache_status[$module] = [$apache_module_status => $apache_module_adjective];
+ }
+
+ if (sizeof($apache_status) > 0) {
+ $this->results['apache'] = $apache_status;
+ }
+ }
+
+ // Check PHP version
+ if (version_compare(phpversion(), $min_php_version, '<')) {
+ $problems_found = true;
+ $php_version_adjective = 'lower';
+ $php_version_status = 'error';
+
+ } else {
+ $php_version_adjective = 'greater';
+ $php_version_status = 'success';
+ }
+ $this->results['php'] = [$php_version_status => 'Your PHP version (' . phpversion() . ') is '. $php_version_adjective . ' than the minimum required: ' . $min_php_version . ' - Additional Information '];
+
+ // Check for GD library
+ if (defined('GD_VERSION') && function_exists('gd_info')) {
+ $gd_adjective = '';
+ $gd_status = 'success';
+ } else {
+ $problems_found = true;
+ $gd_adjective = 'not ';
+ $gd_status = 'error';
+ }
+ $this->results['gd'] = [$gd_status => 'PHP GD (Image Manipulation Library) is '. $gd_adjective . 'installed'];
+
+ // Check for PHP CURL library
+ if (function_exists('curl_version')) {
+ $curl_adjective = '';
+ $curl_status = 'success';
+ } else {
+ $problems_found = true;
+ $curl_adjective = 'not ';
+ $curl_status = 'error';
+ }
+ $this->results['curl'] = [$curl_status => 'PHP Curl (Data Transfer Library) is '. $curl_adjective . 'installed'];
+
+ // Check for PHP Open SSL library
+ if (extension_loaded('openssl') && defined('OPENSSL_VERSION_TEXT')) {
+ $ssl_adjective = '';
+ $ssl_status = 'success';
+ } else {
+ $problems_found = true;
+ $ssl_adjective = 'not ';
+ $ssl_status = 'error';
+ }
+ $this->results['ssl'] = [$ssl_status => 'PHP OpenSSL (Secure Sockets Library) is '. $ssl_adjective . 'installed'];
+
+ // Check for PHP XML library
+ if (extension_loaded('xml')) {
+ $xml_adjective = '';
+ $xml_status = 'success';
+ } else {
+ $problems_found = true;
+ $xml_adjective = 'not ';
+ $xml_status = 'error';
+ }
+ $this->results['xml'] = [$xml_status => 'PHP XML Library is '. $xml_adjective . 'installed'];
+
+ // Check for PHP MbString library
+ if (extension_loaded('mbstring')) {
+ $mbstring_adjective = '';
+ $mbstring_status = 'success';
+ } else {
+ $problems_found = true;
+ $mbstring_adjective = 'not ';
+ $mbstring_status = 'error';
+ }
+ $this->results['mbstring'] = [$mbstring_status => 'PHP Mbstring (Multibyte String Library) is '. $mbstring_adjective . 'installed'];
+
+ // Check Exif if enabled
+ if ($this->grav['config']->get('system.media.auto_metadata_exif')) {
+ if(extension_loaded('exif')) {
+ $exif_adjective = '';
+ $exif_status = 'success';
+ } else {
+ $problems_found = true;
+ $exif_adjective = 'not ';
+ $exif_status = 'error';
+ }
+ $this->results['exif'] = [$exif_status => 'PHP Exif (Exchangeable Image File Format) is '. $exif_adjective . 'installed'];
+ }
+
+ // Check for PHP Zip library
+ if (extension_loaded('zip')) {
+ $zip_adjective = '';
+ $zip_status = 'success';
+ } else {
+ $problems_found = true;
+ $zip_adjective = 'not ';
+ $zip_status = 'error';
+ }
+ $this->results['zip'] = [$zip_status => 'PHP Zip extension is '. $zip_adjective . 'installed'];
+
+ // Check for essential files & perms
+ $file_problems = [];
+ foreach ($essential_files as $file => $check_writable) {
+ $file_path = ROOT_DIR . $file;
+ $is_dir = false;
+ if (!file_exists($file_path)) {
+ $problems_found = true;
+ $file_status = 'error';
+ $file_adjective = 'does not exist';
+
+ } else {
+ $file_status = 'success';
+ $file_adjective = 'exists';
+ $is_writeable = is_writable($file_path);
+ $is_dir = is_dir($file_path);
+
+ if ($check_writable) {
+ if (!$is_writeable) {
+ $file_status = 'error';
+ $problems_found = true;
+ $file_adjective .= ' but is not writeable ';
+ } else {
+ $file_adjective .= ' and is writeable ';
+ }
+ }
+ }
+
+ $file_problems[$file_path] = [$file_status => $file_adjective];
+
+ }
+ if (sizeof($file_problems) > 0) {
+ $this->results['files'] = $file_problems;
+ }
+
+ return $problems_found;
+ }
+}
diff --git a/plugins/problems/problems.yaml b/plugins/problems/problems.yaml
new file mode 100644
index 00000000..1ab22e74
--- /dev/null
+++ b/plugins/problems/problems.yaml
@@ -0,0 +1,2 @@
+enabled: true
+built_in_css: true
diff --git a/plugins/simplesearch/CHANGELOG.md b/plugins/simplesearch/CHANGELOG.md
new file mode 100644
index 00000000..434f2ffb
--- /dev/null
+++ b/plugins/simplesearch/CHANGELOG.md
@@ -0,0 +1,204 @@
+# v1.13.0
+## 07/26/2017
+
+1. [](#improved)
+ * Support for multiple forms and fields in the same page
+1. [](#bugfix)
+ * Fix typo in `SEARCH_FIELD_MINIUMUM_CHARACTERS` translation string
+ * Fixed validation and JS submission
+ * Separated JS from inline to file
+ * Fixed issue with min query length always enforced. It is now possible to have no minimum length by setting to `false` or `0`
+
+# v1.12.0
+## 05/31/2017
+
+1. [](#new)
+ * Added option to switch between Rendered HTML and Raw Markdown content searching. Raw Markdown is faster than default.
+
+# v1.11.0
+## 05/29/2017
+
+1. [](#new)
+ * Allow to use "@none"/"none@" in the "Category filter" in Admin to allow removing the filter
+
+# v1.10.2
+## 04/19/2017
+
+1. [](#bugfix)
+ * Only check ACL if the Login plugin is installed [#112](https://github.com/getgrav/grav-plugin-simplesearch/pull/112)
+
+# v1.10.1
+## 04/11/2017
+
+1. [](#new)
+ * Added Portuguese translation
+ * Add hint when the minimum search field length is not matched
+1. [](#bugfix)
+ * Default `ignore_accented_characters` to false
+ * Fallback to regular search if searching with `ignore_accented_characters` on an unsupported charset raises an exception [#107](https://github.com/getgrav/grav-plugin-simplesearch/issues/107)
+ * Check ACL before listing a page in the search results [#102](https://github.com/getgrav/grav-plugin-simplesearch/pull/102)
+ * Fix with ignoring `min_query_length` when using the button [#99](https://github.com/getgrav/grav-plugin-simplesearch/issues/99)
+
+# v1.10.0
+## 01/23/2017
+
+1. [](#new)
+ * Added spanish translation
+ * Added japanese translation
+ * Added persian translation
+1. [](#improved)
+ * Added option to switch between Rendered HTML and Raw Markdown content searching. Raw Markdown is faster than default.
+ * Removed jQuery dependency, fixes issue when jQuery is loaded in the footer [#57](https://github.com/getgrav/grav-plugin-simplesearch/pull/57)
+ * Added option to ignore accents when searching [#89](https://github.com/getgrav/grav-plugin-simplesearch/pull/89)
+1. [](#bugfix)
+ * Remove unpublished and un-routable pages from the result set
+ * Fixed issue when using @self as route
+ * Fix overloaded property issue when searching on a page with simplesearch header [#80](https://github.com/getgrav/grav-plugin-simplesearch/issues/80)
+ * Fix issue with empty string and leading commas [#71](https://github.com/getgrav/grav-plugin-simplesearch/issues/71)
+
+# v1.9.3
+## 10/19/2016
+
+1. [](#bugfix)
+ * Fixed an issue with invalid syntax in `route: @self` logic
+
+# v1.9.2
+## 09/19/2016
+
+1. [](#bugfix)
+ * Reverted change in events - causing problems
+ * Reverted fix for `route: @self`, breaking `filter: @self` (used in getgrav.org)
+
+# v1.9.1
+## 09/08/2016
+
+1. [](#bugfix)
+ * Fixed logic to use `onPageInitialized` event
+
+# v1.9.0
+## 09/06/2016
+
+1. [](#new)
+ * Multiple search boxes support [#52](https://github.com/getgrav/grav-plugin-simplesearch/pull/52)
+ * Added Croatian and Russian translation
+1. [](#improved)
+ * Added support for Grav's autoescape twig setting
+1. [](#bugfix)
+ * Fix searching on `@self
`[#53](https://github.com/getgrav/grav-plugin-simplesearch/pull/53)
+
+# v1.8.0
+## 07/14/2016
+
+1. [](#new)
+ * Added dutch and romanian
+1. [](#bugfix)
+ * Fix translating the search input placeholder
+
+# v1.7.1
+## 05/03/2016
+
+1. [](#new)
+ * Added configurable `min length` option for how many characters needed before you can search
+
+# v1.7.0
+## 04/30/2016
+
+1. [](#new)
+ * Added support for taxonomy searching in regular searches (not just on-page searches as was the case previously)
+ * Added support for `route: '@self'` to use the route of the current page without specifying it.
+ * Added display search button option - #33
+ * Refactored code for clarity
+
+# v1.6.2
+## 01/06/2016
+
+1. [](#improved)
+ * Improved the README instructions on how to save all pages
+
+# v1.6.1
+## 11/11/2015
+
+1. [](#improved)
+ * Strip HTML tags from title and content before searching
+
+# v1.6.0
+## 11/11/2015
+
+1. [](#new)
+ * Removing `filter:` from configuration will search **ALL** pages
+
+# v1.5.1
+## 10/15/2015
+
+1. [](#improved)
+ * Minor performance fix
+ * Updated README.md with more help
+1. [](#bugfix)
+ * Fix for special character searches
+
+# v1.5.0
+## 10/07/2015
+
+1. [](#new)
+ * Allow simplesearch to work with on-page collections
+
+# v1.4.1
+## 08/31/2015
+
+1. [](#improved)
+ * Fixed some blueprint issues
+
+# v1.4.0
+## 08/25/2015
+
+1. [](#improved)
+ * Added blueprints for Grav Admin plugin
+ * Added results sorting
+
+# v1.3.0
+## 07/21/2015
+
+1. [](#new)
+ * Added support for modular pages in results
+
+# v1.2.7
+## 07/17/2015
+
+1. [](#bugfix)
+ * Fixed "Undefined index: extension" error
+
+# v1.2.6
+## 07/14/2015
+
+1. [](#bugfix)
+ * Fixed URL issue that showed up with multi-languages
+
+# v1.2.5
+## 04/24/2015
+
+1. [](#bugfix)
+ * Fixed issue with broken image
+
+# v1.2.4
+## 02/19/2015
+
+2. [](#improved)
+ * Implemented new `param_sep` variable from Grav 0.9.18
+
+# v1.2.3
+## 01/06/2015
+
+1. [](#improved)
+ * Improved `README.md` file with more information
+
+# v1.2.2
+## 12/21/2014
+
+1. [](#bugfix)
+ * Fix for invalid base_url in some instances
+
+# v1.2.1
+## 11/30/2014
+
+1. [](#new)
+ * ChangeLog started...
diff --git a/plugins/simplesearch/LICENSE b/plugins/simplesearch/LICENSE
new file mode 100644
index 00000000..484793ad
--- /dev/null
+++ b/plugins/simplesearch/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Grav
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/plugins/simplesearch/README.md b/plugins/simplesearch/README.md
new file mode 100644
index 00000000..c05a4cc1
--- /dev/null
+++ b/plugins/simplesearch/README.md
@@ -0,0 +1,191 @@
+# Grav SimpleSearch Plugin
+
+![SimpleSearch](assets/readme_1.png)
+
+`SimpleSearch` is a simple, yet very powerful [Grav][grav] plugin that adds search capabilities to your Grav instance. By default it can search Page **Titles**, **Content** and also **Taxonomy**.
+
+# Installation
+
+Installing the SimpleSearch plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
+
+## GPM Installation (Preferred)
+
+The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
+
+ bin/gpm install simplesearch
+
+This will install the SimpleSearch plugin into your `/user/plugins` directory within Grav. Its files can be found under `/your/site/grav/user/plugins/simplesearch`.
+
+## Manual Installation
+
+To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `simplesearch`. You can find these files either on [GitHub](https://github.com/getgrav/grav-plugin-simplesearch) or via [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
+
+You should now have all the plugin files under
+
+ /your/site/grav/user/plugins/simplesearch
+
+> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins, and a theme to be installed in order to operate.
+
+# Config Options
+
+To effectively use the plugin, you first need to create an override config. To do so, create the folder `user/config/plugins` (if it doesn't exist already) and copy the [simplesearch.yaml][simplesearch] config file in there.
+
+```
+search_content: rendered
+enabled: true
+built_in_css: true
+display_button: false
+min_query_length: 3
+route: /search
+template: simplesearch_results
+filters:
+ category: blog
+filter_combinator: and
+order:
+ by: date
+ dir: desc
+```
+
+By creating the configuration file: `user/config/plugins/simplesearch.yaml` you have effectively created a site-wide configuration for SimpleSearch. However, you may want to have multiple searches.
+
+> NOTE: If you want to search **ALL PAGES** just keep the `filters` section empty.
+
+To accomplish multiple search types in a single site, you should use **page-based** configuration. This is simple to do, simply provide any or all of the configuration options under a `simplesearch:` header in your page frontmatter. For example:
+
+```
+simplesearch:
+ route: @self
+ filters:
+ - @self
+ - @taxonomy: [tag]
+ filter_combinator: and
+```
+
+ These page headers will only be taken into account if the search route points to this page. For example: here the the route points to `@self` which in turn resolves to `/blog`. You can also specify the route explicity with `route: /blog` if you so choose. This header is within the `/user/pages/blog/blog.md` file. We will cover this self-controlled form of search handling below.
+
+# Usage
+
+There are two approaches to using SimpleSearch.
+
+## 1. Standalone Search Page
+
+This is the traditional approach and involves having a searchbox 'somewhere' on your site. When you search you are shown a new page that displays the search results. On this page you will see a summary of the results and be able to click a link to visit each applicable page within your site. Think about how **Google** and other traditional search engines work.
+
+After installing the SimpleSearch plugin, you can add a simple **searchbox** to your site by including the provided twig template. Or copy it from the plugin to your theme and customize it as you please:
+
+```
+{% include 'partials/simplesearch_searchbox.html.twig' %}
+```
+
+By default the **simplesearch_searchbox** Twig template uses the `route` as defined in the configuration. The SimpleSearch plugin uses this route and then appends a `query:` paramater to create the following final URL.
+
+```
+http://yoursite.com/search/query:something
+```
+
+1. `/search`: This is the **route** setting and it can be changed
+2. `/query:something`: This is the query itself, where `something` is what you are searching for.
+
+The plugin actively looks for URLs requested that match the configured `route` and if so it intercepts the call and renders the results template as specified by the configuration options, (defaults to `simplesearch_results.html.twig` as provided by the plugin).
+
+With this approach, the filters control which pages are searched. You can have multiple taxonomy filters here, and can configure the combinator to require **any** match (via `or`) or require **all** conditions to match (via `and`).
+
+You can also completely customize the look and feel of the results by overriding the template. There are two methods to do this.
+
+1. Copy the file [templates/simplesearch_results.html.twig][results] under your theme templates `user/themes/_your-theme_/templates/` and customize it.
+
+2. Create your very own results output. For this you need to change the `template` reference in the config (let's say **mysearch_results**). In your theme you would then create the new template under `user/themes/_your-theme_/templates/mysearch_results.html.twig` and write your customizations. This is how it looks by default:
+
+ ```
+ {% extends 'partials/simplesearch_base.html.twig' %}
+
+ {% block content %}
+
+
+
Query: "{{ query }}" - Found {{ search_results.count }} {{ 'Item'|pluralize(search_results.count) }}
+
+ {% for page in search_results %}
+ {% include 'partials/simplesearch_item.html.twig' with {'page':page} %}
+ {% endfor %}
+
+ {% endblock %}
+ ```
+
+## 2. Self-Controlled Search Page
+
+This is a new feature of SimpleSearch and it very useful and simple way to provide a 'filter' like search of a collection listing page. In this example, we will assume you have a Blog listing page you wish to be able to search and filter based on a search box.
+
+To accomplish this, you need ot use the page-based configuration as described above, and configure multiple filters, `@self` to use the page's content collection: http://learn.getgrav.org/content/headers#collection-headers
+
+```
+content:
+ items: @self.children
+ order:
+ by: date
+ dir: desc
+```
+
+This will mean the search will only search pages that this page already is using for the collection. The Items could be anything the page collections support:
+
+For further help with the `filters` and `order` settings, please refer to our [Taxonomy][taxonomy] and [Headers][headers] documentation.
+
+Multiple filters can be provided, and in order to search in the page's **Tag** field you would add `- @taxonomy: [tag]` as shown in the configuration example above.
+
+The only thing needed to provide this functionality is a search box that points to the current page and appends the `query` parameter. You can again simple include the sample `simplesearch_searchbox.html.twig` file or add your own. Because the route is configured to point to the blog page, and because the blog page already iterates over a collection, SimpleSearch will replace the page collection with the search-filtered collection. No results page is required.
+
+## Performance
+
+Simple search is not a full-fledged index-powered search engine. It merely iterates over the pages and searches the content and title for matching strings. That's it. This is not going to result in screaming fast searches if your site has lots of content. One way to optimize things a little is to change the `search_content` configuration option from `rendered` to `raw`. This means the `rawMarkdown()` method is used rather than the `content()` method, to retrieve the page content, and in turn means plugin events, markdown processing, image processing, and other time consuming tasks are not performed. This can often yield adequate search results without the need for all this extra work.
+
+## Searching Taxonomy
+
+By default **SimpleSearch** will search in the **Title**, **Content**, and **Taxonomy**. All taxonomy will be searched unless you provide a **taxonomy filter** either in the page, or in the global plugin configuration:
+
+```
+filters:
+ - @taxonomy: [tag]
+```
+
+This will ensure that only **tag** taxonomy types will be searched for the query.
+
+```
+filters:
+ - @taxonomy: [tag, author]
+```
+
+Will ensure that both **tag** and **author** taxonomy types are searched.
+
+As **all taxonomy types are searched by default**, in order to stop searching into taxonomies completely simply set the filter to false:
+
+```
+filters:
+ - '@taxonomy': false
+```
+
+## Ignoring accented characters
+
+You can tell Simplesearch to return a positive value when searching for characters that have an accent. So `éè` for example will be both equivalent to `e`.
+
+To do so, enable _Ignore accented characters_ in Admin, or manually set `ignore_accented_characters` to true in the plugin configuration.
+The `en_US` locale must be installed on the server.
+
+# Updating
+
+As development for SimpleSearch continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating SimpleSearch is easy, and can be done through Grav's GPM system, as well as manually.
+
+## GPM Update (Preferred)
+
+The simplest way to update this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
+
+ bin/gpm update simplesearch
+
+This command will check your Grav install to see if your SimpleSearch plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The plugin will automatically update and clear Grav's cache.
+
+
+> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/plugins`) will remain intact.
+
+[taxonomy]: http://learn.getgrav.org/content/taxonomy
+[headers]: http://learn.getgrav.org/content/headers
+[grav]: http://github.com/getgrav/grav
+[simplesearch]: simplesearch.yaml
+[results]: templates/simplesearch_results.html.twig
diff --git a/plugins/simplesearch/assets/readme_1.png b/plugins/simplesearch/assets/readme_1.png
new file mode 100644
index 00000000..a5156cf1
Binary files /dev/null and b/plugins/simplesearch/assets/readme_1.png differ
diff --git a/plugins/simplesearch/assets/search.svg b/plugins/simplesearch/assets/search.svg
new file mode 100644
index 00000000..9b1ef061
--- /dev/null
+++ b/plugins/simplesearch/assets/search.svg
@@ -0,0 +1,7 @@
+
+
+
+
+ Svg Vector Icons : http://www.onlinewebfonts.com/icon
+
+
\ No newline at end of file
diff --git a/plugins/simplesearch/blueprints.yaml b/plugins/simplesearch/blueprints.yaml
new file mode 100644
index 00000000..9a35038f
--- /dev/null
+++ b/plugins/simplesearch/blueprints.yaml
@@ -0,0 +1,133 @@
+name: SimpleSearch
+version: 1.13.0
+description: "Don't be fooled, the **SimpleSearch** plugin provides a **fast** and highly **configurable** way to search your content."
+icon: search
+author:
+ name: Team Grav
+ email: devs@getgrav.org
+ url: http://getgrav.org
+homepage: https://github.com/getgrav/grav-plugin-simplesearch
+demo: http://demo.getgrav.org/blog-skeleton
+keywords: simplesearch, plugin, search, page, content, find
+bugs: https://github.com/getgrav/grav-plugin-simplesearch/issues
+license: MIT
+
+form:
+ validation: strict
+ fields:
+ enabled:
+ type: toggle
+ label: PLUGIN_ADMIN.PLUGIN_STATUS
+ highlight: 1
+ default: 0
+ options:
+ 1: PLUGIN_ADMIN.ENABLED
+ 0: PLUGIN_ADMIN.DISABLED
+ validate:
+ type: bool
+
+ search_content:
+ type: select
+ size: medium
+ classes: fancy
+ label: Search Content
+ default: rendered
+ options:
+ rendered: Rendered Content (Slower)
+ raw: Raw Markdown Content (Faster)
+
+ built_in_css:
+ type: toggle
+ label: Use built in CSS
+ highlight: 1
+ default: 1
+ options:
+ 1: PLUGIN_ADMIN.ENABLED
+ 0: PLUGIN_ADMIN.DISABLED
+ validate:
+ type: bool
+
+ display_button:
+ type: toggle
+ label: Display Search Button
+ highlight: 0
+ default: 0
+ options:
+ 1: Enabled
+ 0: Disabled
+ validate:
+ type: bool
+
+ ignore_accented_characters:
+ type: toggle
+ label: Ignore accented characters
+ help: If enabled, search terms will match accented characters regardless to their diacritics i.e. search results will show up for "cafe" and "café" no matter how you typed it.
+ highlight: 0
+ default: 0
+ options:
+ 1: Enabled
+ 0: Disabled
+ validate:
+ type: bool
+
+ min_query_length:
+ type: text
+ size: x-small
+ label: Minimum query length
+ help: The mimimum number of characters needed before serach can be submitted
+ validate:
+ type: number
+ min: 0
+
+ route:
+ type: text
+ size: medium
+ label: Route
+ default: /random
+ help: Default route of the simplesearch plugin
+
+ template:
+ type: text
+ size: medium
+ label: Template
+ default: simplesearch_results
+ help: Name of the template for the search results
+
+ filters.category:
+ type: selectize
+ label: Category filter
+ help: Comma separated list of category names. Enter "@none" to search in all pages.
+ validate:
+ type: commalist
+
+ filter_combinator:
+ type: select
+ size: medium
+ classes: fancy
+ label: Filter Combinator
+ default: and
+ options:
+ and: And - Boolean &&
+ or: Or - Boolean ||
+
+ order.by:
+ type: select
+ size: long
+ classes: fancy
+ label: PLUGIN_ADMIN.DEFAULT_ORDERING
+ help: PLUGIN_ADMIN.DEFAULT_ORDERING_HELP
+ options:
+ default: PLUGIN_ADMIN.DEFAULT_ORDERING_DEFAULT
+ folder: PLUGIN_ADMIN.DEFAULT_ORDERING_FOLDER
+ title: PLUGIN_ADMIN.DEFAULT_ORDERING_TITLE
+ date: PLUGIN_ADMIN.DEFAULT_ORDERING_DATE
+
+ order.dir:
+ type: toggle
+ label: PLUGIN_ADMIN.DEFAULT_ORDER_DIRECTION
+ highlight: asc
+ default: desc
+ help: PLUGIN_ADMIN.DEFAULT_ORDER_DIRECTION_HELP
+ options:
+ asc: PLUGIN_ADMIN.ASCENDING
+ desc: PLUGIN_ADMIN.DESCENDING
diff --git a/plugins/simplesearch/css/simplesearch.css b/plugins/simplesearch/css/simplesearch.css
new file mode 100644
index 00000000..0423146f
--- /dev/null
+++ b/plugins/simplesearch/css/simplesearch.css
@@ -0,0 +1,44 @@
+.search-wrapper .search-input {
+ width: 80%;
+ display: inline-block;
+}
+
+.search-submit {
+ display: inline-block;
+ border-radius: 4px;
+ background: #eee;
+ border: 1px solid #ccc;
+ vertical-align: top;
+}
+
+.search-submit img {
+ width: 20px;
+ vertical-align: middle;
+}
+
+.search-image {
+ float: left;
+}
+
+.search-item {
+ margin-left: 130px;
+ margin-bottom: 50px;
+}
+
+.search-item p {
+ margin: 0;
+}
+
+.search-title h3 {
+ margin: 0;
+}
+
+.search-details {
+ font-size: 13px;
+}
+
+.search-row:last-child hr {
+ display: none;
+}
+
+
diff --git a/plugins/simplesearch/js/simplesearch.js b/plugins/simplesearch/js/simplesearch.js
new file mode 100644
index 00000000..e76c1cc5
--- /dev/null
+++ b/plugins/simplesearch/js/simplesearch.js
@@ -0,0 +1,29 @@
+((function(){
+ var findAncestor = function(el, selector) {
+ while ((el = el.parentElement) && !((el.matches || el.matchesSelector).call(el, selector))) {}
+ return el;
+ };
+
+ var fields = document.querySelectorAll('input[name="searchfield"][data-search-input]');
+ fields.forEach(function(field) {
+ var form = findAncestor(field, 'form[data-simplesearch-form]'),
+ min = field.getAttribute('min') || false,
+ location = field.getAttribute('data-search-input'),
+ separator = field.getAttribute('data-search-separator');
+
+ if (min) {
+ var invalid = field.getAttribute('data-search-invalid');
+ field.addEventListener('keydown', function() {
+ field.setCustomValidity(field.value.length >= min ? '' : invalid);
+ });
+ }
+
+ form.addEventListener('submit', function(event) {
+ event.preventDefault();
+
+ if (field.checkValidity()) {
+ window.location.href = location + separator + field.value;
+ }
+ });
+ });
+})());
\ No newline at end of file
diff --git a/plugins/simplesearch/languages.yaml b/plugins/simplesearch/languages.yaml
new file mode 100644
index 00000000..a7e9ab3f
--- /dev/null
+++ b/plugins/simplesearch/languages.yaml
@@ -0,0 +1,97 @@
+en:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Search..."
+ SEARCH_RESULTS: "Search Results"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Query: %s found one result"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Query: %s found %s results"
+ SEARCH_FIELD_MINIMUM_CHARACTERS: "Please add at least %s characters"
+ro:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Caută..."
+ SEARCH_RESULTS: "Rezultatele căutării"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Căutarea: %s a găsit un rezultat"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Căutarea: %s a găsit %s rezultate"
+de:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Suche..."
+ SEARCH_RESULTS: "Suchergebnisse"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Suche: %s fand ein Ergebnis"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Suche: %s fand %s Ergebnisse"
+
+fr:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Recherche..."
+ SEARCH_RESULTS: "Résultats de la recherche"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Recherche : Un résultat trouvé pour %s "
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Recherche : %2$s résultats trouvés pour %1$s "
+
+it:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Cerca..."
+ SEARCH_RESULTS: "Risultati della ricerca"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Ricerca: %s . Trovato un risultato"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Ricerca: %s . Trovati %s risultati"
+ SEARCH_FIELD_MINIMUM_CHARACTERS: "Inserisci almeno %s caratteri"
+
+zh:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "搜索..."
+ SEARCH_RESULTS: "搜索结果"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "查询: %s 找到 1 个结果"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "查询: %s 找到 %s 个结果"
+nl:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Zoeken..."
+ SEARCH_RESULTS: "Zoek resultaat"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Query: %s is 1 keer gevonden"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Query: %s is %s keer gevonden"
+hr:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Traži..."
+ SEARCH_RESULTS: "Rezultati pretrage"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Upit: %s je pronašao jedan rezultat"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Upit: %s je pronašao %s rezultata"
+ru:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Найти..."
+ SEARCH_RESULTS: "Результат поиска"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "По запросу: %s результатов найдено 1"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "По запросу: %s результатов найдено %s"
+es:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Buscar..."
+ SEARCH_RESULTS: "Resultados de la búsqueda"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Consulta: %s se encontró 1 resultado"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Consulta: %s se encontraron %s resultados"
+ja:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "検索する..."
+ SEARCH_RESULTS: "検索結果"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "検索 : %s に一つの結果があります。"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "検索 : %s に %s の結果があります。"
+fa:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "جستجو..."
+ SEARCH_RESULTS: "نتایج جستجو"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "جستار: %s یک نتیجه یافت شد"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "جستار: %s %s نتیجه یافت شد"
+cs:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Vyhledat..."
+ SEARCH_RESULTS: "Výsledky hledání"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Hledání výrazu '%s ' našlo jeden výsledek"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Hledání výrazu '%s ' našlo %s výsledků"
+
+pt:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "O que você procura?"
+ SEARCH_RESULTS: "Resultados da pesquisa"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Pesquisa: %s . Foram encontrados 1 resultados"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Pesquisa: %s . Foram encontrados %s resultados"
+
+sv:
+ PLUGIN_SIMPLESEARCH:
+ SEARCH_PLACEHOLDER: "Sök..."
+ SEARCH_RESULTS: "Sökresultat"
+ SEARCH_RESULTS_SUMMARY_SINGULAR: "Sökning: %s hittade ett resultat"
+ SEARCH_RESULTS_SUMMARY_PLURAL: "Sökning: %s hittade %s resultat"
diff --git a/plugins/simplesearch/pages/simplesearch.md b/plugins/simplesearch/pages/simplesearch.md
new file mode 100644
index 00000000..2f979596
--- /dev/null
+++ b/plugins/simplesearch/pages/simplesearch.md
@@ -0,0 +1,7 @@
+---
+title: Search Results
+order_by: date
+order_dir: desc
+template: simplesearch_results
+---
+
diff --git a/plugins/simplesearch/simplesearch.php b/plugins/simplesearch/simplesearch.php
new file mode 100644
index 00000000..fa1a5c2f
--- /dev/null
+++ b/plugins/simplesearch/simplesearch.php
@@ -0,0 +1,367 @@
+ ['onPluginsInitialized', 0],
+ 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
+ 'onGetPageTemplates' => ['onGetPageTemplates', 0],
+ ];
+ }
+
+ /**
+ * Add page template types. (for Admin plugin)
+ */
+ public function onGetPageTemplates(Event $event)
+ {
+ /** @var Types $types */
+ $types = $event->types;
+ $types->scanTemplates('plugins://simplesearch/templates');
+ }
+
+
+ /**
+ * Add current directory to twig lookup paths.
+ */
+ public function onTwigTemplatePaths()
+ {
+ $this->grav['twig']->twig_paths[] = __DIR__ . '/templates';
+ }
+
+ /**
+ * Enable search only if url matches to the configuration.
+ */
+ public function onPluginsInitialized()
+ {
+ if ($this->isAdmin()) {
+ return;
+ }
+
+ $this->enable([
+ 'onPagesInitialized' => ['onPagesInitialized', 0],
+ 'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
+ ]);
+ }
+
+
+ /**
+ * Build search results.
+ */
+ public function onPagesInitialized()
+ {
+ $page = $this->grav['page'];
+
+ $route = null;
+ if (isset($page->header()->simplesearch['route'])) {
+ $route = $page->header()->simplesearch['route'];
+
+ // Support `route: '@self'` syntax
+ if ($route === '@self') {
+ $route = $page->route();
+ $page->header()->simplesearch['route'] = $route;
+ }
+ }
+
+ // If a page exists merge the configs
+ if ($page) {
+ $this->config->set('plugins.simplesearch', $this->mergeConfig($page));
+ }
+
+ /** @var Uri $uri */
+ $uri = $this->grav['uri'];
+ $query = $uri->param('query') ?: $uri->query('query');
+ $route = $this->config->get('plugins.simplesearch.route');
+
+ // performance check for route
+ if (!($route && $route == $uri->path())) {
+ return;
+ }
+
+ // Explode query into multiple strings. Drop empty values
+ $this->query = array_filter(array_filter(explode(',', $query), 'trim'), 'strlen');
+
+ /** @var Taxonomy $taxonomy_map */
+ $taxonomy_map = $this->grav['taxonomy'];
+ $taxonomies = [];
+ $find_taxonomy = [];
+
+ $filters = (array) $this->config->get('plugins.simplesearch.filters');
+ $operator = $this->config->get('plugins.simplesearch.filter_combinator', 'and');
+ $new_approach = false;
+
+ // if @none found, skip processing taxonomies
+ $should_process = true;
+ if (is_array($filters)) {
+ $the_filter = reset($filters);
+
+ if (is_array($the_filter)) {
+ if (in_array(reset($the_filter), ['@none', 'none@'])) {
+ $should_process = false;
+ }
+ }
+ }
+
+ if (!$should_process || !$filters || $query === false || (count($filters) == 1 && !reset($filters))) {
+ /** @var \Grav\Common\Page\Pages $pages */
+ $pages = $this->grav['pages'];
+ $this->collection = $pages->all();
+ } else {
+
+ foreach ($filters as $key => $filter) {
+ // flatten item if it's wrapped in an array
+ if (is_int($key)) {
+ if (is_array($filter)) {
+ $key = key($filter);
+ $filter = $filter[$key];
+ } else {
+ $key = $filter;
+ }
+ }
+
+ // see if the filter uses the new 'items-type' syntax
+ if ($key === '@self' || $key === 'self@') {
+ $new_approach = true;
+ } elseif ($key === '@taxonomy' || $key === 'taxonomy@') {
+ $taxonomies = $filter === false ? false : array_merge($taxonomies, (array) $filter);
+ } else {
+ $find_taxonomy[$key] = $filter;
+ }
+ }
+
+ if ($new_approach) {
+ $params = $page->header()->content;
+ $params['query'] = $this->config->get('plugins.simplesearch.query');
+ $this->collection = $page->collection($params, false);
+ } else {
+ $this->collection = new Collection();
+ $this->collection->append($taxonomy_map->findTaxonomy($find_taxonomy, $operator)->toArray());
+ }
+ }
+
+ //Drop unpublished and unroutable pages
+ $this->collection->published()->routable();
+
+ //Check if user has permission to view page
+ if($this->grav['config']->get('plugins.login.enabled')) {
+ $this->collection = $this->checkForPermissions($this->collection);
+ }
+ $extras = [];
+
+ if ($query) {
+ foreach ($this->collection as $cpage) {
+ foreach ($this->query as $query) {
+ $query = trim($query);
+
+ if ($this->notFound($query, $cpage, $taxonomies)) {
+ $this->collection->remove($cpage);
+ continue;
+ }
+
+ if ($cpage->modular()) {
+ $this->collection->remove($cpage);
+ $parent = $cpage->parent();
+ $extras[$parent->path()] = ['slug' => $parent->slug()];
+ }
+
+ }
+ }
+ }
+
+ if (!empty($extras)) {
+ $this->collection->append($extras);
+ }
+
+ // use a configured sorting order if not already done
+ if (!$new_approach) {
+ $this->collection = $this->collection->order(
+ $this->config->get('plugins.simplesearch.order.by'),
+ $this->config->get('plugins.simplesearch.order.dir')
+ );
+ }
+
+ // if page doesn't have settings set, create a page
+ if (!isset($page->header()->simplesearch)) {
+ // create the search page
+ $page = new Page;
+ $page->init(new \SplFileInfo(__DIR__ . '/pages/simplesearch.md'));
+
+ // override the template is set in the config
+ $template_override = $this->config->get('plugins.simplesearch.template');
+ if ($template_override) {
+ $page->template($template_override);
+ }
+
+ // fix RuntimeException: Cannot override frozen service "page" issue
+ unset($this->grav['page']);
+
+ $this->grav['page'] = $page;
+ }
+ }
+
+ /**
+ * Filter the pages, and return only the pages the user has access to.
+ * Implementation based on Login Plugin authorizePage() function.
+ */
+ public function checkForPermissions($collection)
+ {
+ $user = $this->grav['user'];
+ $returnCollection = new Collection();
+ foreach ($collection as $page) {
+
+ $header = $page->header();
+ $rules = isset($header->access) ? (array)$header->access : [];
+
+ if ($this->config->get('plugins.login.parent_acl')) {
+ // If page has no ACL rules, use its parent's rules
+ if (!$rules) {
+ $parent = $page->parent();
+ while (!$rules and $parent) {
+ $header = $parent->header();
+ $rules = isset($header->access) ? (array)$header->access : [];
+ $parent = $parent->parent();
+ }
+ }
+ }
+
+ // Continue to the page if it has no ACL rules.
+ if (!$rules) {
+ $returnCollection[$page->path()] = ['slug' => $page->slug()];
+ } else {
+ // Continue to the page if user is authorized to access the page.
+ foreach ($rules as $rule => $value) {
+ if (is_array($value)) {
+ foreach ($value as $nested_rule => $nested_value) {
+ if ($user->authorize($rule . '.' . $nested_rule) == $nested_value) {
+ $returnCollection[$page->path()] = ['slug' => $page->slug()];
+ break;
+ }
+ }
+ } else {
+ if ($user->authorize($rule) == $value) {
+ $returnCollection[$page->path()] = ['slug' => $page->slug()];
+ break;
+ }
+ }
+ }
+ }
+ }
+ return $returnCollection;
+ }
+
+ /**
+ * Set needed variables to display the search results.
+ */
+ public function onTwigSiteVariables()
+ {
+ $twig = $this->grav['twig'];
+
+ if ($this->query) {
+ $twig->twig_vars['query'] = implode(', ', $this->query);
+ $twig->twig_vars['search_results'] = $this->collection;
+ }
+
+ if ($this->config->get('plugins.simplesearch.built_in_css')) {
+ $this->grav['assets']->add('plugin://simplesearch/css/simplesearch.css');
+ }
+
+
+ $this->grav['assets']->addJs('plugin://simplesearch/js/simplesearch.js', [ 'group' => 'bottom' ]);
+ }
+
+ private function matchText($haystack, $needle) {
+ if ($this->config->get('plugins.simplesearch.ignore_accented_characters')) {
+ setlocale(LC_ALL, 'en_US');
+ try {
+ $result = mb_stripos(iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $haystack), iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $needle));
+ } catch (\Exception $e) {
+ $result = mb_stripos($haystack, $needle);
+ }
+ setlocale(LC_ALL, '');
+ return $result;
+ } else {
+ return mb_stripos($haystack, $needle);
+ }
+ }
+
+ /**
+ * @param $query
+ * @param Page $page
+ * @param $taxonomies
+ * @return bool
+ */
+ private function notFound($query, $page, $taxonomies)
+ {
+ $searchable_types = ['title', 'content', 'taxonomy'];
+ $results = true;
+ $search_content = $this->config->get('plugins.simplesearch.search_content');
+
+ foreach ($searchable_types as $type) {
+ if ($type === 'title') {
+ $result = $this->matchText(strip_tags($page->title()), $query) === false;
+ } elseif ($type === 'taxonomy') {
+ if ($taxonomies === false) {
+ continue;
+ }
+ $page_taxonomies = $page->taxonomy();
+ $taxonomy_match = false;
+ foreach ((array) $page_taxonomies as $taxonomy => $values) {
+ // if taxonomies filter set, make sure taxonomy filter is valid
+ if (is_array($taxonomies) && !empty($taxonomies) && !in_array($taxonomy, $taxonomies)) {
+ continue;
+ }
+
+ $taxonomy_values = implode('|',$values);
+ if ($this->matchText($taxonomy_values, $query) !== false) {
+ $taxonomy_match = true;
+ break;
+ }
+ }
+ $result = !$taxonomy_match;
+ } else {
+ if ($search_content == 'raw') {
+ $content = $page->rawMarkdown();
+ } else {
+ $content = $page->content();
+ }
+ $result = $this->matchText(strip_tags($content), $query) === false;
+ }
+ $results = $results && $result;
+ if ($results === false ) {
+ break;
+ }
+ }
+ return $results;
+ }
+}
diff --git a/plugins/simplesearch/simplesearch.yaml b/plugins/simplesearch/simplesearch.yaml
new file mode 100644
index 00000000..6a7977e7
--- /dev/null
+++ b/plugins/simplesearch/simplesearch.yaml
@@ -0,0 +1,14 @@
+enabled: true
+built_in_css: true
+display_button: false
+min_query_length: 3
+route: /search
+search_content: rendered
+template: simplesearch_results
+filters:
+ category: blog
+filter_combinator: and
+ignore_accented_characters: false
+order:
+ by: date
+ dir: desc
diff --git a/plugins/simplesearch/templates/partials/simplesearch_base.html.twig b/plugins/simplesearch/templates/partials/simplesearch_base.html.twig
new file mode 100644
index 00000000..2ee42a20
--- /dev/null
+++ b/plugins/simplesearch/templates/partials/simplesearch_base.html.twig
@@ -0,0 +1 @@
+{% extends 'partials/base.html.twig' %}
diff --git a/plugins/simplesearch/templates/partials/simplesearch_item.html.twig b/plugins/simplesearch/templates/partials/simplesearch_item.html.twig
new file mode 100644
index 00000000..2fde834a
--- /dev/null
+++ b/plugins/simplesearch/templates/partials/simplesearch_item.html.twig
@@ -0,0 +1,23 @@
+
+
+ {% set banner = page.media.images|first %}
+
+ {% if banner %}
+
+ {% endif %}
+
+
+
+
+ {{ page.date|date(config.system.pages.dateformat.short) }}
+
+
+
{{ page.summary|raw }}
+
+
+
+
diff --git a/plugins/simplesearch/templates/partials/simplesearch_searchbox.html.twig b/plugins/simplesearch/templates/partials/simplesearch_searchbox.html.twig
new file mode 100644
index 00000000..1fa16a2d
--- /dev/null
+++ b/plugins/simplesearch/templates/partials/simplesearch_searchbox.html.twig
@@ -0,0 +1,22 @@
+{% set min_chars = config.get('plugins.simplesearch.min_query_length', 3) %}
+
diff --git a/plugins/simplesearch/templates/simplesearch_results.html.twig b/plugins/simplesearch/templates/simplesearch_results.html.twig
new file mode 100644
index 00000000..215eeafb
--- /dev/null
+++ b/plugins/simplesearch/templates/simplesearch_results.html.twig
@@ -0,0 +1,24 @@
+{% extends 'partials/simplesearch_base.html.twig' %}
+
+{% block content %}
+
+
+
+ {% include 'partials/simplesearch_searchbox.html.twig' %}
+
+
+
+ {% if query %}
+ {% set count = search_results ? search_results.count : 0 %}
+ {% if count == 1 %}
+ {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_SINGULAR"|t(query)|raw }}
+ {% else %}
+ {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_PLURAL"|t(query, count)|raw }}
+ {% endif %}
+ {% endif %}
+
+ {% for page in search_results %}
+ {% include 'partials/simplesearch_item.html.twig' with {'page':page} %}
+ {% endfor %}
+
+{% endblock %}
diff --git a/plugins/simplesearch/templates/simplesearch_results.json.twig b/plugins/simplesearch/templates/simplesearch_results.json.twig
new file mode 100644
index 00000000..d62f5029
--- /dev/null
+++ b/plugins/simplesearch/templates/simplesearch_results.json.twig
@@ -0,0 +1,5 @@
+{"results":[
+{%- for search_result in search_results -%}
+{{- search_result.route|json_encode -}}{{ not loop.last ? ',' }}
+{%- endfor -%}
+]}
diff --git a/screenshot.jpg b/screenshot.jpg
new file mode 100644
index 00000000..8fa0b4e6
Binary files /dev/null and b/screenshot.jpg differ
diff --git a/themes/.gitkeep b/themes/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/themes/learn2/CHANGELOG.md b/themes/learn2/CHANGELOG.md
new file mode 100644
index 00000000..929f7c47
--- /dev/null
+++ b/themes/learn2/CHANGELOG.md
@@ -0,0 +1,102 @@
+# v1.7.0
+## 05/xx/2017
+
+1. [](#improved)
+ * Added default page template.
+ * Added blueprints for docs and chapter pages
+
+# v1.6.3
+## 01/31/2017
+
+1. [](#bugfix)
+ * Fixed changelog date
+
+# v1.6.2
+## 01/31/2017
+
+1. [](#bugfix)
+ * Fixed a PHP 7.1 issue
+
+# v1.6.1
+## 01/24/2017
+
+1. [](#new)
+ * Updated to FontAwesome 4.7.0 with [Grav icon](http://fontawesome.io/icon/grav/)
+
+# v1.6.0
+## 07/14/2016
+
+1. [](#new)
+ * Added the spanish language
+1. [](#improved)
+ * Remove unneeded streams from Theme YAML
+ * Set the page language from Grav's Language configuration. Default to english.
+1. [](#bugfix)
+ * Fix an issue on iOS 9+ Safari scaling
+
+# v1.5.0
+## 01/06/2016
+
+1. [](#new)
+ * Added keyboard prev/next navigation
+1. [](#improved)
+ * Various language updates
+1. [](#bugfix)
+ * Fixed a typo in CSS
+
+# v1.4.2
+## 12/18/2015
+
+1. [](#bugfix)
+ * Fixed clipboard for Safari
+
+# v1.4.1
+## 12/11/2015
+
+1. [](#new)
+ * Support new sidebar scrollbar
+ * New subtle `subtitle` styling
+
+# v1.4.0
+## 10/07/2015
+
+1. [](#new)
+ * Added 1-click copy-to-clipboard feature for `code` and `pre` tags
+ * Added German translations
+ * Configurable root page
+1. [](#improved)
+ * Wrapped topbar to remove it from error pages
+1. [](#bugfix)
+ * Fix for bad YAML
+ * Fix for bad HTML in github note
+
+# v1.3.0
+## 09/11/2015
+
+1. [](#new)
+ * Added configurable Google analytics code
+
+# v1.2.0
+## 08/25/2015
+
+1. [](#improved)
+ * Added blueprints for Grav Admin plugin
+
+# v1.1.0
+## 07/19/2015
+
+1. [](#new)
+ * Added search highlight support
+ * Added a footer
+
+# v1.0.1
+## 06/2/2015
+
+1. [](#new)
+ * Added support for 2+ page levels
+
+# v1.0.0
+## 06/17/2015
+
+1. [](#new)
+ * ChangeLog started...
diff --git a/themes/learn2/LICENSE b/themes/learn2/LICENSE
new file mode 100644
index 00000000..484793ad
--- /dev/null
+++ b/themes/learn2/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Grav
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/themes/learn2/README.md b/themes/learn2/README.md
new file mode 100644
index 00000000..0160c67d
--- /dev/null
+++ b/themes/learn2/README.md
@@ -0,0 +1,79 @@
+# Learn2
+
+![Learn2](screenshot.jpg)
+
+Learn2 is the default [Grav Learn](http://learn.getgrav.org) theme. Simple, fast and modern.
+
+# Installation
+
+Installing the Learn2 theme can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the theme with a simple terminal command, while the manual method enables you to do so via a zip file.
+
+The theme is designed to be used to provide a documentation site. You can see this in action at [](http://learn.getgrav.org)
+
+## GPM Installation (Preferred)
+
+The simplest way to install this theme is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
+
+ bin/gpm install learn2
+
+This will install the Learn2 theme into your `/user/themes` directory within Grav. Its files can be found under `/your/site/grav/user/themes/learn2`.
+
+## Manual Installation
+
+To install this theme, just download the zip version of this repository and unzip it under `/your/site/grav/user/themes`. Then, rename the folder to `learn2`. You can find these files either on [GitHub](https://github.com/getgrav/grav-theme-learn2) or via [GetGrav.org](http://getgrav.org/downloads/themes).
+
+You should now have all the theme files under
+
+ /your/site/grav/user/themes/learn2
+
+>> NOTE: This theme is a modular component for Grav which requires the [Grav](http://github.com/getgrav/grav), [Error](https://github.com/getgrav/grav-theme-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins.
+
+# Updating
+
+As development for the Learn2 theme continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Learn2 is easy, and can be done through Grav's GPM system, as well as manually.
+
+## GPM Update (Preferred)
+
+The simplest way to update this theme is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
+
+ bin/gpm update learn2
+
+This command will check your Grav install to see if your Learn2 theme is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The theme will automatically update and clear Grav's cache.
+
+## Manual Update
+
+Manually updating Learn2 is pretty simple. Here is what you will need to do to get this done:
+
+* Delete the `your/site/user/themes/learn2` directory.
+* Download the new version of the Learn2 theme from either [GitHub](https://github.com/getgrav/grav-theme-learn2) or [GetGrav.org](http://getgrav.org/downloads/themes#extras).
+* Unzip the zip file in `your/site/user/themes` and rename the resulting folder to `learn2`.
+* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing `bin/grav clear-cache`.
+
+> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/themes`) will remain intact.
+
+## Features
+
+* Lightweight and minimal for optimal performance
+* Fully responsive with off-page mobile navigation
+* SCSS based CSS source files for easy customization
+* Built specifically for providing easy to read documentation
+* Fontawesome icon support
+
+### Supported Page Templates
+
+* "Docs" template
+* "Chapter" template
+* Error view template
+
+
+## Setup
+
+If you want to set Learn2 as the default theme, you can do so by following these steps:
+
+* Navigate to `/your/site/grav/user/config`.
+* Open the **system.yaml** file.
+* Change the `theme:` setting to `theme: learn2`.
+* Save your changes.
+* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in Terminal and typing `bin/grav clear-cache`.
+
+Once this is done, you should be able to see the new theme on the frontend. Keep in mind any customizations made to the previous theme will not be reflected as all of the theme and templating information is now being pulled from the **learn2** folder.
diff --git a/themes/learn2/blueprints.yaml b/themes/learn2/blueprints.yaml
new file mode 100644
index 00000000..34bff407
--- /dev/null
+++ b/themes/learn2/blueprints.yaml
@@ -0,0 +1,66 @@
+name: Learn2
+version: 1.6.3
+description: "Learn2 is a new modern documentation theme for Grav"
+icon: book
+author:
+ name: Team Grav
+ email: devs@getgrav.org
+ url: http://getgrav.org
+homepage: https://github.com/getgrav/grav-theme-learn2
+demo: http://learn.getgrav.org
+keywords: heme, docs, modern, fast, responsive, html5, css3
+bugs: https://github.com/getgrav/grav-theme-learn2/issues
+license: MIT
+
+form:
+ validation: loose
+ fields:
+ top_level_version:
+ type: toggle
+ label: Top Level Version
+ highlight: 1
+ default: 0
+ options:
+ 1: Enabled
+ 0: Disabled
+ validate:
+ type: bool
+
+ home_url:
+ type: text
+ label: Home URL
+ placeholder: http://getgrav.org
+ validate:
+ type: text
+
+ google_analytics_code:
+ type: text
+ label: Google Analytics Code
+ placeholder: UA-XXXXXXXX-X
+ validate:
+ type: text
+
+ github.position:
+ type: select
+ size: medium
+ classes: fancy
+ label: GitHub Position
+ options:
+ top: Top
+ bottom: Bottom
+ off: Off
+
+ github.tree:
+ type: text
+ label: GitHub Tree
+ default: https://github.com/getgrav/grav-skeleton-rtfm-site/blob/develop/
+
+ github.commits:
+ type: text
+ label: GitHub Tree
+ default: https://github.com/getgrav/grav-skeleton-rtfm-site/commits/develop/
+
+ github.commits:
+ type: text
+ label: GitHub Tree
+ default: https://github.com/getgrav/grav-skeleton-rtfm-site/commits/develop/
diff --git a/themes/learn2/blueprints/chapter.yaml b/themes/learn2/blueprints/chapter.yaml
new file mode 100644
index 00000000..baa2b916
--- /dev/null
+++ b/themes/learn2/blueprints/chapter.yaml
@@ -0,0 +1,4 @@
+title: Chapter
+'@extends':
+ type: default
+ context: blueprints://pages
diff --git a/themes/learn2/blueprints/docs.yaml b/themes/learn2/blueprints/docs.yaml
new file mode 100644
index 00000000..f1d430ab
--- /dev/null
+++ b/themes/learn2/blueprints/docs.yaml
@@ -0,0 +1,4 @@
+title: Docs
+'@extends':
+ type: default
+ context: blueprints://pages
diff --git a/themes/learn2/css-compiled/nucleus.css b/themes/learn2/css-compiled/nucleus.css
new file mode 100644
index 00000000..ed2c0a38
--- /dev/null
+++ b/themes/learn2/css-compiled/nucleus.css
@@ -0,0 +1,617 @@
+*, *::before, *::after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box; }
+
+@-webkit-viewport {
+ width: device-width; }
+@-moz-viewport {
+ width: device-width; }
+@-ms-viewport {
+ width: device-width; }
+@-o-viewport {
+ width: device-width; }
+@viewport {
+ width: device-width; }
+html {
+ font-size: 100%;
+ -ms-text-size-adjust: 100%;
+ -webkit-text-size-adjust: 100%; }
+
+body {
+ margin: 0; }
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+nav,
+section,
+summary {
+ display: block; }
+
+audio,
+canvas,
+progress,
+video {
+ display: inline-block;
+ vertical-align: baseline; }
+
+audio:not([controls]) {
+ display: none;
+ height: 0; }
+
+[hidden],
+template {
+ display: none; }
+
+a {
+ background: transparent;
+ text-decoration: none; }
+
+a:active,
+a:hover {
+ outline: 0; }
+
+abbr[title] {
+ border-bottom: 1px dotted; }
+
+b,
+strong {
+ font-weight: bold; }
+
+dfn {
+ font-style: italic; }
+
+mark {
+ background: #FFFF27;
+ color: #333; }
+
+sub,
+sup {
+ font-size: 0.8rem;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline; }
+
+sup {
+ top: -0.5em; }
+
+sub {
+ bottom: -0.25em; }
+
+img {
+ border: 0;
+ max-width: 100%; }
+
+svg:not(:root) {
+ overflow: hidden; }
+
+figure {
+ margin: 1em 40px; }
+
+hr {
+ height: 0; }
+
+pre {
+ overflow: auto; }
+
+button,
+input,
+optgroup,
+select,
+textarea {
+ color: inherit;
+ font: inherit;
+ margin: 0; }
+
+button {
+ overflow: visible; }
+
+button,
+select {
+ text-transform: none; }
+
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+ -webkit-appearance: button;
+ cursor: pointer; }
+
+button[disabled],
+html input[disabled] {
+ cursor: default; }
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0; }
+
+input {
+ line-height: normal; }
+
+input[type="checkbox"],
+input[type="radio"] {
+ padding: 0; }
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+ height: auto; }
+
+input[type="search"] {
+ -webkit-appearance: textfield; }
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none; }
+
+legend {
+ border: 0;
+ padding: 0; }
+
+textarea {
+ overflow: auto; }
+
+optgroup {
+ font-weight: bold; }
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ table-layout: fixed;
+ width: 100%; }
+
+tr, td, th {
+ vertical-align: middle; }
+
+th, td {
+ padding: 0.425rem 0; }
+
+th {
+ text-align: left; }
+
+.container {
+ width: 75em;
+ margin: 0 auto;
+ padding: 0; }
+ @media only all and (min-width: 60em) and (max-width: 74.938em) {
+ .container {
+ width: 60em; } }
+ @media only all and (min-width: 48em) and (max-width: 59.938em) {
+ .container {
+ width: 48em; } }
+ @media only all and (min-width: 30.063em) and (max-width: 47.938em) {
+ .container {
+ width: 30em; } }
+ @media only all and (max-width: 30em) {
+ .container {
+ width: 100%; } }
+
+.grid {
+ display: -webkit-box;
+ display: -moz-box;
+ display: box;
+ display: -webkit-flex;
+ display: -moz-flex;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-flex-flow: row;
+ -moz-flex-flow: row;
+ flex-flow: row;
+ list-style: none;
+ margin: 0;
+ padding: 0; }
+ @media only all and (max-width: 47.938em) {
+ .grid {
+ -webkit-flex-flow: row wrap;
+ -moz-flex-flow: row wrap;
+ flex-flow: row wrap; } }
+
+.block {
+ -webkit-box-flex: 1;
+ -moz-box-flex: 1;
+ box-flex: 1;
+ -webkit-flex: 1;
+ -moz-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
+ min-width: 0;
+ min-height: 0; }
+ @media only all and (max-width: 47.938em) {
+ .block {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 100%;
+ -moz-flex: 0 100%;
+ -ms-flex: 0 100%;
+ flex: 0 100%; } }
+
+.content {
+ margin: 0.625rem;
+ padding: 0.938rem; }
+
+@media only all and (max-width: 47.938em) {
+ body [class*="size-"] {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 100%;
+ -moz-flex: 0 100%;
+ -ms-flex: 0 100%;
+ flex: 0 100%; } }
+
+.size-1-2 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 50%;
+ -moz-flex: 0 50%;
+ -ms-flex: 0 50%;
+ flex: 0 50%; }
+
+.size-1-3 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 33.33333%;
+ -moz-flex: 0 33.33333%;
+ -ms-flex: 0 33.33333%;
+ flex: 0 33.33333%; }
+
+.size-1-4 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 25%;
+ -moz-flex: 0 25%;
+ -ms-flex: 0 25%;
+ flex: 0 25%; }
+
+.size-1-5 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 20%;
+ -moz-flex: 0 20%;
+ -ms-flex: 0 20%;
+ flex: 0 20%; }
+
+.size-1-6 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 16.66667%;
+ -moz-flex: 0 16.66667%;
+ -ms-flex: 0 16.66667%;
+ flex: 0 16.66667%; }
+
+.size-1-7 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 14.28571%;
+ -moz-flex: 0 14.28571%;
+ -ms-flex: 0 14.28571%;
+ flex: 0 14.28571%; }
+
+.size-1-8 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 12.5%;
+ -moz-flex: 0 12.5%;
+ -ms-flex: 0 12.5%;
+ flex: 0 12.5%; }
+
+.size-1-9 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 11.11111%;
+ -moz-flex: 0 11.11111%;
+ -ms-flex: 0 11.11111%;
+ flex: 0 11.11111%; }
+
+.size-1-10 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 10%;
+ -moz-flex: 0 10%;
+ -ms-flex: 0 10%;
+ flex: 0 10%; }
+
+.size-1-11 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 9.09091%;
+ -moz-flex: 0 9.09091%;
+ -ms-flex: 0 9.09091%;
+ flex: 0 9.09091%; }
+
+.size-1-12 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 8.33333%;
+ -moz-flex: 0 8.33333%;
+ -ms-flex: 0 8.33333%;
+ flex: 0 8.33333%; }
+
+@media only all and (min-width: 48em) and (max-width: 59.938em) {
+ .size-tablet-1-2 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 50%;
+ -moz-flex: 0 50%;
+ -ms-flex: 0 50%;
+ flex: 0 50%; }
+
+ .size-tablet-1-3 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 33.33333%;
+ -moz-flex: 0 33.33333%;
+ -ms-flex: 0 33.33333%;
+ flex: 0 33.33333%; }
+
+ .size-tablet-1-4 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 25%;
+ -moz-flex: 0 25%;
+ -ms-flex: 0 25%;
+ flex: 0 25%; }
+
+ .size-tablet-1-5 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 20%;
+ -moz-flex: 0 20%;
+ -ms-flex: 0 20%;
+ flex: 0 20%; }
+
+ .size-tablet-1-6 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 16.66667%;
+ -moz-flex: 0 16.66667%;
+ -ms-flex: 0 16.66667%;
+ flex: 0 16.66667%; }
+
+ .size-tablet-1-7 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 14.28571%;
+ -moz-flex: 0 14.28571%;
+ -ms-flex: 0 14.28571%;
+ flex: 0 14.28571%; }
+
+ .size-tablet-1-8 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 12.5%;
+ -moz-flex: 0 12.5%;
+ -ms-flex: 0 12.5%;
+ flex: 0 12.5%; }
+
+ .size-tablet-1-9 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 11.11111%;
+ -moz-flex: 0 11.11111%;
+ -ms-flex: 0 11.11111%;
+ flex: 0 11.11111%; }
+
+ .size-tablet-1-10 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 10%;
+ -moz-flex: 0 10%;
+ -ms-flex: 0 10%;
+ flex: 0 10%; }
+
+ .size-tablet-1-11 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 9.09091%;
+ -moz-flex: 0 9.09091%;
+ -ms-flex: 0 9.09091%;
+ flex: 0 9.09091%; }
+
+ .size-tablet-1-12 {
+ -webkit-box-flex: 0;
+ -moz-box-flex: 0;
+ box-flex: 0;
+ -webkit-flex: 0 8.33333%;
+ -moz-flex: 0 8.33333%;
+ -ms-flex: 0 8.33333%;
+ flex: 0 8.33333%; } }
+@media only all and (max-width: 47.938em) {
+ @supports not (flex-wrap: wrap) {
+ .grid {
+ display: block;
+ -webkit-box-lines: inherit;
+ -moz-box-lines: inherit;
+ box-lines: inherit;
+ -webkit-flex-wrap: inherit;
+ -moz-flex-wrap: inherit;
+ -ms-flex-wrap: inherit;
+ flex-wrap: inherit; }
+
+ .block {
+ display: block;
+ -webkit-box-flex: inherit;
+ -moz-box-flex: inherit;
+ box-flex: inherit;
+ -webkit-flex: inherit;
+ -moz-flex: inherit;
+ -ms-flex: inherit;
+ flex: inherit; } } }
+.first-block {
+ -webkit-box-ordinal-group: 0;
+ -webkit-order: -1;
+ -ms-flex-order: -1;
+ order: -1; }
+
+.last-block {
+ -webkit-box-ordinal-group: 2;
+ -webkit-order: 1;
+ -ms-flex-order: 1;
+ order: 1; }
+
+.fixed-blocks {
+ -webkit-flex-flow: row wrap;
+ -moz-flex-flow: row wrap;
+ flex-flow: row wrap; }
+ .fixed-blocks .block {
+ -webkit-box-flex: inherit;
+ -moz-box-flex: inherit;
+ box-flex: inherit;
+ -webkit-flex: inherit;
+ -moz-flex: inherit;
+ -ms-flex: inherit;
+ flex: inherit;
+ width: 25%; }
+ @media only all and (min-width: 60em) and (max-width: 74.938em) {
+ .fixed-blocks .block {
+ width: 33.33333%; } }
+ @media only all and (min-width: 48em) and (max-width: 59.938em) {
+ .fixed-blocks .block {
+ width: 50%; } }
+ @media only all and (max-width: 47.938em) {
+ .fixed-blocks .block {
+ width: 100%; } }
+
+body {
+ font-size: 1.05rem;
+ line-height: 1.7; }
+
+h1, h2, h3, h4, h5, h6 {
+ margin: 0.85rem 0 1.7rem 0;
+ text-rendering: optimizeLegibility; }
+
+h1 {
+ font-size: 3.25rem; }
+
+h2 {
+ font-size: 2.55rem; }
+
+h3 {
+ font-size: 2.15rem; }
+
+h4 {
+ font-size: 1.8rem; }
+
+h5 {
+ font-size: 1.4rem; }
+
+h6 {
+ font-size: 0.9rem; }
+
+p {
+ margin: 1.7rem 0; }
+
+ul, ol {
+ margin-top: 1.7rem;
+ margin-bottom: 1.7rem; }
+ ul ul, ul ol, ol ul, ol ol {
+ margin-top: 0;
+ margin-bottom: 0; }
+
+blockquote {
+ margin: 1.7rem 0;
+ padding-left: 0.85rem; }
+
+cite {
+ display: block;
+ font-size: 0.925rem; }
+ cite:before {
+ content: "\2014 \0020"; }
+
+pre {
+ margin: 1.7rem 0;
+ padding: 0.938rem; }
+
+code {
+ vertical-align: bottom; }
+
+small {
+ font-size: 0.925rem; }
+
+hr {
+ border-left: none;
+ border-right: none;
+ border-top: none;
+ margin: 1.7rem 0; }
+
+fieldset {
+ border: 0;
+ padding: 0.938rem;
+ margin: 0 0 1.7rem 0; }
+
+input,
+label,
+select {
+ display: block; }
+
+label {
+ margin-bottom: 0.425rem; }
+ label.required:after {
+ content: "*"; }
+ label abbr {
+ display: none; }
+
+textarea, input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select[multiple=multiple] {
+ -webkit-transition: border-color;
+ -moz-transition: border-color;
+ transition: border-color;
+ border-radius: 0.1875rem;
+ margin-bottom: 0.85rem;
+ padding: 0.425rem 0.425rem;
+ width: 100%; }
+ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus {
+ outline: none; }
+
+textarea {
+ resize: vertical; }
+
+input[type="checkbox"], input[type="radio"] {
+ display: inline;
+ margin-right: 0.425rem; }
+
+input[type="file"] {
+ width: 100%; }
+
+select {
+ width: auto;
+ max-width: 100%;
+ margin-bottom: 1.7rem; }
+
+button,
+input[type="submit"] {
+ cursor: pointer;
+ user-select: none;
+ vertical-align: middle;
+ white-space: nowrap;
+ border: inherit; }
+
+/*# sourceMappingURL=nucleus.css.map */
diff --git a/themes/learn2/css-compiled/nucleus.css.map b/themes/learn2/css-compiled/nucleus.css.map
new file mode 100644
index 00000000..8e4a50ef
--- /dev/null
+++ b/themes/learn2/css-compiled/nucleus.css.map
@@ -0,0 +1,7 @@
+{
+"version": 3,
+"mappings": "AAAA,sBAAuB;ECSf,kBAAoB,EDRP,UAAU;ECavB,eAAiB,EDbJ,UAAU;EC4BvB,UAAY,ED5BC,UAAU;;AAG/B,iBAAqC;EAAnB,KAAK,EAAC,YAAY;AACpC,cAAkC;EAAnB,KAAK,EAAC,YAAY;AACjC,aAAiC;EAAnB,KAAK,EAAC,YAAY;AAChC,YAAgC;EAAnB,KAAK,EAAC,YAAY;AAC/B,SAA6B;EAAnB,KAAK,EAAC,YAAY;AAE5B,IAAK;EACJ,SAAS,EAAE,IAAI;EACf,oBAAoB,EAAE,IAAI;EAC1B,wBAAwB,EAAE,IAAI;;AAG/B,IAAK;EACJ,MAAM,EAAE,CAAC;;AAGV;;;;;;;;;;;OAWQ;EACP,OAAO,EAAE,KAAK;;AAGf;;;KAGM;EACL,OAAO,EAAE,YAAY;EACrB,cAAc,EAAE,QAAQ;;AAGzB,qBAAsB;EACrB,OAAO,EAAE,IAAI;EACb,MAAM,EAAE,CAAC;;AAGV;QACS;EACR,OAAO,EAAE,IAAI;;AAGd,CAAE;EACD,UAAU,EAAE,WAAW;EACvB,eAAe,EAAE,IAAI;;AAGtB;OACQ;EACP,OAAO,EAAE,CAAC;;AAGX,WAAY;EACX,aAAa,EAAE,UAAU;;AAG1B;MACO;EACN,WAAW,EAAE,IAAI;;AAGlB,GAAI;EACH,UAAU,EAAE,MAAM;;AAGnB,IAAK;EACJ,UAAU,EAAE,OAAO;EACnB,KAAK,EAAE,IAAI;;AAGZ;GACI;EACH,SAAS,EAAE,MAAuB;EAClC,WAAW,EAAE,CAAC;EACd,QAAQ,EAAE,QAAQ;EAClB,cAAc,EAAE,QAAQ;;AAGzB,GAAI;EACH,GAAG,EAAE,MAAM;;AAGZ,GAAI;EACH,MAAM,EAAE,OAAO;;AAGhB,GAAI;EACH,MAAM,EAAE,CAAC;EACT,SAAS,EAAE,IAAI;;AAGhB,cAAe;EACd,QAAQ,EAAE,MAAM;;AAGjB,MAAO;EACN,MAAM,EAAE,QAAQ;;AAGjB,EAAG;EACF,MAAM,EAAE,CAAC;;AAGV,GAAI;EACH,QAAQ,EAAE,IAAI;;AAUf;;;;QAIS;EACR,KAAK,EAAE,OAAO;EACd,IAAI,EAAE,OAAO;EACb,MAAM,EAAE,CAAC;;AAGV,MAAO;EACN,QAAQ,EAAE,OAAO;;AAGlB;MACO;EACN,cAAc,EAAE,IAAI;;AAGrB;;;oBAGqB;EACpB,kBAAkB,EAAE,MAAM;EAC1B,MAAM,EAAE,OAAO;;AAGhB;oBACqB;EACpB,MAAM,EAAE,OAAO;;AAGhB;uBACwB;EACvB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;AAGX,KAAM;EACL,WAAW,EAAE,MAAM;;AAGpB;mBACoB;EACnB,OAAO,EAAE,CAAC;;AAGX;+CACgD;EAC/C,MAAM,EAAE,IAAI;;AAGb,oBAAqB;EACpB,kBAAkB,EAAE,SAAS;;AAG9B;+CACgD;EAC/C,kBAAkB,EAAE,IAAI;;AAGzB,MAAO;EACN,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;AAGX,QAAS;EACR,QAAQ,EAAE,IAAI;;AAGf,QAAS;EACR,WAAW,EAAE,IAAI;;AAGlB,KAAM;EACL,eAAe,EAAE,QAAQ;EACzB,cAAc,EAAE,CAAC;EACjB,YAAY,EAAE,KAAK;EACnB,KAAK,EAAE,IAAI;;AAGZ,UAAW;EACV,cAAc,EAAE,MAAM;;AAGvB,MAAO;EACN,OAAO,EAAE,UAAuB;;AAGjC,EAAG;EACF,UAAU,EAAE,IAAI;;AEtNjB,UAAW;EACV,KAAK,ECDqB,IAAQ;EDElC,MAAM,EAAE,MAAM;EACd,OAAO,EAAE,CAAC;EEET,+DAA4G;IFL9G,UAAW;MAKT,KAAK,ECJgB,IAAQ;ECO7B,+DAAqG;IFRvG,UAAW;MAQT,KAAK,ECNe,IAAQ;ECS5B,mEAAkH;IFXpH,UAAW;MAWT,KAAK,ECRmB,IAAQ;ECWhC,qCAA+D;IFdjE,UAAW;MAcT,KAAK,ECVe,IAAI;;ADe1B,KAAM;EGiDE,OAAO,EAAE,WAAW;EACpB,OAAO,EAAE,QAAQ;EACjB,OAAO,EAAE,GAAG;EAGZ,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,SAAS;EAClB,OAAO,EAAE,WAAW;EACpB,OAAO,EAAE,IAAI;EJpEb,iBAAoB,ECaR,GAAG;EDRf,cAAiB,ECQL,GAAG;EDOf,SAAY,ECPA,GAAG;EACtB,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;EEJT,yCAAiE;IFDnE,KAAM;MDXE,iBAAoB,ECkBP,QAAQ;MDbrB,cAAiB,ECaJ,QAAQ;MDErB,SAAY,ECFC,QAAQ;;AAI7B,MAAO;EDtBC,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECuBb,CAAC;EDlBR,SAAiB,ECkBV,CAAC;EDbR,QAAgB,ECaT,CAAC;EDHR,IAAY,ECGL,CAAC;EACZ,SAAS,EAAE,CAAC;EACZ,UAAU,EAAE,CAAC;EEbf,yCAAiE;IFUnE,MAAO;MDtBC,gBAAoB,EI6FZ,CAAc;MJxFtB,aAAiB,EIwFT,CAAc;MJzEtB,QAAY,EIyEJ,CAAc;MJ7FtB,YAAoB,EC2BZ,MAAM;MDtBd,SAAiB,ECsBT,MAAM;MDjBd,QAAgB,ECiBR,MAAM;MDPd,IAAY,ECOJ,MAAM;;AAKtB,QAAS;EACR,MAAM,EIzCa,QAAQ;EJ0C3B,OAAO,EIzCa,QAAQ;;AFmB3B,yCAAiE;EFyBnE,qBAAsB;IDrCd,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,ECuCZ,MAAM;IDlCd,SAAiB,ECkCT,MAAM;ID7Bd,QAAgB,EC6BR,MAAM;IDnBd,IAAY,ECmBJ,MAAM;;AAKtB,SAAU;ED5CF,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,EC6Cb,KAAiB;EDxCxB,SAAiB,ECwCV,KAAiB;EDnCxB,QAAgB,ECmCT,KAAiB;EDzBxB,IAAY,ECyBL,KAAiB;;AAGhC,SAAU;EDhDF,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECiDb,WAAiB;ED5CxB,SAAiB,EC4CV,WAAiB;EDvCxB,QAAgB,ECuCT,WAAiB;ED7BxB,IAAY,EC6BL,WAAiB;;AAGhC,SAAU;EDpDF,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECqDb,KAAiB;EDhDxB,SAAiB,ECgDV,KAAiB;ED3CxB,QAAgB,EC2CT,KAAiB;EDjCxB,IAAY,ECiCL,KAAiB;;AAGhC,SAAU;EDxDF,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECyDb,KAAiB;EDpDxB,SAAiB,ECoDV,KAAiB;ED/CxB,QAAgB,EC+CT,KAAiB;EDrCxB,IAAY,ECqCL,KAAiB;;AAGhC,SAAU;ED5DF,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,EC6Db,WAAiB;EDxDxB,SAAiB,ECwDV,WAAiB;EDnDxB,QAAgB,ECmDT,WAAiB;EDzCxB,IAAY,ECyCL,WAAiB;;AAGhC,SAAU;EDhEF,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECiEb,WAAiB;ED5DxB,SAAiB,EC4DV,WAAiB;EDvDxB,QAAgB,ECuDT,WAAiB;ED7CxB,IAAY,EC6CL,WAAiB;;AAGhC,SAAU;EDpEF,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECqEb,OAAiB;EDhExB,SAAiB,ECgEV,OAAiB;ED3DxB,QAAgB,EC2DT,OAAiB;EDjDxB,IAAY,ECiDL,OAAiB;;AAGhC,SAAU;EDxEF,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECyEb,WAAiB;EDpExB,SAAiB,ECoEV,WAAiB;ED/DxB,QAAgB,EC+DT,WAAiB;EDrDxB,IAAY,ECqDL,WAAiB;;AAGhC,UAAW;ED5EH,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,EC6Eb,KAAkB;EDxEzB,SAAiB,ECwEV,KAAkB;EDnEzB,QAAgB,ECmET,KAAkB;EDzDzB,IAAY,ECyDL,KAAkB;;AAGjC,UAAW;EDhFH,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECiFb,UAAkB;ED5EzB,SAAiB,EC4EV,UAAkB;EDvEzB,QAAgB,ECuET,UAAkB;ED7DzB,IAAY,EC6DL,UAAkB;;AAGjC,UAAW;EDpFH,gBAAoB,EI6FZ,CAAc;EJxFtB,aAAiB,EIwFT,CAAc;EJzEtB,QAAY,EIyEJ,CAAc;EJ7FtB,YAAoB,ECqFb,UAAkB;EDhFzB,SAAiB,ECgFV,UAAkB;ED3EzB,QAAgB,EC2ET,UAAkB;EDjEzB,IAAY,ECiEL,UAAkB;;AErF/B,+DAAqG;EFyFtG,gBAAiB;IDzFV,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,EC0FZ,KAAiB;IDrFzB,SAAiB,ECqFT,KAAiB;IDhFzB,QAAgB,ECgFR,KAAiB;IDtEzB,IAAY,ECsEJ,KAAiB;;EAGhC,gBAAiB;ID7FV,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,EC8FZ,WAAiB;IDzFzB,SAAiB,ECyFT,WAAiB;IDpFzB,QAAgB,ECoFR,WAAiB;ID1EzB,IAAY,EC0EJ,WAAiB;;EAGhC,gBAAiB;IDjGV,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,ECkGZ,KAAiB;ID7FzB,SAAiB,EC6FT,KAAiB;IDxFzB,QAAgB,ECwFR,KAAiB;ID9EzB,IAAY,EC8EJ,KAAiB;;EAGhC,gBAAiB;IDrGV,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,ECsGZ,KAAiB;IDjGzB,SAAiB,ECiGT,KAAiB;ID5FzB,QAAgB,EC4FR,KAAiB;IDlFzB,IAAY,ECkFJ,KAAiB;;EAGhC,gBAAiB;IDzGV,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,EC0GZ,WAAiB;IDrGzB,SAAiB,ECqGT,WAAiB;IDhGzB,QAAgB,ECgGR,WAAiB;IDtFzB,IAAY,ECsFJ,WAAiB;;EAGhC,gBAAiB;ID7GV,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,EC8GZ,WAAiB;IDzGzB,SAAiB,ECyGT,WAAiB;IDpGzB,QAAgB,ECoGR,WAAiB;ID1FzB,IAAY,EC0FJ,WAAiB;;EAGhC,gBAAiB;IDjHV,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,ECkHZ,OAAiB;ID7GzB,SAAiB,EC6GT,OAAiB;IDxGzB,QAAgB,ECwGR,OAAiB;ID9FzB,IAAY,EC8FJ,OAAiB;;EAGhC,gBAAiB;IDrHV,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,ECsHZ,WAAiB;IDjHzB,SAAiB,ECiHT,WAAiB;ID5GzB,QAAgB,EC4GR,WAAiB;IDlGzB,IAAY,ECkGJ,WAAiB;;EAGhC,iBAAkB;IDzHX,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,EC0HZ,KAAkB;IDrH1B,SAAiB,ECqHT,KAAkB;IDhH1B,QAAgB,ECgHR,KAAkB;IDtG1B,IAAY,ECsGJ,KAAkB;;EAGjC,iBAAkB;ID7HX,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,EC8HZ,UAAkB;IDzH1B,SAAiB,ECyHT,UAAkB;IDpH1B,QAAgB,ECoHR,UAAkB;ID1G1B,IAAY,EC0GJ,UAAkB;;EAGjC,iBAAkB;IDjIX,gBAAoB,EI6FZ,CAAc;IJxFtB,aAAiB,EIwFT,CAAc;IJzEtB,QAAY,EIyEJ,CAAc;IJ7FtB,YAAoB,ECkIZ,UAAkB;ID7H1B,SAAiB,EC6HT,UAAkB;IDxH1B,QAAgB,ECwHR,UAAkB;ID9G1B,IAAY,EC8GJ,UAAkB;AEtHhC,yCAAiE;EF4HlE,+BASC;IARA,KAAM;MACL,OAAO,EAAE,KAAK;MD1IT,iBAAoB,EIsJZ,OAAM;MJjJd,cAAiB,EIiJT,OAAM;MJlId,SAAY,EIkIJ,OAAM;MJtJd,iBAAoB,EIsJZ,OAAM;MJjJd,cAAiB,EIiJT,OAAM;MJ5Id,aAAgB,EI4IR,OAAM;MJlId,SAAY,EIkIJ,OAAM;;IHTpB,MAAO;MACN,OAAO,EAAE,KAAK;MD9IT,gBAAoB,EI6FZ,OAAc;MJxFtB,aAAiB,EIwFT,OAAc;MJzEtB,QAAY,EIyEJ,OAAc;MJ7FtB,YAAoB,EI6FZ,OAAc;MJxFtB,SAAiB,EIwFT,OAAc;MJnFtB,QAAgB,EImFR,OAAc;MJzEtB,IAAY,EIyEJ,OAAc;AHwD9B,YAAa;EACX,yBAAyB,EAAE,CAAC;EAC5B,aAAa,EAAE,EAAE;EACjB,cAAc,EAAE,EAAE;EAClB,KAAK,EAAE,EAAE;;AAGX,WAAY;EACV,yBAAyB,EAAE,CAAC;EAC5B,aAAa,EAAE,CAAC;EAChB,cAAc,EAAE,CAAC;EACjB,KAAK,EAAE,CAAC;;AAIV,aAAc;EDpKN,iBAAoB,ECqKR,QAAQ;EDhKpB,cAAiB,ECgKL,QAAQ;EDjJpB,SAAY,ECiJA,QAAQ;EAC3B,oBAAO;IDtKA,gBAAoB,EI6FZ,OAAc;IJxFtB,aAAiB,EIwFT,OAAc;IJzEtB,QAAY,EIyEJ,OAAc;IJ7FtB,YAAoB,EI6FZ,OAAc;IJxFtB,SAAiB,EIwFT,OAAc;IJnFtB,QAAgB,EImFR,OAAc;IJzEtB,IAAY,EIyEJ,OAAc;IH2E5B,KAAK,EI5Ke,GAAe;IFCnC,+DAA4G;MFyK7G,oBAAO;QAIL,KAAK,EI7KgB,SAAe;IFGrC,+DAAqG;MFsKtG,oBAAO;QAOL,KAAK,EI/Ke,GAAe;IFcpC,yCAAiE;MF0JlE,oBAAO;QAUL,KAAK,EAAE,IAAI;;AKxLd,IAAK;EACJ,SAAS,ECDU,OAAO;EDE1B,WAAW,ECDU,GAAG;;ADKzB,sBAAuB;EACtB,MAAM,EAAE,kBAAuC;EAC/C,cAAc,EAAE,kBAAkB;;AAGnC,EAAG;EACF,SAAS,ECRsB,OAAuB;;ADWvD,EAAG;EACF,SAAS,ECXsB,OAAuB;;ADcvD,EAAG;EACF,SAAS,ECdsB,OAAuB;;ADiBvD,EAAG;EACF,SAAS,ECjBsB,MAAuB;;ADoBvD,EAAG;EACF,SAAS,ECpBsB,MAAuB;;ADuBvD,EAAG;EACF,SAAS,ECvBsB,MAAuB;;AD2BvD,CAAE;EACD,MAAM,EAAE,QAAiB;;AAI1B,MAAO;EACN,UAAU,EC9BS,MAAwB;ED+B3C,aAAa,EC/BM,MAAwB;EDgC3C,0BAAO;IACN,UAAU,EAAE,CAAC;IACb,aAAa,EAAE,CAAC;;AAKlB,UAAW;EACV,MAAM,EAAE,QAAiB;EACzB,YAAY,EAAE,OAAmB;;AAGlC,IAAK;EACJ,OAAO,EAAE,KAAK;EACd,SAAS,EAAE,QAAuB;EAClC,WAAS;IACJ,OAAO,EAAE,aAAa;;AAK5B,GAAI;EACH,MAAM,EAAE,QAAiB;EACxB,OAAO,EDlEY,QAAQ;;ACqE7B,IAAK;EACJ,cAAc,EAAE,MAAM;;AAIvB,KAAM;EACL,SAAS,EAAE,QAAuB;;AAGnC,EAAG;EACF,WAAW,EAAE,IAAI;EACjB,YAAY,EAAE,IAAI;EAClB,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,QAAiB;;AEpF1B,QAAS;EACR,MAAM,EAAE,CAAC;EACT,OAAO,EHAa,QAAQ;EGC5B,MAAM,EAAE,YAAqB;;AAG9B;;MAEO;EACN,OAAO,EAAE,KAAK;;AAGf,KAAM;EACL,aAAa,EAAE,QAAmB;EAElC,oBAAiB;IAChB,OAAO,EAAE,GAAG;EAGb,UAAK;IACJ,OAAO,EAAE,IAAI;;AAIf,kVAAyD;ERfjD,kBAAoB,EAAE,YAAM;EAK5B,eAAiB,EAAE,YAAM;EAezB,UAAY,EAAE,YAAM;EQH3B,aAAa,ECzBS,SAAM;ED0B5B,aAAa,EAAE,OAAmB;EAClC,OAAO,EAAE,iBAA2C;EACpD,KAAK,EAAE,IAAI;EAEX,kbAAQ;IACP,OAAO,EAAE,IAAI;;AAIf,QAAS;EACR,MAAM,EAAE,QAAQ;;AAGjB,2CAA4C;EAC3C,OAAO,EAAE,MAAM;EACf,YAAY,EAAE,QAAmB;;AAGlC,kBAAmB;EAClB,KAAK,EAAE,IAAI;;AAGZ,MAAO;EACN,KAAK,EAAE,IAAI;EACX,SAAS,EAAE,IAAI;EACf,aAAa,EDvCM,MAAwB;;AC0C5C;oBACqB;EACpB,MAAM,EAAE,OAAO;EACf,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,MAAM;EACtB,WAAW,EAAE,MAAM;EACnB,MAAM,EAAE,OAAO",
+"sources": ["../scss/nucleus/_core.scss","../scss/vendor/bourbon/addons/_prefixer.scss","../scss/nucleus/_flex.scss","../scss/configuration/nucleus/_breakpoints.scss","../scss/nucleus/mixins/_breakpoints.scss","../scss/vendor/bourbon/css3/_flex-box.scss","../scss/configuration/nucleus/_layout.scss","../scss/nucleus/_typography.scss","../scss/configuration/nucleus/_typography.scss","../scss/nucleus/_forms.scss","../scss/configuration/nucleus/_core.scss"],
+"names": [],
+"file": "nucleus.css"
+}
\ No newline at end of file
diff --git a/themes/learn2/css-compiled/theme.css b/themes/learn2/css-compiled/theme.css
new file mode 100644
index 00000000..2965e5fd
--- /dev/null
+++ b/themes/learn2/css-compiled/theme.css
@@ -0,0 +1,940 @@
+@charset "UTF-8";
+@import url(//fonts.googleapis.com/css?family=Montserrat:400|Muli:300,400|Inconsolata);
+#top-github-link, #body #breadcrumbs {
+ position: relative;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ -moz-transform: translateY(-50%);
+ -o-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%); }
+
+.button, .button-secondary {
+ display: inline-block;
+ padding: 7px 12px; }
+ .button:active, .button-secondary:active {
+ margin: 2px 0 -2px 0; }
+
+body {
+ background: #fff;
+ color: #555;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale; }
+
+a {
+ color: #1694CA; }
+ a:hover {
+ color: #0e6185; }
+
+pre {
+ position: relative; }
+
+.bg {
+ background: #fff;
+ border: 1px solid #eaeaea; }
+
+b, strong, label, th {
+ font-weight: 600; }
+
+.default-animation, #header #logo-svg, #header #logo-svg path, #sidebar, #sidebar ul, #body, #body .padding, #body .nav {
+ -webkit-transition: all 0.5s ease;
+ -moz-transition: all 0.5s ease;
+ transition: all 0.5s ease; }
+
+fieldset {
+ border: 1px solid #ddd; }
+
+textarea, input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select[multiple=multiple] {
+ background-color: white;
+ border: 1px solid #ddd;
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06); }
+ textarea:hover, input[type="email"]:hover, input[type="number"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="text"]:hover, input[type="url"]:hover, input[type="color"]:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="month"]:hover, input[type="time"]:hover, input[type="week"]:hover, select[multiple=multiple]:hover {
+ border-color: #c4c4c4; }
+ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus {
+ border-color: #1694CA;
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 5px rgba(19, 131, 179, 0.7); }
+
+#header {
+ background: #1694CA;
+ color: #fff;
+ text-align: center;
+ padding: 1rem; }
+ #header a {
+ display: inline-block; }
+ #header #logo-svg {
+ width: 8rem;
+ height: 2rem; }
+ #header #logo-svg path {
+ fill: #fff; }
+
+.searchbox {
+ margin-top: 0.5rem;
+ position: relative;
+ border: 1px solid #19a5e1;
+ background: #1383b3;
+ border-radius: 4px; }
+ .searchbox label {
+ color: rgba(255, 255, 255, 0.8);
+ position: absolute;
+ left: 10px;
+ top: 3px; }
+ .searchbox span {
+ color: rgba(255, 255, 255, 0.6);
+ position: absolute;
+ right: 10px;
+ top: 3px;
+ cursor: pointer; }
+ .searchbox span:hover {
+ color: rgba(255, 255, 255, 0.9); }
+ .searchbox input {
+ display: inline-block;
+ color: #fff;
+ width: 100%;
+ height: 30px;
+ background: transparent;
+ border: 0;
+ padding: 0 25px 0 30px;
+ margin: 0;
+ font-weight: 400; }
+ .searchbox input::-webkit-input-placeholder {
+ color: rgba(255, 255, 255, 0.6); }
+ .searchbox input::-moz-placeholder {
+ color: rgba(255, 255, 255, 0.6); }
+ .searchbox input:-moz-placeholder {
+ color: rgba(255, 255, 255, 0.6); }
+ .searchbox input:-ms-input-placeholder {
+ color: rgba(255, 255, 255, 0.6); }
+
+#sidebar-toggle {
+ display: none; }
+ @media only all and (max-width: 47.938em) {
+ #sidebar-toggle {
+ display: inline-block; } }
+
+#sidebar {
+ background-color: #38424D;
+ position: fixed;
+ top: 0;
+ width: 300px;
+ bottom: 0;
+ left: 0;
+ font-weight: 500;
+ font-size: 15px; }
+ #sidebar a {
+ color: #bbbbbb; }
+ #sidebar a:hover {
+ color: #d5d5d5; }
+ #sidebar a.subtitle {
+ color: rgba(187, 187, 187, 0.6); }
+ #sidebar hr {
+ border-bottom: 1px solid #323a44; }
+ #sidebar a.padding {
+ padding: 0 1rem; }
+ #sidebar h5 {
+ margin: 2rem 0 0;
+ position: relative;
+ line-height: 2; }
+ #sidebar h5 a {
+ display: block;
+ margin-left: 0;
+ margin-right: 0;
+ padding-left: 1rem;
+ padding-right: 1rem; }
+ #sidebar h5 i {
+ color: rgba(187, 187, 187, 0.6);
+ position: absolute;
+ right: 0.6rem;
+ top: 0.7rem;
+ font-size: 80%; }
+ #sidebar h5.parent a {
+ background: #293038;
+ color: #c8c8c8 !important; }
+ #sidebar h5.active a {
+ background: #fff;
+ color: #555 !important; }
+ #sidebar h5.active i {
+ color: #555 !important; }
+ #sidebar h5 + ul.topics {
+ display: none;
+ margin-top: 0; }
+ #sidebar h5.parent + ul.topics, #sidebar h5.active + ul.topics {
+ display: block; }
+ #sidebar ul {
+ list-style: none;
+ padding: 0;
+ margin: 0; }
+ #sidebar ul.searched a {
+ color: #888888; }
+ #sidebar ul.searched .search-match a {
+ color: #d5d5d5; }
+ #sidebar ul.searched .search-match a:hover {
+ color: #eeeeee; }
+ #sidebar ul.topics {
+ margin: 0 1rem; }
+ #sidebar ul.topics.searched ul {
+ display: block; }
+ #sidebar ul.topics ul {
+ display: none;
+ padding-bottom: 1rem; }
+ #sidebar ul.topics ul ul {
+ padding-bottom: 0; }
+ #sidebar ul.topics li.parent ul, #sidebar ul.topics > li.active ul {
+ display: block; }
+ #sidebar ul.topics > li > a {
+ line-height: 2rem;
+ font-size: 1.1rem; }
+ #sidebar ul.topics > li > a b {
+ opacity: 0.5;
+ font-weight: normal; }
+ #sidebar ul.topics > li > a .fa {
+ margin-top: 9px; }
+ #sidebar ul.topics > li.parent, #sidebar ul.topics > li.active {
+ background: #2d353e;
+ margin-left: -1rem;
+ margin-right: -1rem;
+ padding-left: 1rem;
+ padding-right: 1rem; }
+ #sidebar ul li.active > a {
+ background: #fff;
+ color: #555 !important;
+ margin-left: -1rem;
+ margin-right: -1rem;
+ padding-left: 1rem;
+ padding-right: 1rem; }
+ #sidebar ul li {
+ padding: 0; }
+ #sidebar ul li.visited + span {
+ margin-right: 16px; }
+ #sidebar ul li a {
+ display: block;
+ padding: 2px 0; }
+ #sidebar ul li a span {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ display: block; }
+ #sidebar ul li > a {
+ padding: 4px 0; }
+ #sidebar ul li .fa {
+ display: none;
+ float: right;
+ font-size: 13px;
+ min-width: 16px;
+ margin: 4px 0 0 0;
+ text-align: right; }
+ #sidebar ul li.visited > a .read-icon {
+ color: #1694CA;
+ display: inline; }
+ #sidebar ul li li {
+ padding-left: 1rem;
+ text-indent: 0.2rem; }
+
+#main {
+ background: #f7f7f7;
+ margin: 0 0 1.563rem 0; }
+
+#body {
+ position: relative;
+ margin-left: 300px;
+ min-height: 100%; }
+ #body img, #body .video-container {
+ margin: 3rem auto;
+ display: block;
+ text-align: center; }
+ #body img.border, #body .video-container.border {
+ border: 2px solid #e6e6e6 !important;
+ padding: 2px; }
+ #body img.shadow, #body .video-container.shadow {
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
+ #body .bordered {
+ border: 1px solid #ccc; }
+ #body .padding {
+ padding: 3rem 6rem; }
+ @media only all and (max-width: 59.938em) {
+ #body .padding {
+ position: static;
+ padding: 15px 3rem; } }
+ @media only all and (max-width: 47.938em) {
+ #body .padding {
+ padding: 5px 1rem; } }
+ #body h1 + hr {
+ margin-top: -1.7rem;
+ margin-bottom: 3rem; }
+ @media only all and (max-width: 59.938em) {
+ #body #navigation {
+ position: static;
+ margin-right: 0 !important;
+ width: 100%;
+ display: table; } }
+ #body .nav {
+ position: fixed;
+ top: 0;
+ bottom: 0;
+ width: 4rem;
+ font-size: 50px;
+ height: 100%;
+ cursor: pointer;
+ display: table;
+ text-align: center; }
+ #body .nav > i {
+ display: table-cell;
+ vertical-align: middle;
+ text-align: center; }
+ @media only all and (max-width: 59.938em) {
+ #body .nav {
+ display: table-cell;
+ position: static;
+ top: auto;
+ width: 50%;
+ text-align: center;
+ height: 100px;
+ line-height: 100px;
+ padding-top: 0; }
+ #body .nav > i {
+ display: inline-block; } }
+ #body .nav:hover {
+ background: #F6F6F6; }
+ #body .nav.nav-pref {
+ left: 0; }
+ #body .nav.nav-next {
+ right: 0; }
+
+#body-inner {
+ margin-bottom: 5rem; }
+
+#chapter {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+ padding: 2rem 0; }
+ #chapter #body-inner {
+ padding-bottom: 3rem;
+ max-width: 80%; }
+ #chapter h3 {
+ font-family: "Muli", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ font-weight: 400;
+ text-align: center; }
+ #chapter h1 {
+ font-size: 5rem;
+ border-bottom: 4px solid #F0F2F4; }
+ #chapter p {
+ text-align: center;
+ font-size: 1.2rem; }
+
+#footer {
+ padding: 3rem 1rem;
+ color: #a2a2a2;
+ font-size: 13px; }
+ #footer p {
+ margin: 0; }
+
+body {
+ font-family: "Muli", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ letter-spacing: -0.03rem;
+ font-weight: 400; }
+
+h1, h2, h3, h4, h5, h6 {
+ font-family: "Montserrat", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ font-weight: 400;
+ text-rendering: optimizeLegibility;
+ line-height: 150%;
+ letter-spacing: -0px; }
+
+h1 {
+ text-align: center;
+ letter-spacing: -3px; }
+
+h2 {
+ letter-spacing: -2px; }
+
+h3 {
+ letter-spacing: -1px; }
+
+blockquote {
+ border-left: 10px solid #F0F2F4; }
+ blockquote p {
+ font-size: 1.1rem;
+ color: #999; }
+ blockquote cite {
+ display: block;
+ text-align: right;
+ color: #666;
+ font-size: 1.2rem; }
+
+blockquote {
+ position: relative; }
+
+blockquote blockquote {
+ position: static; }
+
+blockquote > blockquote > blockquote {
+ margin: 0; }
+ blockquote > blockquote > blockquote p {
+ padding: 15px;
+ display: block;
+ font-size: 1rem;
+ margin-top: 0rem;
+ margin-bottom: 0rem;
+ color: #666; }
+ blockquote > blockquote > blockquote p:first-child:before {
+ position: absolute;
+ top: 2px;
+ color: #fff;
+ font-family: FontAwesome;
+ content: '';
+ left: 10px; }
+ blockquote > blockquote > blockquote p:first-child:after {
+ position: absolute;
+ top: 2px;
+ color: #fff;
+ left: 2rem;
+ font-weight: bold;
+ content: 'Info'; }
+ blockquote > blockquote > blockquote > p {
+ margin-left: -71px;
+ border-top: 30px solid #F0B37E;
+ background: #FFF2DB; }
+ blockquote > blockquote > blockquote > blockquote > p {
+ margin-left: -94px;
+ border-top: 30px solid rgba(217, 83, 79, 0.8);
+ background: #FAE2E2; }
+ blockquote > blockquote > blockquote > blockquote > p:first-child:after {
+ content: 'Warning'; }
+ blockquote > blockquote > blockquote > blockquote > blockquote > p {
+ margin-left: -118px;
+ border-top: 30px solid #6AB0DE;
+ background: #E7F2FA; }
+ blockquote > blockquote > blockquote > blockquote > blockquote > p:first-child:after {
+ content: 'Note'; }
+ blockquote > blockquote > blockquote > blockquote > blockquote > blockquote > p {
+ margin-left: -142px;
+ border-top: 30px solid rgba(92, 184, 92, 0.8);
+ background: #E6F9E6; }
+ blockquote > blockquote > blockquote > blockquote > blockquote > blockquote > p:first-child:after {
+ content: 'Tip'; }
+
+code,
+kbd,
+pre,
+samp {
+ font-family: "Inconsolata", monospace; }
+
+code {
+ background: #f9f2f4;
+ color: #9c1d3d;
+ padding: .2rem .4rem;
+ border-radius: 3px; }
+
+pre {
+ padding: 1rem;
+ margin: 2rem 0;
+ background: #f6f6f6;
+ border: 1px solid #ddd;
+ border-radius: 2px;
+ line-height: 1.15;
+ font-size: 1rem; }
+ pre code {
+ color: #237794;
+ background: inherit;
+ font-size: 1rem; }
+
+hr {
+ border-bottom: 4px solid #F0F2F4; }
+
+.page-title {
+ margin-top: -25px;
+ padding: 25px;
+ float: left;
+ clear: both;
+ background: #1694CA;
+ color: #fff; }
+
+#body a.anchor-link {
+ color: #ccc; }
+#body a.anchor-link:hover {
+ color: #1694CA; }
+
+.scrollbar-inner > .scroll-element .scroll-element_track {
+ background-color: rgba(255, 255, 255, 0.3); }
+
+.scrollbar-inner > .scroll-element .scroll-bar {
+ background-color: #b5d1eb; }
+
+.scrollbar-inner > .scroll-element:hover .scroll-bar {
+ background-color: #ccc; }
+
+.scrollbar-inner > .scroll-element.scroll-draggable .scroll-bar {
+ background-color: #ccc; }
+
+table {
+ border: 1px solid #eaeaea;
+ table-layout: auto; }
+
+th {
+ background: #f7f7f7;
+ padding: 0.5rem; }
+
+td {
+ padding: 0.5rem;
+ border: 1px solid #eaeaea; }
+
+.button {
+ background: #1694CA;
+ color: #fff;
+ box-shadow: 0 3px 0 #1380ae; }
+ .button:hover {
+ background: #1380ae;
+ box-shadow: 0 3px 0 #106c93;
+ color: #fff; }
+ .button:active {
+ box-shadow: 0 1px 0 #106c93; }
+
+.button-secondary {
+ background: #F8B450;
+ color: #fff;
+ box-shadow: 0 3px 0 #f7a733; }
+ .button-secondary:hover {
+ background: #f7a733;
+ box-shadow: 0 3px 0 #f69b15;
+ color: #fff; }
+ .button-secondary:active {
+ box-shadow: 0 1px 0 #f69b15; }
+
+.bullets {
+ margin: 1.7rem 0;
+ margin-left: -0.85rem;
+ margin-right: -0.85rem;
+ overflow: auto; }
+
+.bullet {
+ float: left;
+ padding: 0 0.85rem; }
+
+.two-column-bullet {
+ width: 50%; }
+ @media only all and (max-width: 47.938em) {
+ .two-column-bullet {
+ width: 100%; } }
+
+.three-column-bullet {
+ width: 33.33333%; }
+ @media only all and (max-width: 47.938em) {
+ .three-column-bullet {
+ width: 100%; } }
+
+.four-column-bullet {
+ width: 25%; }
+ @media only all and (max-width: 47.938em) {
+ .four-column-bullet {
+ width: 100%; } }
+
+.bullet-icon {
+ float: left;
+ background: #1694CA;
+ padding: 0.875rem;
+ width: 3.5rem;
+ height: 3.5rem;
+ border-radius: 50%;
+ color: #fff;
+ font-size: 1.75rem;
+ text-align: center; }
+
+.bullet-icon-1 {
+ background: #1694CA; }
+
+.bullet-icon-2 {
+ background: #16cac4; }
+
+.bullet-icon-3 {
+ background: #b2ca16; }
+
+.bullet-content {
+ margin-left: 4.55rem; }
+
+.tooltipped {
+ position: relative; }
+
+.tooltipped:after {
+ position: absolute;
+ z-index: 1000000;
+ display: none;
+ padding: 5px 8px;
+ font: normal normal 11px/1.5 "Muli", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
+ color: #fff;
+ text-align: center;
+ text-decoration: none;
+ text-shadow: none;
+ text-transform: none;
+ letter-spacing: normal;
+ word-wrap: break-word;
+ white-space: pre;
+ pointer-events: none;
+ content: attr(aria-label);
+ background: rgba(0, 0, 0, 0.8);
+ border-radius: 3px;
+ -webkit-font-smoothing: subpixel-antialiased; }
+
+.tooltipped:before {
+ position: absolute;
+ z-index: 1000001;
+ display: none;
+ width: 0;
+ height: 0;
+ color: rgba(0, 0, 0, 0.8);
+ pointer-events: none;
+ content: "";
+ border: 5px solid transparent; }
+
+.tooltipped:hover:before, .tooltipped:hover:after,
+.tooltipped:active:before,
+.tooltipped:active:after,
+.tooltipped:focus:before,
+.tooltipped:focus:after {
+ display: inline-block;
+ text-decoration: none; }
+
+.tooltipped-s:after,
+.tooltipped-se:after,
+.tooltipped-sw:after {
+ top: 100%;
+ right: 50%;
+ margin-top: 5px; }
+.tooltipped-s:before,
+.tooltipped-se:before,
+.tooltipped-sw:before {
+ top: auto;
+ right: 50%;
+ bottom: -5px;
+ margin-right: -5px;
+ border-bottom-color: rgba(0, 0, 0, 0.8); }
+
+.tooltipped-se:after {
+ right: auto;
+ left: 50%;
+ margin-left: -15px; }
+
+.tooltipped-sw:after {
+ margin-right: -15px; }
+
+.tooltipped-n:after,
+.tooltipped-ne:after,
+.tooltipped-nw:after {
+ right: 50%;
+ bottom: 100%;
+ margin-bottom: 5px; }
+.tooltipped-n:before,
+.tooltipped-ne:before,
+.tooltipped-nw:before {
+ top: -5px;
+ right: 50%;
+ bottom: auto;
+ margin-right: -5px;
+ border-top-color: rgba(0, 0, 0, 0.8); }
+
+.tooltipped-ne:after {
+ right: auto;
+ left: 50%;
+ margin-left: -15px; }
+
+.tooltipped-nw:after {
+ margin-right: -15px; }
+
+.tooltipped-s:after,
+.tooltipped-n:after {
+ transform: translateX(50%); }
+
+.tooltipped-w:after {
+ right: 100%;
+ bottom: 50%;
+ margin-right: 5px;
+ transform: translateY(50%); }
+.tooltipped-w:before {
+ top: 50%;
+ bottom: 50%;
+ left: -5px;
+ margin-top: -5px;
+ border-left-color: rgba(0, 0, 0, 0.8); }
+
+.tooltipped-e:after {
+ bottom: 50%;
+ left: 100%;
+ margin-left: 5px;
+ transform: translateY(50%); }
+.tooltipped-e:before {
+ top: 50%;
+ right: -5px;
+ bottom: 50%;
+ margin-top: -5px;
+ border-right-color: rgba(0, 0, 0, 0.8); }
+
+/*************** SCROLLBAR BASE CSS ***************/
+.highlightable {
+ padding: 25px 0 15px; }
+
+.scroll-wrapper {
+ overflow: hidden !important;
+ padding: 0 !important;
+ position: relative; }
+
+.scroll-wrapper > .scroll-content {
+ border: none !important;
+ box-sizing: content-box !important;
+ height: auto;
+ left: 0;
+ margin: 0;
+ max-height: none;
+ max-width: none !important;
+ overflow: scroll !important;
+ padding: 0;
+ position: relative !important;
+ top: 0;
+ width: auto !important; }
+
+.scroll-wrapper > .scroll-content::-webkit-scrollbar {
+ height: 0;
+ width: 0; }
+
+.scroll-element {
+ display: none; }
+
+.scroll-element, .scroll-element div {
+ box-sizing: content-box; }
+
+.scroll-element.scroll-x.scroll-scrollx_visible,
+.scroll-element.scroll-y.scroll-scrolly_visible {
+ display: block; }
+
+.scroll-element .scroll-bar,
+.scroll-element .scroll-arrow {
+ cursor: default; }
+
+.scroll-textarea > .scroll-content {
+ overflow: hidden !important; }
+
+.scroll-textarea > .scroll-content > textarea {
+ border: none !important;
+ box-sizing: border-box;
+ height: 100% !important;
+ margin: 0;
+ max-height: none !important;
+ max-width: none !important;
+ overflow: scroll !important;
+ outline: none;
+ padding: 2px;
+ position: relative !important;
+ top: 0;
+ width: 100% !important; }
+
+.scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {
+ height: 0;
+ width: 0; }
+
+/*************** SIMPLE INNER SCROLLBAR ***************/
+.scrollbar-inner > .scroll-element,
+.scrollbar-inner > .scroll-element div {
+ border: none;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+ z-index: 10; }
+
+.scrollbar-inner > .scroll-element div {
+ display: block;
+ height: 100%;
+ left: 0;
+ top: 0;
+ width: 100%; }
+
+.scrollbar-inner > .scroll-element.scroll-x {
+ bottom: 2px;
+ height: 8px;
+ left: 0;
+ width: 100%; }
+
+.scrollbar-inner > .scroll-element.scroll-y {
+ height: 100%;
+ right: 2px;
+ top: 0;
+ width: 8px; }
+
+.scrollbar-inner > .scroll-element .scroll-element_outer {
+ overflow: hidden; }
+
+.scrollbar-inner > .scroll-element .scroll-element_outer,
+.scrollbar-inner > .scroll-element .scroll-element_track,
+.scrollbar-inner > .scroll-element .scroll-bar {
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ border-radius: 8px; }
+
+.scrollbar-inner > .scroll-element .scroll-element_track,
+.scrollbar-inner > .scroll-element .scroll-bar {
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
+ filter: alpha(opacity=30);
+ opacity: 0.3; }
+
+/* update scrollbar offset if both scrolls are visible */
+.scrollbar-inner > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track {
+ left: -12px; }
+
+.scrollbar-inner > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track {
+ top: -12px; }
+
+.scrollbar-inner > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size {
+ left: -12px; }
+
+.scrollbar-inner > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size {
+ top: -12px; }
+
+.lightbox-active #body {
+ overflow: visible; }
+ .lightbox-active #body .padding {
+ overflow: visible; }
+
+#github-contrib i {
+ vertical-align: middle; }
+
+.featherlight img {
+ margin: 0 !important; }
+
+.lifecycle #body-inner ul {
+ list-style: none;
+ margin: 0;
+ padding: 2rem 0 0;
+ position: relative; }
+.lifecycle #body-inner ol {
+ margin: 1rem 0 1rem 0;
+ padding: 2rem;
+ position: relative; }
+ .lifecycle #body-inner ol li {
+ margin-left: 1rem; }
+ .lifecycle #body-inner ol strong, .lifecycle #body-inner ol label, .lifecycle #body-inner ol th {
+ text-decoration: underline; }
+ .lifecycle #body-inner ol ol {
+ margin-left: -1rem; }
+.lifecycle #body-inner h3[class*='level'] {
+ font-size: 20px;
+ position: absolute;
+ margin: 0;
+ padding: 4px 10px;
+ right: 0;
+ z-index: 1000;
+ color: #fff;
+ background: #1ABC9C; }
+.lifecycle #body-inner ol h3 {
+ margin-top: 1rem !important;
+ right: 2rem !important; }
+.lifecycle #body-inner .level-1 + ol {
+ background: #f6fefc;
+ border: 4px solid #1ABC9C;
+ color: #16A085; }
+ .lifecycle #body-inner .level-1 + ol h3 {
+ background: #2ECC71; }
+.lifecycle #body-inner .level-2 + ol {
+ background: #f7fdf9;
+ border: 4px solid #2ECC71;
+ color: #27AE60; }
+ .lifecycle #body-inner .level-2 + ol h3 {
+ background: #3498DB; }
+.lifecycle #body-inner .level-3 + ol {
+ background: #f3f9fd;
+ border: 4px solid #3498DB;
+ color: #2980B9; }
+ .lifecycle #body-inner .level-3 + ol h3 {
+ background: #34495E; }
+.lifecycle #body-inner .level-4 + ol {
+ background: #e4eaf0;
+ border: 4px solid #34495E;
+ color: #2C3E50; }
+ .lifecycle #body-inner .level-4 + ol h3 {
+ background: #34495E; }
+
+#top-bar {
+ background: #F6F6F6;
+ border-radius: 2px;
+ margin: 0rem -1rem 2rem;
+ padding: 0 1rem;
+ height: 0;
+ min-height: 3rem; }
+
+#top-github-link {
+ position: relative;
+ z-index: 1;
+ float: right;
+ display: block; }
+
+#body #breadcrumbs {
+ height: auto;
+ display: block;
+ margin-bottom: 0;
+ padding-left: 0;
+ line-height: 1.4; }
+ #body #breadcrumbs span {
+ padding: 0 0.1rem; }
+
+@media only all and (max-width: 59.938em) {
+ #sidebar {
+ width: 230px; }
+
+ #body {
+ margin-left: 230px; } }
+@media only all and (max-width: 47.938em) {
+ #sidebar {
+ width: 230px;
+ left: -230px; }
+
+ #body {
+ margin-left: 0;
+ width: 100%; }
+
+ .sidebar-hidden {
+ overflow: hidden; }
+ .sidebar-hidden #sidebar {
+ left: 0; }
+ .sidebar-hidden #body {
+ margin-left: 230px;
+ overflow: hidden; }
+ .sidebar-hidden #overlay {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ z-index: 10;
+ background: rgba(255, 255, 255, 0.5);
+ cursor: pointer; } }
+.copy-to-clipboard {
+ background-image: url(../images/clippy.svg);
+ background-position: 50% 50%;
+ background-size: 16px 16px;
+ background-repeat: no-repeat;
+ width: 27px;
+ height: 1.45rem;
+ top: -1px;
+ display: inline-block;
+ vertical-align: middle;
+ position: relative;
+ color: #3c3c3c;
+ background-color: #f9f2f4;
+ margin-left: -.2rem;
+ cursor: pointer;
+ border-radius: 0 2px 2px 0; }
+ .copy-to-clipboard:hover {
+ background-color: #f1e1e5; }
+ pre .copy-to-clipboard {
+ position: absolute;
+ right: 4px;
+ top: 4px;
+ background-color: #eee;
+ border-color: #ddd;
+ border-radius: 2px; }
+ pre .copy-to-clipboard:hover {
+ background-color: #d9d9d9; }
+
+.parent-element {
+ -webkit-transform-style: preserve-3d;
+ -moz-transform-style: preserve-3d;
+ transform-style: preserve-3d; }
+
+/*# sourceMappingURL=theme.css.map */
diff --git a/themes/learn2/css-compiled/theme.css.map b/themes/learn2/css-compiled/theme.css.map
new file mode 100644
index 00000000..b7345031
--- /dev/null
+++ b/themes/learn2/css-compiled/theme.css.map
@@ -0,0 +1,7 @@
+{
+"version": 3,
+"mappings": ";AACQ,sFAA8E;ACStF,oCAAgB;EACf,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,GAAG;EACR,iBAAiB,EAAE,gBAAgB;EACnC,cAAc,EAAE,gBAAgB;EAChC,YAAY,EAAE,gBAAgB;EAC9B,aAAa,EAAE,gBAAgB;EAC/B,SAAS,EAAE,gBAAgB;;ACjB5B,0BAAQ;EACP,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,QAAQ;EACjB,wCAAS;IACR,MAAM,EAAE,YAAY;;ACJtB,IAAK;EACJ,UAAU,ECiBI,IAAI;EDhBlB,KAAK,ECwCY,IAAU;EDvCxB,sBAAsB,EAAE,WAAW;EACnC,uBAAuB,EAAE,SAAS;;AAGtC,CAAE;EACD,KAAK,EEPM,OAAY;EFQvB,OAAQ;IACP,KAAK,EAAE,OAAyB;;AAIlC,GAAI;EACH,QAAQ,EAAE,QAAQ;;AAGnB,GAAI;EACH,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,iBAAsB;;AAG/B,oBAAU;EACN,WAAW,EEVI,GAAG;;AFatB,uHAAmB;EGlBX,kBAAoB,EAAE,aAAM;EAK5B,eAAiB,EAAE,aAAM;EAezB,UAAY,EAAE,aAAM;;AC7B5B,QAAS;EACR,MAAM,EAAE,cAA4B;;AAGrC,kVAAyD;EACxD,gBAAgB,EAAE,KAAK;EACvB,MAAM,EAAE,cAA4B;EACpC,UAAU,EHOW,mCAAqC;EGL1D,kbAAQ;IACP,YAAY,EHAc,OAA8B;EGGzD,kbAAQ;IACP,YAAY,EFbF,OAAY;IEctB,UAAU,EHAc,oEAAwE;;AIflG,OAAQ;EACJ,UAAU,EHAF,OAAY;EGCpB,KAAK,EJEK,IAAI;EIDd,UAAU,EAAE,MAAM;EAElB,OAAO,EAAE,IAAI;EAEb,SAAE;IACE,OAAO,EAAE,YAAY;EAGzB,iBAAU;IAEN,KAAK,EHQA,IAAI;IGPT,MAAM,EHQA,IAAI;IGNV,sBAAK;MAED,IAAI,EJdF,IAAI;;AImBlB,UAAW;EACP,UAAU,EAAE,MAAM;EAClB,QAAQ,EAAE,QAAQ;EAElB,MAAM,EAAE,iBAAiC;EACzC,UAAU,EAAE,OAAqB;EACjC,aAAa,EAAE,GAAG;EAElB,gBAAM;IACF,KAAK,EAAE,wBAAiB;IACxB,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,GAAG;EAGZ,eAAK;IACD,KAAK,EAAE,wBAAiB;IACxB,QAAQ,EAAE,QAAQ;IAClB,KAAK,EAAE,IAAI;IACX,GAAG,EAAE,GAAG;IACR,MAAM,EAAE,OAAO;IAEf,qBAAQ;MACJ,KAAK,EAAE,wBAAiB;EAIhC,gBAAM;IACF,OAAO,EAAE,YAAY;IACrB,KAAK,EJhDC,IAAI;IIiDV,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,aAAa;IACtB,MAAM,EAAE,CAAC;IACT,WAAW,EH3CG,GAAG;IIbrB,2CAA8B;MD2DtB,KAAK,EAAE,wBAAiB;IC3DhC,kCAA8B;MD2DtB,KAAK,EAAE,wBAAiB;IC3DhC,iCAA8B;MD2DtB,KAAK,EAAE,wBAAiB;IC3DhC,sCAA8B;MD2DtB,KAAK,EAAE,wBAAiB;;AE9DpC,eAAgB;EACZ,OAAO,EAAE,IAAI;ECoBf,yCAAiE;IDrBnE,eAAgB;MAIP,OAAO,EAAE,YAAY;;AAK9B,QAAS;EAEL,gBAAgB,ELPP,OAAO;EKQhB,QAAQ,EAAE,KAAK;EACf,GAAG,EAAE,CAAC;EACN,KAAK,ELZO,KAAK;EKajB,MAAM,EAAE,CAAC;EACT,IAAI,EAAE,CAAC;EACP,WAAW,ELFM,GAAG;EKGpB,SAAS,EAAE,IAAI;EAEf,UAAE;IACE,KAAK,ELfE,OAAO;IKgBd,gBAAQ;MACJ,KAAK,EAAE,OAA2B;IAEtC,mBAAW;MACP,KAAK,EAAE,wBAAwB;EAIvC,WAAG;IACC,aAAa,EAAE,iBAAiC;EAGpD,kBAAU;IACN,OAAO,EAAE,MAAM;EAGnB,WAAG;IACC,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,CAAC;IAEd,aAAE;MACE,OAAO,EAAE,KAAK;MACd,WAAW,EAAE,CAAC;MACd,YAAY,EAAE,CAAC;MACf,YAAY,EAAE,IAAI;MAClB,aAAa,EAAE,IAAI;IAGvB,aAAE;MACE,KAAK,EAAE,wBAAwB;MAC/B,QAAQ,EAAE,QAAQ;MAClB,KAAK,EAAE,MAAM;MACb,GAAG,EAAE,MAAM;MACX,SAAS,EAAE,GAAG;IAId,oBAAE;MACE,UAAU,EAAE,OAAuB;MACnC,KAAK,EAAE,kBAAqC;IAKhD,oBAAE;MACE,UAAU,ENhEZ,IAAI;MMiEF,KAAK,EAAE,eAAqB;IAGhC,oBAAE;MACE,KAAK,EAAE,eAAqB;EAOxC,uBAAe;IACX,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,CAAC;EAIb,8DAAY;IACR,OAAO,EAAE,KAAK;EAKtB,WAAG;IAEC,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IAGL,sBAAE;MACE,KAAK,EAAE,OAA0B;IAIjC,oCAAE;MACE,KAAK,EAAE,OAA2B;MAClC,0CAAQ;QACJ,KAAK,EAAE,OAA2B;IAMlD,kBAAS;MACL,MAAM,EAAE,MAAM;MAGV,8BAAG;QACC,OAAO,EAAE,KAAK;MAItB,qBAAG;QACC,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,IAAI;QAEpB,wBAAG;UACC,cAAc,EAAE,CAAC;MAIzB,kEAA6B;QACzB,OAAO,EAAE,KAAK;MAId,2BAAI;QACA,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,MAAM;QAEjB,6BAAE;UACE,OAAO,EAAE,GAAG;UACZ,WAAW,EAAE,MAAM;QAGvB,+BAAI;UACA,UAAU,EAAE,GAAG;MAIvB,8DAAmB;QACf,UAAU,EAAE,OAAuB;QACnC,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,KAAK;QACnB,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;IAK/B,yBAAc;MACV,UAAU,EN7JR,IAAI;MM8JN,KAAK,EAAE,eAAqB;MAC5B,WAAW,EAAE,KAAK;MAClB,YAAY,EAAE,KAAK;MACnB,YAAY,EAAE,IAAI;MAClB,aAAa,EAAE,IAAI;IAGvB,cAAG;MACC,OAAO,EAAE,CAAC;MACV,6BAAiB;QACb,YAAY,EAAE,IAAI;MAEtB,gBAAE;QACE,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,KAAK;QACd,qBAAK;UACD,aAAa,EAAE,QAAQ;UACvB,QAAQ,EAAE,MAAM;UAChB,WAAW,EAAE,MAAM;UACnB,OAAO,EAAE,KAAK;MAGtB,kBAAI;QACA,OAAO,EAAE,KAAK;MAGlB,kBAAI;QACA,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,KAAK;MAIjB,qCAAe;QACX,KAAK,ELtMb,OAAY;QKuMJ,OAAO,EAAE,MAAM;MAIvB,iBAAG;QACC,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE,MAAM;;AE9MnC,KAAM;EACL,UAAU,ERiCI,OAAO;EQhCrB,MAAM,EAAE,cAAwC;;AAGjD,KAAM;EAiBF,QAAQ,EAAE,QAAQ;EAClB,WAAW,EPrBC,KAAK;EOsBjB,UAAU,EAAE,IAAI;EAlBhB,iCAAsB;IAClB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,MAAM;IAElB,+CAAS;MACL,MAAM,EAAE,4BAA4B;MACpC,OAAO,EAAE,GAAG;IAGhB,+CAAS;MACL,UAAU,EAAE,8BAA8B;EASlD,eAAU;IACN,MAAM,EAAE,cAAc;EAG1B,cAAS;IAEL,OAAO,EAAE,SAA0B;IDRzC,yCAAkE;MCMhE,cAAS;QAKD,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,SAA0B;IDf7C,yCAAiE;MCS/D,cAAS;QAUD,OAAO,EAAE,QAAQ;EAIzB,aAAQ;IACJ,UAAU,EAAE,OAAO;IACnB,aAAa,EAAE,IAAI;EDtBzB,yCAAkE;ICyBhE,iBAAY;MAGJ,QAAQ,EAAE,MAAM;MAChB,YAAY,EAAE,YAAY;MAC1B,KAAK,EAAE,IAAI;MACX,OAAO,EAAE,KAAK;EAItB,UAAK;IAED,QAAQ,EAAE,KAAK;IACf,GAAG,EAAE,CAAC;IACN,MAAM,EAAE,CAAC;IACT,KAAK,EP9CC,IAAI;IO+CV,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,MAAM;IAClB,cAAI;MACA,OAAO,EAAE,UAAU;MACnB,cAAc,EAAE,MAAM;MACtB,UAAU,EAAE,MAAM;IDjD5B,yCAAkE;MCmChE,UAAK;QAkBG,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,MAAM;QAChB,GAAG,EAAE,IAAI;QACT,KAAK,EAAE,GAAG;QACV,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,KAAK;QACb,WAAW,EAAE,KAAK;QAClB,WAAW,EAAE,CAAC;QACd,cAAI;UACA,OAAO,EAAE,YAAY;IAK7B,gBAAQ;MACJ,UAAU,EPpFV,OAAO;IOuFX,mBAAW;MACP,IAAI,EAAE,CAAC;IAGX,mBAAW;MACP,KAAK,EAAE,CAAC;;AAKpB,WAAY;EACR,aAAa,EAAE,IAAI;;AAIvB,QAAS;EAEL,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,eAAe,EAAE,MAAM;EACvB,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,MAAM;EAEf,oBAAY;IACR,cAAc,EAAE,IAAI;IACpB,SAAS,EAAE,GAAG;EAGlB,WAAG;IACC,WAAW,EZzHa,4DAA4D;IY0HpF,WAAW,EP7GG,GAAG;IO8GjB,UAAU,EAAE,MAAM;EAGtB,WAAG;IACC,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,iBAAqB;EAGxC,UAAE;IACE,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,MAAM;;AAIzB,OAAQ;EACJ,OAAO,EAAE,SAAS;EAClB,KAAK,EAAE,OAA0B;EACjC,SAAS,EAAE,IAAI;EAEf,SAAE;IACE,MAAM,EAAE,CAAC;;ACjJjB,IAAK;EACJ,WAAW,EbCoB,4DAA4D;EaAxF,cAAc,EAAE,QAAQ;EAC3B,WAAW,EAAE,GAAG;;AAIjB,sBAAuB;EACtB,WAAW,EbLoB,kEAAkE;EaMjG,WAAW,EAAE,GAAG;EAChB,cAAc,EAAE,kBAAkB;EAClC,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;;AAGrB,EAAG;EACF,UAAU,EAAE,MAAM;EAClB,cAAc,EAAE,IAAI;;AAGrB,EAAG;EACF,cAAc,EAAE,IAAI;;AAGrB,EAAG;EACF,cAAc,EAAE,IAAI;;AAIrB,UAAW;EACV,WAAW,EAAE,kBAAsB;EACnC,YAAE;IACD,SAAS,EAAE,MAAM;IACjB,KAAK,EAAE,IAAI;EAEZ,eAAK;IACJ,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,MAAM;;AAKnB,UAAW;EACP,QAAQ,EAAE,QAAQ;;AAGtB,qBAAsB;EAClB,QAAQ,EAAE,MAAM;;AAGpB,oCAAqC;EAEpC,MAAM,EAAE,CAAC;EAET,sCAAE;IACD,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,aAAa,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;IAGP,yDAAS;MACL,QAAQ,EAAE,QAAQ;MAClB,GAAG,EAAE,GAAG;MACR,KAAK,ETjEP,IAAI;MSkEF,WAAW,EAAE,WAAW;MACxB,OAAO,EAAE,GAAG;MACZ,IAAI,EAAE,IAAI;IAEd,wDAAQ;MACJ,QAAQ,EAAE,QAAQ;MAClB,GAAG,EAAE,GAAG;MACR,KAAK,ETzEP,IAAI;MS0EF,IAAI,EAAE,IAAI;MACV,WAAW,EAAE,IAAI;MACjB,OAAO,EAAE,MAAM;EAK9B,wCAAI;IAEH,WAAW,EAAE,KAAK;IAClB,UAAU,EAAE,kBAAkB;IAC9B,UAAU,EAAE,OAAO;EAGpB,qDAAiB;IAEhB,WAAW,EAAE,KAAK;IAClB,UAAU,EAAE,iCAA6B;IACzC,UAAU,EAAE,OAAO;IACb,uEAAoB;MAChB,OAAO,EAAE,SAAS;EAI7B,kEAA8B;IAE7B,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,kBAAkB;IAC9B,UAAU,EAAE,OAAO;IACb,oFAAoB;MAChB,OAAO,EAAE,MAAM;EAI1B,+EAA2C;IAE1C,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,iCAA6B;IACzC,UAAU,EAAE,OAAO;IACb,iGAAoB;MAChB,OAAO,EAAE,KAAK;;AAO1B;;;IAGK;EACJ,WAAW,Eb5HoB,wBAAwB;;Aa+HxD,IAAK;EACJ,UAAU,ETnFI,OAAO;ESoFrB,KAAK,EAAE,OAAsB;EAC7B,OAAO,EAAE,WAAW;EACnB,aAAa,EAAE,GAAG;;AAGpB,GAAI;EACH,OAAO,EAAE,IAAI;EACb,MAAM,EAAE,MAAM;EACd,UAAU,ET1FG,OAAO;ES2FpB,MAAM,EAAE,cAA4B;EACpC,aAAa,EAAE,GAAG;EAClB,WAAW,EAAE,IAAI;EACjB,SAAS,EAAE,IAAI;EAEf,QAAK;IACJ,KAAK,ETlGS,OAAO;ISmGrB,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,IAAI;;AAKjB,EAAG;EACF,aAAa,EAAE,iBAAqB;;AAIrC,WAAY;EACX,UAAU,EAAE,KAAK;EACjB,OAAO,EAAE,IAAI;EACb,KAAK,EAAE,IAAI;EACX,KAAK,EAAE,IAAI;EACX,UAAU,ERrKC,OAAY;EQsKvB,KAAK,ETnKQ,IAAI;;ASwKd,mBAAc;EAAE,KAAK,EAAE,IAAI;AAC3B,yBAAoB;EAAE,KAAK,ER5KnB,OAAY;;AQgLxB,wDAAyD;EAAE,gBAAgB,EAAE,wBAAiB;;AAC9F,8CAA+C;EAAE,gBAAgB,EAAE,OAAoB;;AACvF,oDAAqD;EAAE,gBAAgB,EAAE,IAAI;;AAC7E,+DAAgE;EAAE,gBAAgB,EAAE,IAAI;;ACpLxF,KAAM;EACL,MAAM,EAAE,iBAAwC;EAC7C,YAAY,EAAE,IAAI;;AAGtB,EAAG;EAEF,UAAU,EAAE,OAA+B;EAC3C,OAAO,EAAE,MAAM;;AAGhB,EAAG;EACF,OAAO,EAAE,MAAM;EACf,MAAM,EAAE,iBAAwC;;ACbjD,OAAQ;EbSP,UAAU,EGRC,OAAY;EHSvB,KAAK,EENQ,IAAI;EFOjB,UAAU,EAAE,eAA0B;EACtC,aAAQ;IACP,UAAU,EAAE,OAAkB;IAC9B,UAAU,EAAE,eAA2B;IACvC,KAAK,EEXO,IAAI;EFajB,cAAS;IACR,UAAU,EAAE,eAA2B;;AabzC,iBAAkB;EbIjB,UAAU,EENS,OAAO;EFO1B,KAAK,EENQ,IAAI;EFOjB,UAAU,EAAE,eAA0B;EACtC,uBAAQ;IACP,UAAU,EAAE,OAAkB;IAC9B,UAAU,EAAE,eAA2B;IACvC,KAAK,EEXO,IAAI;EFajB,wBAAS;IACR,UAAU,EAAE,eAA2B;;AclBzC,QAAS;EACR,MAAM,EAAE,QAAiB;EACzB,WAAW,EAAE,QAAoB;EACjC,YAAY,EAAE,QAAoB;EAClC,QAAQ,EAAE,IAAI;;AAGf,OAAQ;EACP,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,SAAqB;;AAG/B,kBAAmB;EfUlB,KAAK,EAAE,GAAsB;EUD5B,yCAAiE;IKTnE,kBAAmB;MfUlB,KAAK,EAAE,IAAsB;;AeH9B,oBAAqB;EfGpB,KAAK,EAAE,SAAsB;EUD5B,yCAAiE;IKFnE,oBAAqB;MfGpB,KAAK,EAAE,IAAsB;;AeI9B,mBAAoB;EfJnB,KAAK,EAAE,GAAsB;EUD5B,yCAAiE;IKKnE,mBAAoB;MfJnB,KAAK,EAAE,IAAsB;;AeW9B,YAAa;EACZ,KAAK,EAAE,IAAI;EACX,UAAU,EXlCC,OAAY;EWmCvB,OAAO,EAAE,QAAqB;EAC9B,KAAK,ECrCgB,MAAM;EDsC3B,MAAM,ECtCe,MAAM;EDuC3B,aAAa,EAAE,GAAG;EAClB,KAAK,EZpCQ,IAAI;EYqCjB,SAAS,EAAE,OAAqB;EAChC,UAAU,EAAE,MAAM;;AAGnB,cAAe;EACd,UAAU,EX7CC,OAAY;;AWgDxB,cAAe;EACd,UAAU,EC/Ca,OAA6B;;ADkDrD,cAAe;EACd,UAAU,EClDa,OAA8B;;ADqDtD,eAAgB;EACf,WAAW,EAAE,OAAuB;;AEtDrC,WAAY;EACV,QAAQ,EAAE,QAAQ;;AAIpB,iBAAkB;EAChB,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,mFAA2C;EACjD,KAAK,EAbc,IAAI;EAcvB,UAAU,EAAE,MAAM;EAClB,eAAe,EAAE,IAAI;EACrB,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;EACpB,cAAc,EAAE,MAAM;EACtB,SAAS,EAAE,UAAU;EACrB,WAAW,EAAE,GAAG;EAChB,cAAc,EAAE,IAAI;EACpB,OAAO,EAAE,gBAAgB;EACzB,UAAU,EAxBe,kBAAkB;EAyB3C,aAAa,EAAE,GAAG;EAClB,sBAAsB,EAAE,oBAAoB;;AAI9C,kBAAmB;EACjB,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,IAAI;EACb,KAAK,EAAE,CAAC;EACR,MAAM,EAAE,CAAC;EACT,KAAK,EApCoB,kBAAkB;EAqC3C,cAAc,EAAE,IAAI;EACpB,OAAO,EAAE,EAAE;EACX,MAAM,EAAE,qBAAqB;;AAO7B;;;;uBACQ;EACN,OAAO,EAAE,YAAY;EACrB,eAAe,EAAE,IAAI;;AAQvB;;oBAAQ;EACN,GAAG,EAAE,IAAI;EACT,KAAK,EAAE,GAAG;EACV,UAAU,EAAE,GAAG;AAGjB;;qBAAS;EACP,GAAG,EAAE,IAAI;EACT,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,IAAI;EACZ,YAAY,EAAE,IAAI;EAClB,mBAAmB,EApEI,kBAAkB;;AAyE3C,oBAAQ;EACN,KAAK,EAAE,IAAI;EACX,IAAI,EAAE,GAAG;EACT,WAAW,EAAE,KAAK;;AAItB,oBAAqB;EACnB,YAAY,EAAE,KAAK;;AAOnB;;oBAAQ;EACN,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,IAAI;EACZ,aAAa,EAAE,GAAG;AAGpB;;qBAAS;EACP,GAAG,EAAE,IAAI;EACT,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,IAAI;EACZ,YAAY,EAAE,IAAI;EAClB,gBAAgB,EAnGO,kBAAkB;;AAwG3C,oBAAQ;EACN,KAAK,EAAE,IAAI;EACX,IAAI,EAAE,GAAG;EACT,WAAW,EAAE,KAAK;;AAItB,oBAAqB;EACnB,YAAY,EAAE,KAAK;;AAIrB;mBACoB;EAClB,SAAS,EAAE,eAAe;;AAK1B,mBAAQ;EACN,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,GAAG;EACX,YAAY,EAAE,GAAG;EACjB,SAAS,EAAE,eAAe;AAG5B,oBAAS;EACP,GAAG,EAAE,GAAG;EACR,MAAM,EAAE,GAAG;EACX,IAAI,EAAE,IAAI;EACV,UAAU,EAAE,IAAI;EAChB,iBAAiB,EAvIM,kBAAkB;;AA6I3C,mBAAQ;EACN,MAAM,EAAE,GAAG;EACX,IAAI,EAAE,IAAI;EACV,WAAW,EAAE,GAAG;EAChB,SAAS,EAAE,eAAe;AAG5B,oBAAS;EACP,GAAG,EAAE,GAAG;EACR,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,GAAG;EACX,UAAU,EAAE,IAAI;EAChB,kBAAkB,EAzJK,kBAAkB;;ACD7C,oDAAoD;AAEpD,cAAe;EACX,OAAO,EAAE,WAAW;;AAGxB,eAAgB;EACZ,QAAQ,EAAE,iBAAiB;EAC3B,OAAO,EAAE,YAAY;EACrB,QAAQ,EAAE,QAAQ;;AAGtB,iCAAkC;EAC9B,MAAM,EAAE,eAAe;EACvB,UAAU,EAAE,sBAAsB;EAClC,MAAM,EAAE,IAAI;EACZ,IAAI,EAAE,CAAC;EACP,MAAM,EAAE,CAAC;EACT,UAAU,EAAE,IAAI;EAChB,SAAS,EAAE,eAAe;EAC1B,QAAQ,EAAE,iBAAiB;EAC3B,OAAO,EAAE,CAAC;EACV,QAAQ,EAAE,mBAAmB;EAC7B,GAAG,EAAE,CAAC;EACN,KAAK,EAAE,eAAe;;AAG1B,oDAAqD;EACjD,MAAM,EAAE,CAAC;EACT,KAAK,EAAE,CAAC;;AAGZ,eAAgB;EACZ,OAAO,EAAE,IAAI;;AAEjB,oCAAqC;EACjC,UAAU,EAAE,WAAW;;AAG3B;+CACgD;EAC5C,OAAO,EAAE,KAAK;;AAGlB;6BAC8B;EAC1B,MAAM,EAAE,OAAO;;AAMnB,kCAAmC;EAC/B,QAAQ,EAAE,iBAAiB;;AAE/B,6CAA8C;EAC1C,MAAM,EAAE,eAAe;EACvB,UAAU,EAAE,UAAU;EACtB,MAAM,EAAE,eAAe;EACvB,MAAM,EAAE,CAAC;EACT,UAAU,EAAE,eAAe;EAC3B,SAAS,EAAE,eAAe;EAC1B,QAAQ,EAAE,iBAAiB;EAC3B,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,GAAG;EACZ,QAAQ,EAAE,mBAAmB;EAC7B,GAAG,EAAE,CAAC;EACN,KAAK,EAAE,eAAe;;AAE1B,gEAAiE;EAC7D,MAAM,EAAE,CAAC;EACT,KAAK,EAAE,CAAC;;AAMZ,wDAAwD;AAExD;sCAEA;EACI,MAAM,EAAE,IAAI;EACZ,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;EACV,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,EAAE;;AAGf,sCAAuC;EACnC,OAAO,EAAE,KAAK;EACd,MAAM,EAAE,IAAI;EACZ,IAAI,EAAE,CAAC;EACP,GAAG,EAAE,CAAC;EACN,KAAK,EAAE,IAAI;;AAGf,2CAA4C;EACxC,MAAM,EAAE,GAAG;EACX,MAAM,EAAE,GAAG;EACX,IAAI,EAAE,CAAC;EACP,KAAK,EAAE,IAAI;;AAGf,2CAA4C;EACxC,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,GAAG;EACV,GAAG,EAAE,CAAC;EACN,KAAK,EAAE,GAAG;;AAGd,wDAAyD;EACrD,QAAQ,EAAE,MAAM;;AAGpB;;8CAE+C;EAC3C,qBAAqB,EAAE,GAAG;EAC1B,kBAAkB,EAAE,GAAG;EACvB,aAAa,EAAE,GAAG;;AAGtB;8CAC+C;EAC3C,UAAU,EAAC,qDAAqD;EAChE,MAAM,EAAE,iBAAiB;EACzB,OAAO,EAAE,GAAG;;AAIhB,yDAAyD;AAEzD,wFAAyF;EAAE,IAAI,EAAE,KAAK;;AACtG,wFAAyF;EAAE,GAAG,EAAE,KAAK;;AAGrG,uFAAwF;EAAE,IAAI,EAAE,KAAK;;AACrG,uFAAwF;EAAE,GAAG,EAAE,KAAK;;ACpInG,sBAAM;EACL,QAAQ,EAAE,OAAO;EACjB,+BAAS;IACR,QAAQ,EAAE,OAAO;;AAOnB,iBAAE;EACD,cAAc,EAAE,MAAM;;AAKxB,iBAAkB;EACd,MAAM,EAAE,YAAY;;AAQtB,yBAAG;EACF,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,QAAQ;EACjB,QAAQ,EAAE,QAAQ;AAGnB,yBAAG;EACF,MAAM,EAAE,aAAa;EACrB,OAAO,EAAE,IAAI;EACb,QAAQ,EAAE,QAAQ;EAElB,4BAAG;IAAC,WAAW,EAAE,IAAI;EAErB,+FAAO;IACN,eAAe,EAAE,SAAS;EAG3B,4BAAG;IACF,WAAW,EAAE,KAAK;AAKpB,yCAAmB;EAClB,SAAS,EAAE,IAAI;EACf,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,QAAQ;EACjB,KAAK,EAAE,CAAC;EACR,OAAO,EAAE,IAAI;EACb,KAAK,EAAE,IAAI;EACX,UAAU,EftCD,OAAO;AeyCjB,4BAAM;EACL,UAAU,EAAE,eAAe;EAC3B,KAAK,EAAE,eAAe;AAGvB,oCAAc;EACb,UAAU,EAAE,OAAuB;EACnC,MAAM,EAAE,iBAAoB;EAC5B,KAAK,EfhDI,OAAO;EeiDhB,uCAAG;IACF,UAAU,EfjDJ,OAAO;AesDf,oCAAe;EACd,UAAU,EAAE,OAAqB;EACjC,MAAM,EAAE,iBAAkB;EAC1B,KAAK,EfxDI,OAAO;EeyDhB,uCAAG;IACF,UAAU,EfzDA,OAAO;Ae6DnB,oCAAc;EACb,UAAU,EAAE,OAAyB;EACrC,MAAM,EAAE,iBAAsB;EAC9B,KAAK,Ef/DM,OAAO;EegElB,uCAAG;IACF,UAAU,Ef9DA,OAAO;AekEnB,oCAAa;EACZ,UAAU,EAAE,OAAyB;EACrC,MAAM,EAAE,iBAAsB;EAC9B,KAAK,EfpEQ,OAAO;EeqEpB,uCAAG;IACF,UAAU,EfvEA,OAAO;;Ae6ErB,QAAS;EACL,UAAU,EfvGF,OAAO;EewGf,aAAa,EAAE,GAAG;EAClB,MAAM,EAAE,eAAe;EACvB,OAAO,EAAE,MAAM;EACf,MAAM,EAAE,CAAC;EACT,UAAU,EAAE,IAAI;;AAIpB,gBAAiB;EAGb,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,CAAC;EAEV,KAAK,EAAE,KAAK;EACZ,OAAO,EAAE,KAAK;;AAIlB,kBAAmB;EAIf,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,KAAK;EACd,aAAa,EAAE,CAAC;EAChB,YAAY,EAAE,CAAC;EAEf,WAAW,EAAE,GAAG;EAEhB,uBAAK;IACD,OAAO,EAAE,QAAQ;;ATvHvB,yCAAkE;ES6HhE,QAAS;IACL,KAAK,EfnJW,KAAK;;EeqJzB,KAAM;IACF,WAAW,EftJK,KAAK;AMkB3B,yCAAiE;ESwI/D,QAAS;IACL,KAAK,Ef3JW,KAAK;Ie4JrB,IAAI,EAAE,MAAwB;;EAElC,KAAM;IACF,WAAW,EAAE,CAAC;IACd,KAAK,EAAE,IAAI;;EAGf,eAAgB;IACZ,QAAQ,EAAE,MAAM;IAEhB,wBAAS;MACL,IAAI,EAAE,CAAC;IAEX,qBAAM;MACF,WAAW,Ef1KC,KAAK;Me4KjB,QAAQ,EAAE,MAAM;IAEpB,wBAAS;MACL,QAAQ,EAAE,QAAQ;MAClB,IAAI,EAAC,CAAC;MACN,KAAK,EAAE,CAAC;MACR,GAAG,EAAE,CAAC;MACN,MAAM,EAAE,CAAC;MACT,OAAO,EAAC,EAAE;MACV,UAAU,EAAE,wBAAoB;MAChC,MAAM,EAAE,OAAO;AAM3B,kBAAmB;EACjB,gBAAgB,EAAE,yBAAyB;EAC3C,mBAAmB,EAAE,OAAO;EAC5B,eAAe,EAAE,SAAS;EAC1B,iBAAiB,EAAE,SAAS;EAC5B,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,OAA6B;EACtC,GAAG,EAAE,IAAI;EACR,OAAO,EAAE,YAAY;EACrB,cAAc,EAAE,MAAM;EACtB,QAAQ,EAAE,QAAQ;EAClB,KAAK,EAAE,OAAsB;EAC7B,gBAAgB,EhBzJH,OAAO;EgB0JpB,WAAW,EAAE,MAAM;EACnB,MAAM,EAAE,OAAO;EACf,aAAa,EAAE,WAAW;EAE1B,wBAAQ;IACN,gBAAgB,EAAE,OAAoB;EAGxC,sBAAM;IACJ,QAAQ,EAAE,QAAQ;IAClB,KAAK,EAAE,GAAG;IACV,GAAG,EAAE,GAAG;IACR,gBAAgB,EAAE,IAAI;IACtB,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,GAAG;IAElB,4BAAQ;MACN,gBAAgB,EAAE,OAAO;;AAM/B,eAAgB;EACd,uBAAuB,EAAE,WAAW;EACpC,oBAAoB,EAAE,WAAW;EACjC,eAAe,EAAE,WAAW",
+"sources": ["../scss/theme/_fonts.scss","../scss/nucleus/mixins/_utilities.scss","../scss/theme/modules/_buttons.scss","../scss/theme/_core.scss","../scss/configuration/theme/_colors.scss","../scss/theme/_configuration.scss","../scss/vendor/bourbon/addons/_prefixer.scss","../scss/theme/_forms.scss","../scss/theme/_header.scss","../scss/vendor/bourbon/css3/_placeholder.scss","../scss/theme/_nav.scss","../scss/nucleus/mixins/_breakpoints.scss","../scss/theme/_main.scss","../scss/theme/_typography.scss","../scss/theme/_tables.scss","../scss/theme/_buttons.scss","../scss/theme/_bullets.scss","../scss/configuration/theme/_bullets.scss","../scss/theme/_tooltips.scss","../scss/theme/_scrollbar.scss","../scss/theme/_custom.scss"],
+"names": [],
+"file": "theme.css"
+}
\ No newline at end of file
diff --git a/themes/learn2/css/featherlight.min.css b/themes/learn2/css/featherlight.min.css
new file mode 100755
index 00000000..f225bec5
--- /dev/null
+++ b/themes/learn2/css/featherlight.min.css
@@ -0,0 +1,8 @@
+/**
+ * Featherlight - ultra slim jQuery lightbox
+ * Version 1.2.3 - http://noelboss.github.io/featherlight/
+ *
+ * Copyright 2015, Noël Raoul Bossart (http://www.noelboss.com)
+ * MIT Licensed.
+**/
+@media all{.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;min-width:30%;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0}.featherlight iframe{border:0}}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:10px;margin-right:10px;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}}
\ No newline at end of file
diff --git a/themes/learn2/css/font-awesome.min.css b/themes/learn2/css/font-awesome.min.css
new file mode 100644
index 00000000..540440ce
--- /dev/null
+++ b/themes/learn2/css/font-awesome.min.css
@@ -0,0 +1,4 @@
+/*!
+ * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
+ */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.7.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
diff --git a/themes/learn2/css/nucleus-ie10.css b/themes/learn2/css/nucleus-ie10.css
new file mode 100755
index 00000000..3111047e
--- /dev/null
+++ b/themes/learn2/css/nucleus-ie10.css
@@ -0,0 +1,9 @@
+button {
+ overflow: visible;
+}
+
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box;
+ padding: 0;
+}
\ No newline at end of file
diff --git a/themes/learn2/css/nucleus-ie9.css b/themes/learn2/css/nucleus-ie9.css
new file mode 100755
index 00000000..46df3763
--- /dev/null
+++ b/themes/learn2/css/nucleus-ie9.css
@@ -0,0 +1,62 @@
+/* IE9 Resets and Normalization */
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+nav,
+section,
+summary {
+ display: block;
+}
+
+audio,
+canvas,
+progress,
+video {
+ display: inline-block;
+}
+
+[hidden],
+template {
+ display: none;
+}
+
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+
+img {
+ border: 0;
+}
+
+svg:not(:root) {
+ overflow: hidden;
+}
+
+figure {
+ margin: 1em 40px;
+}
+
+button {
+ overflow: visible;
+}
+
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box;
+ padding: 0;
+}
+
+legend {
+ border: 0;
+ padding: 0;
+}
+
+textarea {
+ overflow: auto;
+}
\ No newline at end of file
diff --git a/themes/learn2/css/pure-0.5.0/grids-min.css b/themes/learn2/css/pure-0.5.0/grids-min.css
new file mode 100755
index 00000000..82bf8163
--- /dev/null
+++ b/themes/learn2/css/pure-0.5.0/grids-min.css
@@ -0,0 +1,15 @@
+/*!
+Pure v0.5.0-rc-1
+Copyright 2014 Yahoo! Inc. All rights reserved.
+Licensed under the BSD License.
+https://github.com/yui/pure/blob/master/LICENSE.md
+*/
+.pure-g{letter-spacing:-.31em;*letter-spacing:normal;*word-spacing:-.43em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-flex;-webkit-flex-flow:row wrap;display:-ms-flexbox;-ms-flex-flow:row wrap}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;*display:inline;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class *="pure-u"]{font-family:sans-serif}.pure-u-1,.pure-u-1-1,.pure-u-1-2,.pure-u-1-3,.pure-u-2-3,.pure-u-1-4,.pure-u-3-4,.pure-u-1-5,.pure-u-2-5,.pure-u-3-5,.pure-u-4-5,.pure-u-5-5,.pure-u-1-6,.pure-u-5-6,.pure-u-1-8,.pure-u-3-8,.pure-u-5-8,.pure-u-7-8,.pure-u-1-12,.pure-u-5-12,.pure-u-7-12,.pure-u-11-12,.pure-u-1-24,.pure-u-2-24,.pure-u-3-24,.pure-u-4-24,.pure-u-5-24,.pure-u-6-24,.pure-u-7-24,.pure-u-8-24,.pure-u-9-24,.pure-u-10-24,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24{display:inline-block;*display:inline;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%;*width:4.1357%}.pure-u-1-12,.pure-u-2-24{width:8.3333%;*width:8.3023%}.pure-u-1-8,.pure-u-3-24{width:12.5%;*width:12.469%}.pure-u-1-6,.pure-u-4-24{width:16.6667%;*width:16.6357%}.pure-u-1-5{width:20%;*width:19.969%}.pure-u-5-24{width:20.8333%;*width:20.8023%}.pure-u-1-4,.pure-u-6-24{width:25%;*width:24.969%}.pure-u-7-24{width:29.1667%;*width:29.1357%}.pure-u-1-3,.pure-u-8-24{width:33.3333%;*width:33.3023%}.pure-u-3-8,.pure-u-9-24{width:37.5%;*width:37.469%}.pure-u-2-5{width:40%;*width:39.969%}.pure-u-5-12,.pure-u-10-24{width:41.6667%;*width:41.6357%}.pure-u-11-24{width:45.8333%;*width:45.8023%}.pure-u-1-2,.pure-u-12-24{width:50%;*width:49.969%}.pure-u-13-24{width:54.1667%;*width:54.1357%}.pure-u-7-12,.pure-u-14-24{width:58.3333%;*width:58.3023%}.pure-u-3-5{width:60%;*width:59.969%}.pure-u-5-8,.pure-u-15-24{width:62.5%;*width:62.469%}.pure-u-2-3,.pure-u-16-24{width:66.6667%;*width:66.6357%}.pure-u-17-24{width:70.8333%;*width:70.8023%}.pure-u-3-4,.pure-u-18-24{width:75%;*width:74.969%}.pure-u-19-24{width:79.1667%;*width:79.1357%}.pure-u-4-5{width:80%;*width:79.969%}.pure-u-5-6,.pure-u-20-24{width:83.3333%;*width:83.3023%}.pure-u-7-8,.pure-u-21-24{width:87.5%;*width:87.469%}.pure-u-11-12,.pure-u-22-24{width:91.6667%;*width:91.6357%}.pure-u-23-24{width:95.8333%;*width:95.8023%}.pure-u-1,.pure-u-1-1,.pure-u-5-5,.pure-u-24-24{width:100%}
+
+/* Custom */
+[class *="pure-u"] {display:inline-block;*display:inline;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;}
+.pure-u-1-7 {width: 14.285%;}.pure-u-2-7 {width: 28.571%;}.pure-u-3-7 {width: 42.857%;}.pure-u-4-7 {width: 57.142%;}.pure-u-5-7 {width: 71.428%;}.pure-u-6-7 {width: 85.714%;}
+.pure-u-1-9 {width: 11.111%;}.pure-u-2-9 {width: 22.222%;}.pure-u-3-9 {width: 33.333%;}.pure-u-4-9 {width: 44.444%;}.pure-u-5-9 {width: 55.555%;}.pure-u-6-9 {width: 66.666%;}.pure-u-7-9 {width: 77.777%;}.pure-u-8-9 {width: 88.888%;}
+.pure-u-1-10 {width: 10%;}.pure-u-2-10 {width: 20%;}.pure-u-3-10 {width: 30%;}.pure-u-4-10 {width: 40%;}.pure-u-5-10 {width: 50%;}.pure-u-6-10 {width: 60%;}.pure-u-7-10 {width: 70%;}.pure-u-8-10 {width: 80%;}.pure-u-9-10 {width: 90%;}
+
+.pure-u-1-11 {width: 9.090%;}.pure-u-2-11 {width: 18.181%;}.pure-u-3-11 {width: 27.272%;}.pure-u-4-11 {width: 36.363%;}.pure-u-5-11 {width: 45.454%;}.pure-u-6-11 {width: 54.545%;}.pure-u-7-11 {width: 63.636%;}.pure-u-8-11 {width: 72.727%;}.pure-u-9-11 {width: 81.818%;}.pure-u-10-11 {width: 90.909%;}
\ No newline at end of file
diff --git a/themes/learn2/fonts/fontawesome-webfont.eot b/themes/learn2/fonts/fontawesome-webfont.eot
new file mode 100644
index 00000000..e9f60ca9
Binary files /dev/null and b/themes/learn2/fonts/fontawesome-webfont.eot differ
diff --git a/themes/learn2/fonts/fontawesome-webfont.svg b/themes/learn2/fonts/fontawesome-webfont.svg
new file mode 100644
index 00000000..855c845e
--- /dev/null
+++ b/themes/learn2/fonts/fontawesome-webfont.svg
@@ -0,0 +1,2671 @@
+
+
+
+
+Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016
+ By ,,,
+Copyright Dave Gandy 2016. All rights reserved.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/learn2/fonts/fontawesome-webfont.ttf b/themes/learn2/fonts/fontawesome-webfont.ttf
new file mode 100644
index 00000000..35acda2f
Binary files /dev/null and b/themes/learn2/fonts/fontawesome-webfont.ttf differ
diff --git a/themes/learn2/fonts/fontawesome-webfont.woff b/themes/learn2/fonts/fontawesome-webfont.woff
new file mode 100644
index 00000000..400014a4
Binary files /dev/null and b/themes/learn2/fonts/fontawesome-webfont.woff differ
diff --git a/themes/learn2/fonts/fontawesome-webfont.woff2 b/themes/learn2/fonts/fontawesome-webfont.woff2
new file mode 100644
index 00000000..4d13fc60
Binary files /dev/null and b/themes/learn2/fonts/fontawesome-webfont.woff2 differ
diff --git a/themes/learn2/images/clippy.svg b/themes/learn2/images/clippy.svg
new file mode 100644
index 00000000..e1b17035
--- /dev/null
+++ b/themes/learn2/images/clippy.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/themes/learn2/images/favicon.png b/themes/learn2/images/favicon.png
new file mode 100644
index 00000000..ec645f19
Binary files /dev/null and b/themes/learn2/images/favicon.png differ
diff --git a/themes/learn2/images/logo.png b/themes/learn2/images/logo.png
new file mode 100644
index 00000000..287a4e75
Binary files /dev/null and b/themes/learn2/images/logo.png differ
diff --git a/themes/learn2/js/clipboard.min.js b/themes/learn2/js/clipboard.min.js
new file mode 100644
index 00000000..000e4b48
--- /dev/null
+++ b/themes/learn2/js/clipboard.min.js
@@ -0,0 +1,7 @@
+/*!
+ * clipboard.js v1.5.5
+ * https://zenorocha.github.io/clipboard.js
+ *
+ * Licensed MIT © Zeno Rocha
+ */
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,r){function o(a,c){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!c&&s)return s(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;ar;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,a=r.length;a>i;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},e.exports=r},{}],8:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n0})},e=function(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c},f={keyup:"onKeyUp",resize:"onResize"},g=function(c){a.each(b.opened().reverse(),function(){return c.isDefaultPrevented()||!1!==this[f[c.type]](c)?void 0:(c.preventDefault(),c.stopPropagation(),!1)})},h=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(f,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,g)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['','
','
',d.closeIcon," ",'
'+d.loading+"
","
","
"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(b.preventDefault(),d.close())}),this},getContent:function(){var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return(b.is("iframe")||a("iframe",b).length>0)&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var d=this;if(d.$instance.hide().appendTo(d.root),!(b&&b.isDefaultPrevented()||d.beforeOpen(b)===!1)){b&&b.preventDefault();var e=d.getContent();if(e)return c.push(d),h(!0),d.$instance.fadeIn(d.openSpeed),d.beforeContent(b),a.when(e).always(function(a){d.setContent(a),d.afterContent(b)}).then(d.$instance.promise()).done(function(){d.afterOpen(b)})}return d.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,e=a.Deferred();return c.beforeClose(b)===!1?e.reject():(0===d(c).length&&h(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),e.resolve()})),e.promise()},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a(' ');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("
").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var c=new a.Deferred,d=a("").hide().attr("src",b).css(e(this,"iframe")).on("load",function(){c.resolve(d.show())}).appendTo(this.$instance.find("."+this.namespace+"-content"));return c.promise()}},text:{process:function(b){return a("",{text:b})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(b,c){var d=this,e=new RegExp("^data-"+c+"-(.*)"),f={};return b&&b.attributes&&a.each(b.attributes,function(){var b=this.name.match(e);if(b){var c=this.value,g=a.camelCase(b[1]);if(a.inArray(g,d.functionAttributes)>=0)c=new Function(c);else try{c=a.parseJSON(c)}catch(h){}f[g]=c}}),f},extend:function(b,c){var d=function(){this.constructor=b};return d.prototype=this.prototype,b.prototype=new d,b.__super__=this.prototype,a.extend(b,this,c),b.defaults=b.prototype,b},attach:function(b,c,d){var e=this;"object"!=typeof c||c instanceof a!=!1||d||(d=c,c=void 0),d=a.extend({},d);var f=d.namespace||e.defaults.namespace,g=a.extend({},e.defaults,e.readElementConfig(b[0],f),d);return b.on(g.openTrigger+"."+g.namespace,g.filter,function(f){var h=a.extend({$source:b,$currentTarget:a(this)},e.readElementConfig(b[0],g.namespace),e.readElementConfig(this,g.namespace),d);new e(c,h).open(f)}),b},current:function(){var a=this.opened();return a[a.length-1]||null},opened:function(){var b=this;return d(),a.grep(c,function(a){return a instanceof b})},close:function(){var a=this.current();return a?a.close():void 0},_onReady:function(){var b=this;b.autoBind&&(b.attach(a(document),{filter:b.autoBind}),a(b.autoBind).filter("[data-featherlight-filter]").each(function(){b.attach(a(this))}))},_callbackChain:{onKeyUp:function(a,b){return 27===b.keyCode?(this.closeOnEsc&&this.$instance.find("."+this.namespace+"-close:first").click(),!1):a(b)},onResize:function(a,b){if(this.$content.naturalWidth){var c=this.$content.naturalWidth,d=this.$content.naturalHeight;this.$content.css("width","").css("height","");var e=Math.max(c/parseInt(this.$content.parent().css("width"),10),d/parseInt(this.$content.parent().css("height"),10));e>1&&this.$content.css("width",""+c/e+"px").css("height",""+d/e+"px")}return a(b)},afterContent:function(a,b){var c=a(b);return this.onResize(b),c}}}),a.featherlight=b,a.fn.featherlight=function(a,c){return b.attach(this,a,c)},a(document).ready(function(){b._onReady()})}(jQuery);
\ No newline at end of file
diff --git a/themes/learn2/js/html5shiv-printshiv.min.js b/themes/learn2/js/html5shiv-printshiv.min.js
new file mode 100755
index 00000000..9c78ee3c
--- /dev/null
+++ b/themes/learn2/js/html5shiv-printshiv.min.js
@@ -0,0 +1,4 @@
+/**
+* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
+*/
+!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=x.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=w[a[u]];return b||(b={},v++,a[u]=v,w[v]=b),b}function f(a,c,d){if(c||(c=b),p)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():t.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||s.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),p)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return x.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(x,b.frag)}function i(a){a||(a=b);var d=e(a);return!x.shivCSS||o||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),p||h(a,d),a}function j(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(k(b)));return g}function k(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(z+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function l(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+z+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function m(a){for(var b=a.length;b--;)a[b].removeNode()}function n(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,f,g=e(a),h=a.namespaces,i=a.parentWindow;return!A||a.printShived?a:("undefined"==typeof h[z]&&h.add(z),i.attachEvent("onbeforeprint",function(){b();for(var e,g,h,i=a.styleSheets,k=[],m=i.length,n=Array(m);m--;)n[m]=i[m];for(;h=n.pop();)if(!h.disabled&&y.test(h.media)){try{e=h.imports,g=e.length}catch(o){g=0}for(m=0;g>m;m++)n.push(e[m]);try{k.push(h.cssText)}catch(o){}}k=l(k.reverse().join("")),f=j(a),d=c(a,k)}),i.attachEvent("onafterprint",function(){m(f),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var o,p,q="3.7.0",r=a.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,t=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",v=0,w={};!function(){try{var a=b.createElement("a");a.innerHTML="
",o="hidden"in a,p=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){o=!0,p=!0}}();var x={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:q,shivCSS:r.shivCSS!==!1,supportsUnknownElements:p,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=x,i(b);var y=/^$|\b(?:all|print)\b/,z="html5shiv",A=!p&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();x.type+=" print",x.shivPrint=n,n(b)}(this,document);
\ No newline at end of file
diff --git a/themes/learn2/js/jquery.scrollbar.min.js b/themes/learn2/js/jquery.scrollbar.min.js
new file mode 100755
index 00000000..ed3455a7
--- /dev/null
+++ b/themes/learn2/js/jquery.scrollbar.min.js
@@ -0,0 +1,16 @@
+/**
+ * jQuery CSS Customizable Scrollbar
+ *
+ * Copyright 2015, Yuriy Khabarov
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ *
+ * If you found bug, please contact me via email <13real008@gmail.com>
+ *
+ * Compressed by http://jscompress.com/
+ *
+ * @author Yuriy Khabarov aka Gromo
+ * @version 0.2.9
+ * @url https://github.com/gromo/jquery.scrollbar/
+ *
+ */
+!function(l,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(l.jQuery)}(this,function(l){"use strict";function e(e){if(t.webkit&&!e)return{height:0,width:0};if(!t.data.outer){var o={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};t.data.inner=l("
").css(l.extend({},o)),t.data.outer=l("
").css(l.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},o)).append(t.data.inner).appendTo("body")}return t.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(t.data.outer.offset().top-t.data.inner.offset().top||0),width:Math.ceil(t.data.outer.offset().left-t.data.inner.offset().left||0)}}function o(){var l=e(!0);return!(l.height||l.width)}function s(l){var e=l.originalEvent;return e.axis&&e.axis===e.HORIZONTAL_AXIS?!1:e.wheelDeltaX?!1:!0}var r=!1,t={data:{index:0,name:"scrollbar"},macosx:/mac/i.test(navigator.platform),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};t.scrolls.add=function(l){this.remove(l).push(l)},t.scrolls.remove=function(e){for(;l.inArray(e,this)>=0;)this.splice(l.inArray(e,this),1);return this};var i={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!1,ignoreOverlay:!1,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onInit:null,onScroll:null,onUpdate:null},n=function(s){t.scroll||(t.overlay=o(),t.scroll=e(),a(),l(window).resize(function(){var l=!1;if(t.scroll&&(t.scroll.height||t.scroll.width)){var o=e();(o.height!==t.scroll.height||o.width!==t.scroll.width)&&(t.scroll=o,l=!0)}a(l)})),this.container=s,this.namespace=".scrollbar_"+t.data.index++,this.options=l.extend({},i,window.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},s.data(t.data.name,this),t.scrolls.add(this)};n.prototype={destroy:function(){if(this.wrapper){this.container.removeData(t.data.name),t.scrolls.remove(this);var e=this.container.scrollLeft(),o=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(e).scrollTop(o),this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").andSelf().off(this.namespace),this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").andSelf().off(this.namespace),this.wrapper.remove(),l(document).add("body").off(this.namespace),l.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},init:function(e){var o=this,r=this.container,i=this.containerWrapper||r,n=this.namespace,c=l.extend(this.options,e||{}),a={x:this.scrollx,y:this.scrolly},d=this.wrapper,h={scrollLeft:r.scrollLeft(),scrollTop:r.scrollTop()};if(t.mobile&&c.ignoreMobile||t.overlay&&c.ignoreOverlay)return!1;if(d)i.css({height:"auto","margin-bottom":-1*t.scroll.height+"px","margin-right":-1*t.scroll.width+"px","max-height":""});else{if(this.wrapper=d=l("
").addClass("scroll-wrapper").addClass(r.attr("class")).css("position","absolute"==r.css("position")?"absolute":"relative").insertBefore(r).append(r),r.is("textarea")&&(this.containerWrapper=i=l("
").insertBefore(r).append(r),d.addClass("scroll-textarea")),i.addClass("scroll-content").css({height:"auto","margin-bottom":-1*t.scroll.height+"px","margin-right":-1*t.scroll.width+"px","max-height":""}),r.on("scroll"+n,function(){l.isFunction(c.onScroll)&&c.onScroll.call(o,{maxScroll:a.y.maxScrollOffset,scroll:r.scrollTop(),size:a.y.size,visible:a.y.visible},{maxScroll:a.x.maxScrollOffset,scroll:r.scrollLeft(),size:a.x.size,visible:a.x.visible}),a.x.isVisible&&a.x.scroll.bar.css("left",r.scrollLeft()*a.x.kx+"px"),a.y.isVisible&&a.y.scroll.bar.css("top",r.scrollTop()*a.y.kx+"px")}),d.on("scroll"+n,function(){d.scrollTop(0).scrollLeft(0)}),c.disableBodyScroll){var p=function(l){s(l)?a.y.isVisible&&a.y.mousewheel(l):a.x.isVisible&&a.x.mousewheel(l)};d.on("MozMousePixelScroll"+n,p),d.on("mousewheel"+n,p),t.mobile&&d.on("touchstart"+n,function(e){var o=e.originalEvent.touches&&e.originalEvent.touches[0]||e,s={pageX:o.pageX,pageY:o.pageY},t={left:r.scrollLeft(),top:r.scrollTop()};l(document).on("touchmove"+n,function(l){var e=l.originalEvent.targetTouches&&l.originalEvent.targetTouches[0]||l;r.scrollLeft(t.left+s.pageX-e.pageX),r.scrollTop(t.top+s.pageY-e.pageY),l.preventDefault()}),l(document).on("touchend"+n,function(){l(document).off(n)})})}l.isFunction(c.onInit)&&c.onInit.apply(this,[r])}l.each(a,function(e,t){var i=null,d=1,h="x"===e?"scrollLeft":"scrollTop",p=c.scrollStep,u=function(){var l=r[h]();r[h](l+p),1==d&&l+p>=f&&(l=r[h]()),-1==d&&f>=l+p&&(l=r[h]()),r[h]()==l&&i&&i()},f=0;t.scroll||(t.scroll=o._getScroll(c["scroll"+e]).addClass("scroll-"+e),c.showArrows&&t.scroll.addClass("scroll-element_arrows_visible"),t.mousewheel=function(l){if(!t.isVisible||"x"===e&&s(l))return!0;if("y"===e&&!s(l))return a.x.mousewheel(l),!0;var i=-1*l.originalEvent.wheelDelta||l.originalEvent.detail,n=t.size-t.visible-t.offset;return(i>0&&n>f||0>i&&f>0)&&(f+=i,0>f&&(f=0),f>n&&(f=n),o.scrollTo=o.scrollTo||{},o.scrollTo[h]=f,setTimeout(function(){o.scrollTo&&(r.stop().animate(o.scrollTo,240,"linear",function(){f=r[h]()}),o.scrollTo=null)},1)),l.preventDefault(),!1},t.scroll.on("MozMousePixelScroll"+n,t.mousewheel).on("mousewheel"+n,t.mousewheel).on("mouseenter"+n,function(){f=r[h]()}),t.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+n,function(s){if(1!=s.which)return!0;d=1;var n={eventOffset:s["x"===e?"pageX":"pageY"],maxScrollValue:t.size-t.visible-t.offset,scrollbarOffset:t.scroll.bar.offset()["x"===e?"left":"top"],scrollbarSize:t.scroll.bar["x"===e?"outerWidth":"outerHeight"]()},a=0,v=0;return l(this).hasClass("scroll-arrow")?(d=l(this).hasClass("scroll-arrow_more")?1:-1,p=c.scrollStep*d,f=d>0?n.maxScrollValue:0):(d=n.eventOffset>n.scrollbarOffset+n.scrollbarSize?1:n.eventOffset
','
','
','
','"," "].join(""),simple:['
"].join("")};return o[e]&&(e=o[e]),e||(e=o.simple),e="string"==typeof e?l(e).appendTo(this.wrapper):l(e),l.extend(e,{bar:e.find(".scroll-bar"),size:e.find(".scroll-element_size"),track:e.find(".scroll-element_track")}),e},_handleMouseDown:function(e,o){var s=this.namespace;return l(document).on("blur"+s,function(){l(document).add("body").off(s),e&&e()}),l(document).on("dragstart"+s,function(l){return l.preventDefault(),!1}),l(document).on("mouseup"+s,function(){l(document).add("body").off(s),e&&e()}),l("body").on("selectstart"+s,function(l){return l.preventDefault(),!1}),o&&o.preventDefault(),!1},_updateScroll:function(e,o){var s=this.container,r=this.containerWrapper||s,i="scroll-scroll"+e+"_visible",n="x"===e?this.scrolly:this.scrollx,c=parseInt(this.container.css("x"===e?"left":"top"),10)||0,a=this.wrapper,d=o.size,h=o.visible+c;o.isVisible=d-h>1,o.isVisible?(o.scroll.addClass(i),n.scroll.addClass(i),r.addClass(i)):(o.scroll.removeClass(i),n.scroll.removeClass(i),r.removeClass(i)),"y"===e&&r.css(s.is("textarea")||h>d?{height:h+t.scroll.height+"px","max-height":"none"}:{"max-height":h+t.scroll.height+"px"}),(o.size!=s.prop("scrollWidth")||n.size!=s.prop("scrollHeight")||o.visible!=a.width()||n.visible!=a.height()||o.offset!=(parseInt(s.css("left"),10)||0)||n.offset!=(parseInt(s.css("top"),10)||0))&&(l.extend(this.scrollx,{offset:parseInt(s.css("left"),10)||0,size:s.prop("scrollWidth"),visible:a.width()}),l.extend(this.scrolly,{offset:parseInt(s.css("top"),10)||0,size:this.container.prop("scrollHeight"),visible:a.height()}),this._updateScroll("x"===e?"y":"x",n))}};var c=n;l.fn.scrollbar=function(e,o){return"string"!=typeof e&&(o=e,e="init"),"undefined"==typeof o&&(o=[]),l.isArray(o)||(o=[o]),this.not("body, .scroll-wrapper").each(function(){var s=l(this),r=s.data(t.data.name);(r||"init"===e)&&(r||(r=new c(s)),r[e]&&r[e].apply(r,o))}),this},l.fn.scrollbar.options=i;var a=function(){var l=0,e=0;return function(o){var s,i,n,c,d,h,p;for(s=0;s
10?(window.console&&console.log("Scroll updates exceed 10"),a=function(){}):(clearTimeout(l),l=setTimeout(a,300))}}();window.angular&&!function(l){l.module("jQueryScrollbar",[]).provider("jQueryScrollbar",function(){var e=i;return{setOptions:function(o){l.extend(e,o)},$get:function(){return{options:l.copy(e)}}}}).directive("jqueryScrollbar",function(l,e){return{restrict:"AC",link:function(o,s,r){var t=e(r.jqueryScrollbar),i=t(o);s.scrollbar(i||l.options).on("$destroy",function(){s.scrollbar("destroy")})}}})}(window.angular)});
diff --git a/themes/learn2/js/learn.js b/themes/learn2/js/learn.js
new file mode 100644
index 00000000..73bd8606
--- /dev/null
+++ b/themes/learn2/js/learn.js
@@ -0,0 +1,342 @@
+// Scrollbar Width function
+function getScrollBarWidth() {
+ var inner = document.createElement('p');
+ inner.style.width = "100%";
+ inner.style.height = "200px";
+
+ var outer = document.createElement('div');
+ outer.style.position = "absolute";
+ outer.style.top = "0px";
+ outer.style.left = "0px";
+ outer.style.visibility = "hidden";
+ outer.style.width = "200px";
+ outer.style.height = "150px";
+ outer.style.overflow = "hidden";
+ outer.appendChild(inner);
+
+ document.body.appendChild(outer);
+ var w1 = inner.offsetWidth;
+ outer.style.overflow = 'scroll';
+ var w2 = inner.offsetWidth;
+ if (w1 == w2) w2 = outer.clientWidth;
+
+ document.body.removeChild(outer);
+
+ return (w1 - w2);
+};
+
+function setMenuHeight() {
+ $('#sidebar .highlightable').height($('#sidebar').innerHeight() - $('#header-wrapper').height() - 40);
+}
+
+function fallbackMessage(action) {
+ var actionMsg = '';
+ var actionKey = (action === 'cut' ? 'X' : 'C');
+
+ if (/iPhone|iPad/i.test(navigator.userAgent)) {
+ actionMsg = 'No support :(';
+ }
+ else if (/Mac/i.test(navigator.userAgent)) {
+ actionMsg = 'Press ⌘-' + actionKey + ' to ' + action;
+ }
+ else {
+ actionMsg = 'Press Ctrl-' + actionKey + ' to ' + action;
+ }
+
+ return actionMsg;
+}
+
+// for the window resize
+$(window).resize(function() {
+ setMenuHeight();
+});
+
+// debouncing function from John Hann
+// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
+(function($, sr) {
+
+ var debounce = function(func, threshold, execAsap) {
+ var timeout;
+
+ return function debounced() {
+ var obj = this, args = arguments;
+
+ function delayed() {
+ if (!execAsap)
+ func.apply(obj, args);
+ timeout = null;
+ };
+
+ if (timeout)
+ clearTimeout(timeout);
+ else if (execAsap)
+ func.apply(obj, args);
+
+ timeout = setTimeout(delayed, threshold || 100);
+ };
+ }
+ // smartresize
+ jQuery.fn[sr] = function(fn) { return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
+
+})(jQuery, 'smartresize');
+
+
+jQuery(document).ready(function() {
+ var sidebarStatus = searchStatus = 'open';
+
+ // set the menu height
+ setMenuHeight();
+
+ jQuery('#overlay').on('click', function() {
+ jQuery(document.body).toggleClass('sidebar-hidden');
+ sidebarStatus = (jQuery(document.body).hasClass('sidebar-hidden') ? 'closed' : 'open');
+
+ return false;
+ });
+
+ jQuery('.scrollbar-inner').scrollbar();
+
+ jQuery('[data-sidebar-toggle]').on('click', function() {
+ jQuery(document.body).toggleClass('sidebar-hidden');
+ sidebarStatus = (jQuery(document.body).hasClass('sidebar-hidden') ? 'closed' : 'open');
+
+ return false;
+ });
+ jQuery('[data-clear-history-toggle]').on('click', function() {
+ sessionStorage.clear();
+ location.reload();
+ return false;
+ });
+ jQuery('[data-search-toggle]').on('click', function() {
+ if (sidebarStatus == 'closed') {
+ jQuery('[data-sidebar-toggle]').trigger('click');
+ jQuery(document.body).removeClass('searchbox-hidden');
+ searchStatus = 'open';
+
+ return false;
+ }
+
+ jQuery(document.body).toggleClass('searchbox-hidden');
+ searchStatus = (jQuery(document.body).hasClass('searchbox-hidden') ? 'closed' : 'open');
+
+ return false;
+ });
+
+ var ajax;
+ jQuery('[data-search-input]').on('input', function() {
+ var input = jQuery(this),
+ value = input.val(),
+ items = jQuery('[data-nav-id]');
+
+ items.removeClass('search-match');
+ if (!value.length) {
+ $('ul.topics').removeClass('searched');
+ items.css('display', 'block');
+ sessionStorage.removeItem('search-value');
+ $(".highlightable").unhighlight({ element: 'mark' })
+ return;
+ }
+
+ sessionStorage.setItem('search-value', value);
+ $(".highlightable").unhighlight({ element: 'mark' }).highlight(value, { element: 'mark' });
+
+ if (ajax && ajax.abort) ajax.abort();
+ ajax = jQuery.ajax({
+ url: input.data('search-input') + ':' + value
+ }).done(function(data) {
+ if (data && data.results && data.results.length) {
+ items.css('display', 'none');
+ $('ul.topics').addClass('searched');
+ data.results.forEach(function(navitem) {
+ jQuery('[data-nav-id="' + navitem + '"]').css('display', 'block').addClass('search-match');
+ jQuery('[data-nav-id="' + navitem + '"]').parents('li').css('display', 'block');
+ });
+ }
+ ;
+
+ });
+ jQuery('[data-search-clear]').on('click', function() {
+ jQuery('[data-search-input]').val('').trigger('input');
+ sessionStorage.removeItem('search-input');
+ $(".highlightable").unhighlight({ element: 'mark' })
+ });
+ });
+
+ if (sessionStorage.getItem('search-value')) {
+ jQuery(document.body).removeClass('searchbox-hidden');
+ jQuery('[data-search-input]').val(sessionStorage.getItem('search-value'));
+ jQuery('[data-search-input]').trigger('input');
+ }
+
+ // clipboard
+ var clipInit = false;
+ $('code').each(function() {
+ var code = $(this),
+ text = code.text();
+
+ if (text.length > 5) {
+ if (!clipInit) {
+ var text, clip = new Clipboard('.copy-to-clipboard', {
+ text: function(trigger) {
+ text = $(trigger).prev('code').text();
+ return text.replace(/^\$\s/gm, '');
+ }
+ });
+
+ var inPre;
+ clip.on('success', function(e) {
+ e.clearSelection();
+ inPre = $(e.trigger).parent().prop('tagName') == 'PRE';
+ $(e.trigger).attr('aria-label', 'Copied to clipboard!').addClass('tooltipped tooltipped-' + (inPre ? 'w' : 's'));
+ });
+
+ clip.on('error', function(e) {
+ inPre = $(e.trigger).parent().prop('tagName') == 'PRE';
+ $(e.trigger).attr('aria-label', fallbackMessage(e.action)).addClass('tooltipped tooltipped-' + (inPre ? 'w' : 's'));
+ $(document).one('copy', function(){
+ $(e.trigger).attr('aria-label', 'Copied to clipboard!').addClass('tooltipped tooltipped-' + (inPre ? 'w' : 's'));
+ });
+ });
+
+ clipInit = true;
+ }
+
+ code.after(' ');
+ code.next('.copy-to-clipboard').on('mouseleave', function() {
+ $(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w');
+ });
+ }
+ });
+
+ // allow keyboard control for prev/next links
+ jQuery(function() {
+ jQuery('.nav-prev').click(function(){
+ location.href = jQuery(this).attr('href');
+ });
+ jQuery('.nav-next').click(function() {
+ location.href = jQuery(this).attr('href');
+ });
+ });
+
+ jQuery(document).keydown(function(e) {
+ // prev links - left arrow key
+ if(e.which == '37') {
+ jQuery('.nav.nav-prev').click();
+ }
+
+ // next links - right arrow key
+ if(e.which == '39') {
+ jQuery('.nav.nav-next').click();
+ }
+ });
+
+});
+
+jQuery(window).on('load', function() {
+
+ function adjustForScrollbar() {
+ if ((parseInt(jQuery('#body-inner').height()) + 83) >= jQuery('#body').height()) {
+ jQuery('.nav.nav-next').css({ 'margin-right': getScrollBarWidth() });
+ } else {
+ jQuery('.nav.nav-next').css({ 'margin-right': 0 });
+ }
+ }
+
+ // adjust sidebar for scrollbar
+ adjustForScrollbar();
+
+ jQuery(window).smartresize(function() {
+ adjustForScrollbar();
+ });
+
+ // store this page in session
+ sessionStorage.setItem(jQuery('body').data('url'), 1);
+
+ // loop through the sessionStorage and see if something should be marked as visited
+ for (var url in sessionStorage) {
+ if (sessionStorage.getItem(url) == 1) jQuery('[data-nav-id="' + url + '"]').addClass('visited');
+ }
+
+
+ $(".highlightable").highlight(sessionStorage.getItem('search-value'), { element: 'mark' });
+});
+
+$(function() {
+ $('a[rel="lightbox"]').featherlight({
+ root: 'section#body'
+ });
+});
+
+jQuery.extend({
+ highlight: function(node, re, nodeName, className) {
+ if (node.nodeType === 3) {
+ var match = node.data.match(re);
+ if (match) {
+ var highlight = document.createElement(nodeName || 'span');
+ highlight.className = className || 'highlight';
+ var wordNode = node.splitText(match.index);
+ wordNode.splitText(match[0].length);
+ var wordClone = wordNode.cloneNode(true);
+ highlight.appendChild(wordClone);
+ wordNode.parentNode.replaceChild(highlight, wordNode);
+ return 1; //skip added node in parent
+ }
+ } else if ((node.nodeType === 1 && node.childNodes) && // only element nodes that have children
+ !/(script|style)/i.test(node.tagName) && // ignore script and style nodes
+ !(node.tagName === nodeName.toUpperCase() && node.className === className)) { // skip if already highlighted
+ for (var i = 0; i < node.childNodes.length; i++) {
+ i += jQuery.highlight(node.childNodes[i], re, nodeName, className);
+ }
+ }
+ return 0;
+ }
+});
+
+jQuery.fn.unhighlight = function(options) {
+ var settings = {
+ className: 'highlight',
+ element: 'span'
+ };
+ jQuery.extend(settings, options);
+
+ return this.find(settings.element + "." + settings.className).each(function() {
+ var parent = this.parentNode;
+ parent.replaceChild(this.firstChild, this);
+ parent.normalize();
+ }).end();
+};
+
+jQuery.fn.highlight = function(words, options) {
+ var settings = {
+ className: 'highlight',
+ element: 'span',
+ caseSensitive: false,
+ wordsOnly: false
+ };
+ jQuery.extend(settings, options);
+
+ if (!words) { return; }
+
+ if (words.constructor === String) {
+ words = [words];
+ }
+ words = jQuery.grep(words, function(word, i) {
+ return word != '';
+ });
+ words = jQuery.map(words, function(word, i) {
+ return word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
+ });
+ if (words.length == 0) { return this; }
+ ;
+
+ var flag = settings.caseSensitive ? "" : "i";
+ var pattern = "(" + words.join("|") + ")";
+ if (settings.wordsOnly) {
+ pattern = "\\b" + pattern + "\\b";
+ }
+ var re = new RegExp(pattern, flag);
+
+ return this.each(function() {
+ jQuery.highlight(this, re, settings.element, settings.className);
+ });
+};
diff --git a/themes/learn2/js/modernizr.custom.71422.js b/themes/learn2/js/modernizr.custom.71422.js
new file mode 100755
index 00000000..63cc6c20
--- /dev/null
+++ b/themes/learn2/js/modernizr.custom.71422.js
@@ -0,0 +1,4 @@
+/* Modernizr 2.7.1 (Custom Build) | MIT & BSD
+ * Build: http://modernizr.com/download/#-csstransforms3d-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load
+ */
+;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.7.1",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.csstransforms3d=function(){var a=!!F("perspective");return a&&"webkitPerspective"in g.style&&w("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;fGrav - The Modern Flat File CMS
+ THEME_LEARN2_SEARCH_DOCUMENTATION: Search Documentation
+cn:
+ THEME_LEARN2_GITHUB_EDIT_THIS_PAGE: 编辑此页
+ THEME_LEARN2_GITHUB_NOTE: 发现错误?请帮忙改进,谢谢!
+ THEME_LEARN2_CLEAR_HISTORY: 清除历史
+ THEME_LEARN2_BUILT_WITH_GRAV: Built with Grav - The Modern Flat File CMS
+ THEME_LEARN2_SEARCH_DOCUMENTATION: 搜索文档
+cs:
+ THEME_LEARN2_GITHUB_EDIT_THIS_PAGE: Upravte tuto stránku
+ THEME_LEARN2_GITHUB_NOTE: Našli jste chybu? Myslíte, že můžete vylepšit tuto dokumentaci?
+ THEME_LEARN2_CLEAR_HISTORY: Smazat historii
+ THEME_LEARN2_BUILT_WITH_GRAV: Postaveno na Grav - Moderní správce obsahu pomocí souborů prostých textů
+ THEME_LEARN2_SEARCH_DOCUMENTATION: Vyhledat v dokumentaci
+de:
+ THEME_LEARN2_GITHUB_EDIT_THIS_PAGE: diese Seite bearbeiten
+ THEME_LEARN2_GITHUB_NOTE: Fehler gefunden? Möchten Sie diese Seite verbessern?
+ THEME_LEARN2_CLEAR_HISTORY: Verlauf löschen
+ THEME_LEARN2_BUILT_WITH_GRAV: Seite erstellt mit Grav - The Modern Flat File CMS
+ THEME_LEARN2_SEARCH_DOCUMENTATION: Dokumentation durchsuchen
+es:
+ THEME_LEARN2_GITHUB_EDIT_THIS_PAGE: editar esta página
+ THEME_LEARN2_GITHUB_NOTE: ¿Encontraste errores? ¿Crees que puedes mejorar esta documentación?
+ THEME_LEARN2_CLEAR_HISTORY: Limpiar historial
+ THEME_LEARN2_BUILT_WITH_GRAV: Hecho con Grav - El CMS moderno de archivos planos
+ THEME_LEARN2_SEARCH_DOCUMENTATION: Buscar en la documentación
+fr:
+ THEME_LEARN2_GITHUB_EDIT_THIS_PAGE: modifier cette page
+ THEME_LEARN2_GITHUB_NOTE: Vous avez découvert des erreurs ? Vous pensez pouvoir améliorer cette documentation ?
+ THEME_LEARN2_CLEAR_HISTORY: Effacer l'historique
+ THEME_LEARN2_BUILT_WITH_GRAV: Créé avec Grav - Le CMS moderne sans base de données
+ THEME_LEARN2_SEARCH_DOCUMENTATION: Rechercher dans la documentation
+it:
+ THEME_LEARN2_GITHUB_EDIT_THIS_PAGE: modifica pagina
+ THEME_LEARN2_GITHUB_NOTE: Hai trovato degli errori? Pensi di poter migliorare questa documentazione?
+ THEME_LEARN2_CLEAR_HISTORY: Cancella Cronologia
+ THEME_LEARN2_BUILT_WITH_GRAV: Built with Grav - The Modern Flat File CMS
+ THEME_LEARN2_SEARCH_DOCUMENTATION: Cerca nella Documentatione
+ru:
+ THEME_LEARN2_GITHUB_EDIT_THIS_PAGE: редактировать эту страницу
+ THEME_LEARN2_GITHUB_NOTE: Нашли ошибки? Думаете, что можете улучшить документацию?
+ THEME_LEARN2_CLEAR_HISTORY: Очистить историю
+ THEME_LEARN2_BUILT_WITH_GRAV: Сделано на Grav — современной файловой CMS
+ THEME_LEARN2_SEARCH_DOCUMENTATION: Поиск по документации
diff --git a/themes/learn2/learn2.php b/themes/learn2/learn2.php
new file mode 100644
index 00000000..ff3e3a03
--- /dev/null
+++ b/themes/learn2/learn2.php
@@ -0,0 +1,9 @@
+ i {
+ display: table-cell;
+ vertical-align: middle;
+ text-align: center;
+ }
+
+ @include breakpoint(desktop-only) {
+ display: table-cell;
+ position: static;
+ top: auto;
+ width: 50%;
+ text-align: center;
+ height: 100px;
+ line-height: 100px;
+ padding-top: 0;
+ > i {
+ display: inline-block;
+ }
+ }
+
+
+ &:hover {
+ background: $navbar-bg;
+ }
+
+ &.nav-pref {
+ left: 0;
+ }
+
+ &.nav-next {
+ right: 0;
+ }
+ }
+}
+
+#body-inner {
+ margin-bottom: 5rem;
+}
+
+// Chapter title
+#chapter {
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+ padding: 2rem 0;
+
+ #body-inner {
+ padding-bottom: 3rem;
+ max-width: 80%;
+ }
+
+ h3 {
+ font-family: $font-family-default;
+ font-weight: $font-weight-regular;
+ text-align: center;
+ }
+
+ h1 {
+ font-size: 5rem;
+ border-bottom: 4px solid $rule-color;
+ }
+
+ p {
+ text-align: center;
+ font-size: 1.2rem;
+ }
+}
+
+#footer {
+ padding: 3rem 1rem;
+ color: darken($sidebar-link, 10%);
+ font-size: 13px;
+
+ p {
+ margin: 0;
+ }
+}
diff --git a/themes/learn2/scss/theme/_nav.scss b/themes/learn2/scss/theme/_nav.scss
new file mode 100755
index 00000000..e83ce6c1
--- /dev/null
+++ b/themes/learn2/scss/theme/_nav.scss
@@ -0,0 +1,212 @@
+#sidebar-toggle {
+ display: none;
+
+ @include breakpoint(mobile-only) {
+ display: inline-block;
+ }
+
+}
+
+#sidebar {
+ @extend .default-animation;
+ background-color: $sidebar-bg;
+ position: fixed;
+ top: 0;
+ width: $sidebar-width;
+ bottom: 0;
+ left: 0;
+ font-weight: $font-weight-medium;
+ font-size: 15px;
+
+ a {
+ color: $sidebar-link;
+ &:hover {
+ color: lighten($sidebar-link, 10%);
+ }
+ &.subtitle {
+ color: rgba($sidebar-link, 0.6);
+ }
+ }
+
+ hr {
+ border-bottom: 1px solid darken($sidebar-bg, 3%);
+ }
+
+ a.padding {
+ padding: 0 1rem;
+ }
+
+ h5 {
+ margin: 2rem 0 0;
+ position: relative;
+ line-height: 2;
+
+ a {
+ display: block;
+ margin-left: 0;
+ margin-right: 0;
+ padding-left: 1rem;
+ padding-right: 1rem;
+ }
+
+ i {
+ color: rgba($sidebar-link, 0.6);
+ position: absolute;
+ right: 0.6rem;
+ top: 0.7rem;
+ font-size: 80%;
+ }
+
+ &.parent {
+ a {
+ background: darken($sidebar-bg, 7%);
+ color: lighten($sidebar-link, 5%) !important;
+ }
+ }
+
+ &.active {
+ a {
+ background: $white;
+ color: $core-text !important;
+ }
+
+ i {
+ color: $core-text !important;
+ }
+ }
+
+
+ }
+
+ h5 + ul.topics {
+ display: none;
+ margin-top: 0;
+ }
+
+ h5.parent, h5.active {
+ + ul.topics {
+ display: block;
+ }
+ }
+
+
+ ul {
+ @extend .default-animation;
+ list-style: none;
+ padding: 0;
+ margin: 0;
+
+ &.searched {
+ a {
+ color: darken($sidebar-link, 20%);
+ }
+
+ .search-match {
+ a {
+ color: lighten($sidebar-link, 10%);
+ &:hover {
+ color: lighten($sidebar-link, 20%);
+ }
+ }
+ }
+ }
+
+ &.topics {
+ margin: 0 1rem;
+
+ &.searched {
+ ul {
+ display: block;
+ }
+ }
+
+ ul {
+ display: none;
+ padding-bottom: 1rem;
+
+ ul {
+ padding-bottom: 0;
+ }
+ }
+
+ li.parent ul, > li.active ul {
+ display: block;
+ }
+
+ > li {
+ > a {
+ line-height: 2rem;
+ font-size: 1.1rem;
+
+ b {
+ opacity: 0.5;
+ font-weight: normal;
+ }
+
+ .fa {
+ margin-top: 9px;
+ }
+ }
+
+ &.parent, &.active {
+ background: darken($sidebar-bg, 5%);
+ margin-left: -1rem;
+ margin-right: -1rem;
+ padding-left: 1rem;
+ padding-right: 1rem;
+ }
+ }
+ }
+
+ li.active > a {
+ background: $white;
+ color: $core-text !important;
+ margin-left: -1rem;
+ margin-right: -1rem;
+ padding-left: 1rem;
+ padding-right: 1rem;
+ }
+
+ li {
+ padding: 0;
+ &.visited + span {
+ margin-right: 16px;
+ }
+ a {
+ display: block;
+ padding: 2px 0;
+ span {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ display: block;
+ }
+ }
+ > a {
+ padding: 4px 0;
+ }
+
+ .fa {
+ display: none;
+ float: right;
+ font-size: 13px;
+ min-width: 16px;
+ margin: 4px 0 0 0;
+ text-align: right;
+ }
+
+ &.visited {
+ > a .read-icon {
+ color: $core-accent;
+ display: inline;
+ }
+ }
+
+ li {
+ padding-left: 1rem;
+ text-indent: 0.2rem;
+ }
+ }
+
+ }
+}
diff --git a/themes/learn2/scss/theme/_scrollbar.scss b/themes/learn2/scss/theme/_scrollbar.scss
new file mode 100644
index 00000000..00c9cfc9
--- /dev/null
+++ b/themes/learn2/scss/theme/_scrollbar.scss
@@ -0,0 +1,139 @@
+/*************** SCROLLBAR BASE CSS ***************/
+
+.highlightable {
+ padding: 25px 0 15px;
+}
+
+.scroll-wrapper {
+ overflow: hidden !important;
+ padding: 0 !important;
+ position: relative;
+}
+
+.scroll-wrapper > .scroll-content {
+ border: none !important;
+ box-sizing: content-box !important;
+ height: auto;
+ left: 0;
+ margin: 0;
+ max-height: none;
+ max-width: none !important;
+ overflow: scroll !important;
+ padding: 0;
+ position: relative !important;
+ top: 0;
+ width: auto !important;
+}
+
+.scroll-wrapper > .scroll-content::-webkit-scrollbar {
+ height: 0;
+ width: 0;
+}
+
+.scroll-element {
+ display: none;
+}
+.scroll-element, .scroll-element div {
+ box-sizing: content-box;
+}
+
+.scroll-element.scroll-x.scroll-scrollx_visible,
+.scroll-element.scroll-y.scroll-scrolly_visible {
+ display: block;
+}
+
+.scroll-element .scroll-bar,
+.scroll-element .scroll-arrow {
+ cursor: default;
+}
+
+.scroll-textarea {
+
+}
+.scroll-textarea > .scroll-content {
+ overflow: hidden !important;
+}
+.scroll-textarea > .scroll-content > textarea {
+ border: none !important;
+ box-sizing: border-box;
+ height: 100% !important;
+ margin: 0;
+ max-height: none !important;
+ max-width: none !important;
+ overflow: scroll !important;
+ outline: none;
+ padding: 2px;
+ position: relative !important;
+ top: 0;
+ width: 100% !important;
+}
+.scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {
+ height: 0;
+ width: 0;
+}
+
+
+
+
+/*************** SIMPLE INNER SCROLLBAR ***************/
+
+.scrollbar-inner > .scroll-element,
+.scrollbar-inner > .scroll-element div
+{
+ border: none;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+ z-index: 10;
+}
+
+.scrollbar-inner > .scroll-element div {
+ display: block;
+ height: 100%;
+ left: 0;
+ top: 0;
+ width: 100%;
+}
+
+.scrollbar-inner > .scroll-element.scroll-x {
+ bottom: 2px;
+ height: 8px;
+ left: 0;
+ width: 100%;
+}
+
+.scrollbar-inner > .scroll-element.scroll-y {
+ height: 100%;
+ right: 2px;
+ top: 0;
+ width: 8px;
+}
+
+.scrollbar-inner > .scroll-element .scroll-element_outer {
+ overflow: hidden;
+}
+
+.scrollbar-inner > .scroll-element .scroll-element_outer,
+.scrollbar-inner > .scroll-element .scroll-element_track,
+.scrollbar-inner > .scroll-element .scroll-bar {
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ border-radius: 8px;
+}
+
+.scrollbar-inner > .scroll-element .scroll-element_track,
+.scrollbar-inner > .scroll-element .scroll-bar {
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
+ filter: alpha(opacity=30);
+ opacity: 0.3;
+}
+
+
+/* update scrollbar offset if both scrolls are visible */
+
+.scrollbar-inner > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track { left: -12px; }
+.scrollbar-inner > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track { top: -12px; }
+
+
+.scrollbar-inner > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size { left: -12px; }
+.scrollbar-inner > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size { top: -12px; }
diff --git a/themes/learn2/scss/theme/_tables.scss b/themes/learn2/scss/theme/_tables.scss
new file mode 100755
index 00000000..923eb7f4
--- /dev/null
+++ b/themes/learn2/scss/theme/_tables.scss
@@ -0,0 +1,15 @@
+table {
+ border: 1px solid lighten($core-border-color,5%);
+ table-layout: auto;
+}
+
+th {
+ @extend strong;
+ background: lighten($core-border-color,10%);
+ padding: 0.5rem;
+}
+
+td {
+ padding: 0.5rem;
+ border: 1px solid lighten($core-border-color,5%);
+}
diff --git a/themes/learn2/scss/theme/_tooltips.scss b/themes/learn2/scss/theme/_tooltips.scss
new file mode 100644
index 00000000..9ec8ef8f
--- /dev/null
+++ b/themes/learn2/scss/theme/_tooltips.scss
@@ -0,0 +1,157 @@
+$multiline-max-width: 250px;
+$tooltip-background-color: rgba(0, 0, 0, 0.8);
+$tooltip-text-color: #fff;
+
+.tooltipped {
+ position: relative;
+}
+
+// This is the tooltip bubble
+.tooltipped:after {
+ position: absolute;
+ z-index: 1000000;
+ display: none;
+ padding: 5px 8px;
+ font: normal normal 11px/1.5 $font-family-default;
+ color: $tooltip-text-color;
+ text-align: center;
+ text-decoration: none;
+ text-shadow: none;
+ text-transform: none;
+ letter-spacing: normal;
+ word-wrap: break-word;
+ white-space: pre;
+ pointer-events: none;
+ content: attr(aria-label);
+ background: $tooltip-background-color;
+ border-radius: 3px;
+ -webkit-font-smoothing: subpixel-antialiased;
+}
+
+// This is the tooltip arrow
+.tooltipped:before {
+ position: absolute;
+ z-index: 1000001;
+ display: none;
+ width: 0;
+ height: 0;
+ color: $tooltip-background-color;
+ pointer-events: none;
+ content: "";
+ border: 5px solid transparent;
+}
+
+// This will indicate when we'll activate the tooltip
+.tooltipped:hover,
+.tooltipped:active,
+.tooltipped:focus {
+ &:before,
+ &:after {
+ display: inline-block;
+ text-decoration: none;
+ }
+}
+
+// Tooltipped south
+.tooltipped-s,
+.tooltipped-se,
+.tooltipped-sw {
+ &:after {
+ top: 100%;
+ right: 50%;
+ margin-top: 5px;
+ }
+
+ &:before {
+ top: auto;
+ right: 50%;
+ bottom: -5px;
+ margin-right: -5px;
+ border-bottom-color: $tooltip-background-color;
+ }
+}
+
+.tooltipped-se {
+ &:after {
+ right: auto;
+ left: 50%;
+ margin-left: -15px;
+ }
+}
+
+.tooltipped-sw:after {
+ margin-right: -15px;
+}
+
+// Tooltips above the object
+.tooltipped-n,
+.tooltipped-ne,
+.tooltipped-nw {
+ &:after {
+ right: 50%;
+ bottom: 100%;
+ margin-bottom: 5px;
+ }
+
+ &:before {
+ top: -5px;
+ right: 50%;
+ bottom: auto;
+ margin-right: -5px;
+ border-top-color: $tooltip-background-color;
+ }
+}
+
+.tooltipped-ne {
+ &:after {
+ right: auto;
+ left: 50%;
+ margin-left: -15px;
+ }
+}
+
+.tooltipped-nw:after {
+ margin-right: -15px;
+}
+
+// Move the tooltip body to the center of the object.
+.tooltipped-s:after,
+.tooltipped-n:after {
+ transform: translateX(50%);
+}
+
+// Tooltipped to the left
+.tooltipped-w {
+ &:after {
+ right: 100%;
+ bottom: 50%;
+ margin-right: 5px;
+ transform: translateY(50%);
+ }
+
+ &:before {
+ top: 50%;
+ bottom: 50%;
+ left: -5px;
+ margin-top: -5px;
+ border-left-color: $tooltip-background-color;
+ }
+}
+
+// tooltipped to the right
+.tooltipped-e {
+ &:after {
+ bottom: 50%;
+ left: 100%;
+ margin-left: 5px;
+ transform: translateY(50%);
+ }
+
+ &:before {
+ top: 50%;
+ right: -5px;
+ bottom: 50%;
+ margin-top: -5px;
+ border-right-color: $tooltip-background-color;
+ }
+}
diff --git a/themes/learn2/scss/theme/_typography.scss b/themes/learn2/scss/theme/_typography.scss
new file mode 100755
index 00000000..631a8c3a
--- /dev/null
+++ b/themes/learn2/scss/theme/_typography.scss
@@ -0,0 +1,181 @@
+// Body Base
+body {
+ font-family: $font-family-default;
+ letter-spacing: -0.03rem;
+ font-weight: 400;
+}
+
+// Headings
+h1, h2, h3, h4, h5, h6 {
+ font-family: $font-family-header;
+ font-weight: 400;
+ text-rendering: optimizeLegibility;
+ line-height: 150%;
+ letter-spacing: -0px;
+}
+
+h1 {
+ text-align: center;
+ letter-spacing: -3px;
+}
+
+h2 {
+ letter-spacing: -2px;
+}
+
+h3 {
+ letter-spacing: -1px;
+}
+
+// Blockquote
+blockquote {
+ border-left: 10px solid $rule-color;
+ p {
+ font-size: 1.1rem;
+ color: #999;
+ }
+ cite {
+ display: block;
+ text-align: right;
+ color: #666;
+ font-size: 1.2rem;
+ }
+}
+
+// NOTES!!!!
+blockquote {
+ position: relative;
+}
+
+blockquote blockquote {
+ position: static;
+}
+
+blockquote > blockquote > blockquote {
+
+ margin: 0;
+
+ p {
+ padding: 15px;
+ display: block;
+ font-size: 1rem;
+ margin-top: 0rem;
+ margin-bottom: 0rem;
+ color: #666;
+
+ &:first-child {
+ &:before {
+ position: absolute;
+ top: 2px;
+ color: $white;
+ font-family: FontAwesome;
+ content: '';
+ left: 10px;
+ }
+ &:after {
+ position: absolute;
+ top: 2px;
+ color: $white;
+ left: 2rem;
+ font-weight: bold;
+ content: 'Info';
+ }
+ }
+ }
+
+ > p {
+ // Yellow
+ margin-left: -71px;
+ border-top: 30px solid #F0B37E;
+ background: #FFF2DB;
+ }
+
+ > blockquote > p {
+ // Red
+ margin-left: -94px;
+ border-top: 30px solid rgba(#D9534F, 0.8);
+ background: #FAE2E2;
+ &:first-child:after {
+ content: 'Warning';
+ }
+ }
+
+ > blockquote > blockquote > p {
+ // Blue
+ margin-left: -118px;
+ border-top: 30px solid #6AB0DE;
+ background: #E7F2FA;
+ &:first-child:after {
+ content: 'Note';
+ }
+ }
+
+ > blockquote > blockquote > blockquote > p {
+ // Green
+ margin-left: -142px;
+ border-top: 30px solid rgba(#5CB85C, 0.8);
+ background: #E6F9E6;
+ &:first-child:after {
+ content: 'Tip';
+ }
+ }
+
+}
+
+// Inline and Code
+code,
+kbd,
+pre,
+samp {
+ font-family: $font-family-mono;
+}
+
+code {
+ background: $code-bg;
+ color: darken($code-text,10%);
+ padding: .2rem .4rem;
+ border-radius: 3px;
+}
+
+pre {
+ padding: 1rem;
+ margin: 2rem 0;
+ background: $pre-bg;
+ border: 1px solid $core-border-color;
+ border-radius: 2px;
+ line-height: 1.15;
+ font-size: 1rem;
+
+ code {
+ color: $pre-text;
+ background: inherit;
+ font-size: 1rem;
+ }
+}
+
+// Extras
+hr {
+ border-bottom: 4px solid $rule-color;
+}
+
+// Page Title
+.page-title {
+ margin-top: -25px;
+ padding: 25px;
+ float: left;
+ clear: both;
+ background: $core-accent;
+ color: $white;
+}
+
+// Anchor links
+#body {
+ a.anchor-link { color: #ccc; }
+ a.anchor-link:hover { color: $core-accent; }
+}
+
+// Scrollbar
+.scrollbar-inner > .scroll-element .scroll-element_track { background-color: rgba($white, 0.3); }
+.scrollbar-inner > .scroll-element .scroll-bar { background-color: lighten(#A1C4E5, 5%); }
+.scrollbar-inner > .scroll-element:hover .scroll-bar { background-color: #ccc; }
+.scrollbar-inner > .scroll-element.scroll-draggable .scroll-bar { background-color: #ccc; }
diff --git a/themes/learn2/scss/theme/modules/_base.scss b/themes/learn2/scss/theme/modules/_base.scss
new file mode 100755
index 00000000..1de274b4
--- /dev/null
+++ b/themes/learn2/scss/theme/modules/_base.scss
@@ -0,0 +1,2 @@
+// Buttons
+@import "buttons";
diff --git a/themes/learn2/scss/theme/modules/_buttons.scss b/themes/learn2/scss/theme/modules/_buttons.scss
new file mode 100755
index 00000000..88d03409
--- /dev/null
+++ b/themes/learn2/scss/theme/modules/_buttons.scss
@@ -0,0 +1,21 @@
+%button {
+ display: inline-block;
+ padding: 7px 12px;
+ &:active {
+ margin: 2px 0 -2px 0;
+ }
+}
+
+@mixin button-color($color) {
+ background: $color;
+ color: $white;
+ box-shadow: 0 3px 0 darken($color, 6%);
+ &:hover {
+ background: darken($color, 6%);
+ box-shadow: 0 3px 0 darken($color, 12%);
+ color: $white;
+ }
+ &:active {
+ box-shadow: 0 1px 0 darken($color, 12%);
+ }
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/bourbon/_bourbon-deprecated-upcoming.scss b/themes/learn2/scss/vendor/bourbon/_bourbon-deprecated-upcoming.scss
new file mode 100755
index 00000000..f946b3b4
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/_bourbon-deprecated-upcoming.scss
@@ -0,0 +1,8 @@
+//************************************************************************//
+// These mixins/functions are deprecated
+// They will be removed in the next MAJOR version release
+//************************************************************************//
+@mixin inline-block {
+ display: inline-block;
+ @warn "inline-block mixin is deprecated and will be removed in the next major version release";
+}
diff --git a/themes/learn2/scss/vendor/bourbon/_bourbon.scss b/themes/learn2/scss/vendor/bourbon/_bourbon.scss
new file mode 100755
index 00000000..64cb6ea8
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/_bourbon.scss
@@ -0,0 +1,77 @@
+// Settings
+@import "settings/prefixer";
+@import "settings/px-to-em";
+
+// Custom Helpers
+@import "helpers/convert-units";
+@import "helpers/gradient-positions-parser";
+@import "helpers/is-num";
+@import "helpers/linear-angle-parser";
+@import "helpers/linear-gradient-parser";
+@import "helpers/linear-positions-parser";
+@import "helpers/linear-side-corner-parser";
+@import "helpers/radial-arg-parser";
+@import "helpers/radial-positions-parser";
+@import "helpers/radial-gradient-parser";
+@import "helpers/render-gradients";
+@import "helpers/shape-size-stripper";
+@import "helpers/str-to-num";
+
+// Custom Functions
+@import "functions/assign";
+@import "functions/color-lightness";
+@import "functions/flex-grid";
+@import "functions/golden-ratio";
+@import "functions/grid-width";
+@import "functions/modular-scale";
+@import "functions/px-to-em";
+@import "functions/px-to-rem";
+@import "functions/strip-units";
+@import "functions/tint-shade";
+@import "functions/transition-property-name";
+@import "functions/unpack";
+
+// CSS3 Mixins
+@import "css3/animation";
+@import "css3/appearance";
+@import "css3/backface-visibility";
+@import "css3/background";
+@import "css3/background-image";
+@import "css3/border-image";
+@import "css3/border-radius";
+@import "css3/box-sizing";
+@import "css3/calc";
+@import "css3/columns";
+@import "css3/filter";
+@import "css3/flex-box";
+@import "css3/font-face";
+@import "css3/hyphens";
+@import "css3/hidpi-media-query";
+@import "css3/image-rendering";
+@import "css3/keyframes";
+@import "css3/linear-gradient";
+@import "css3/perspective";
+@import "css3/radial-gradient";
+@import "css3/transform";
+@import "css3/transition";
+@import "css3/user-select";
+@import "css3/placeholder";
+
+// Addons & other mixins
+@import "addons/button";
+@import "addons/clearfix";
+@import "addons/directional-values";
+@import "addons/ellipsis";
+@import "addons/font-family";
+@import "addons/hide-text";
+@import "addons/html5-input-types";
+@import "addons/position";
+@import "addons/prefixer";
+@import "addons/retina-image";
+@import "addons/size";
+@import "addons/timing-functions";
+@import "addons/triangle";
+@import "addons/word-wrap";
+
+// Soon to be deprecated Mixins
+@import "bourbon-deprecated-upcoming";
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_button.scss b/themes/learn2/scss/vendor/bourbon/addons/_button.scss
new file mode 100755
index 00000000..14a89e48
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_button.scss
@@ -0,0 +1,374 @@
+@mixin button ($style: simple, $base-color: #4294f0, $text-size: inherit, $padding: 7px 18px) {
+
+ @if type-of($style) == string and type-of($base-color) == color {
+ @include buttonstyle($style, $base-color, $text-size, $padding);
+ }
+
+ @if type-of($style) == string and type-of($base-color) == number {
+ $padding: $text-size;
+ $text-size: $base-color;
+ $base-color: #4294f0;
+
+ @if $padding == inherit {
+ $padding: 7px 18px;
+ }
+
+ @include buttonstyle($style, $base-color, $text-size, $padding);
+ }
+
+ @if type-of($style) == color and type-of($base-color) == color {
+ $base-color: $style;
+ $style: simple;
+ @include buttonstyle($style, $base-color, $text-size, $padding);
+ }
+
+ @if type-of($style) == color and type-of($base-color) == number {
+ $padding: $text-size;
+ $text-size: $base-color;
+ $base-color: $style;
+ $style: simple;
+
+ @if $padding == inherit {
+ $padding: 7px 18px;
+ }
+
+ @include buttonstyle($style, $base-color, $text-size, $padding);
+ }
+
+ @if type-of($style) == number {
+ $padding: $base-color;
+ $text-size: $style;
+ $base-color: #4294f0;
+ $style: simple;
+
+ @if $padding == #4294f0 {
+ $padding: 7px 18px;
+ }
+
+ @include buttonstyle($style, $base-color, $text-size, $padding);
+ }
+
+ &:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+ }
+}
+
+
+// Selector Style Button
+//************************************************************************//
+@mixin buttonstyle($type, $b-color, $t-size, $pad) {
+ // Grayscale button
+ @if $type == simple and $b-color == grayscale($b-color) {
+ @include simple($b-color, true, $t-size, $pad);
+ }
+
+ @if $type == shiny and $b-color == grayscale($b-color) {
+ @include shiny($b-color, true, $t-size, $pad);
+ }
+
+ @if $type == pill and $b-color == grayscale($b-color) {
+ @include pill($b-color, true, $t-size, $pad);
+ }
+
+ @if $type == flat and $b-color == grayscale($b-color) {
+ @include flat($b-color, true, $t-size, $pad);
+ }
+
+ // Colored button
+ @if $type == simple {
+ @include simple($b-color, false, $t-size, $pad);
+ }
+
+ @else if $type == shiny {
+ @include shiny($b-color, false, $t-size, $pad);
+ }
+
+ @else if $type == pill {
+ @include pill($b-color, false, $t-size, $pad);
+ }
+
+ @else if $type == flat {
+ @include flat($b-color, false, $t-size, $pad);
+ }
+}
+
+
+// Simple Button
+//************************************************************************//
+@mixin simple($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
+ $color: hsl(0, 0, 100%);
+ $border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
+ $inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
+ $stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
+ $text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
+
+ @if is-light($base-color) {
+ $color: hsl(0, 0, 20%);
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
+ }
+
+ @if $grayscale == true {
+ $border: grayscale($border);
+ $inset-shadow: grayscale($inset-shadow);
+ $stop-gradient: grayscale($stop-gradient);
+ $text-shadow: grayscale($text-shadow);
+ }
+
+ border: 1px solid $border;
+ border-radius: 3px;
+ box-shadow: inset 0 1px 0 0 $inset-shadow;
+ color: $color;
+ display: inline-block;
+ font-size: $textsize;
+ font-weight: bold;
+ @include linear-gradient ($base-color, $stop-gradient);
+ padding: $padding;
+ text-decoration: none;
+ text-shadow: 0 1px 0 $text-shadow;
+ background-clip: padding-box;
+
+ &:hover:not(:disabled) {
+ $base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
+ $inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
+ $stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
+
+ @if $grayscale == true {
+ $base-color-hover: grayscale($base-color-hover);
+ $inset-shadow-hover: grayscale($inset-shadow-hover);
+ $stop-gradient-hover: grayscale($stop-gradient-hover);
+ }
+
+ box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
+ cursor: pointer;
+ @include linear-gradient ($base-color-hover, $stop-gradient-hover);
+ }
+
+ &:active:not(:disabled),
+ &:focus:not(:disabled) {
+ $border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
+ $inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
+
+ @if $grayscale == true {
+ $border-active: grayscale($border-active);
+ $inset-shadow-active: grayscale($inset-shadow-active);
+ }
+
+ border: 1px solid $border-active;
+ box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active;
+ }
+}
+
+
+// Shiny Button
+//************************************************************************//
+@mixin shiny($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
+ $color: hsl(0, 0, 100%);
+ $border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81);
+ $border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122);
+ $fourth-stop: adjust-color($base-color, $red: -79, $green: -70, $blue: -46);
+ $inset-shadow: adjust-color($base-color, $red: 37, $green: 29, $blue: 12);
+ $second-stop: adjust-color($base-color, $red: -56, $green: -50, $blue: -33);
+ $text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114);
+ $third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48);
+
+ @if is-light($base-color) {
+ $color: hsl(0, 0, 20%);
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
+ }
+
+ @if $grayscale == true {
+ $border: grayscale($border);
+ $border-bottom: grayscale($border-bottom);
+ $fourth-stop: grayscale($fourth-stop);
+ $inset-shadow: grayscale($inset-shadow);
+ $second-stop: grayscale($second-stop);
+ $text-shadow: grayscale($text-shadow);
+ $third-stop: grayscale($third-stop);
+ }
+
+ border: 1px solid $border;
+ border-bottom: 1px solid $border-bottom;
+ border-radius: 5px;
+ box-shadow: inset 0 1px 0 0 $inset-shadow;
+ color: $color;
+ display: inline-block;
+ font-size: $textsize;
+ font-weight: bold;
+ @include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
+ padding: $padding;
+ text-align: center;
+ text-decoration: none;
+ text-shadow: 0 -1px 1px $text-shadow;
+
+ &:hover:not(:disabled) {
+ $first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
+ $second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
+ $third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66);
+ $fourth-stop-hover: adjust-color($base-color, $red: -86, $green: -80, $blue: -63);
+
+ @if $grayscale == true {
+ $first-stop-hover: grayscale($first-stop-hover);
+ $second-stop-hover: grayscale($second-stop-hover);
+ $third-stop-hover: grayscale($third-stop-hover);
+ $fourth-stop-hover: grayscale($fourth-stop-hover);
+ }
+
+ cursor: pointer;
+ @include linear-gradient(top, $first-stop-hover 0%,
+ $second-stop-hover 50%,
+ $third-stop-hover 50%,
+ $fourth-stop-hover 100%);
+ }
+
+ &:active:not(:disabled),
+ &:focus:not(:disabled) {
+ $inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
+
+ @if $grayscale == true {
+ $inset-shadow-active: grayscale($inset-shadow-active);
+ }
+
+ box-shadow: inset 0 0 20px 0 $inset-shadow-active;
+ }
+}
+
+
+// Pill Button
+//************************************************************************//
+@mixin pill($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
+ $color: hsl(0, 0, 100%);
+ $border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%);
+ $border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%);
+ $border-top: adjust-color($base-color, $hue: -1, $saturation: -30%, $lightness: -15%);
+ $inset-shadow: adjust-color($base-color, $hue: -1, $saturation: -1%, $lightness: 7%);
+ $stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%);
+ $text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%);
+
+ @if is-light($base-color) {
+ $color: hsl(0, 0, 20%);
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
+ }
+
+ @if $grayscale == true {
+ $border-bottom: grayscale($border-bottom);
+ $border-sides: grayscale($border-sides);
+ $border-top: grayscale($border-top);
+ $inset-shadow: grayscale($inset-shadow);
+ $stop-gradient: grayscale($stop-gradient);
+ $text-shadow: grayscale($text-shadow);
+ }
+
+ border: 1px solid $border-top;
+ border-color: $border-top $border-sides $border-bottom;
+ border-radius: 16px;
+ box-shadow: inset 0 1px 0 0 $inset-shadow;
+ color: $color;
+ display: inline-block;
+ font-size: $textsize;
+ font-weight: normal;
+ line-height: 1;
+ @include linear-gradient ($base-color, $stop-gradient);
+ padding: $padding;
+ text-align: center;
+ text-decoration: none;
+ text-shadow: 0 -1px 1px $text-shadow;
+ background-clip: padding-box;
+
+ &:hover:not(:disabled) {
+ $base-color-hover: adjust-color($base-color, $lightness: -4.5%);
+ $border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%);
+ $border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%);
+ $border-top: adjust-color($base-color, $hue: -1, $saturation: -17%, $lightness: -21%);
+ $inset-shadow-hover: adjust-color($base-color, $saturation: -1%, $lightness: 3%);
+ $stop-gradient-hover: adjust-color($base-color, $hue: 8, $saturation: -4%, $lightness: -15.5%);
+ $text-shadow-hover: adjust-color($base-color, $hue: 5, $saturation: -5%, $lightness: -22%);
+
+ @if $grayscale == true {
+ $base-color-hover: grayscale($base-color-hover);
+ $border-bottom: grayscale($border-bottom);
+ $border-sides: grayscale($border-sides);
+ $border-top: grayscale($border-top);
+ $inset-shadow-hover: grayscale($inset-shadow-hover);
+ $stop-gradient-hover: grayscale($stop-gradient-hover);
+ $text-shadow-hover: grayscale($text-shadow-hover);
+ }
+
+ border: 1px solid $border-top;
+ border-color: $border-top $border-sides $border-bottom;
+ box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
+ cursor: pointer;
+ @include linear-gradient ($base-color-hover, $stop-gradient-hover);
+ text-shadow: 0 -1px 1px $text-shadow-hover;
+ background-clip: padding-box;
+ }
+
+ &:active:not(:disabled),
+ &:focus:not(:disabled) {
+ $active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
+ $border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
+ $border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
+ $inset-shadow-active: adjust-color($base-color, $hue: 9, $saturation: 2%, $lightness: -21.5%);
+ $text-shadow-active: adjust-color($base-color, $hue: 5, $saturation: -12%, $lightness: -21.5%);
+
+ @if $grayscale == true {
+ $active-color: grayscale($active-color);
+ $border-active: grayscale($border-active);
+ $border-bottom-active: grayscale($border-bottom-active);
+ $inset-shadow-active: grayscale($inset-shadow-active);
+ $text-shadow-active: grayscale($text-shadow-active);
+ }
+
+ background: $active-color;
+ border: 1px solid $border-active;
+ border-bottom: 1px solid $border-bottom-active;
+ box-shadow: inset 0 0 6px 3px $inset-shadow-active;
+ text-shadow: 0 -1px 1px $text-shadow-active;
+ }
+}
+
+
+
+// Flat Button
+//************************************************************************//
+@mixin flat($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
+ $color: hsl(0, 0, 100%);
+
+ @if is-light($base-color) {
+ $color: hsl(0, 0, 20%);
+ }
+
+ background-color: $base-color;
+ border-radius: 3px;
+ border: none;
+ color: $color;
+ display: inline-block;
+ font-size: inherit;
+ font-weight: bold;
+ padding: 7px 18px;
+ text-decoration: none;
+ background-clip: padding-box;
+
+ &:hover:not(:disabled){
+ $base-color-hover: adjust-color($base-color, $saturation: 4%, $lightness: 5%);
+
+ @if $grayscale == true {
+ $base-color-hover: grayscale($base-color-hover);
+ }
+
+ background-color: $base-color-hover;
+ cursor: pointer;
+ }
+
+ &:active:not(:disabled),
+ &:focus:not(:disabled) {
+ $base-color-active: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
+
+ @if $grayscale == true {
+ $base-color-active: grayscale($base-color-active);
+ }
+
+ background-color: $base-color-active;
+ cursor: pointer;
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_clearfix.scss b/themes/learn2/scss/vendor/bourbon/addons/_clearfix.scss
new file mode 100755
index 00000000..783cfbc7
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_clearfix.scss
@@ -0,0 +1,23 @@
+// Modern micro clearfix provides an easy way to contain floats without adding additional markup.
+//
+// Example usage:
+//
+// // Contain all floats within .wrapper
+// .wrapper {
+// @include clearfix;
+// .content,
+// .sidebar {
+// float : left;
+// }
+// }
+
+@mixin clearfix {
+ &:after {
+ content:"";
+ display:table;
+ clear:both;
+ }
+}
+
+// Acknowledgements
+// Beat *that* clearfix: [Thierry Koblentz](http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php)
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_directional-values.scss b/themes/learn2/scss/vendor/bourbon/addons/_directional-values.scss
new file mode 100755
index 00000000..742f1031
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_directional-values.scss
@@ -0,0 +1,111 @@
+// directional-property mixins are shorthands
+// for writing properties like the following
+//
+// @include margin(null 0 10px);
+// ------
+// margin-right: 0;
+// margin-bottom: 10px;
+// margin-left: 0;
+//
+// - or -
+//
+// @include border-style(dotted null);
+// ------
+// border-top-style: dotted;
+// border-bottom-style: dotted;
+//
+// ------
+//
+// Note: You can also use false instead of null
+
+@function collapse-directionals($vals) {
+ $output: null;
+
+ $A: nth( $vals, 1 );
+ $B: if( length($vals) < 2, $A, nth($vals, 2));
+ $C: if( length($vals) < 3, $A, nth($vals, 3));
+ $D: if( length($vals) < 2, $A, nth($vals, if( length($vals) < 4, 2, 4) ));
+
+ @if $A == 0 { $A: 0 }
+ @if $B == 0 { $B: 0 }
+ @if $C == 0 { $C: 0 }
+ @if $D == 0 { $D: 0 }
+
+ @if $A == $B and $A == $C and $A == $D { $output: $A }
+ @else if $A == $C and $B == $D { $output: $A $B }
+ @else if $B == $D { $output: $A $B $C }
+ @else { $output: $A $B $C $D }
+
+ @return $output;
+}
+
+@function contains-falsy($list) {
+ @each $item in $list {
+ @if not $item {
+ @return true;
+ }
+ }
+
+ @return false;
+}
+
+@mixin directional-property($pre, $suf, $vals) {
+ // Property Names
+ $top: $pre + "-top" + if($suf, "-#{$suf}", "");
+ $bottom: $pre + "-bottom" + if($suf, "-#{$suf}", "");
+ $left: $pre + "-left" + if($suf, "-#{$suf}", "");
+ $right: $pre + "-right" + if($suf, "-#{$suf}", "");
+ $all: $pre + if($suf, "-#{$suf}", "");
+
+ $vals: collapse-directionals($vals);
+
+ @if contains-falsy($vals) {
+ @if nth($vals, 1) { #{$top}: nth($vals, 1); }
+
+ @if length($vals) == 1 {
+ @if nth($vals, 1) { #{$right}: nth($vals, 1); }
+ } @else {
+ @if nth($vals, 2) { #{$right}: nth($vals, 2); }
+ }
+
+ // prop: top/bottom right/left
+ @if length($vals) == 2 {
+ @if nth($vals, 1) { #{$bottom}: nth($vals, 1); }
+ @if nth($vals, 2) { #{$left}: nth($vals, 2); }
+
+ // prop: top right/left bottom
+ } @else if length($vals) == 3 {
+ @if nth($vals, 3) { #{$bottom}: nth($vals, 3); }
+ @if nth($vals, 2) { #{$left}: nth($vals, 2); }
+
+ // prop: top right bottom left
+ } @else if length($vals) == 4 {
+ @if nth($vals, 3) { #{$bottom}: nth($vals, 3); }
+ @if nth($vals, 4) { #{$left}: nth($vals, 4); }
+ }
+
+ // prop: top/right/bottom/left
+ } @else {
+ #{$all}: $vals;
+ }
+}
+
+@mixin margin($vals...) {
+ @include directional-property(margin, false, $vals...);
+}
+
+@mixin padding($vals...) {
+ @include directional-property(padding, false, $vals...);
+}
+
+@mixin border-style($vals...) {
+ @include directional-property(border, style, $vals...);
+}
+
+@mixin border-color($vals...) {
+ @include directional-property(border, color, $vals...);
+}
+
+@mixin border-width($vals...) {
+ @include directional-property(border, width, $vals...);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_ellipsis.scss b/themes/learn2/scss/vendor/bourbon/addons/_ellipsis.scss
new file mode 100755
index 00000000..a8ea2a4a
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_ellipsis.scss
@@ -0,0 +1,7 @@
+@mixin ellipsis($width: 100%) {
+ display: inline-block;
+ max-width: $width;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_font-family.scss b/themes/learn2/scss/vendor/bourbon/addons/_font-family.scss
new file mode 100755
index 00000000..31f5d9ca
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_font-family.scss
@@ -0,0 +1,5 @@
+$georgia: Georgia, Cambria, "Times New Roman", Times, serif;
+$helvetica: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
+$lucida-grande: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
+$monospace: "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
+$verdana: Verdana, Geneva, sans-serif;
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_hide-text.scss b/themes/learn2/scss/vendor/bourbon/addons/_hide-text.scss
new file mode 100755
index 00000000..fc794381
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_hide-text.scss
@@ -0,0 +1,10 @@
+@mixin hide-text {
+ overflow: hidden;
+
+ &:before {
+ content: "";
+ display: block;
+ width: 0;
+ height: 100%;
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_html5-input-types.scss b/themes/learn2/scss/vendor/bourbon/addons/_html5-input-types.scss
new file mode 100755
index 00000000..9e9324ae
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_html5-input-types.scss
@@ -0,0 +1,86 @@
+//************************************************************************//
+// Generate a variable ($all-text-inputs) with a list of all html5
+// input types that have a text-based input, excluding textarea.
+// http://diveintohtml5.org/forms.html
+//************************************************************************//
+$inputs-list: 'input[type="email"]',
+ 'input[type="number"]',
+ 'input[type="password"]',
+ 'input[type="search"]',
+ 'input[type="tel"]',
+ 'input[type="text"]',
+ 'input[type="url"]',
+
+ // Webkit & Gecko may change the display of these in the future
+ 'input[type="color"]',
+ 'input[type="date"]',
+ 'input[type="datetime"]',
+ 'input[type="datetime-local"]',
+ 'input[type="month"]',
+ 'input[type="time"]',
+ 'input[type="week"]';
+
+// Bare inputs
+//************************************************************************//
+$all-text-inputs: assign-inputs($inputs-list);
+
+// Hover Pseudo-class
+//************************************************************************//
+$all-text-inputs-hover: assign-inputs($inputs-list, hover);
+
+// Focus Pseudo-class
+//************************************************************************//
+$all-text-inputs-focus: assign-inputs($inputs-list, focus);
+
+
+
+// You must use interpolation on the variable:
+// #{$all-text-inputs}
+// #{$all-text-inputs-hover}
+// #{$all-text-inputs-focus}
+
+// Example
+//************************************************************************//
+// #{$all-text-inputs}, textarea {
+// border: 1px solid red;
+// }
+
+
+
+//************************************************************************//
+// Generate a variable ($all-button-inputs) with a list of all html5
+// input types that have a button-based input, excluding button.
+//************************************************************************//
+$inputs-button-list: 'input[type="button"]',
+ 'input[type="reset"]',
+ 'input[type="submit"]';
+
+// Bare inputs
+//************************************************************************//
+$all-button-inputs: assign-inputs($inputs-button-list);
+
+// Hover Pseudo-class
+//************************************************************************//
+$all-button-inputs-hover: assign-inputs($inputs-button-list, hover);
+
+// Focus Pseudo-class
+//************************************************************************//
+$all-button-inputs-focus: assign-inputs($inputs-button-list, focus);
+
+// Active Pseudo-class
+//************************************************************************//
+$all-button-inputs-active: assign-inputs($inputs-button-list, active);
+
+
+
+// You must use interpolation on the variable:
+// #{$all-button-inputs}
+// #{$all-button-inputs-hover}
+// #{$all-button-inputs-focus}
+// #{$all-button-inputs-active}
+
+// Example
+//************************************************************************//
+// #{$all-button-inputs}, button {
+// border: 1px solid red;
+// }
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_position.scss b/themes/learn2/scss/vendor/bourbon/addons/_position.scss
new file mode 100755
index 00000000..7de75182
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_position.scss
@@ -0,0 +1,32 @@
+@mixin position ($position: relative, $coordinates: null null null null) {
+
+ @if type-of($position) == list {
+ $coordinates: $position;
+ $position: relative;
+ }
+
+ $coordinates: unpack($coordinates);
+
+ $top: nth($coordinates, 1);
+ $right: nth($coordinates, 2);
+ $bottom: nth($coordinates, 3);
+ $left: nth($coordinates, 4);
+
+ position: $position;
+
+ @if ($top and $top == auto) or (type-of($top) == number) {
+ top: $top;
+ }
+
+ @if ($right and $right == auto) or (type-of($right) == number) {
+ right: $right;
+ }
+
+ @if ($bottom and $bottom == auto) or (type-of($bottom) == number) {
+ bottom: $bottom;
+ }
+
+ @if ($left and $left == auto) or (type-of($left) == number) {
+ left: $left;
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_prefixer.scss b/themes/learn2/scss/vendor/bourbon/addons/_prefixer.scss
new file mode 100755
index 00000000..c32f5027
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_prefixer.scss
@@ -0,0 +1,45 @@
+//************************************************************************//
+// Example: @include prefixer(border-radius, $radii, webkit ms spec);
+//************************************************************************//
+// Variables located in /settings/_prefixer.scss
+
+@mixin prefixer ($property, $value, $prefixes) {
+ @each $prefix in $prefixes {
+ @if $prefix == webkit {
+ @if $prefix-for-webkit {
+ -webkit-#{$property}: $value;
+ }
+ }
+ @else if $prefix == moz {
+ @if $prefix-for-mozilla {
+ -moz-#{$property}: $value;
+ }
+ }
+ @else if $prefix == ms {
+ @if $prefix-for-microsoft {
+ -ms-#{$property}: $value;
+ }
+ }
+ @else if $prefix == o {
+ @if $prefix-for-opera {
+ -o-#{$property}: $value;
+ }
+ }
+ @else if $prefix == spec {
+ @if $prefix-for-spec {
+ #{$property}: $value;
+ }
+ }
+ @else {
+ @warn "Unrecognized prefix: #{$prefix}";
+ }
+ }
+}
+
+@mixin disable-prefix-for-all() {
+ $prefix-for-webkit: false !global;
+ $prefix-for-mozilla: false !global;
+ $prefix-for-microsoft: false !global;
+ $prefix-for-opera: false !global;
+ $prefix-for-spec: false !global;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_rem.scss b/themes/learn2/scss/vendor/bourbon/addons/_rem.scss
new file mode 100755
index 00000000..ddd7022b
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_rem.scss
@@ -0,0 +1,33 @@
+@mixin rem($property, $size, $base: $em-base) {
+ @if not unitless($base) {
+ $base: strip-units($base);
+ }
+
+ $unitless_values: ();
+ @each $num in $size {
+ @if not unitless($num) {
+ @if unit($num) == "em" {
+ $num: $num * $base;
+ }
+
+ $num: strip-units($num);
+ }
+
+ $unitless_values: append($unitless_values, $num);
+ }
+ $size: $unitless_values;
+
+ $pixel_values: ();
+ $rem_values: ();
+ @each $value in $pxval {
+ $pixel_value: $value * 1px;
+ $pixel_values: append($pixel_values, $pixel_value);
+
+ $rem_value: ($value / $base) * 1rem;
+ $rem_values: append($rem_values, $rem_value);
+ }
+
+ #{$property}: $pixel_values;
+ #{$property}: $rem_values;
+}
+
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss b/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
new file mode 100755
index 00000000..7931bd13
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
@@ -0,0 +1,31 @@
+@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: false) {
+ @if $asset-pipeline {
+ background-image: image-url("#{$filename}.#{$extension}");
+ }
+ @else {
+ background-image: url("#{$filename}.#{$extension}");
+ }
+
+ @include hidpi {
+ @if $asset-pipeline {
+ @if $retina-filename {
+ background-image: image-url("#{$retina-filename}.#{$extension}");
+ }
+ @else {
+ background-image: image-url("#{$filename}#{$retina-suffix}.#{$extension}");
+ }
+ }
+
+ @else {
+ @if $retina-filename {
+ background-image: url("#{$retina-filename}.#{$extension}");
+ }
+ @else {
+ background-image: url("#{$filename}#{$retina-suffix}.#{$extension}");
+ }
+ }
+
+ background-size: $background-size;
+
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_size.scss b/themes/learn2/scss/vendor/bourbon/addons/_size.scss
new file mode 100755
index 00000000..ac705e26
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_size.scss
@@ -0,0 +1,16 @@
+@mixin size($size) {
+ $height: nth($size, 1);
+ $width: $height;
+
+ @if length($size) > 1 {
+ $height: nth($size, 2);
+ }
+
+ @if $height == auto or (type-of($height) == number and not unitless($height)) {
+ height: $height;
+ }
+
+ @if $width == auto or (type-of($height) == number and not unitless($width)) {
+ width: $width;
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_timing-functions.scss b/themes/learn2/scss/vendor/bourbon/addons/_timing-functions.scss
new file mode 100755
index 00000000..51b24109
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_timing-functions.scss
@@ -0,0 +1,32 @@
+// CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie)
+// Timing functions are the same as demo'ed here: http://jqueryui.com/demos/effect/easing.html
+
+// EASE IN
+$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
+$ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
+$ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
+$ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
+$ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
+$ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
+$ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335);
+$ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045);
+
+// EASE OUT
+$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
+$ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
+$ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
+$ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
+$ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
+$ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
+$ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000);
+$ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275);
+
+// EASE IN OUT
+$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
+$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
+$ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
+$ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
+$ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
+$ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
+$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
+$ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550);
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_triangle.scss b/themes/learn2/scss/vendor/bourbon/addons/_triangle.scss
new file mode 100755
index 00000000..573954e4
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_triangle.scss
@@ -0,0 +1,83 @@
+@mixin triangle ($size, $color, $direction) {
+ height: 0;
+ width: 0;
+
+ $width: nth($size, 1);
+ $height: nth($size, length($size));
+
+ $foreground-color: nth($color, 1);
+ $background-color: if(length($color) == 2, nth($color, 2), transparent);
+
+ @if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
+
+ $width: $width / 2;
+ $height: if(length($size) > 1, $height, $height/2);
+
+ @if $direction == up {
+ border-left: $width solid $background-color;
+ border-right: $width solid $background-color;
+ border-bottom: $height solid $foreground-color;
+
+ } @else if $direction == right {
+ border-top: $width solid $background-color;
+ border-bottom: $width solid $background-color;
+ border-left: $height solid $foreground-color;
+
+ } @else if $direction == down {
+ border-left: $width solid $background-color;
+ border-right: $width solid $background-color;
+ border-top: $height solid $foreground-color;
+
+ } @else if $direction == left {
+ border-top: $width solid $background-color;
+ border-bottom: $width solid $background-color;
+ border-right: $height solid $foreground-color;
+ }
+ }
+
+ @else if ($direction == up-right) or ($direction == up-left) {
+ border-top: $height solid $foreground-color;
+
+ @if $direction == up-right {
+ border-left: $width solid $background-color;
+
+ } @else if $direction == up-left {
+ border-right: $width solid $background-color;
+ }
+ }
+
+ @else if ($direction == down-right) or ($direction == down-left) {
+ border-bottom: $height solid $foreground-color;
+
+ @if $direction == down-right {
+ border-left: $width solid $background-color;
+
+ } @else if $direction == down-left {
+ border-right: $width solid $background-color;
+ }
+ }
+
+ @else if ($direction == inset-up) {
+ border-width: $height $width;
+ border-style: solid;
+ border-color: $background-color $background-color $foreground-color;
+ }
+
+ @else if ($direction == inset-down) {
+ border-width: $height $width;
+ border-style: solid;
+ border-color: $foreground-color $background-color $background-color;
+ }
+
+ @else if ($direction == inset-right) {
+ border-width: $width $height;
+ border-style: solid;
+ border-color: $background-color $background-color $background-color $foreground-color;
+ }
+
+ @else if ($direction == inset-left) {
+ border-width: $width $height;
+ border-style: solid;
+ border-color: $background-color $foreground-color $background-color $background-color;
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/addons/_word-wrap.scss b/themes/learn2/scss/vendor/bourbon/addons/_word-wrap.scss
new file mode 100755
index 00000000..9734a597
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/addons/_word-wrap.scss
@@ -0,0 +1,8 @@
+@mixin word-wrap($wrap: break-word) {
+ word-wrap: $wrap;
+
+ @if $wrap == break-word {
+ overflow-wrap: break-word;
+ word-break: break-all;
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_animation.scss b/themes/learn2/scss/vendor/bourbon/css3/_animation.scss
new file mode 100755
index 00000000..08c3dbf1
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_animation.scss
@@ -0,0 +1,52 @@
+// http://www.w3.org/TR/css3-animations/#the-animation-name-property-
+// Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
+
+// Official animation shorthand property.
+@mixin animation ($animations...) {
+ @include prefixer(animation, $animations, webkit moz spec);
+}
+
+// Individual Animation Properties
+@mixin animation-name ($names...) {
+ @include prefixer(animation-name, $names, webkit moz spec);
+}
+
+
+@mixin animation-duration ($times...) {
+ @include prefixer(animation-duration, $times, webkit moz spec);
+}
+
+
+@mixin animation-timing-function ($motions...) {
+// ease | linear | ease-in | ease-out | ease-in-out
+ @include prefixer(animation-timing-function, $motions, webkit moz spec);
+}
+
+
+@mixin animation-iteration-count ($values...) {
+// infinite |
+ @include prefixer(animation-iteration-count, $values, webkit moz spec);
+}
+
+
+@mixin animation-direction ($directions...) {
+// normal | alternate
+ @include prefixer(animation-direction, $directions, webkit moz spec);
+}
+
+
+@mixin animation-play-state ($states...) {
+// running | paused
+ @include prefixer(animation-play-state, $states, webkit moz spec);
+}
+
+
+@mixin animation-delay ($times...) {
+ @include prefixer(animation-delay, $times, webkit moz spec);
+}
+
+
+@mixin animation-fill-mode ($modes...) {
+// none | forwards | backwards | both
+ @include prefixer(animation-fill-mode, $modes, webkit moz spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_appearance.scss b/themes/learn2/scss/vendor/bourbon/css3/_appearance.scss
new file mode 100755
index 00000000..3eb16e45
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_appearance.scss
@@ -0,0 +1,3 @@
+@mixin appearance ($value) {
+ @include prefixer(appearance, $value, webkit moz ms o spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_backface-visibility.scss b/themes/learn2/scss/vendor/bourbon/css3/_backface-visibility.scss
new file mode 100755
index 00000000..1161fe60
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_backface-visibility.scss
@@ -0,0 +1,6 @@
+//************************************************************************//
+// Backface-visibility mixin
+//************************************************************************//
+@mixin backface-visibility($visibility) {
+ @include prefixer(backface-visibility, $visibility, webkit spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_background-image.scss b/themes/learn2/scss/vendor/bourbon/css3/_background-image.scss
new file mode 100755
index 00000000..6abe88be
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_background-image.scss
@@ -0,0 +1,42 @@
+//************************************************************************//
+// Background-image property for adding multiple background images with
+// gradients, or for stringing multiple gradients together.
+//************************************************************************//
+
+@mixin background-image($images...) {
+ $webkit-images: ();
+ $spec-images: ();
+
+ @each $image in $images {
+ $webkit-image: ();
+ $spec-image: ();
+
+ @if (type-of($image) == string) {
+ $url-str: str-slice($image, 0, 3);
+ $gradient-type: str-slice($image, 0, 6);
+
+ @if $url-str == "url" {
+ $webkit-image: $image;
+ $spec-image: $image;
+ }
+
+ @else if $gradient-type == "linear" {
+ $gradients: _linear-gradient-parser($image);
+ $webkit-image: map-get($gradients, webkit-image);
+ $spec-image: map-get($gradients, spec-image);
+ }
+
+ @else if $gradient-type == "radial" {
+ $gradients: _radial-gradient-parser($image);
+ $webkit-image: map-get($gradients, webkit-image);
+ $spec-image: map-get($gradients, spec-image);
+ }
+ }
+
+ $webkit-images: append($webkit-images, $webkit-image, comma);
+ $spec-images: append($spec-images, $spec-image, comma);
+ }
+
+ background-image: $webkit-images;
+ background-image: $spec-images;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_background.scss b/themes/learn2/scss/vendor/bourbon/css3/_background.scss
new file mode 100755
index 00000000..9bce9308
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_background.scss
@@ -0,0 +1,55 @@
+//************************************************************************//
+// Background property for adding multiple backgrounds using shorthand
+// notation.
+//************************************************************************//
+
+@mixin background($backgrounds...) {
+ $webkit-backgrounds: ();
+ $spec-backgrounds: ();
+
+ @each $background in $backgrounds {
+ $webkit-background: ();
+ $spec-background: ();
+ $background-type: type-of($background);
+
+ @if $background-type == string or list {
+ $background-str: if($background-type == list, nth($background, 1), $background);
+
+ $url-str: str-slice($background-str, 0, 3);
+ $gradient-type: str-slice($background-str, 0, 6);
+
+ @if $url-str == "url" {
+ $webkit-background: $background;
+ $spec-background: $background;
+ }
+
+ @else if $gradient-type == "linear" {
+ $gradients: _linear-gradient-parser("#{$background}");
+ $webkit-background: map-get($gradients, webkit-image);
+ $spec-background: map-get($gradients, spec-image);
+ }
+
+ @else if $gradient-type == "radial" {
+ $gradients: _radial-gradient-parser("#{$background}");
+ $webkit-background: map-get($gradients, webkit-image);
+ $spec-background: map-get($gradients, spec-image);
+ }
+
+ @else {
+ $webkit-background: $background;
+ $spec-background: $background;
+ }
+ }
+
+ @else {
+ $webkit-background: $background;
+ $spec-background: $background;
+ }
+
+ $webkit-backgrounds: append($webkit-backgrounds, $webkit-background, comma);
+ $spec-backgrounds: append($spec-backgrounds, $spec-background, comma);
+ }
+
+ background: $webkit-backgrounds;
+ background: $spec-backgrounds;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_border-image.scss b/themes/learn2/scss/vendor/bourbon/css3/_border-image.scss
new file mode 100755
index 00000000..e338c2dc
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_border-image.scss
@@ -0,0 +1,59 @@
+@mixin border-image($borders...) {
+ $webkit-borders: ();
+ $spec-borders: ();
+
+ @each $border in $borders {
+ $webkit-border: ();
+ $spec-border: ();
+ $border-type: type-of($border);
+
+ @if $border-type == string or list {
+ $border-str: if($border-type == list, nth($border, 1), $border);
+
+ $url-str: str-slice($border-str, 0, 3);
+ $gradient-type: str-slice($border-str, 0, 6);
+
+ @if $url-str == "url" {
+ $webkit-border: $border;
+ $spec-border: $border;
+ }
+
+ @else if $gradient-type == "linear" {
+ $gradients: _linear-gradient-parser("#{$border}");
+ $webkit-border: map-get($gradients, webkit-image);
+ $spec-border: map-get($gradients, spec-image);
+ }
+
+ @else if $gradient-type == "radial" {
+ $gradients: _radial-gradient-parser("#{$border}");
+ $webkit-border: map-get($gradients, webkit-image);
+ $spec-border: map-get($gradients, spec-image);
+ }
+
+ @else {
+ $webkit-border: $border;
+ $spec-border: $border;
+ }
+ }
+
+ @else {
+ $webkit-border: $border;
+ $spec-border: $border;
+ }
+
+ $webkit-borders: append($webkit-borders, $webkit-border, comma);
+ $spec-borders: append($spec-borders, $spec-border, comma);
+ }
+
+ -webkit-border-image: $webkit-borders;
+ border-image: $spec-borders;
+ border-style: solid;
+}
+
+//Examples:
+// @include border-image(url("image.png"));
+// @include border-image(url("image.png") 20 stretch);
+// @include border-image(linear-gradient(45deg, orange, yellow));
+// @include border-image(linear-gradient(45deg, orange, yellow) stretch);
+// @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round);
+// @include border-image(radial-gradient(top, cover, orange, yellow, orange));
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_border-radius.scss b/themes/learn2/scss/vendor/bourbon/css3/_border-radius.scss
new file mode 100755
index 00000000..7c171901
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_border-radius.scss
@@ -0,0 +1,22 @@
+//************************************************************************//
+// Shorthand Border-radius mixins
+//************************************************************************//
+@mixin border-top-radius($radii) {
+ @include prefixer(border-top-left-radius, $radii, spec);
+ @include prefixer(border-top-right-radius, $radii, spec);
+}
+
+@mixin border-bottom-radius($radii) {
+ @include prefixer(border-bottom-left-radius, $radii, spec);
+ @include prefixer(border-bottom-right-radius, $radii, spec);
+}
+
+@mixin border-left-radius($radii) {
+ @include prefixer(border-top-left-radius, $radii, spec);
+ @include prefixer(border-bottom-left-radius, $radii, spec);
+}
+
+@mixin border-right-radius($radii) {
+ @include prefixer(border-top-right-radius, $radii, spec);
+ @include prefixer(border-bottom-right-radius, $radii, spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_box-sizing.scss b/themes/learn2/scss/vendor/bourbon/css3/_box-sizing.scss
new file mode 100755
index 00000000..f07e1d41
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_box-sizing.scss
@@ -0,0 +1,4 @@
+@mixin box-sizing ($box) {
+// content-box | border-box | inherit
+ @include prefixer(box-sizing, $box, webkit moz spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_calc.scss b/themes/learn2/scss/vendor/bourbon/css3/_calc.scss
new file mode 100755
index 00000000..94d7e4ce
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_calc.scss
@@ -0,0 +1,4 @@
+@mixin calc($property, $value) {
+ #{$property}: -webkit-calc(#{$value});
+ #{$property}: calc(#{$value});
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_columns.scss b/themes/learn2/scss/vendor/bourbon/css3/_columns.scss
new file mode 100755
index 00000000..96f601c1
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_columns.scss
@@ -0,0 +1,47 @@
+@mixin columns($arg: auto) {
+// ||
+ @include prefixer(columns, $arg, webkit moz spec);
+}
+
+@mixin column-count($int: auto) {
+// auto || integer
+ @include prefixer(column-count, $int, webkit moz spec);
+}
+
+@mixin column-gap($length: normal) {
+// normal || length
+ @include prefixer(column-gap, $length, webkit moz spec);
+}
+
+@mixin column-fill($arg: auto) {
+// auto || length
+ @include prefixer(column-fill, $arg, webkit moz spec);
+}
+
+@mixin column-rule($arg) {
+// || ||
+ @include prefixer(column-rule, $arg, webkit moz spec);
+}
+
+@mixin column-rule-color($color) {
+ @include prefixer(column-rule-color, $color, webkit moz spec);
+}
+
+@mixin column-rule-style($style: none) {
+// none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid
+ @include prefixer(column-rule-style, $style, webkit moz spec);
+}
+
+@mixin column-rule-width ($width: none) {
+ @include prefixer(column-rule-width, $width, webkit moz spec);
+}
+
+@mixin column-span($arg: none) {
+// none || all
+ @include prefixer(column-span, $arg, webkit moz spec);
+}
+
+@mixin column-width($length: auto) {
+// auto || length
+ @include prefixer(column-width, $length, webkit moz spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_filter.scss b/themes/learn2/scss/vendor/bourbon/css3/_filter.scss
new file mode 100755
index 00000000..8560d776
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_filter.scss
@@ -0,0 +1,5 @@
+@mixin filter($function: none) {
+ // [
+ @include prefixer(perspective, $depth, webkit moz spec);
+}
+
+@mixin perspective-origin($value: 50% 50%) {
+ @include prefixer(perspective-origin, $value, webkit moz spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_placeholder.scss b/themes/learn2/scss/vendor/bourbon/css3/_placeholder.scss
new file mode 100755
index 00000000..5682fd09
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_placeholder.scss
@@ -0,0 +1,8 @@
+@mixin placeholder {
+ $placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input";
+ @each $placeholder in $placeholders {
+ &:#{$placeholder}-placeholder {
+ @content;
+ }
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_radial-gradient.scss b/themes/learn2/scss/vendor/bourbon/css3/_radial-gradient.scss
new file mode 100755
index 00000000..7a8c3765
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_radial-gradient.scss
@@ -0,0 +1,39 @@
+// Requires Sass 3.1+
+@mixin radial-gradient($G1, $G2,
+ $G3: null, $G4: null,
+ $G5: null, $G6: null,
+ $G7: null, $G8: null,
+ $G9: null, $G10: null,
+ $pos: null,
+ $shape-size: null,
+ $fallback: null) {
+
+ $data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
+ $G1: nth($data, 1);
+ $G2: nth($data, 2);
+ $pos: nth($data, 3);
+ $shape-size: nth($data, 4);
+
+ $full: $G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10;
+
+ // Strip deprecated cover/contain for spec
+ $shape-size-spec: _shape-size-stripper($shape-size);
+
+ // Set $G1 as the default fallback color
+ $first-color: nth($full, 1);
+ $fallback-color: nth($first-color, 1);
+
+ @if (type-of($fallback) == color) or ($fallback == "transparent") {
+ $fallback-color: $fallback;
+ }
+
+ // Add Commas and spaces
+ $shape-size: if($shape-size, '#{$shape-size}, ', null);
+ $pos: if($pos, '#{$pos}, ', null);
+ $pos-spec: if($pos, 'at #{$pos}', null);
+ $shape-size-spec: if(($shape-size-spec != ' ') and ($pos == null), '#{$shape-size-spec}, ', '#{$shape-size-spec} ');
+
+ background-color: $fallback-color;
+ background-image: -webkit-radial-gradient(unquote(#{$pos}#{$shape-size}#{$full}));
+ background-image: unquote("radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full})");
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_transform.scss b/themes/learn2/scss/vendor/bourbon/css3/_transform.scss
new file mode 100755
index 00000000..8cc35963
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_transform.scss
@@ -0,0 +1,15 @@
+@mixin transform($property: none) {
+// none |
+ @include prefixer(transform, $property, webkit moz ms o spec);
+}
+
+@mixin transform-origin($axes: 50%) {
+// x-axis - left | center | right | length | %
+// y-axis - top | center | bottom | length | %
+// z-axis - length
+ @include prefixer(transform-origin, $axes, webkit moz ms o spec);
+}
+
+@mixin transform-style ($style: flat) {
+ @include prefixer(transform-style, $style, webkit moz ms o spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_transition.scss b/themes/learn2/scss/vendor/bourbon/css3/_transition.scss
new file mode 100755
index 00000000..5ad4c0ae
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_transition.scss
@@ -0,0 +1,77 @@
+// Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
+// Example: @include transition (all 2s ease-in-out);
+// @include transition (opacity 1s ease-in 2s, width 2s ease-out);
+// @include transition-property (transform, opacity);
+
+@mixin transition ($properties...) {
+ // Fix for vendor-prefix transform property
+ $needs-prefixes: false;
+ $webkit: ();
+ $moz: ();
+ $spec: ();
+
+ // Create lists for vendor-prefixed transform
+ @each $list in $properties {
+ @if nth($list, 1) == "transform" {
+ $needs-prefixes: true;
+ $list1: -webkit-transform;
+ $list2: -moz-transform;
+ $list3: ();
+
+ @each $var in $list {
+ $list3: join($list3, $var);
+
+ @if $var != "transform" {
+ $list1: join($list1, $var);
+ $list2: join($list2, $var);
+ }
+ }
+
+ $webkit: append($webkit, $list1);
+ $moz: append($moz, $list2);
+ $spec: append($spec, $list3);
+ }
+
+ // Create lists for non-prefixed transition properties
+ @else {
+ $webkit: append($webkit, $list, comma);
+ $moz: append($moz, $list, comma);
+ $spec: append($spec, $list, comma);
+ }
+ }
+
+ @if $needs-prefixes {
+ -webkit-transition: $webkit;
+ -moz-transition: $moz;
+ transition: $spec;
+ }
+ @else {
+ @if length($properties) >= 1 {
+ @include prefixer(transition, $properties, webkit moz spec);
+ }
+
+ @else {
+ $properties: all 0.15s ease-out 0s;
+ @include prefixer(transition, $properties, webkit moz spec);
+ }
+ }
+}
+
+@mixin transition-property ($properties...) {
+ -webkit-transition-property: transition-property-names($properties, 'webkit');
+ -moz-transition-property: transition-property-names($properties, 'moz');
+ transition-property: transition-property-names($properties, false);
+}
+
+@mixin transition-duration ($times...) {
+ @include prefixer(transition-duration, $times, webkit moz spec);
+}
+
+@mixin transition-timing-function ($motions...) {
+// ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
+ @include prefixer(transition-timing-function, $motions, webkit moz spec);
+}
+
+@mixin transition-delay ($times...) {
+ @include prefixer(transition-delay, $times, webkit moz spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/css3/_user-select.scss b/themes/learn2/scss/vendor/bourbon/css3/_user-select.scss
new file mode 100755
index 00000000..1380aa8b
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/css3/_user-select.scss
@@ -0,0 +1,3 @@
+@mixin user-select($arg: none) {
+ @include prefixer(user-select, $arg, webkit moz ms spec);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_assign.scss b/themes/learn2/scss/vendor/bourbon/functions/_assign.scss
new file mode 100755
index 00000000..9a1db93e
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_assign.scss
@@ -0,0 +1,11 @@
+@function assign-inputs($inputs, $pseudo: null) {
+ $list : ();
+
+ @each $input in $inputs {
+ $input: unquote($input);
+ $input: if($pseudo, $input + ":" + $pseudo, $input);
+ $list: append($list, $input, comma);
+ }
+
+ @return $list;
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_color-lightness.scss b/themes/learn2/scss/vendor/bourbon/functions/_color-lightness.scss
new file mode 100755
index 00000000..8c6df4e2
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_color-lightness.scss
@@ -0,0 +1,13 @@
+// Programatically determines whether a color is light or dark
+// Returns a boolean
+// More details here http://robots.thoughtbot.com/closer-look-color-lightness
+
+@function is-light($hex-color) {
+ $-local-red: red(rgba($hex-color, 1.0));
+ $-local-green: green(rgba($hex-color, 1.0));
+ $-local-blue: blue(rgba($hex-color, 1.0));
+
+ $-local-lightness: ($-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722) / 255;
+
+ @return $-local-lightness > .6;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_flex-grid.scss b/themes/learn2/scss/vendor/bourbon/functions/_flex-grid.scss
new file mode 100755
index 00000000..3bbd8665
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_flex-grid.scss
@@ -0,0 +1,39 @@
+// Flexible grid
+@function flex-grid($columns, $container-columns: $fg-max-columns) {
+ $width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
+ $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
+ @return percentage($width / $container-width);
+}
+
+// Flexible gutter
+@function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
+ $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
+ @return percentage($gutter / $container-width);
+}
+
+// The $fg-column, $fg-gutter and $fg-max-columns variables must be defined in your base stylesheet to properly use the flex-grid function.
+// This function takes the fluid grid equation (target / context = result) and uses columns to help define each.
+//
+// The calculation presumes that your column structure will be missing the last gutter:
+//
+// -- column -- gutter -- column -- gutter -- column
+//
+// $fg-column: 60px; // Column Width
+// $fg-gutter: 25px; // Gutter Width
+// $fg-max-columns: 12; // Total Columns For Main Container
+//
+// div {
+// width: flex-grid(4); // returns (315px / 995px) = 31.65829%;
+// margin-left: flex-gutter(); // returns (25px / 995px) = 2.51256%;
+//
+// p {
+// width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%;
+// float: left;
+// margin: flex-gutter(4); // returns (25px / 315px) = 7.936508%;
+// }
+//
+// blockquote {
+// float: left;
+// width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%;
+// }
+// }
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_golden-ratio.scss b/themes/learn2/scss/vendor/bourbon/functions/_golden-ratio.scss
new file mode 100755
index 00000000..463d14a0
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_golden-ratio.scss
@@ -0,0 +1,3 @@
+@function golden-ratio($value, $increment) {
+ @return modular-scale($value, $increment, $golden)
+}
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_grid-width.scss b/themes/learn2/scss/vendor/bourbon/functions/_grid-width.scss
new file mode 100755
index 00000000..8e63d83d
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_grid-width.scss
@@ -0,0 +1,13 @@
+@function grid-width($n) {
+ @return $n * $gw-column + ($n - 1) * $gw-gutter;
+}
+
+// The $gw-column and $gw-gutter variables must be defined in your base stylesheet to properly use the grid-width function.
+//
+// $gw-column: 100px; // Column Width
+// $gw-gutter: 40px; // Gutter Width
+//
+// div {
+// width: grid-width(4); // returns 520px;
+// margin-left: $gw-gutter; // returns 40px;
+// }
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_modular-scale.scss b/themes/learn2/scss/vendor/bourbon/functions/_modular-scale.scss
new file mode 100755
index 00000000..afc59eb9
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_modular-scale.scss
@@ -0,0 +1,66 @@
+// Scaling Variables
+$golden: 1.618;
+$minor-second: 1.067;
+$major-second: 1.125;
+$minor-third: 1.2;
+$major-third: 1.25;
+$perfect-fourth: 1.333;
+$augmented-fourth: 1.414;
+$perfect-fifth: 1.5;
+$minor-sixth: 1.6;
+$major-sixth: 1.667;
+$minor-seventh: 1.778;
+$major-seventh: 1.875;
+$octave: 2;
+$major-tenth: 2.5;
+$major-eleventh: 2.667;
+$major-twelfth: 3;
+$double-octave: 4;
+
+@function modular-scale($value, $increment, $ratio) {
+ $v1: nth($value, 1);
+ $v2: nth($value, length($value));
+ $value: $v1;
+
+ // scale $v2 to just above $v1
+ @while $v2 > $v1 {
+ $v2: ($v2 / $ratio); // will be off-by-1
+ }
+ @while $v2 < $v1 {
+ $v2: ($v2 * $ratio); // will fix off-by-1
+ }
+
+ // check AFTER scaling $v2 to prevent double-counting corner-case
+ $double-stranded: $v2 > $v1;
+
+ @if $increment > 0 {
+ @for $i from 1 through $increment {
+ @if $double-stranded and ($v1 * $ratio) > $v2 {
+ $value: $v2;
+ $v2: ($v2 * $ratio);
+ } @else {
+ $v1: ($v1 * $ratio);
+ $value: $v1;
+ }
+ }
+ }
+
+ @if $increment < 0 {
+ // adjust $v2 to just below $v1
+ @if $double-stranded {
+ $v2: ($v2 / $ratio);
+ }
+
+ @for $i from $increment through -1 {
+ @if $double-stranded and ($v1 / $ratio) < $v2 {
+ $value: $v2;
+ $v2: ($v2 / $ratio);
+ } @else {
+ $v1: ($v1 / $ratio);
+ $value: $v1;
+ }
+ }
+ }
+
+ @return $value;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_px-to-em.scss b/themes/learn2/scss/vendor/bourbon/functions/_px-to-em.scss
new file mode 100755
index 00000000..4832245e
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_px-to-em.scss
@@ -0,0 +1,13 @@
+// Convert pixels to ems
+// eg. for a relational value of 12px write em(12) when the parent is 16px
+// if the parent is another value say 24px write em(12, 24)
+
+@function em($pxval, $base: $em-base) {
+ @if not unitless($pxval) {
+ $pxval: strip-units($pxval);
+ }
+ @if not unitless($base) {
+ $base: strip-units($base);
+ }
+ @return ($pxval / $base) * 1em;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_px-to-rem.scss b/themes/learn2/scss/vendor/bourbon/functions/_px-to-rem.scss
new file mode 100755
index 00000000..96b244e4
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_px-to-rem.scss
@@ -0,0 +1,15 @@
+// Convert pixels to rems
+// eg. for a relational value of 12px write rem(12)
+// Assumes $em-base is the font-size of
+
+@function rem($pxval) {
+ @if not unitless($pxval) {
+ $pxval: strip-units($pxval);
+ }
+
+ $base: $em-base;
+ @if not unitless($base) {
+ $base: strip-units($base);
+ }
+ @return ($pxval / $base) * 1rem;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_strip-units.scss b/themes/learn2/scss/vendor/bourbon/functions/_strip-units.scss
new file mode 100755
index 00000000..6afc6e60
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_strip-units.scss
@@ -0,0 +1,5 @@
+// Srtips the units from a value. e.g. 12px -> 12
+
+@function strip-units($val) {
+ @return ($val / ($val * 0 + 1));
+}
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_tint-shade.scss b/themes/learn2/scss/vendor/bourbon/functions/_tint-shade.scss
new file mode 100755
index 00000000..f7172004
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_tint-shade.scss
@@ -0,0 +1,9 @@
+// Add percentage of white to a color
+@function tint($color, $percent){
+ @return mix(white, $color, $percent);
+}
+
+// Add percentage of black to a color
+@function shade($color, $percent){
+ @return mix(black, $color, $percent);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_transition-property-name.scss b/themes/learn2/scss/vendor/bourbon/functions/_transition-property-name.scss
new file mode 100755
index 00000000..54cd4228
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_transition-property-name.scss
@@ -0,0 +1,22 @@
+// Return vendor-prefixed property names if appropriate
+// Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
+//************************************************************************//
+@function transition-property-names($props, $vendor: false) {
+ $new-props: ();
+
+ @each $prop in $props {
+ $new-props: append($new-props, transition-property-name($prop, $vendor), comma);
+ }
+
+ @return $new-props;
+}
+
+@function transition-property-name($prop, $vendor: false) {
+ // put other properties that need to be prefixed here aswell
+ @if $vendor and $prop == transform {
+ @return unquote('-'+$vendor+'-'+$prop);
+ }
+ @else {
+ @return $prop;
+ }
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/bourbon/functions/_unpack.scss b/themes/learn2/scss/vendor/bourbon/functions/_unpack.scss
new file mode 100755
index 00000000..37759636
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/functions/_unpack.scss
@@ -0,0 +1,17 @@
+// Convert shorthand to the 4-value syntax
+
+@function unpack($shorthand) {
+ @if length($shorthand) == 1 {
+ @return nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1);
+ }
+ @else if length($shorthand) == 2 {
+ @return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 1) nth($shorthand, 2);
+ }
+ @else if length($shorthand) == 3 {
+ @return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 3) nth($shorthand, 2);
+ }
+ @else {
+ @return $shorthand;
+ }
+}
+
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_convert-units.scss b/themes/learn2/scss/vendor/bourbon/helpers/_convert-units.scss
new file mode 100755
index 00000000..3443db39
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_convert-units.scss
@@ -0,0 +1,15 @@
+//************************************************************************//
+// Helper function for str-to-num fn.
+// Source: http://sassmeister.com/gist/9647408
+//************************************************************************//
+@function _convert-units($number, $unit) {
+ $strings: 'px' 'cm' 'mm' '%' 'ch' 'pica' 'in' 'em' 'rem' 'pt' 'pc' 'ex' 'vw' 'vh' 'vmin' 'vmax', 'deg', 'rad', 'grad', 'turn';
+ $units: 1px 1cm 1mm 1% 1ch 1pica 1in 1em 1rem 1pt 1pc 1ex 1vw 1vh 1vmin 1vmax, 1deg, 1rad, 1grad, 1turn;
+ $index: index($strings, $unit);
+
+ @if not $index {
+ @warn "Unknown unit `#{$unit}`.";
+ @return false;
+ }
+ @return $number * nth($units, $index);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_gradient-positions-parser.scss b/themes/learn2/scss/vendor/bourbon/helpers/_gradient-positions-parser.scss
new file mode 100755
index 00000000..07d30b6c
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_gradient-positions-parser.scss
@@ -0,0 +1,13 @@
+@function _gradient-positions-parser($gradient-type, $gradient-positions) {
+ @if $gradient-positions
+ and ($gradient-type == linear)
+ and (type-of($gradient-positions) != color) {
+ $gradient-positions: _linear-positions-parser($gradient-positions);
+ }
+ @else if $gradient-positions
+ and ($gradient-type == radial)
+ and (type-of($gradient-positions) != color) {
+ $gradient-positions: _radial-positions-parser($gradient-positions);
+ }
+ @return $gradient-positions;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_is-num.scss b/themes/learn2/scss/vendor/bourbon/helpers/_is-num.scss
new file mode 100755
index 00000000..71459e14
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_is-num.scss
@@ -0,0 +1,8 @@
+//************************************************************************//
+// Helper for linear-gradient-parser
+//************************************************************************//
+@function _is-num($char) {
+ $values: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' 0 1 2 3 4 5 6 7 8 9;
+ $index: index($values, $char);
+ @return if($index, true, false);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_linear-angle-parser.scss b/themes/learn2/scss/vendor/bourbon/helpers/_linear-angle-parser.scss
new file mode 100755
index 00000000..e0401ed8
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_linear-angle-parser.scss
@@ -0,0 +1,25 @@
+// Private function for linear-gradient-parser
+@function _linear-angle-parser($image, $first-val, $prefix, $suffix) {
+ $offset: null;
+ $unit-short: str-slice($first-val, str-length($first-val) - 2, str-length($first-val));
+ $unit-long: str-slice($first-val, str-length($first-val) - 3, str-length($first-val));
+
+ @if ($unit-long == "grad") or
+ ($unit-long == "turn") {
+ $offset: if($unit-long == "grad", -100grad * 3, -0.75turn);
+ }
+
+ @else if ($unit-short == "deg") or
+ ($unit-short == "rad") {
+ $offset: if($unit-short == "deg", -90 * 3, 1.6rad);
+ }
+
+ @if $offset {
+ $num: _str-to-num($first-val);
+
+ @return (
+ webkit-image: -webkit- + $prefix + ($offset - $num) + $suffix,
+ spec-image: $image
+ );
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_linear-gradient-parser.scss b/themes/learn2/scss/vendor/bourbon/helpers/_linear-gradient-parser.scss
new file mode 100755
index 00000000..12bcdcda
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_linear-gradient-parser.scss
@@ -0,0 +1,41 @@
+@function _linear-gradient-parser($image) {
+ $image: unquote($image);
+ $gradients: ();
+ $start: str-index($image, "(");
+ $end: str-index($image, ",");
+ $first-val: str-slice($image, $start + 1, $end - 1);
+
+ $prefix: str-slice($image, 0, $start);
+ $suffix: str-slice($image, $end, str-length($image));
+
+ $has-multiple-vals: str-index($first-val, " ");
+ $has-single-position: unquote(_position-flipper($first-val) + "");
+ $has-angle: _is-num(str-slice($first-val, 0, 0));
+
+ @if $has-multiple-vals {
+ $gradients: _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals);
+ }
+
+ @else if $has-single-position != "" {
+ $pos: unquote($has-single-position + "");
+
+ $gradients: (
+ webkit-image: -webkit- + $image,
+ spec-image: $prefix + "to " + $pos + $suffix
+ );
+ }
+
+ @else if $has-angle {
+ // Rotate degree for webkit
+ $gradients: _linear-angle-parser($image, $first-val, $prefix, $suffix);
+ }
+
+ @else {
+ $gradients: (
+ webkit-image: -webkit- + $image,
+ spec-image: $image
+ );
+ }
+
+ @return $gradients;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_linear-positions-parser.scss b/themes/learn2/scss/vendor/bourbon/helpers/_linear-positions-parser.scss
new file mode 100755
index 00000000..d26383ed
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_linear-positions-parser.scss
@@ -0,0 +1,61 @@
+@function _linear-positions-parser($pos) {
+ $type: type-of(nth($pos, 1));
+ $spec: null;
+ $degree: null;
+ $side: null;
+ $corner: null;
+ $length: length($pos);
+ // Parse Side and corner positions
+ @if ($length > 1) {
+ @if nth($pos, 1) == "to" { // Newer syntax
+ $side: nth($pos, 2);
+
+ @if $length == 2 { // eg. to top
+ // Swap for backwards compatability
+ $degree: _position-flipper(nth($pos, 2));
+ }
+ @else if $length == 3 { // eg. to top left
+ $corner: nth($pos, 3);
+ }
+ }
+ @else if $length == 2 { // Older syntax ("top left")
+ $side: _position-flipper(nth($pos, 1));
+ $corner: _position-flipper(nth($pos, 2));
+ }
+
+ @if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") {
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
+ }
+ @else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") {
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
+ }
+ @else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") {
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
+ }
+ @else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") {
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
+ }
+ $spec: to $side $corner;
+ }
+ @else if $length == 1 {
+ // Swap for backwards compatability
+ @if $type == string {
+ $degree: $pos;
+ $spec: to _position-flipper($pos);
+ }
+ @else {
+ $degree: -270 - $pos; //rotate the gradient opposite from spec
+ $spec: $pos;
+ }
+ }
+ $degree: unquote($degree + ",");
+ $spec: unquote($spec + ",");
+ @return $degree $spec;
+}
+
+@function _position-flipper($pos) {
+ @return if($pos == left, right, null)
+ if($pos == right, left, null)
+ if($pos == top, bottom, null)
+ if($pos == bottom, top, null);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_linear-side-corner-parser.scss b/themes/learn2/scss/vendor/bourbon/helpers/_linear-side-corner-parser.scss
new file mode 100755
index 00000000..86ad88fb
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_linear-side-corner-parser.scss
@@ -0,0 +1,31 @@
+// Private function for linear-gradient-parser
+@function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) {
+ $val-1: str-slice($first-val, 0, $has-multiple-vals - 1 );
+ $val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val));
+ $val-3: null;
+ $has-val-3: str-index($val-2, " ");
+
+ @if $has-val-3 {
+ $val-3: str-slice($val-2, $has-val-3 + 1, str-length($val-2));
+ $val-2: str-slice($val-2, 0, $has-val-3 - 1);
+ }
+
+ $pos: _position-flipper($val-1) _position-flipper($val-2) _position-flipper($val-3);
+ $pos: unquote($pos + "");
+
+ // Use old spec for webkit
+ @if $val-1 == "to" {
+ @return (
+ webkit-image: -webkit- + $prefix + $pos + $suffix,
+ spec-image: $image
+ );
+ }
+
+ // Bring the code up to spec
+ @else {
+ @return (
+ webkit-image: -webkit- + $image,
+ spec-image: $prefix + "to " + $pos + $suffix
+ );
+ }
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_radial-arg-parser.scss b/themes/learn2/scss/vendor/bourbon/helpers/_radial-arg-parser.scss
new file mode 100755
index 00000000..a3a3704a
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_radial-arg-parser.scss
@@ -0,0 +1,69 @@
+@function _radial-arg-parser($G1, $G2, $pos, $shape-size) {
+ @each $value in $G1, $G2 {
+ $first-val: nth($value, 1);
+ $pos-type: type-of($first-val);
+ $spec-at-index: null;
+
+ // Determine if spec was passed to mixin
+ @if type-of($value) == list {
+ $spec-at-index: if(index($value, at), index($value, at), false);
+ }
+ @if $spec-at-index {
+ @if $spec-at-index > 1 {
+ @for $i from 1 through ($spec-at-index - 1) {
+ $shape-size: $shape-size nth($value, $i);
+ }
+ @for $i from ($spec-at-index + 1) through length($value) {
+ $pos: $pos nth($value, $i);
+ }
+ }
+ @else if $spec-at-index == 1 {
+ @for $i from ($spec-at-index + 1) through length($value) {
+ $pos: $pos nth($value, $i);
+ }
+ }
+ $G1: null;
+ }
+
+ // If not spec calculate correct values
+ @else {
+ @if ($pos-type != color) or ($first-val != "transparent") {
+ @if ($pos-type == number)
+ or ($first-val == "center")
+ or ($first-val == "top")
+ or ($first-val == "right")
+ or ($first-val == "bottom")
+ or ($first-val == "left") {
+
+ $pos: $value;
+
+ @if $pos == $G1 {
+ $G1: null;
+ }
+ }
+
+ @else if
+ ($first-val == "ellipse")
+ or ($first-val == "circle")
+ or ($first-val == "closest-side")
+ or ($first-val == "closest-corner")
+ or ($first-val == "farthest-side")
+ or ($first-val == "farthest-corner")
+ or ($first-val == "contain")
+ or ($first-val == "cover") {
+
+ $shape-size: $value;
+
+ @if $value == $G1 {
+ $G1: null;
+ }
+
+ @else if $value == $G2 {
+ $G2: null;
+ }
+ }
+ }
+ }
+ }
+ @return $G1, $G2, $pos, $shape-size;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_radial-gradient-parser.scss b/themes/learn2/scss/vendor/bourbon/helpers/_radial-gradient-parser.scss
new file mode 100755
index 00000000..6dde50f0
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_radial-gradient-parser.scss
@@ -0,0 +1,50 @@
+@function _radial-gradient-parser($image) {
+ $image: unquote($image);
+ $gradients: ();
+ $start: str-index($image, "(");
+ $end: str-index($image, ",");
+ $first-val: str-slice($image, $start + 1, $end - 1);
+
+ $prefix: str-slice($image, 0, $start);
+ $suffix: str-slice($image, $end, str-length($image));
+
+ $is-spec-syntax: str-index($first-val, "at");
+
+ @if $is-spec-syntax and $is-spec-syntax > 1 {
+ $keyword: str-slice($first-val, 1, $is-spec-syntax - 2);
+ $pos: str-slice($first-val, $is-spec-syntax + 3, str-length($first-val));
+ $pos: append($pos, $keyword, comma);
+
+ $gradients: (
+ webkit-image: -webkit- + $prefix + $pos + $suffix,
+ spec-image: $image
+ )
+ }
+
+ @else if $is-spec-syntax == 1 {
+ $pos: str-slice($first-val, $is-spec-syntax + 3, str-length($first-val));
+
+ $gradients: (
+ webkit-image: -webkit- + $prefix + $pos + $suffix,
+ spec-image: $image
+ )
+ }
+
+ @else if str-index($image, "cover") or str-index($image, "contain") {
+ @warn "Radial-gradient needs to be updated to conform to latest spec.";
+
+ $gradients: (
+ webkit-image: null,
+ spec-image: $image
+ )
+ }
+
+ @else {
+ $gradients: (
+ webkit-image: -webkit- + $image,
+ spec-image: $image
+ )
+ }
+
+ @return $gradients;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_radial-positions-parser.scss b/themes/learn2/scss/vendor/bourbon/helpers/_radial-positions-parser.scss
new file mode 100755
index 00000000..6a5b4777
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_radial-positions-parser.scss
@@ -0,0 +1,18 @@
+@function _radial-positions-parser($gradient-pos) {
+ $shape-size: nth($gradient-pos, 1);
+ $pos: nth($gradient-pos, 2);
+ $shape-size-spec: _shape-size-stripper($shape-size);
+
+ $pre-spec: unquote(if($pos, "#{$pos}, ", null))
+ unquote(if($shape-size, "#{$shape-size},", null));
+ $pos-spec: if($pos, "at #{$pos}", null);
+
+ $spec: "#{$shape-size-spec} #{$pos-spec}";
+
+ // Add comma
+ @if ($spec != ' ') {
+ $spec: "#{$spec},"
+ }
+
+ @return $pre-spec $spec;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_render-gradients.scss b/themes/learn2/scss/vendor/bourbon/helpers/_render-gradients.scss
new file mode 100755
index 00000000..57656768
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_render-gradients.scss
@@ -0,0 +1,26 @@
+// User for linear and radial gradients within background-image or border-image properties
+
+@function _render-gradients($gradient-positions, $gradients, $gradient-type, $vendor: false) {
+ $pre-spec: null;
+ $spec: null;
+ $vendor-gradients: null;
+ @if $gradient-type == linear {
+ @if $gradient-positions {
+ $pre-spec: nth($gradient-positions, 1);
+ $spec: nth($gradient-positions, 2);
+ }
+ }
+ @else if $gradient-type == radial {
+ $pre-spec: nth($gradient-positions, 1);
+ $spec: nth($gradient-positions, 2);
+ }
+
+ @if $vendor {
+ $vendor-gradients: -#{$vendor}-#{$gradient-type}-gradient(#{$pre-spec} $gradients);
+ }
+ @else if $vendor == false {
+ $vendor-gradients: "#{$gradient-type}-gradient(#{$spec} #{$gradients})";
+ $vendor-gradients: unquote($vendor-gradients);
+ }
+ @return $vendor-gradients;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_shape-size-stripper.scss b/themes/learn2/scss/vendor/bourbon/helpers/_shape-size-stripper.scss
new file mode 100755
index 00000000..ee5eda42
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_shape-size-stripper.scss
@@ -0,0 +1,10 @@
+@function _shape-size-stripper($shape-size) {
+ $shape-size-spec: null;
+ @each $value in $shape-size {
+ @if ($value == "cover") or ($value == "contain") {
+ $value: null;
+ }
+ $shape-size-spec: "#{$shape-size-spec} #{$value}";
+ }
+ @return $shape-size-spec;
+}
diff --git a/themes/learn2/scss/vendor/bourbon/helpers/_str-to-num.scss b/themes/learn2/scss/vendor/bourbon/helpers/_str-to-num.scss
new file mode 100755
index 00000000..b3d61682
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/helpers/_str-to-num.scss
@@ -0,0 +1,50 @@
+//************************************************************************//
+// Helper function for linear/radial-gradient-parsers.
+// Source: http://sassmeister.com/gist/9647408
+//************************************************************************//
+@function _str-to-num($string) {
+ // Matrices
+ $strings: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
+ $numbers: 0 1 2 3 4 5 6 7 8 9;
+
+ // Result
+ $result: 0;
+ $divider: 0;
+ $minus: false;
+
+ // Looping through all characters
+ @for $i from 1 through str-length($string) {
+ $character: str-slice($string, $i, $i);
+ $index: index($strings, $character);
+
+ @if $character == '-' {
+ $minus: true;
+ }
+
+ @else if $character == '.' {
+ $divider: 1;
+ }
+
+ @else {
+ @if not $index {
+ $result: if($minus, $result * -1, $result);
+ @return _convert-units($result, str-slice($string, $i));
+ }
+
+ $number: nth($numbers, $index);
+
+ @if $divider == 0 {
+ $result: $result * 10;
+ }
+
+ @else {
+ // Move the decimal dot to the left
+ $divider: $divider * 10;
+ $number: $number / $divider;
+ }
+
+ $result: $result + $number;
+ }
+ }
+ @return if($minus, $result * -1, $result);
+}
diff --git a/themes/learn2/scss/vendor/bourbon/settings/_prefixer.scss b/themes/learn2/scss/vendor/bourbon/settings/_prefixer.scss
new file mode 100755
index 00000000..ecab49fb
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/settings/_prefixer.scss
@@ -0,0 +1,6 @@
+// Variable settings for /addons/prefixer.scss
+$prefix-for-webkit: true !default;
+$prefix-for-mozilla: true !default;
+$prefix-for-microsoft: true !default;
+$prefix-for-opera: true !default;
+$prefix-for-spec: true !default; // required for keyframe mixin
diff --git a/themes/learn2/scss/vendor/bourbon/settings/_px-to-em.scss b/themes/learn2/scss/vendor/bourbon/settings/_px-to-em.scss
new file mode 100755
index 00000000..f2f9a3e8
--- /dev/null
+++ b/themes/learn2/scss/vendor/bourbon/settings/_px-to-em.scss
@@ -0,0 +1 @@
+$em-base: 16px !default;
diff --git a/themes/learn2/scss/vendor/color-schemer/_color-schemer.scss b/themes/learn2/scss/vendor/color-schemer/_color-schemer.scss
new file mode 100755
index 00000000..469c697e
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/_color-schemer.scss
@@ -0,0 +1,31 @@
+@import "blend-modes";
+
+// Defaults
+$cs-primary : #f00 !default;
+$cs-scheme : mono !default; // mono, complement, triad, tetrad, analogic, accented-analogic
+$cs-hue-offset : 30 !default;
+$cs-brightness-offset : false !default;
+$cs-color-model : rgb !default; // rgb, ryb
+$cs-colorblind : normal !default;
+$cs-harmonize-mode : null !default;
+$cs-harmonize-color : $cs-primary !default;
+$cs-harmonize-amount : 10% !default;
+
+// Partials
+@import "color-schemer/interpolation";
+@import "color-schemer/cmyk";
+@import "color-schemer/ryb";
+@import "color-schemer/colorblind";
+@import "color-schemer/equalize";
+@import "color-schemer/mix";
+@import "color-schemer/tint-shade";
+@import "color-schemer/color-adjustments";
+@import "color-schemer/harmonize";
+@import "color-schemer/color-schemer";
+
+@import "color-schemer/comparison";
+
+@import "color-schemer/mixins";
+
+// Tell other files that this is loaded.
+$color-schemer-loaded : true;
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_cmyk.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_cmyk.scss
new file mode 100755
index 00000000..847115e0
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_cmyk.scss
@@ -0,0 +1,14 @@
+@function cmyk($cyan, $magenta, $yellow, $black) {
+
+ // Get the color values out of white
+ $cyan : mix(cyan , white, $cyan );
+ $magenta : mix(magenta, white, $magenta);
+ $yellow : mix(yellow , white, $yellow );
+ $black : mix(black , white, $black );
+
+ // Subtract the colors from white
+ $color: white - invert($cyan) - invert($magenta) - invert($yellow) - invert($black);
+
+
+ @return $color;
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_color-adjustments.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_color-adjustments.scss
new file mode 100755
index 00000000..6028b494
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_color-adjustments.scss
@@ -0,0 +1,30 @@
+// RGB functions
+@function set-red($color, $red) {
+ @return rgba($red, green($color), blue($color), alpha($color));
+}
+
+@function set-green($color, $green) {
+ @return rgba(red($color), $green, blue($color), alpha($color));
+}
+
+@function set-blue($color, $blue) {
+ @return rgba(red($color), green($color), $blue, alpha($color));
+}
+
+
+// HSL Functions
+@function set-hue($color, $hue) {
+ @return hsla($hue, saturation($color), lightness($color), alpha($color));
+}
+
+@function set-saturation($color, $saturation) {
+ @return hsla(hue($color), $saturation, lightness($color), alpha($color));
+}
+
+@function set-lightness($color, $lightness) {
+ @return hsla(hue($color), saturation($color), $lightness, alpha($color));
+}
+
+@function set-alpha($color, $alpha) {
+ @return hsla(hue($color), saturation($color), lightness($color), $alpha);
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_color-schemer.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_color-schemer.scss
new file mode 100755
index 00000000..c0927348
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_color-schemer.scss
@@ -0,0 +1,208 @@
+// brightness and hue offsets are based on the lightness and saturation of the color
+// unless defined otherwise.
+@function cs-brightness-offset($cs-brightness-offset) {
+ @if $cs-brightness-offset == false {
+ // find the difference between lightness
+ @return lightness($cs-primary) - lightness(invert($cs-primary));
+ }
+ @else {
+ @return $cs-brightness-offset;
+ }
+}
+
+// Harmonized or Unaltered Color
+@function clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount) {
+ @if $cs-harmonize-mode != null {
+ @return cs-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ } @else {
+ @return $color;
+ }
+}
+
+// Primary color
+@function cs-primary($cs-primary:$cs-primary, $cs-scheme:$cs-scheme, $cs-hue-offset:$cs-hue-offset, $cs-brightness-offset:$cs-brightness-offset, $cs-harmonize-mode:$cs-harmonize-mode, $cs-harmonize-color:$cs-harmonize-color, $cs-harmonize-amount:$cs-harmonize-amount) {
+ @return clean-or-harmonize($cs-primary, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+}
+
+// Secondary color scheme
+@function cs-secondary($cs-primary:$cs-primary, $cs-scheme:$cs-scheme, $cs-hue-offset:$cs-hue-offset, $cs-brightness-offset:$cs-brightness-offset, $cs-harmonize-mode:$cs-harmonize-mode, $cs-harmonize-color:$cs-harmonize-color, $cs-harmonize-amount:$cs-harmonize-amount) {
+ $cs-brightness-offset: cs-brightness-offset($cs-brightness-offset);
+
+ // mono
+ @if $cs-scheme == mono {
+ @if $cs-brightness-offset < 0 {
+ $color: lighten($cs-primary, abs($cs-brightness-offset));
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: darken($cs-primary, abs($cs-brightness-offset));
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+
+ // complement
+ @if $cs-scheme == complement {
+ @if $cs-color-model == ryb {
+ $color: ryb-complement($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: complement($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+
+ // triad
+ @if $cs-scheme == triad {
+ @if $cs-color-model == ryb {
+ $color: ryb-adjust-hue(ryb-complement($cs-primary), $cs-hue-offset);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: adjust-hue(complement($cs-primary), $cs-hue-offset);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+
+ // tetrad
+ @if $cs-scheme == tetrad {
+ @if $cs-color-model == ryb {
+ $color: ryb-adjust-hue($cs-primary, $cs-hue-offset);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: adjust-hue($cs-primary, $cs-hue-offset);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+
+ // analogic
+ @if $cs-scheme == analogic or $cs-scheme == accented-analogic {
+ @if $cs-color-model == ryb {
+ $color: ryb-adjust-hue($cs-primary, $cs-hue-offset);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: adjust-hue($cs-primary, $cs-hue-offset);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+}
+
+// Tertiary color scheme
+@function cs-tertiary($cs-primary:$cs-primary, $cs-scheme:$cs-scheme, $cs-hue-offset:$cs-hue-offset, $cs-brightness-offset:$cs-brightness-offset, $cs-harmonize-mode:$cs-harmonize-mode, $cs-harmonize-color:$cs-harmonize-color, $cs-harmonize-amount:$cs-harmonize-amount) {
+ $cs-brightness-offset: cs-brightness-offset($cs-brightness-offset);
+
+ // mono
+ @if $cs-scheme == mono {
+ $color: mix(cs-primary(), cs-secondary());
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+
+ // complement
+ @if $cs-scheme == complement {
+ $color: equalize($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+
+ // triad
+ @if $cs-scheme == triad {
+ @if $cs-color-model == ryb {
+ $color: ryb-adjust-hue(ryb-complement($cs-primary), $cs-hue-offset * -1);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: adjust-hue(complement($cs-primary), $cs-hue-offset * -1);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+
+ // tetrad
+ @if $cs-scheme == tetrad {
+ @if $cs-color-model == ryb {
+ $color: ryb-complement($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: complement($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+
+ // analogic
+ @if $cs-scheme == analogic or $cs-scheme == accented-analogic {
+ @if $cs-color-model == ryb {
+ $color: ryb-adjust-hue($cs-primary, $cs-hue-offset * -1);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: adjust-hue($cs-primary, $cs-hue-offset * -1);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+
+ // accented-analogic
+ @if $cs-scheme == accented-analogic {
+ @if $cs-color-model == ryb {
+ $color: ryb-complement($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: complement($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+}
+
+// Quadrary color scheme
+@function cs-quadrary($cs-primary:$cs-primary, $cs-scheme:$cs-scheme, $cs-hue-offset:$cs-hue-offset, $cs-brightness-offset:$cs-brightness-offset, $cs-harmonize-mode:$cs-harmonize-mode, $cs-harmonize-color:$cs-harmonize-color, $cs-harmonize-amount:$cs-harmonize-amount) {
+ $cs-brightness-offset: cs-brightness-offset($cs-brightness-offset);
+
+ // mono
+ @if $cs-scheme == mono {
+ $color: equalize($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+
+ // complement
+ @if $cs-scheme == complement {
+ $color: equalize(ryb-complement($cs-primary));
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+
+ // triad
+ @if $cs-scheme == triad {
+ $color: equalize($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+
+ // tetrad
+ @if $cs-scheme == tetrad {
+ @if $cs-color-model == ryb {
+ $color: ryb-adjust-hue(ryb-complement($cs-primary), $cs-hue-offset);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: adjust-hue(complement($cs-primary), $cs-hue-offset);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+
+ // analogic
+ @if $cs-scheme == analogic {
+ $color: equalize($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+
+ // accented-analogic
+ @if $cs-scheme == accented-analogic {
+ @if $cs-color-model == ryb {
+ $color: ryb-complement($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ @else {
+ $color: complement($cs-primary);
+ @return clean-or-harmonize($color, $cs-harmonize-color, $cs-harmonize-mode, $cs-harmonize-amount);
+ }
+ }
+}
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_colorblind.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_colorblind.scss
new file mode 100755
index 00000000..b509183e
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_colorblind.scss
@@ -0,0 +1,29 @@
+@function cs-colorblind($color, $mode: $cs-colorblind) {
+
+ // Refrence: http://www.w3.org/TR/AERT#color-contrast
+
+ // Deuteranopia
+ @if $mode == deuteranopia {
+ @return $color;
+ }
+
+ // Protanopia
+ @if $mode == protanopia {
+ @return $color;
+ }
+
+ // Tritanopia
+ @if $mode == tritanopia {
+ @return $color;
+ }
+
+
+ // Return color if no color blind mode.
+ @else {
+ @return $color;
+ }
+}
+
+@function cs-cb($color, $mode: $cs-colorblind) {
+ @return cs-colorblind($color, $mode);
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_comparison.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_comparison.scss
new file mode 100755
index 00000000..84ed6650
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_comparison.scss
@@ -0,0 +1,15 @@
+//////////////////////////////
+// Color Is Dark
+//
+// Checks to see if the input color is a dark color taking into account both lightness and hue.
+// Suitable for determining, for instance, if a background should have a dark or light text color.
+// @return true/false (boolean)
+//////////////////////////////
+
+@function cs-is-dark($color) {
+ @if (lightness($color) < 60% and (hue($color) >= 210 or hue($color) <= 27)) or (lightness($color) <= 32%) {
+ @return true;
+ } @else {
+ @return false;
+ }
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_equalize.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_equalize.scss
new file mode 100755
index 00000000..d043bc8f
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_equalize.scss
@@ -0,0 +1,5 @@
+// Color equalize credit to Mason Wendell:
+// https://github.com/canarymason/The-Coding-Designers-Survival-Kit/blob/master/sass/partials/lib/variables/_color_schemes.sass
+@function equalize($color) {
+ @return hsl(hue($color), 100%, 50%);
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_harmonize.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_harmonize.scss
new file mode 100755
index 00000000..719b43d9
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_harmonize.scss
@@ -0,0 +1,59 @@
+@function cs-harmonize($background, $foreground: $cs-harmonize-color, $mode: $cs-harmonize-mode, $amount: $cs-harmonize-amount) {
+ $blend: null;
+ @if ($mode == normal) {
+ $blend: blend-normal($foreground, $background); }
+ @else if ($mode == multiply) {
+ $blend: blend-multiply($foreground, $background); }
+ @else if ($mode == lighten) {
+ $blend: blend-lighten($foreground, $background); }
+ @else if ($mode == darken) {
+ $blend: blend-darken($foreground, $background); }
+ @else if ($mode == darkercolor) {
+ $blend: blend-darkercolor($foreground, $background); }
+ @else if ($mode == lightercolor) {
+ $blend: blend-lightercolor($foreground, $background); }
+ @else if ($mode == lineardodge) {
+ $blend: blend-lineardodge($foreground, $background); }
+ @else if ($mode == linearburn) {
+ $blend: blend-linearburn($foreground, $background); }
+ @else if ($mode == difference) {
+ $blend: blend-difference($foreground, $background); }
+ @else if ($mode == screen) {
+ $blend: blend-screen($foreground, $background); }
+ @else if ($mode == exclusion) {
+ $blend: blend-exclusion($foreground, $background); }
+ @else if ($mode == overlay) {
+ $blend: blend-overlay($foreground, $background); }
+ @else if ($mode == softlight) {
+ $blend: blend-softlight($foreground, $background); }
+ @else if ($mode == hardlight) {
+ $blend: blend-hardlight($foreground, $background); }
+ @else if ($mode == colordodge) {
+ $blend: blend-colordodge($foreground, $background); }
+ @else if ($mode == colorburn) {
+ $blend: blend-colorburn($foreground, $background); }
+ @else if ($mode == linearlight) {
+ $blend: blend-linearlight($foreground, $background); }
+ @else if ($mode == vividlight) {
+ $blend: blend-vividlight($foreground, $background); }
+ @else if ($mode == pinlight) {
+ $blend: blend-pinlight($foreground, $background); }
+ @else if ($mode == hardmix) {
+ $blend: blend-hardmix($foreground, $background); }
+ @else if ($mode == colorblend) {
+ $blend: blend-colorblend($foreground, $background); }
+ @else if ($mode == dissolve) {
+ $blend: blend-dissolve($foreground, $background); }
+ @else if ($mode == divide) {
+ $blend: blend-divide($foreground, $background); }
+ @else if ($mode == hue) {
+ $blend: blend-hue($foreground, $background); }
+ @else if ($mode == luminosity) {
+ $blend: blend-luminosity($foreground, $background); }
+ @else if ($mode == saturation) {
+ $blend: blend-saturation($foreground, $background); }
+ @else if ($mode == subtract) {
+ $blend: blend-subtract($foreground, $background); }
+ $mixed: mix($blend, $background, $amount);
+ @return $mixed;
+}
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_interpolation.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_interpolation.scss
new file mode 100755
index 00000000..2ec182eb
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_interpolation.scss
@@ -0,0 +1,34 @@
+@function cs-interpolate($value, $units: 360, $stops: $ryb-interpolation) {
+
+ // Loop numbers out of scale back into the scale.
+ @while $value >= 360 {
+ $value: $value - 360;
+ }
+ @while $value < 0 {
+ $value: $value + 360;
+ }
+
+ // Find out how many units in each stop
+ $cs-color-deg: $units / length($stops);
+
+ // Count through stops
+ $cs-deg-count: $cs-color-deg;
+ $cs-stop-count: 1;
+
+ // Add the first stop to the end so it will be
+ // interpolated with the last stop.
+ $stops: append($stops, nth($stops, 1));
+
+ // Start interpolating
+ @for $i from 0 through length($stops) {
+ @if $value < $cs-deg-count {
+ @return cs-mix(nth($stops, $cs-stop-count + 1), nth($stops, $cs-stop-count), abs(percentage(($cs-deg-count - $value) / $cs-color-deg) - 100 ), $model: rgb);
+ }
+
+ // If the value is not in this stop, loop up to another stop.
+ @else {
+ $cs-deg-count: $cs-deg-count + $cs-color-deg;
+ $cs-stop-count: $cs-stop-count + 1
+ }
+ }
+}
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_mix.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_mix.scss
new file mode 100755
index 00000000..4d3a68f2
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_mix.scss
@@ -0,0 +1,40 @@
+@function cs-mix($color1, $color2, $percent: 50%, $model: $cs-color-model) {
+
+ $decimal : abs($percent - 100%) / 100%;
+ $hue-offset : ();
+
+ @if $model == rgb {
+ $hue-offset : (hue($color1) - hue($color2)) * $decimal;
+ @if (hue($color1) - hue($color2)) * .5 < -90deg {
+ $hue-offset : (hue($color1) + 360deg - hue($color2)) * $decimal;
+ }
+ @if (hue($color1) - hue($color2)) * .5 > 90deg {
+ $hue-offset : (hue($color1) - 360deg - hue($color2)) * $decimal;
+ }
+ }
+
+ @if $model == ryb {
+ $hue-offset : (ryb-hue($color1) - ryb-hue($color2)) * $decimal;
+ @if (ryb-hue($color1) - ryb-hue($color2)) * .5 < -90deg {
+ $hue-offset : (ryb-hue($color1) + 360deg - ryb-hue($color2)) * $decimal;
+ }
+ @if (ryb-hue($color1) - ryb-hue($color2)) * .5 > 90deg {
+ $hue-offset : (ryb-hue($color1) - 360deg - ryb-hue($color2)) * $decimal;
+ }
+ }
+
+ $saturation-offset : (saturation($color1) - saturation($color2)) * $decimal;
+ $lightness-offset : (lightness($color1) - lightness($color2)) * $decimal;
+
+ @if $model == ryb {
+ $color1: ryb-adjust-hue($color1, $hue-offset * -1);
+ }
+ @else {
+ $color1: adjust-hue($color1, $hue-offset * -1);
+ }
+
+ $color1: set-saturation($color1, saturation($color1) - $saturation-offset);
+ $color1: set-lightness($color1, lightness($color1) - $lightness-offset);
+
+ @return $color1;
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_mixins.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_mixins.scss
new file mode 100755
index 00000000..7e3a8f41
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_mixins.scss
@@ -0,0 +1,29 @@
+////////////////////////////////////////////
+// From Jina Bolton and Eric Meyer -- http://codepen.io/jina/pen/iosjp
+@function cs-stripes($position, $colors) {
+ $colors: if(type-of($colors) != 'list', compact($colors), $colors);
+ $gradient: ();
+ $width: 100% / length($colors);
+
+ @for $i from 1 through length($colors) {
+ $pop: nth($colors,$i);
+ $new: $pop ($width * ($i - 1)), $pop ($width * $i);
+ $gradient: join($gradient, $new, comma);
+ }
+
+ @return linear-gradient($position, $gradient);
+}
+
+////////////////////////////////////////////
+// Color tester
+
+@mixin cs-test($colors, $height: 2em, $element: "body:before") {
+ #{$element} {
+ content: "";
+ display: block;
+ height: $height;
+ @include background(cs-stripes(left, ($colors)));
+ position: relative;
+ z-index: 999999999999;
+ }
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_ryb.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_ryb.scss
new file mode 100755
index 00000000..1a6de0e0
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_ryb.scss
@@ -0,0 +1,76 @@
+$ryb-interpolation: #FF0000 #FF4900 #FF7400 #FF9200 #FFAA00 #FFBF00 #FFD300 #FFE800 #FFFF00 #CCF600 #9FEE00 #67E300 #00CC00 #00AF64 #009999 #0B61A4 #1240AB #1B1BB3 #3914AF #530FAD #7109AA #A600A6 #CD0074 #E40045;
+
+// RYB color interpolation
+@function find-ryb($hue) {
+
+ // remove units on $hue
+ @if unit($hue) == deg { $hue: $hue / 1deg; }
+
+ // return an interpolated hue
+ @return hue(cs-interpolate($hue));
+}
+
+// Find the RYB hue instead of RGB hue of a color.
+
+// map of the RYB offset
+$ryb-offset: 0 1 2 3 5 6 7 8 9 10 11 13 14 15 16 17 18 19 19 20 21 21 22 23 23 24 25 25 26 27 27 28 28 29 29 30 30 31 31 32 32 32 33 33 34 34 35 35 35 36 36 37 37 37 38 38 38 39 39 40 40 40 41 41 41 42 42 42 43 43 43 44 44 44 45 45 45 46 46 46 47 47 47 47 48 48 48 49 49 49 50 50 50 51 51 51 52 52 52 53 53 53 54 54 54 55 55 55 56 56 56 57 57 57 58 58 59 59 59 60 60 61 61 62 63 63 64 65 65 66 67 68 68 69 70 70 71 72 72 73 73 74 75 75 76 77 77 78 79 79 80 81 82 82 83 84 85 86 87 88 88 89 90 91 92 93 95 96 98 100 102 104 105 107 109 111 113 115 116 118 120 122 125 127 129 131 134 136 138 141 143 145 147 150 152 154 156 158 159 161 163 165 166 168 170 171 173 175 177 178 180 182 184 185 187 189 191 192 194 196 198 199 201 203 205 206 207 208 209 210 212 213 214 215 216 217 218 219 220 221 222 223 224 226 227 228 229 230 232 233 234 235 236 238 239 240 241 242 243 244 245 246 247 248 249 250 251 251 252 253 254 255 256 257 257 258 259 260 260 261 262 263 264 264 265 266 267 268 268 269 270 271 272 273 274 274 275 276 277 278 279 280 282 283 284 286 287 289 290 292 293 294 296 297 299 300 302 303 305 307 309 310 312 314 316 317 319 321 323 324 326 327 328 329 330 331 332 333 334 336 337 338 339 340 341 342 343 344 345 347 348 349 350 352 353 354 355 356 358 359 360;
+
+// loop through the map to find the matching hue.
+@function ryb-hue($color) {
+ @for $i from 1 through length($ryb-offset) {
+ @if nth($ryb-offset, $i) > hue($color) {
+ @return $i - 2deg;
+ }
+ }
+}
+
+// Changes the hue of a color.
+@function ryb-adjust-hue($color, $degrees) {
+
+ // Convert precentag to degrees.
+ @if unit($degrees) == "%" {
+ $degrees: 360 * ($degrees / 100%);
+ }
+
+ // Start at the current hue and loop in the adjustment.
+ $hue-adjust: (ryb-hue($color) + $degrees) / 1deg;
+
+ @return hsl(hue(cs-interpolate($hue-adjust)), saturation($color), lightness($color));
+}
+
+@function ryba($red, $yellow, $blue, $alpha) {
+ $hue: 0;
+ $saturation: 0;
+ $lightness: percentage(($red + $yellow + $blue) / (255 * 3));
+ @if $red == $yellow and $yellow == $blue {
+ @return hsla(0, 0, $lightness, $alpha);
+ }
+ @if $red >= $yellow and $red >= $blue {
+ $hue: 0;
+ }
+ @elseif $yellow >= $red and $yellow >= $blue {
+ $hue: 360 / 3;
+ }
+ @elseif $blue >= $red and $blue >= $yellow {
+ $hue: 360 / 3 * 2;
+ }
+ @return hsla(hue(cs-interpolate($hue)), 100%, 50%, 1);
+}
+
+@function ryb($red, $yellow, $blue) {
+ @return ryba($red, $yellow, $blue, 1);
+}
+
+@function set-ryb-hue($color, $hue) {
+ @return hsla(hue(cs-interpolate($hue)), saturation($color), lightness($color), alpha($color));
+}
+
+// Returns the complement of a color.
+@function ryb-complement($color) {
+ @return ryb-adjust-hue($color, 180deg);
+}
+
+// Returns the inverse of a color.
+@function ryb-invert($color) {
+ @return ryb-adjust-hue(hsl(hue($color), saturation(invert($color)), lightness(invert($color))), 180deg);
+}
\ No newline at end of file
diff --git a/themes/learn2/scss/vendor/color-schemer/color-schemer/_tint-shade.scss b/themes/learn2/scss/vendor/color-schemer/color-schemer/_tint-shade.scss
new file mode 100755
index 00000000..d1198d03
--- /dev/null
+++ b/themes/learn2/scss/vendor/color-schemer/color-schemer/_tint-shade.scss
@@ -0,0 +1,9 @@
+// Add percentage of white to a color
+@function tint($color, $percent) {
+ @return mix(white, $color, $percent);
+}
+
+// Add percentage of black to a color
+@function shade($color, $percent) {
+ @return mix(black, $color, $percent);
+}
diff --git a/themes/learn2/templates/chapter.html.twig b/themes/learn2/templates/chapter.html.twig
new file mode 100644
index 00000000..998045c0
--- /dev/null
+++ b/themes/learn2/templates/chapter.html.twig
@@ -0,0 +1,11 @@
+{% extends 'docs.html.twig' %}
+
+{% block content %}
+
+
+
+ {{ page.content }}
+
+
+
+{% endblock %}
diff --git a/themes/learn2/templates/default.html.twig b/themes/learn2/templates/default.html.twig
new file mode 100644
index 00000000..124ce3d0
--- /dev/null
+++ b/themes/learn2/templates/default.html.twig
@@ -0,0 +1,5 @@
+{% extends 'partials/base.html.twig' %}
+
+{% block content %}
+ {% include 'partials/page.html.twig' %}
+{% endblock %}
diff --git a/themes/learn2/templates/docs.html.twig b/themes/learn2/templates/docs.html.twig
new file mode 100644
index 00000000..62c52922
--- /dev/null
+++ b/themes/learn2/templates/docs.html.twig
@@ -0,0 +1,23 @@
+{% extends 'partials/base.html.twig' %}
+{% set tags = page.taxonomy.tag %}
+{% if tags %}
+ {% set progress = page.collection({'items':{'@taxonomy':{'category': 'docs', 'tag': tags}},'order': {'by': 'default', 'dir': 'asc'}}) %}
+{% else %}
+ {% set progress = page.collection({'items':{'@taxonomy':{'category': 'docs'}},'order': {'by': 'default', 'dir': 'asc'}}) %}
+{% endif %}
+
+{% block navigation %}
+
+ {% if not progress.isFirst(page.path) %}
+
+ {% endif %}
+
+ {% if not progress.isLast(page.path) %}
+
+ {% endif %}
+
+{% endblock %}
+
+{% block content %}
+ {% include 'partials/page.html.twig' %}
+{% endblock %}
diff --git a/themes/learn2/templates/error.html.twig b/themes/learn2/templates/error.html.twig
new file mode 100644
index 00000000..0fa5337e
--- /dev/null
+++ b/themes/learn2/templates/error.html.twig
@@ -0,0 +1,15 @@
+{% extends 'partials/base.html.twig' %}
+
+{% block topbar %}{% endblock %}
+{% block navigation %}{% endblock %}
+
+{% block content %}
+
+
+
{{ 'PLUGIN_ERROR.ERROR'|t }} {{ header.http_response_code }}
+
+ {{ page.content }}
+
+
+
+{% endblock %}
diff --git a/themes/learn2/templates/partials/analytics.html.twig b/themes/learn2/templates/partials/analytics.html.twig
new file mode 100644
index 00000000..53107dcd
--- /dev/null
+++ b/themes/learn2/templates/partials/analytics.html.twig
@@ -0,0 +1,10 @@
+
diff --git a/themes/learn2/templates/partials/base.html.twig b/themes/learn2/templates/partials/base.html.twig
new file mode 100644
index 00000000..69355a51
--- /dev/null
+++ b/themes/learn2/templates/partials/base.html.twig
@@ -0,0 +1,99 @@
+{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
+
+
+
+ {% block head %}
+
+ {% if header.title %}{{ header.title }} | {% endif %}{{ site.title }}
+ {% include 'partials/metadata.html.twig' %}
+
+
+
+
+
+ {% block stylesheets %}
+ {% do assets.addCss('theme://css-compiled/nucleus.css',102) %}
+ {% do assets.addCss('theme://css-compiled/theme.css',101) %}
+ {% do assets.addCss('theme://css/custom.css',100) %}
+ {% do assets.addCss('theme://css/font-awesome.min.css',100) %}
+ {% do assets.addCss('theme://css/featherlight.min.css') %}
+
+ {% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
+ {% do assets.addCss('theme://css/nucleus-ie9.css') %}
+ {% do assets.addCss('theme://css/pure-0.5.0/grids-min.css') %}
+ {% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %}
+ {% endif %}
+
+ {{ assets.css() }}
+ {% endblock %}
+
+ {% block javascripts %}
+ {% do assets.addJs('jquery',101) %}
+ {% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %}
+ {% do assets.addJs('theme://js/featherlight.min.js') %}
+ {% do assets.addJs('theme://js/clipboard.min.js') %}
+ {% do assets.addJs('theme://js/jquery.scrollbar.min.js') %}
+ {% do assets.addJs('theme://js/learn.js') %}
+ {{ assets.js() }}
+ {% endblock %}
+
+ {% endblock %}
+
+
+ {% block sidebar %}
+
+ {% endblock %}
+
+ {% block body %}
+
+
+
+
+
+
+ {% block topbar %}{% if theme_config.github.position == 'top' or config.plugins.breadcrumbs.enabled %}
+
+ {% if theme_config.github.position == 'top' %}
+
+ {% include 'partials/github_link.html.twig' %}
+
+ {% endif %}
+
+ {% if config.plugins.breadcrumbs.enabled %}
+ {% include 'partials/breadcrumbs.html.twig' %}
+ {% endif %}
+
+ {% endif %}{% endblock %}
+
+ {% block content %}{% endblock %}
+
+ {% block footer %}
+ {% if theme_config.github.position == 'bottom' %}
+ {% include 'partials/github_note.html.twig' %}
+ {% endif %}
+ {% endblock %}
+
+
+ {% block navigation %}{% endblock %}
+
+ {% endblock %}
+ {% block analytics %}
+ {% if theme_config.google_analytics_code %}
+ {% include 'partials/analytics.html.twig' %}
+ {% endif %}
+ {% endblock %}
+
+
diff --git a/themes/learn2/templates/partials/github_link.html.twig b/themes/learn2/templates/partials/github_link.html.twig
new file mode 100644
index 00000000..f39c4ab5
--- /dev/null
+++ b/themes/learn2/templates/partials/github_link.html.twig
@@ -0,0 +1 @@
+ {{ 'THEME_LEARN2_GITHUB_EDIT_THIS_PAGE'|t }}
diff --git a/themes/learn2/templates/partials/github_note.html.twig b/themes/learn2/templates/partials/github_note.html.twig
new file mode 100644
index 00000000..81982208
--- /dev/null
+++ b/themes/learn2/templates/partials/github_note.html.twig
@@ -0,0 +1,7 @@
+
+
+ {{ 'THEME_LEARN2_GITHUB_NOTE'|t }}
+
+ {% include 'partials/github_link.html.twig' %}
+
+
diff --git a/themes/learn2/templates/partials/logo.html.twig b/themes/learn2/templates/partials/logo.html.twig
new file mode 100644
index 00000000..45f59121
--- /dev/null
+++ b/themes/learn2/templates/partials/logo.html.twig
@@ -0,0 +1,9 @@
+
+
+
+
+
+
diff --git a/themes/learn2/templates/partials/metadata.html.twig b/themes/learn2/templates/partials/metadata.html.twig
new file mode 100644
index 00000000..2f08a0e5
--- /dev/null
+++ b/themes/learn2/templates/partials/metadata.html.twig
@@ -0,0 +1,3 @@
+{% for meta in page.metadata %}
+
+{% endfor %}
diff --git a/themes/learn2/templates/partials/page.html.twig b/themes/learn2/templates/partials/page.html.twig
new file mode 100644
index 00000000..34c9f21a
--- /dev/null
+++ b/themes/learn2/templates/partials/page.html.twig
@@ -0,0 +1,6 @@
+
+
{{ page.title }}
+
+ {{ page.content }}
+
+
diff --git a/themes/learn2/templates/partials/sidebar.html.twig b/themes/learn2/templates/partials/sidebar.html.twig
new file mode 100644
index 00000000..3f1ff804
--- /dev/null
+++ b/themes/learn2/templates/partials/sidebar.html.twig
@@ -0,0 +1,64 @@
+{% macro loop(page, parent_loop) %}
+ {% if parent_loop|length > 0 %}
+ {% set data_level = parent_loop %}
+ {% else %}
+ {% set data_level = 0 %}
+ {% endif %}
+ {% for p in page.children.visible %}
+ {% set parent_page = p.activeChild ? ' parent' : '' %}
+ {% set current_page = p.active ? ' active' : '' %}
+
+
+
+ {% if data_level == 0 %}{{ loop.index }}. {% endif %} {{ p.menu }}
+
+ {% if p.children.count > 0 %}
+
+ {{ _self.loop(p, parent_loop|default(0)+loop.index) }}
+
+ {% endif %}
+
+ {% endfor %}
+{% endmacro %}
+
+{% macro version(p) %}
+ {% set parent_page = p.activeChild ? ' parent' : '' %}
+ {% set current_page = p.active ? ' active' : '' %}
+
+ {% if p.activeChild or p.active %}
+
+ {% else %}
+
+ {% endif %}
+ {{ p.menu }}
+
+{% endmacro %}
+
+
diff --git a/themes/learn2/thumbnail.jpg b/themes/learn2/thumbnail.jpg
new file mode 100644
index 00000000..2f54f1ca
Binary files /dev/null and b/themes/learn2/thumbnail.jpg differ
diff --git a/themes/site/css/s2-docs.css b/themes/site/css/s2-docs.css
new file mode 100644
index 00000000..dfd017d8
--- /dev/null
+++ b/themes/site/css/s2-docs.css
@@ -0,0 +1,673 @@
+@charset "UTF-8";
+.select2-result-repository {
+ padding-top: 4px;
+ padding-bottom: 3px; }
+ .select2-result-repository__avatar {
+ float: left;
+ width: 60px;
+ margin-right: 10px; }
+ .select2-result-repository__avatar img {
+ width: 100%;
+ height: auto;
+ border-radius: 2px; }
+ .select2-result-repository__meta {
+ margin-left: 70px; }
+ .select2-result-repository__title {
+ color: black;
+ font-weight: bold;
+ word-wrap: break-word;
+ line-height: 1.1;
+ margin-bottom: 4px; }
+ .select2-result-repository__forks, .select2-result-repository__stargazers {
+ margin-right: 1em; }
+ .select2-result-repository__forks, .select2-result-repository__stargazers, .select2-result-repository__watchers {
+ display: inline-block;
+ color: #aaa;
+ font-size: 11px; }
+ .select2-result-repository__description {
+ font-size: 13px;
+ color: #777;
+ margin-top: 4px; }
+ .select2-results__option--highlighted .select2-result-repository__title {
+ color: white; }
+ .select2-results__option--highlighted .select2-result-repository__forks, .select2-results__option--highlighted .select2-result-repository__stargazers, .select2-results__option--highlighted .select2-result-repository__description, .select2-results__option--highlighted .select2-result-repository__watchers {
+ color: #c6dcef; }
+
+.s2-docs-sidebar.affix {
+ position: static; }
+@media (min-width: 768px) {
+ .s2-docs-sidebar {
+ padding-left: 20px; } }
+
+.s2-docs-sidenav {
+ margin-top: 20px;
+ margin-bottom: 20px; }
+
+.s2-docs-sidebar .nav > li > a {
+ margin-left: -1px;
+ display: block;
+ padding: 4px 20px;
+ font-size: 13px;
+ font-weight: 500;
+ color: #767676;
+ border-left: 1px solid transparent;
+ transition: color .2s, border-color .2s; }
+.s2-docs-sidebar .nav > li > a code {
+ background-color: inherit;
+ color: inherit; }
+.s2-docs-sidebar .nav > li > a:hover,
+.s2-docs-sidebar .nav > li > a:focus {
+ color: #428BCA;
+ text-decoration: none;
+ background-color: transparent;
+ border-left-color: #428BCA; }
+.s2-docs-sidebar .nav > .active > a,
+.s2-docs-sidebar .nav > .active:hover > a,
+.s2-docs-sidebar .nav > .active:focus > a {
+ padding-left: 19px;
+ font-weight: bold;
+ color: #428BCA;
+ background-color: transparent;
+ border-left: 2px solid #428BCA; }
+.s2-docs-sidebar .nav .nav {
+ display: none;
+ padding-bottom: 10px; }
+.s2-docs-sidebar .nav .nav > li > a {
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-left: 30px;
+ font-size: 12px;
+ font-weight: normal; }
+.s2-docs-sidebar .nav .nav > li > a:hover,
+.s2-docs-sidebar .nav .nav > li > a:focus {
+ padding-left: 30px; }
+.s2-docs-sidebar .nav .nav > .active > a,
+.s2-docs-sidebar .nav .nav > .active:hover > a,
+.s2-docs-sidebar .nav .nav > .active:focus > a {
+ padding-left: 29px;
+ font-weight: 400; }
+
+@media (min-width: 992px) {
+ .s2-docs-sidebar .s2-docs-sidenav {
+ padding-top: 40px;
+ transition: border-color .2s;
+ border-left: 1px solid transparent; }
+
+ .s2-docs-sidebar.affix .s2-docs-sidenav {
+ border-left-color: #eee; }
+
+ .s2-docs-sidebar .nav > .active > ul {
+ display: block; }
+
+ .s2-docs-sidebar.affix,
+ .s2-docs-sidebar.affix-bottom {
+ width: 213px; }
+
+ .s2-docs-sidebar.affix {
+ position: fixed;
+ top: 0px; }
+
+ .s2-docs-sidebar.affix-bottom {
+ position: absolute; }
+
+ .s2-docs-sidebar.affix-bottom .s2-docs-sidenav,
+ .s2-docs-sidebar.affix .s2-docs-sidenav {
+ margin-top: 0;
+ margin-bottom: 0; } }
+@media (min-width: 1200px) {
+ .s2-docs-sidebar.affix-bottom,
+ .s2-docs-sidebar.affix {
+ width: 263px; } }
+/* Back to top (hidden on mobile) */
+.back-to-top {
+ display: none;
+ padding: 4px 10px;
+ margin-top: 10px;
+ margin-left: 10px;
+ font-size: 12px;
+ font-weight: 400;
+ color: #999; }
+ .back-to-top:hover {
+ color: #428BCA;
+ text-decoration: none; }
+ @media (min-width: 768px) {
+ .back-to-top {
+ display: block; } }
+
+.navbar-toggle {
+ border: none;
+ background: transparent !important; }
+ .navbar-toggle:hover {
+ background: transparent !important; }
+ .navbar-toggle .icon-bar {
+ width: 22px;
+ transition: all 0.2s; }
+ .navbar-toggle .top-bar {
+ transform: rotate(45deg);
+ transform-origin: 10% 10%; }
+ .navbar-toggle .middle-bar {
+ opacity: 0; }
+ .navbar-toggle .bottom-bar {
+ transform: rotate(-45deg);
+ transform-origin: 10% 90%; }
+ .navbar-toggle.collapsed .top-bar {
+ transform: rotate(0); }
+ .navbar-toggle.collapsed .middle-bar {
+ opacity: 1; }
+ .navbar-toggle.collapsed .bottom-bar {
+ transform: rotate(0); }
+
+h2 code,
+h3 code,
+h4 code {
+ background-color: inherit; }
+
+pre.prettyprint {
+ padding: 9px 14px;
+ margin-bottom: 14px;
+ background-color: #f7f7f9;
+ border: 1px solid #e1e1e8; }
+
+.s2-docs-featurette {
+ color: #777;
+ padding: 15px 0;
+ text-align: center; }
+ .s2-docs-featurette h4 {
+ margin: 30px 0 15px; }
+ .s2-docs-featurette .fa {
+ font-size: 28px;
+ color: #777; }
+
+.s2-docs-container {
+ line-height: 1.6; }
+
+section {
+ margin-bottom: 40px; }
+
+.page-header {
+ padding-bottom: 19px;
+ margin-bottom: 29px; }
+
+.s2-docs-nav {
+ margin-bottom: 0;
+ border-color: #eee;
+ background-color: #f6f6f6; }
+ .s2-docs-nav .navbar-brand {
+ font-weight: 500; }
+ .s2-docs-nav .navbar-brand > img {
+ display: inline;
+ margin-right: 4px; }
+ .s2-docs-nav .navbar-nav > .active > a,
+ .s2-docs-nav .navbar-nav > .active > a:hover,
+ .s2-docs-nav .navbar-nav > .active > a:focus {
+ background-color: #f0f0f0;
+ color: #000; }
+ @media (min-width: 768px) {
+ .s2-docs-nav .navbar-nav > li > .dropdown-menu:before {
+ position: absolute;
+ top: -21px;
+ left: 24px;
+ display: block;
+ width: 0;
+ height: 0;
+ border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0.1);
+ border-style: solid;
+ border-width: 10px;
+ content: ""; }
+ .s2-docs-nav .navbar-nav > li > .dropdown-menu:after {
+ position: absolute;
+ top: -20px;
+ left: 24px;
+ display: block;
+ width: 0;
+ height: 0;
+ border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #FFF;
+ border-style: solid;
+ border-width: 10px;
+ content: ''; }
+ .s2-docs-nav .navbar-nav .dropdown-menu {
+ border-radius: 4px;
+ border-color: #ddd;
+ margin-top: -1px; } }
+
+.s2-docs-footer {
+ border-top: 1px solid #eee;
+ color: #767676;
+ padding-top: 40px;
+ padding-bottom: 40px;
+ margin-top: 100px;
+ text-align: center; }
+ .s2-docs-footer-links {
+ padding-left: 0;
+ margin-top: 20px; }
+ .s2-docs-footer-links li {
+ display: inline;
+ padding: 0 2px; }
+ .s2-docs-footer-links li:after {
+ content: "·";
+ padding-left: 8px; }
+ .s2-docs-footer-links li:first-child {
+ padding-left: 0; }
+ .s2-docs-footer-links li:last-child:after {
+ content: "";
+ padding-left: 0; }
+ @media (min-width: 768px) {
+ .s2-docs-footer p {
+ margin-bottom: 0; } }
+
+.alert {
+ background: #fff;
+ border: 1px solid #eee;
+ border-left-width: 5px;
+ border-radius: 3px;
+ color: #333;
+ margin: 20px 0;
+ padding: 20px; }
+ .alert h4 {
+ font-size: 18px;
+ margin-top: 0;
+ margin-bottom: 5px; }
+ .alert-danger {
+ border-left-color: #ce4844; }
+ .alert-danger h4 {
+ color: #ce4844; }
+ .alert-info {
+ border-left-color: #1b809e; }
+ .alert-info h4 {
+ color: #1b809e; }
+ .alert-warning {
+ border-left-color: #aa6708; }
+ .alert-warning h4 {
+ color: #aa6708; }
+
+.s2-docs-home .jumbotron {
+ margin-bottom: 0;
+ color: #000; }
+ .s2-docs-home .jumbotron h1 {
+ color: #000;
+ margin-top: 20px; }
+.s2-docs-home .lead {
+ text-align: center;
+ max-width: 800px;
+ margin: 0 auto 40px; }
+.s2-docs-home .notice-previous {
+ background: #f6f6f6;
+ color: #666;
+ border-bottom: 1px solid #eee;
+ padding: 15px 20px; }
+.s2-docs-home .half-rule {
+ width: 100px;
+ margin: 40px auto; }
+
+.s2-example {
+ position: relative;
+ padding: 45px 15px 15px;
+ margin: 0 -15px 15px;
+ background-color: #fafafa;
+ box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
+ border-color: #e5e5e5 #eee #eee;
+ border-style: solid;
+ border-width: 1px 0; }
+ .s2-example:after {
+ content: "Example";
+ position: absolute;
+ top: 15px;
+ left: 15px;
+ font-size: 12px;
+ font-weight: bold;
+ color: #bbb;
+ text-transform: uppercase;
+ letter-spacing: 1px; }
+ @media (min-width: 768px) {
+ .s2-example {
+ margin-left: 0;
+ margin-right: 0;
+ background-color: #fff;
+ border-width: 1px;
+ border-color: #eee;
+ border-radius: 4px 4px 0 0;
+ box-shadow: none; } }
+
+.s2-event-log {
+ background: #002451;
+ color: white;
+ font-family: Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Consolas, monospace;
+ margin: 0 -15px 15px;
+ padding: 45px 15px 15px;
+ position: relative; }
+ .s2-event-log:after {
+ content: "Event Log";
+ position: absolute;
+ top: 15px;
+ left: 15px;
+ font-size: 12px;
+ font-weight: bold;
+ color: #BBB;
+ text-transform: uppercase;
+ letter-spacing: 1px; }
+ @media (min-width: 768px) {
+ .s2-event-log {
+ margin-left: 0;
+ margin-right: 0;
+ margin-top: -15px;
+ border-width: 1px;
+ border-color: #eee;
+ box-shadow: none; } }
+
+.s2-example + pre,
+.s2-example + figure,
+.s2-event-log + pre {
+ margin: -15px -15px 15px;
+ border-radius: 0;
+ border-width: 0 0 1px; }
+ @media (min-width: 768px) {
+ .s2-example + pre,
+ .s2-example + figure,
+ .s2-event-log + pre {
+ margin-top: -16px;
+ margin-left: 0;
+ margin-right: 0;
+ border-width: 1px;
+ border-bottom-left-radius: 4px;
+ border-bottom-right-radius: 4px; } }
+
+.s2-example + .s2-event-log {
+ margin-top: -15px; }
+
+.s2-docs-social {
+ margin-bottom: 20px;
+ text-align: center; }
+
+.s2-docs-social-buttons {
+ display: inline-block;
+ padding-left: 0;
+ margin-bottom: 0;
+ list-style: none; }
+ .s2-docs-social-buttons li {
+ display: inline-block;
+ padding: 5px 8px;
+ line-height: 1; }
+ .s2-docs-social-buttons .twitter-follow-button {
+ width: 225px !important; }
+ .s2-docs-social-buttons .twitter-share-button {
+ width: 98px !important; }
+
+.github-btn {
+ overflow: hidden;
+ border: 0; }
+
+.btn-outline-inverse {
+ color: #428BCA;
+ background-color: transparent;
+ border-color: #428BCA;
+ padding: 15px 30px;
+ font-size: 20px;
+ transition: all .1s ease-in-out; }
+ .btn-outline-inverse:hover {
+ color: #fff;
+ border-color: #428BCA;
+ background-color: #428BCA; }
+
+.btn-toolbar {
+ margin-bottom: 20px; }
+
+.jumbotron {
+ background-color: #F6F6F6;
+ border-bottom: 1px solid #eee;
+ color: #777;
+ padding-left: 0;
+ padding-right: 0; }
+ .jumbotron h1 {
+ color: #777;
+ font-size: 36px;
+ margin-top: 10px; }
+ .jumbotron .version {
+ color: #999;
+ font-size: 14px;
+ font-weight: normal;
+ margin-bottom: 30px; }
+
+.com {
+ color: #999; }
+
+.lit {
+ color: #195f91; }
+
+.pun, .opn, .clo {
+ color: #93a1a1; }
+
+.fun {
+ color: #dc322f; }
+
+.str, .atv {
+ color: #C7254E; }
+
+.kwd, .prettyprint .tag {
+ color: #2F6F9F; }
+
+.typ, .atn, .dec, .var {
+ color: #428BCA; }
+
+.pln {
+ color: #333; }
+
+.prettyprint {
+ padding: 9px 14px;
+ margin-bottom: 20px;
+ margin-top: 20px;
+ border: 1px solid #eee; }
+ .prettyprint.linenums {
+ -webkit-box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6;
+ -moz-box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6;
+ box-shadow: inset 40px 0 0 #fbfbfb, inset 41px 0 0 #f6f6f6; }
+
+ol.linenums {
+ margin: 0 0 0 -12px; }
+ ol.linenums li {
+ padding-left: 12px;
+ color: #bebebe;
+ line-height: 18px; }
+
+.highlight {
+ background: #fff; }
+ .highlight .nx {
+ color: #333; }
+ .highlight .k, .highlight .o {
+ font-weight: bold; }
+ .highlight .na {
+ color: #428BCA; }
+ .highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx {
+ color: #C7254E; }
+ .highlight .m, .highlight .mf, .highlight mh, .highlight .mi, .highlight .mo {
+ color: #195f91; }
+ .highlight .p {
+ color: #93a1a1; }
+ .highlight .nt {
+ color: #2F6F9F; }
+ .highlight .c {
+ color: #999;
+ font-style: italic; }
+ .highlight .err {
+ background-color: #e3d2d2;
+ color: #a61717; }
+ .highlight .gr {
+ color: #a00; }
+ .highlight pre {
+ border: none;
+ margin: 0; }
+ .highlight > pre {
+ border: 1px solid #eee;
+ padding: 0;
+ margin-bottom: 14px; }
+ .highlight .lineno {
+ background-color: #fbfbfb;
+ color: #bebebe;
+ -ms-user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none; }
+
+.highlight .cm {
+ color: #999988;
+ font-style: italic; }
+
+/* Comment.Multiline */
+.highlight .cp {
+ color: #999999;
+ font-weight: bold; }
+
+/* Comment.Preproc */
+.highlight .c1 {
+ color: #999988;
+ font-style: italic; }
+
+/* Comment.Single */
+.highlight .cs {
+ color: #999999;
+ font-weight: bold;
+ font-style: italic; }
+
+/* Comment.Special */
+.highlight .gd {
+ color: #000000;
+ background-color: #ffdddd; }
+
+/* Generic.Deleted */
+.highlight .gd .x {
+ color: #000000;
+ background-color: #ffaaaa; }
+
+/* Generic.Deleted.Specific */
+.highlight .ge {
+ font-style: italic; }
+
+/* Generic.Emph */
+.highlight .gh {
+ color: #999999; }
+
+/* Generic.Heading */
+.highlight .gi {
+ color: #000000;
+ background-color: #ddffdd; }
+
+/* Generic.Inserted */
+.highlight .gi .x {
+ color: #000000;
+ background-color: #aaffaa; }
+
+/* Generic.Inserted.Specific */
+.highlight .go {
+ color: #888888; }
+
+/* Generic.Output */
+.highlight .gp {
+ color: #555555; }
+
+/* Generic.Prompt */
+.highlight .gs {
+ font-weight: bold; }
+
+/* Generic.Strong */
+.highlight .gu {
+ color: #aaaaaa; }
+
+/* Generic.Subheading */
+.highlight .gt {
+ color: #aa0000; }
+
+/* Generic.Traceback */
+.highlight .kc {
+ font-weight: bold; }
+
+/* Keyword.Constant */
+.highlight .kd {
+ font-weight: bold; }
+
+/* Keyword.Declaration */
+.highlight .kp {
+ font-weight: bold; }
+
+/* Keyword.Pseudo */
+.highlight .kr {
+ font-weight: bold; }
+
+/* Keyword.Reserved */
+.highlight .kt {
+ color: #445588;
+ font-weight: bold; }
+
+/* Keyword.Type */
+.highlight .nb {
+ color: #0086B3; }
+
+/* Name.Builtin */
+.highlight .nc {
+ color: #445588;
+ font-weight: bold; }
+
+/* Name.Class */
+.highlight .no {
+ color: #008080; }
+
+/* Name.Constant */
+.highlight .ni {
+ color: #800080; }
+
+/* Name.Entity */
+.highlight .ne {
+ color: #990000;
+ font-weight: bold; }
+
+/* Name.Exception */
+.highlight .nf {
+ color: #990000;
+ font-weight: bold; }
+
+/* Name.Function */
+.highlight .nn {
+ color: #555555; }
+
+/* Name.Namespace */
+.highlight .nv {
+ color: #008080; }
+
+/* Name.Variable */
+.highlight .ow {
+ font-weight: bold; }
+
+/* Operator.Word */
+.highlight .w {
+ color: #bbbbbb; }
+
+/* Text.Whitespace */
+.highlight .sr {
+ color: #009926; }
+
+/* Literal.String.Regex */
+.highlight .ss {
+ color: #990073; }
+
+/* Literal.String.Symbol */
+.highlight .bp {
+ color: #999999; }
+
+/* Name.Builtin.Pseudo */
+.highlight .vc {
+ color: #008080; }
+
+/* Name.Variable.Class */
+.highlight .vg {
+ color: #008080; }
+
+/* Name.Variable.Global */
+.highlight .vi {
+ color: #008080; }
+
+/* Name.Variable.Instance */
+.highlight .il {
+ color: #009999; }
+
+/* Literal.Number.Integer.Long */
+h1[id] {
+ padding-top: 20px;
+ margin-top: 0; }
+
diff --git a/themes/site/css/theme.css b/themes/site/css/theme.css
new file mode 100644
index 00000000..a20caee4
--- /dev/null
+++ b/themes/site/css/theme.css
@@ -0,0 +1,41 @@
+.logo-title {
+ color: #fff;
+ font-size: 30px;
+ text-transform: uppercase;
+ padding-top: 10px;
+ vertical-align: middle;
+ font-weight: 700;
+ font-family: "Montserrat", "Helvetica Neue", "Helvetica" , "Arial" ,sans-serif;
+ border-bottom: 2px solid #000000;
+}
+
+.logo-image {
+ vertical-align:middle;
+}
+
+.s2-docs-featurette {
+ padding-top: 20px;
+ text-align: center;
+}
+
+.s2-docs-featurette [class*='size-'] h4 {
+ font-size: 1.5rem;
+}
+
+/* Padding for paragraphs in featurette grid */
+.s2-docs-featurette [class*='size-'] p {
+ padding: 0 30px;
+ font-size: 1rem !important;
+}
+
+.form-control {
+ width: 100%;
+ display: block;
+}
+
+img.img-flag {
+ margin: 0 !important;
+ display: inherit !important;
+ height: 15px;
+ width: 18px;
+}
diff --git a/themes/site/images/android-chrome-36x36.png b/themes/site/images/android-chrome-36x36.png
new file mode 100644
index 00000000..12a3dc6b
Binary files /dev/null and b/themes/site/images/android-chrome-36x36.png differ
diff --git a/themes/site/images/android-chrome-48x48.png b/themes/site/images/android-chrome-48x48.png
new file mode 100644
index 00000000..64aa46a4
Binary files /dev/null and b/themes/site/images/android-chrome-48x48.png differ
diff --git a/themes/site/images/android-chrome-72x72.png b/themes/site/images/android-chrome-72x72.png
new file mode 100644
index 00000000..2c2c829b
Binary files /dev/null and b/themes/site/images/android-chrome-72x72.png differ
diff --git a/themes/site/images/apple-touch-icon-57x57.png b/themes/site/images/apple-touch-icon-57x57.png
new file mode 100644
index 00000000..ae24323d
Binary files /dev/null and b/themes/site/images/apple-touch-icon-57x57.png differ
diff --git a/themes/site/images/apple-touch-icon-60x60.png b/themes/site/images/apple-touch-icon-60x60.png
new file mode 100644
index 00000000..e3f8d21f
Binary files /dev/null and b/themes/site/images/apple-touch-icon-60x60.png differ
diff --git a/themes/site/images/apple-touch-icon-72x72.png b/themes/site/images/apple-touch-icon-72x72.png
new file mode 100644
index 00000000..e5399209
Binary files /dev/null and b/themes/site/images/apple-touch-icon-72x72.png differ
diff --git a/themes/site/images/apple-touch-icon-precomposed.png b/themes/site/images/apple-touch-icon-precomposed.png
new file mode 100644
index 00000000..31b912e7
Binary files /dev/null and b/themes/site/images/apple-touch-icon-precomposed.png differ
diff --git a/themes/site/images/apple-touch-icon.png b/themes/site/images/apple-touch-icon.png
new file mode 100644
index 00000000..e5399209
Binary files /dev/null and b/themes/site/images/apple-touch-icon.png differ
diff --git a/themes/site/images/favicon-16x16.png b/themes/site/images/favicon-16x16.png
new file mode 100644
index 00000000..ab60a1d1
Binary files /dev/null and b/themes/site/images/favicon-16x16.png differ
diff --git a/themes/site/images/favicon-32x32.png b/themes/site/images/favicon-32x32.png
new file mode 100644
index 00000000..5319e04a
Binary files /dev/null and b/themes/site/images/favicon-32x32.png differ
diff --git a/themes/site/images/favicon.ico b/themes/site/images/favicon.ico
new file mode 100644
index 00000000..91dcfd50
Binary files /dev/null and b/themes/site/images/favicon.ico differ
diff --git a/themes/site/images/favicon.png b/themes/site/images/favicon.png
new file mode 100644
index 00000000..5319e04a
Binary files /dev/null and b/themes/site/images/favicon.png differ
diff --git a/themes/site/images/manifest.json b/themes/site/images/manifest.json
new file mode 100644
index 00000000..99bc8aa4
--- /dev/null
+++ b/themes/site/images/manifest.json
@@ -0,0 +1,23 @@
+{
+ "name": "Select2",
+ "icons": [
+ {
+ "src": "\/images\/android-chrome-36x36.png?v=699Nxpjr2A",
+ "sizes": "36x36",
+ "type": "image\/png",
+ "density": 0.75
+ },
+ {
+ "src": "\/images\/android-chrome-48x48.png?v=699Nxpjr2A",
+ "sizes": "48x48",
+ "type": "image\/png",
+ "density": 1
+ },
+ {
+ "src": "\/images\/android-chrome-72x72.png?v=699Nxpjr2A",
+ "sizes": "72x72",
+ "type": "image\/png",
+ "density": 1.5
+ }
+ ]
+}
diff --git a/themes/site/images/mstile-150x150.png b/themes/site/images/mstile-150x150.png
new file mode 100644
index 00000000..9dede7da
Binary files /dev/null and b/themes/site/images/mstile-150x150.png differ
diff --git a/themes/site/images/mstile-310x150.png b/themes/site/images/mstile-310x150.png
new file mode 100644
index 00000000..a266af2e
Binary files /dev/null and b/themes/site/images/mstile-310x150.png differ
diff --git a/themes/site/images/mstile-70x70.png b/themes/site/images/mstile-70x70.png
new file mode 100644
index 00000000..f2efb68c
Binary files /dev/null and b/themes/site/images/mstile-70x70.png differ
diff --git a/themes/site/images/safari-pinned-tab.svg b/themes/site/images/safari-pinned-tab.svg
new file mode 100644
index 00000000..700213c4
--- /dev/null
+++ b/themes/site/images/safari-pinned-tab.svg
@@ -0,0 +1,17 @@
+
+
+
+
+Created by potrace 1.11, written by Peter Selinger 2001-2013
+
+
+
+
+
diff --git a/themes/site/js/data-fill-from.js b/themes/site/js/data-fill-from.js
new file mode 100644
index 00000000..b08e8c34
--- /dev/null
+++ b/themes/site/js/data-fill-from.js
@@ -0,0 +1,13 @@
+$(document).ready(function() {
+ $("[data-fill-from]").each(function () {
+ var $this = $(this);
+
+ var codeContainer = $this.data("fill-from");
+ var $container = $(codeContainer);
+
+ var code = $.trim($container.html());
+
+ $this.text(code);
+ $this.addClass("prettyprint");
+ });
+});
diff --git a/themes/site/site.yaml b/themes/site/site.yaml
new file mode 100644
index 00000000..d15632b2
--- /dev/null
+++ b/themes/site/site.yaml
@@ -0,0 +1,12 @@
+streams:
+ schemes:
+ theme:
+ type: ReadOnlyStream
+ prefixes:
+ '':
+ - user/themes/site
+ - user/themes/learn2
+github:
+ position: top # top | bottom | off
+ tree: https://github.com/userfrosting/learn/blob/develop/
+ commits: https://github.com/userfrosting/learn/commits/develop/
diff --git a/themes/site/templates/partials/base.html.twig b/themes/site/templates/partials/base.html.twig
new file mode 100644
index 00000000..8643e547
--- /dev/null
+++ b/themes/site/templates/partials/base.html.twig
@@ -0,0 +1,109 @@
+{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
+
+
+
+ {% block head %}
+
+ {% if header.title %}{{ header.title }} | {% endif %}{{ site.title }}
+ {% include 'partials/metadata.html.twig' %}
+
+
+
+
+
+ {% block stylesheets %}
+ {% do assets.addCss('theme://css-compiled/nucleus.css',102) %}
+ {% do assets.addCss('theme://css-compiled/theme.css',101) %}
+ {% do assets.addCss('theme://css/custom.css',100) %}
+ {% do assets.addCss('theme://css/font-awesome.min.css',100) %}
+ {% do assets.addCss('theme://css/featherlight.min.css') %}
+ {% do assets.addCss('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css') %}
+ {% do assets.addCss('theme://css/s2-docs.css', 100) %}
+ {% do assets.addCss('theme://css/theme.css',100) %}
+
+ {% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
+ {% do assets.addCss('theme://css/nucleus-ie9.css') %}
+ {% do assets.addCss('theme://css/pure-0.5.0/grids-min.css') %}
+ {% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %}
+ {% endif %}
+
+ {{ assets.css() }}
+ {% endblock %}
+
+ {% block javascripts %}
+ {% do assets.addJs('jquery',101) %}
+ {% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %}
+ {% do assets.addJs('theme://js/featherlight.min.js') %}
+ {% do assets.addJs('theme://js/clipboard.min.js') %}
+ {% do assets.addJs('theme://js/jquery.scrollbar.min.js') %}
+ {% do assets.addJs('theme://js/learn.js') %}
+ {% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.full.min.js') %}
+ {% do assets.addJs('https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js') %}
+ {% do assets.addJs('theme://js/data-fill-from.js') %}
+ {{ assets.js() }}
+
+ {% include "partials/js/source-states.html.twig" %}
+
+ {% endblock %}
+
+ {% endblock %}
+
+
+ {% block sidebar %}
+
+ {% endblock %}
+
+ {% block body %}
+
+
+
+
+
+
+ {% block topbar %}{% if theme_config.github.position == 'top' or config.plugins.breadcrumbs.enabled %}
+
+ {% if theme_config.github.position == 'top' %}
+
+ {% include 'partials/github_link.html.twig' %}
+
+ {% endif %}
+
+ {% if config.plugins.breadcrumbs.enabled %}
+ {% include 'partials/breadcrumbs.html.twig' %}
+ {% endif %}
+
+ {% endif %}{% endblock %}
+
+ {% block content %}{% endblock %}
+
+ {% block footer %}
+ {% if theme_config.github.position == 'bottom' %}
+ {% include 'partials/github_note.html.twig' %}
+ {% endif %}
+ {% endblock %}
+
+
+ {% block navigation %}{% endblock %}
+
+ {% endblock %}
+
+ {% block analytics %}
+ {% if theme_config.google_analytics_code %}
+ {% include 'partials/analytics.html.twig' %}
+ {% endif %}
+ {% endblock %}
+
+
diff --git a/themes/site/templates/partials/js/source-states.html.twig b/themes/site/templates/partials/js/source-states.html.twig
new file mode 100644
index 00000000..31512c33
--- /dev/null
+++ b/themes/site/templates/partials/js/source-states.html.twig
@@ -0,0 +1,73 @@
+
+
+ Alaska
+ Hawaii
+
+
+ California
+ Nevada
+ Oregon
+ Washington
+
+
+ Arizona
+ Colorado
+ Idaho
+ Montana
+ Nebraska
+ New Mexico
+ North Dakota
+ Utah
+ Wyoming
+
+
+ Alabama
+ Arkansas
+ Illinois
+ Iowa
+ Kansas
+ Kentucky
+ Louisiana
+ Minnesota
+ Mississippi
+ Missouri
+ Oklahoma
+ South Dakota
+ Texas
+ Tennessee
+ Wisconsin
+
+
+ Connecticut
+ Delaware
+ Florida
+ Georgia
+ Indiana
+ Maine
+ Maryland
+ Massachusetts
+ Michigan
+ New Hampshire
+ New Jersey
+ New York
+ North Carolina
+ Ohio
+ Pennsylvania
+ Rhode Island
+ South Carolina
+ Vermont
+ Virginia
+ West Virginia
+
+
+
+
diff --git a/themes/site/templates/partials/logo.html.twig b/themes/site/templates/partials/logo.html.twig
new file mode 100644
index 00000000..138bcbbb
--- /dev/null
+++ b/themes/site/templates/partials/logo.html.twig
@@ -0,0 +1,3 @@
+
+ Select2
+