Преглед на файлове

integrated develop into master

Emanuele Marchi преди 11 години
родител
ревизия
330f6fe845

+ 20 - 13
README.md

@@ -1,8 +1,9 @@
-Bootstrap-switch v.1.9-dev
-========================
+Bootstrap Switch
+================
 
-You can now also use radio buttons and checkboxes as switches.
+Turn radio and checkbox form input in switches. 
 
+**Bootstrap 3 ready** thanks to [nabil1337](https://github.com/nabil1337)
 
 Demo
 ----
@@ -11,27 +12,33 @@ http://www.bootstrap-switch.org
 
 Usage
 -----
-Just include Twitter Bootstrap, jQuery, Bootstrap Switch CSS and Javascript
+Just include jQuery, Bootstrap and Bootstrap Switch CSS + Javascript
+
 ``` html
-<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;" />
-<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
+<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+<link rel="stylesheet" href="bootstrap.css">
 <link rel="stylesheet" href="bootstrap-switch.css">
-
-<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
-<script src="bootstrap-switch.js"></script>  // master
-<script src="http://cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.7/bootstrap-switch.min.js">  // from cdnjs.com
+<script src="jquery.js"></script>
+<script src="bootstrap-switch.js"></script>
 ```
 
 Less
 ----
-If you want to use your bootstrap vars edit bootstrapSwitch.less and then compile the less file
+If you want to use your bootstrap variables, edit bootstrap-switch.less and compile it:
+
+``` bash
+lessc src/less/bootstrap3/bootstrap-switch.less bootstrap-switch.css
+```
+
+Or if you are using Bootstrap 2.3.2:
+
 ``` bash
-lessc static/less/bootstrap-switch.less static/stylesheets/bootstrap-switch.css
+lessc src/less/bootstrap2/bootstrap-switch.less bootstrap-switch.css
 ```
 
 Supported browsers
 ------------------
-I'm not going to support ancient browsers! (it works on IE8+)
+IE8+ and all the other modern browsers.
 
 Basic Example
 -------------

+ 8 - 6
bower.json

@@ -1,13 +1,15 @@
 {
   "name": "bootstrap-switch",
   "description" : "Unofficial bootstrap switch",
-  "version": "1.8.1",
-  "main": "static/js/bootstrap-switch.js",
-  "ignore": [ 
+  "version": "1.9.0",
+  "main": [
+    "build/js/bootstrap-switch.js",
+    "build/css/bootstrap3/bootstrap-switch.css"
+  ],
+  "ignore": [
     "examples"
   ],
   "dependencies": {
-    "jquery": "~1.9.0"
+    "jquery": ">=1.9.0"
   }
-}
-
+}

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
build/css/bootstrap2/bootstrap-switch.css


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
build/css/bootstrap3/bootstrap-switch.css


+ 420 - 0
build/js/bootstrap-switch.js

@@ -0,0 +1,420 @@
+/*! ============================================================
+ * bootstrap-switch v1.9.0 by Larentis Mattia @SpiritualGuru
+ * http://www.larentis.eu/
+ *
+ * Enhanced for radiobuttons by Stein, Peter @BdMdesigN
+ * http://www.bdmdesign.org/
+ *
+ * Project site:
+ * http://www.larentis.eu/switch/
+ * ============================================================
+ * Licensed under the Apache License, Version 2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * ============================================================ */
+
+!function ($) {
+  "use strict";
+
+  $.fn.bootstrapSwitch = function (method) {
+    var inputSelector = 'input[type!="hidden"]';
+    var methods = {
+
+      init: function () {
+        return this.each(function () {
+            var $element = $(this),
+                $div,
+                $switchLeft,
+                $switchRight,
+                $label,
+                $form = $element.closest('form'),
+                myClasses = "",
+                classes = $element.attr('class'),
+                color,
+                moving,
+                onLabel = "ON",
+                offLabel = "OFF",
+                icon = false,
+                textLabel = false;
+
+            $.each(['switch-mini', 'switch-small', 'switch-large'], function (i, el) {
+              if (classes.indexOf(el) >= 0) {
+                myClasses = el;
+              }
+            });
+
+            $element.addClass('has-switch');
+
+            if ($element.data('on') !== undefined) {
+              color = "switch-" + $element.data('on');
+            }
+
+            if ($element.data('on-label') !== undefined) {
+              onLabel = $element.data('on-label');
+            }
+
+            if ($element.data('off-label') !== undefined) {
+              offLabel = $element.data('off-label');
+            }
+
+            if ($element.data('label-icon') !== undefined) {
+              icon = $element.data('label-icon');
+            }
+
+            if ($element.data('text-label') !== undefined) {
+              textLabel = $element.data('text-label');
+            }
+
+            $switchLeft = $('<span>')
+            .addClass("switch-left")
+            .addClass(myClasses)
+            .addClass(color)
+            .html('' + onLabel + '');
+
+            color = '';
+            if ($element.data('off') !== undefined) {
+              color = "switch-" + $element.data('off');
+            }
+
+            $switchRight = $('<span>')
+            .addClass("switch-right")
+            .addClass(myClasses)
+            .addClass(color)
+            .html('' + offLabel + '');
+
+            $label = $('<label>')
+            .html("&nbsp;")
+            .addClass(myClasses)
+            .attr('for', $element.find(inputSelector).attr('id'));
+
+            if (icon) {
+              $label.html('<i class="icon ' + icon + '"></i>');
+            }
+
+            if (textLabel) {
+              $label.html('' + textLabel + '');
+            }
+
+            $div = $element.find(inputSelector).wrap($('<div>')).parent().data('animated', false);
+
+            if ($element.data('animated') !== false) {
+              $div.addClass('switch-animate').data('animated', true);
+            }
+
+            $div
+            .append($switchLeft)
+            .append($label)
+            .append($switchRight);
+
+            $element.find('> div').addClass($element.find(inputSelector).is(':checked') ? 'switch-on' : 'switch-off');
+
+            if ($element.find(inputSelector).is(':disabled')) {
+              $(this).addClass('deactivate');
+            }
+
+            var changeStatus = function ($this) {
+              if ($element.parent('label').is('.label-change-switch')) {
+
+              } else {
+                $this.siblings('label').trigger('mousedown').trigger('mouseup').trigger('click');
+              }
+            };
+
+            $element.on('keydown', function (e) {
+              if (e.keyCode === 32) {
+                e.stopImmediatePropagation();
+                e.preventDefault();
+                changeStatus($(e.target).find('span:first'));
+              }
+            });
+
+            $switchLeft.on('click', function () {
+              changeStatus($(this));
+            });
+
+            $switchRight.on('click', function () {
+              changeStatus($(this));
+            });
+
+            $element.find(inputSelector).on('change', function (e, skipOnChange) {
+              var $this = $(this),
+                  $element = $this.parent(),
+                  thisState = $this.is(':checked'),
+                  state = $element.is('.switch-off');
+
+              e.preventDefault();
+
+              $element.css('left', '');
+
+              if (state === thisState) {
+                if (thisState) {
+                  $element.removeClass('switch-off').addClass('switch-on');
+                }
+                else {
+                  $element.removeClass('switch-on').addClass('switch-off');
+                }
+
+                if ($element.data('animated') !== false) {
+                  $element.addClass("switch-animate");
+                }
+
+                if (typeof skipOnChange === 'boolean' && skipOnChange) {
+                  return;
+                }
+
+                $element.parent().trigger('switch-change', {
+                  el: $this,
+                  value: thisState
+                });
+              }
+            });
+
+            $element.find('label').on('mousedown touchstart', function (e) {
+              var $this = $(this);
+              moving = false;
+
+              e.preventDefault();
+              e.stopImmediatePropagation();
+
+              $this.closest('div').removeClass('switch-animate');
+
+              if ($this.closest('.has-switch').is('.deactivate')) {
+                $this.unbind('click');
+              } else if ($this.closest('.switch-on').parent().is('.radio-no-uncheck')) {
+                $this.unbind('click');
+              } else {
+                $this.on('mousemove touchmove', function (e) {
+                  var $element = $(this).closest('.make-switch'),
+                      relativeX = (e.pageX || e.originalEvent.targetTouches[0].pageX) - $element.offset().left,
+                      percent = (relativeX / $element.width()) * 100,
+                      left = 25,
+                      right = 75;
+
+                  moving = true;
+
+                  if (percent < left) {
+                    percent = left;
+                  }
+                  else if (percent > right) {
+                    percent = right;
+                  }
+
+                  $element.find('>div').css('left', (percent - right) + "%");
+                });
+
+                $this.on('click touchend', function (e) {
+                  var $this = $(this),
+                      $myInputBox = $this.siblings('input');
+
+                  e.stopImmediatePropagation();
+                  e.preventDefault();
+
+                  $this.unbind('mouseleave');
+
+                  if (moving) {
+                    $myInputBox.prop('checked', !(parseInt($this.parent().css('left'), 10) < -25));
+                  }
+                  else {
+                    $myInputBox.prop("checked", !$myInputBox.is(":checked"));
+                  }
+
+                  moving = false;
+                  $myInputBox.trigger('change');
+                });
+
+                $this.on('mouseleave', function (e) {
+                  var $this = $(this),
+                      $myInputBox = $this.siblings('input');
+
+                  e.preventDefault();
+                  e.stopImmediatePropagation();
+
+                  $this.unbind('mouseleave mousemove');
+                  $this.trigger('mouseup');
+
+                  $myInputBox.prop('checked', ! (parseInt($this.parent().css('left'), 10) < -25)).trigger('change');
+                });
+
+                $this.on('mouseup', function (e) {
+                  e.stopImmediatePropagation();
+                  e.preventDefault();
+
+                  $(this).trigger('mouseleave');
+                });
+              }
+            });
+
+            if ($form.data('bootstrapSwitch') !== 'injected') {
+              $form.bind('reset', function () {
+                setTimeout(function () {
+                  $form.find('.make-switch').each(function () {
+                    var $input = $(this).find(inputSelector);
+
+                    $input.prop('checked', $input.is(':checked')).trigger('change');
+                  });
+                }, 1);
+              });
+              $form.data('bootstrapSwitch', 'injected');
+            }
+          }
+        );
+      },
+
+      toggleActivation: function () {
+        var $this = $(this);
+
+        $this.toggleClass('deactivate');
+        $this.find(inputSelector).prop('disabled', $this.is('.deactivate'));
+      },
+
+      isActive: function () {
+        return !$(this).hasClass('deactivate');
+      },
+
+      setActive: function (active) {
+        var $this = $(this);
+
+        if (active) {
+          $this.removeClass('deactivate');
+          $this.find(inputSelector).removeAttr('disabled');
+        }
+        else {
+          $this.addClass('deactivate');
+          $this.find(inputSelector).attr('disabled', 'disabled');
+        }
+      },
+
+      toggleState: function (skipOnChange) {
+        var $input = $(this).find(':checkbox');
+        $input.prop('checked', !$input.is(':checked')).trigger('change', skipOnChange);
+      },
+
+      toggleRadioState: function (skipOnChange) {
+        var $radioinput = $(this).find(':radio');
+        $radioinput.not(':checked').prop('checked', !$radioinput.is(':checked')).trigger('change', skipOnChange);
+      },
+
+      toggleRadioStateAllowUncheck: function (uncheck, skipOnChange) {
+        var $radioinput = $(this).find(':radio');
+
+        if (uncheck) {
+          $radioinput.not(':checked').trigger('change', skipOnChange);
+        }
+        else {
+          $radioinput.not(':checked').prop('checked', ! $radioinput.is(':checked')).trigger('change', skipOnChange);
+        }
+      },
+
+      setState: function (value, skipOnChange) {
+        $(this).find(inputSelector).prop('checked', value).trigger('change', skipOnChange);
+      },
+
+      setOnLabel: function (value) {
+        var $switchLeft = $(this).find(".switch-left");
+
+        $switchLeft.html(value);
+      },
+
+      setOffLabel: function (value) {
+        var $switchRight = $(this).find(".switch-right");
+
+        $switchRight.html(value);
+      },
+
+      setOnClass: function (value) {
+        var $switchLeft = $(this).find(".switch-left"),
+            color = '';
+
+        if (value !== undefined) {
+          if ($(this).attr('data-on') !== undefined) {
+            color = "switch-" + $(this).attr('data-on');
+          }
+          $switchLeft.removeClass(color);
+          color = "switch-" + value;
+          $switchLeft.addClass(color);
+        }
+      },
+
+      setOffClass: function (value) {
+        var $switchRight = $(this).find(".switch-right"),
+            color = '';
+
+        if (value !== undefined) {
+          if ($(this).attr('data-off') !== undefined) {
+            color = "switch-" + $(this).attr('data-off');
+          }
+          $switchRight.removeClass(color);
+          color = "switch-" + value;
+          $switchRight.addClass(color);
+        }
+      },
+
+      setAnimated: function (value) {
+        var $element = $(this).find(inputSelector).parent();
+
+        if (value === undefined) {
+          value = false;
+        }
+
+        $element.data('animated', value);
+        $element.attr('data-animated', value);
+        $element[$element.data('animated') !== false ? 'addClass' : 'removeClass']("switch-animate");
+      },
+
+      setSizeClass: function (value) {
+        var $element = $(this);
+        var $switchLeft = $element.find(".switch-left");
+        var $switchRight = $element.find(".switch-right");
+        var $label = $element.find("label");
+        $.each(['switch-mini', 'switch-small', 'switch-large'], function (i, el) {
+          if (el !== value) {
+            $switchLeft.removeClass(el);
+            $switchRight.removeClass(el);
+            $label.removeClass(el);
+          } else {
+            $switchLeft.addClass(el);
+            $switchRight.addClass(el);
+            $label.addClass(el);
+          }
+        });
+      },
+
+      status: function () {
+        return $(this).find(inputSelector).is(':checked');
+      },
+
+      destroy: function () {
+        var $element = $(this),
+            $div = $element.find('div'),
+            $form = $element.closest('form'),
+            $inputbox;
+
+        $div.find(':not(input)').remove();
+        $inputbox = $div.children();
+        $inputbox.unwrap().unwrap();
+        $inputbox.unbind('change');
+
+        if ($form) {
+          $form.unbind('reset');
+          $form.removeData('bootstrapSwitch');
+        }
+
+        return $inputbox;
+      }
+    };
+
+    if (methods[method]) {
+      return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
+    }
+    if (typeof method === 'object' || ! method) {
+      return methods.init.apply(this, arguments);
+    }
+
+    $.error('Method ' + method + ' does not exist!');
+  };
+}(jQuery);
+
+(function ($) {
+  $(function () {
+    $('.make-switch').bootstrapSwitch();
+  });
+})(jQuery);

+ 5 - 4
composer.json

@@ -1,9 +1,10 @@
 {
-  "name"        : "nostalgiaz/bootstrap-switch",
-  "description" : "Unofficial bootstrap switch",
+  "name": "nostalgiaz/bootstrap-switch",
+  "description": "Unofficial bootstrap switch",
+  "version": "1.9.0",
   "type": "component",
   "keywords": [
-    "JavaScript"
+    "javaScript"
   ],
   "homepage": "http://www.larentis.eu/switch/",
   "license": "Apache License, Version 2.0",
@@ -22,7 +23,7 @@
   "extra": {
     "component": {
       "scripts": [
-        "static/js/bootstrap-switch.js"
+        "src/js/bootstrap-switch.js"
       ],
       "shim": {
         "exports": "BootstrapSwitch"

+ 26 - 0
examples/index.css

@@ -0,0 +1,26 @@
+body {
+  padding-top: 20px;
+  padding-bottom: 20px;
+}
+
+.span4,
+h1,
+h4 {
+  text-align: center;
+}
+
+h1 {
+  font-size: 4em;
+}
+
+h4 {
+  font-weight: 200;
+}
+
+h1 {
+  margin-bottom: 20px;
+}
+
+h3 {
+  margin-top: 20px;
+}

+ 511 - 888
examples/index.html

@@ -1,938 +1,561 @@
 <!DOCTYPE html>
-<html lang="en" xmlns="http://www.w3.org/1999/html">
-<head>
+<html lang="en">
+  <head>
     <meta charset="utf-8">
-    <title>Bootstrap switch - by Mattia Larentis and Peter Stein</title>
+    <title>Bootstrap Switch by Mattia Larentis and Peter Stein</title>
     <meta name="description" content="Switches for radio buttons and checkboxes">
     <meta name="author" content="Mattia Larentis">
-    <meta name="subauthor" content="Peter Stein">
-    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;" />
-
-    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" />
-    <link rel="stylesheet" href="../static/stylesheets/bootstrap-switch.css" />
-    <link rel="stylesheet" href="http://getbootstrap.com/2.3.2/assets/js/google-code-prettify/prettify.css" />
-    <link rel="stylesheet" href="http://getbootstrap.com/2.3.2/assets/css/docs.css" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" />
+    <link rel="stylesheet" href="../build/css/bootstrap3/bootstrap-switch.css" />
+    <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css" />
+    <!-- <link rel="stylesheet" href="http://getbootstrap.com/2.3.2/assets/css/docs.css" /> -->
     <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css">
     <link rel="stylesheet" href="http://bdmdesign.github.io/bootstrap-switch/static/stylesheets/flat-ui-fonts.css">
-
-    <style type="text/css">
-        body {
-            padding-top: 60px;
-            padding-bottom: 40px;
-          }
-        .span4, h1, h4 {
-            text-align: center;
-        }
-
-        h1 {
-            font-size: 4em;
-        }
-
-        h4 {
-            font-weight: 200;
-        }
-
-        h1 {
-            margin-bottom: 20px;
-        }
-
-        h3 {
-            margin-top: 20px;
-        }
-    </style>
-
+    <link rel="stylesheet" href="index.css">
     <script>
-        var _gaq = _gaq || [];
-        _gaq.push(['_setAccount', 'UA-43092768-1']);
-        _gaq.push(['_trackPageview']);
-
-        (function () {
-            var ga = document.createElement('script');
-            ga.type = 'text/javascript';
-            ga.async = true;
-            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-            var s = document.getElementsByTagName('script')[0];
-            s.parentNode.insertBefore(ga, s);
-        })();
-
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-43092768-1']);
+    _gaq.push(['_trackPageview']);
+    (function () {
+      var ga = document.createElement('script');
+      ga.type = 'text/javascript';
+      ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0];
+      s.parentNode.insertBefore(ga, s);
+    })();
     </script>
-
-</head>
-<body>
-    <a href="https://github.com/nostalgiaz/bootstrap-switch">
-        <img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub">
-    </a>
-
-    <div class="container">
-        <div class="row-fluid">
-            <div class="span8 offset2">
-                <h1>Bootstrap switch</h1>
-                <h4>
-                    by
-                    <a href="http://larentis.eu" target="_blank">Mattia Larentis</a> (<a href="https://twitter.com/spiritualguru">@SpiritualGuru</a>)
-                    and
-                    <a href="http://www.bdmdesign.org/" target="_blank">Peter Stein</a>
-                </h4>
-                <br>
-            </div>
-        </div>
-
-        <div class="row-fluid">
-            <div class="span8 offset2" style="text-align: center;">
-                <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&repo=bootstrap-switch&type=watch&count=true"
-                        allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
-                <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&repo=bootstrap-switch&type=fork&count=true"
-                        allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
-                <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&type=follow&count=true"
-                        allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
-                <iframe src="http://ghbtns.com/github-btn.html?user=BdMdesigN&type=follow&count=true"
-                        allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
-            </div>
-        </div>
-
-        <div class="row-fluid">
-            <h2 class="span8 offset2">
-                <a name="size" class="anchor" href="#size">Size</a>
-            </h2>
-        </div>
-
-        <div class="row-fluid">
-            <div class="span8 offset2">
-                <div class="bs-docs-example">
-                    <div class="make-switch switch-large">
-                        <input type="checkbox" checked>
-                    </div>
-
-                    <div class="make-switch">
-                        <input type="checkbox" checked>
-                    </div>
-
-                    <div class="make-switch switch-small">
-                        <input type="checkbox" checked>
-                    </div>
-
-                    <div class="make-switch switch-mini">
-                        <input type="checkbox" checked>
-                    </div>
-
-                    <br>
-                    <br>
-
-                    <span>Dimensions can be changed too:</span>
-                    <div id="dimension-switch" class="make-switch">
-                        <input type="checkbox" checked>
-                    </div>
-
-                    <br />
-                    <br />
-
-                    <button id="btn-size-large-switch" class="btn">Large</button>
-                    <button id="btn-size-regular-switch" class="btn">Regular</button>
-                    <button id="btn-size-small-switch" class="btn">Small</button>
-                    <button id="btn-size-mini-switch" class="btn">Mini</button>
-                </div>
-            <pre class="prettyprint linenums">
+  </head>
+  <body>
+  <a href="https://github.com/nostalgiaz/bootstrap-switch">
+      <img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub">
+  </a>
+  <div class="container">
+    <header class="jumbotron">
+      <h1>Bootstrap switch</h1>
+      <h4>by <a href="http://larentis.eu" target="_blank">Mattia Larentis</a> (<a href="https://twitter.com/spiritualguru">@SpiritualGuru</a>) and <a href="http://www.bdmdesign.org/" target="_blank">Peter Stein</a></h4>
+      <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&amp;repo=bootstrap-switch&amp;type=watch&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
+      <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&amp;repo=bootstrap-switch&amp;type=fork&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
+      <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&amp;type=follow&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
+      <iframe src="http://ghbtns.com/github-btn.html?user=BdMdesigN&amp;type=follow&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
+    </header>
+    <h2><a name="size" class="anchor" href="#size">Size</a></h2>
+    <div class="bs-docs-example">
+      <div class="make-switch switch-large">
+          <input type="checkbox" checked>
+      </div>
+      <div class="make-switch">
+          <input type="checkbox" checked>
+      </div>
+      <div class="make-switch switch-small">
+          <input type="checkbox" checked>
+      </div>
+      <div class="make-switch switch-mini">
+          <input type="checkbox" checked>
+      </div>
+      <br>
+      <br>
+      <span>Dimensions can be changed too:</span>
+      <div id="dimension-switch" class="make-switch">
+        <input type="checkbox" checked>
+      </div>
+      <br>
+      <br>
+      <button id="btn-size-large-switch" class="btn btn-default">Large</button>
+      <button id="btn-size-regular-switch" class="btn btn-default">Regular</button>
+      <button id="btn-size-small-switch" class="btn btn-default">Small</button>
+      <button id="btn-size-mini-switch" class="btn btn-default">Mini</button>
+      <br>
+    </div>
+    <pre class="prettyprint lang-html linenums">
 &lt;div class="make-switch switch-large">
-    &lt;input type="checkbox" checked>
+&lt;input type="checkbox" checked>
 &lt;/div>
 
 &lt;div class="make-switch">
-    &lt;input type="checkbox" checked>
+&lt;input type="checkbox" checked>
 &lt;/div>
 
 &lt;div class="make-switch switch-small">
-    &lt;input type="checkbox" checked>
+&lt;input type="checkbox" checked>
 &lt;/div>
 
 &lt;div class="make-switch switch-mini">
-    &lt;input type="checkbox" checked>
+&lt;input type="checkbox" checked>
 &lt;/div>
 
 &lt;div id="dimension-switch" class="make-switch">
-    &lt;input type="checkbox" checked>
+&lt;input type="checkbox" checked>
 &lt;/div></pre>
-            <pre class="prettyprint linenums">
+    <pre class="prettyprint lang-javascript linenums">
 // Resets to the regular style
 $('#dimension-switch').bootstrapSwitch('setSizeClass', '');
+
 // Sets a mini switch
 $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-mini');
+
 // Sets a small switch
 $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-small');
+
 // Sets a large switch
 $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-large');</pre>
+    <h2><a name="colors" class="anchor" href="#colors">Colors</a></h2>
+    <div class="bs-docs-example">
+      <div class="make-switch" data-on="primary" data-off="info">
+          <input type="checkbox" checked>
+      </div>
+      <div class="make-switch" data-on="info" data-off="success">
+          <input type="checkbox" checked>
+      </div>
+      <div class="make-switch" data-on="success" data-off="warning">
+          <input type="checkbox" checked>
+      </div>
+      <div class="make-switch" data-on="warning" data-off="danger">
+          <input type="checkbox" checked>
+      </div>
+      <div class="make-switch" data-on="danger" data-off="default">
+          <input type="checkbox" checked>
+      </div>
+      <div class="make-switch" data-on="default" data-off="primary">
+          <input type="checkbox" checked>
+      </div>
+      <br>
+      <br>
+      <span>Colors can be changed too:</span>
+      <div id="change-color-switch" class="make-switch" data-on="default" data-off="primary">
+          <input type="checkbox" checked>
+      </div>
+      <br>
+      <br>
+      <button id="btn-color-on-switch" class="btn btn-success">Change ON color</button>
+      <button id="btn-color-off-switch" class="btn btn-danger">Change OFF color</button>
+    </div>
+    <pre class="prettyprint lang-html linenums">
+  &lt;div class="make-switch" data-on="primary" data-off="info">
+  &lt;input type="checkbox" checked>
+  &lt;/div>
+
+  &lt;div class="make-switch" data-on="info" data-off="success">
+  &lt;input type="checkbox" checked>
+  &lt;/div>
+
+  &lt;div class="make-switch" data-on="success" data-off="warning">
+  &lt;input type="checkbox" checked>
+  &lt;/div>
+
+  &lt;div class="make-switch" data-on="warning" data-off="danger">
+  &lt;input type="checkbox" checked>
+  &lt;/div>
+
+  &lt;div class="make-switch" data-on="danger" data-off="default">
+  &lt;input type="checkbox" checked>
+  &lt;/div>
+
+  &lt;div class="make-switch" data-on="default" data-off="primary">
+  &lt;input type="checkbox" checked>
+  &lt;/div>
+
+  &lt;div id="change-color-switch" class="make-switch" data-on="default" data-off="primary">
+  &lt;input type="checkbox" checked>
+  &lt;/div></pre>
+      <pre class="prettyprint lang-javascript linenums">
+    $('#change-color-switch').bootstrapSwitch('setOnClass', 'success');
+    $('#change-color-switch').bootstrapSwitch('setOffClass', 'danger');</pre>
+      <h2><a name="animation" class="anchor" href="#animation">Animation <small>javascript</small></a></h2>
+      <div class="bs-docs-example">
+        <div id="animated-switch" class="make-switch" data-animated="false">
+          <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="colors" class="anchor" href="#colors">Colors</a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div class="make-switch" data-on="primary" data-off="info">
-                    <input type="checkbox" checked>
-                </div>
-                <div class="make-switch" data-on="info" data-off="success">
-                    <input type="checkbox" checked>
-                </div>
-                <div class="make-switch" data-on="success" data-off="warning">
-                    <input type="checkbox" checked>
-                </div>
-                <div class="make-switch" data-on="warning" data-off="danger">
-                    <input type="checkbox" checked>
-                </div>
-                <div class="make-switch" data-on="danger" data-off="default">
-                    <input type="checkbox" checked>
-                </div>
-                <div class="make-switch" data-on="default" data-off="primary">
-                    <input type="checkbox" checked>
-                </div>
-
-                <br />
-                <br />
-
-                <span>Colors can be changed too:</span>
-                <div id="change-color-switch" class="make-switch" data-on="default" data-off="primary">
-                    <input type="checkbox" checked>
-                </div>
-
-                <br />
-                <br />
-
-                <button id="btn-color-on-switch" class="btn btn-success">
-                    Change "On" color
-                </button>
-                <button id="btn-color-off-switch" class="btn btn-danger">
-                    Change "Off" color
-                </button>
-            </div>
-            
-            <pre class="prettyprint linenums">
-&lt;div class="make-switch" data-on="primary" data-off="info">
-    &lt;input type="checkbox" checked>
-&lt;/div>
-
-&lt;div class="make-switch" data-on="info" data-off="success">
-    &lt;input type="checkbox" checked>
-&lt;/div>
-
-&lt;div class="make-switch" data-on="success" data-off="warning">
-    &lt;input type="checkbox" checked>
-&lt;/div>
-
-&lt;div class="make-switch" data-on="warning" data-off="danger">
-    &lt;input type="checkbox" checked>
-&lt;/div>
-
-&lt;div class="make-switch" data-on="danger" data-off="default">
-    &lt;input type="checkbox" checked>
-&lt;/div>
-
-&lt;div class="make-switch" data-on="default" data-off="primary">
-    &lt;input type="checkbox" checked>
-&lt;/div>
-
-&lt;div id="change-color-switch" class="make-switch" data-on="default" data-off="primary">
-    &lt;input type="checkbox" checked>
-&lt;/div></pre>
-            
-            <pre class="prettyprint linenums">
-$('#change-color-switch').bootstrapSwitch('setOnClass', 'success');
-$('#change-color-switch').bootstrapSwitch('setOffClass', 'danger');</pre>
-        </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="animation" class="anchor" href="#animation">Animation <small>javascript</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div id="animated-switch" class="make-switch" data-animated="false">
-                    <input type="checkbox" checked>
-                </div>
-
-                <br />
-                <br />
-
-                <button id="btn-animate-switch" class="btn">Animate</button>
-                <button id="btn-dont-animate-switch" class="btn">Don't animate</button>
-            </div>
-            <pre class="prettyprint linenums">
-&lt;div id="animated-switch" class="make-switch" data-animated="false">
-    &lt;input type="checkbox" checked>
-&lt;/div></pre>
-
-            <pre class="prettyprint linenums">
-// Enables animation for the selected item
-$('#animated-switch').bootstrapSwitch('setAnimated', true);
-// Disables animation for the selected item
-$('#animated-switch').bootstrapSwitch('setAnimated', false);</pre>
-        </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="disabled" class="anchor" href="#disabled">Disabled</a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div class="make-switch">
-                    <input type="checkbox" checked disabled>
-                </div>
-            </div>
-            <pre class="prettyprint linenums">
-&lt;div class="make-switch">
-   &lt;input type="checkbox" checked disabled>
-&lt;/div></pre>
-        </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="text" class="anchor" href="#text">Text</a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div id="label-switch" class="make-switch" data-on-label="SI" data-off-label="NO">
-                    <input type="checkbox" checked>
-                </div>
-
-                <br />
-                <br />
-
-                <button id="btn-label-on-switch" class="btn">Change "On" label</button>
-                <button id="btn-label-off-switch" class="btn">Change "Off" label</button>
-
-            </div>
-            <pre class="prettyprint linenums">
-&lt;div id="label-switch" class="make-switch" data-on-label="SI" data-off-label="NO">
-    &lt;input type="checkbox" checked>
-&lt;/div></pre>
-            <pre class="prettyprint linenums">
-$('#label-switch').bootstrapSwitch('setOnLabel', 'I');
-$('#label-switch').bootstrapSwitch('setOffLabel', 'O');</pre>
-        </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="label-text" class="anchor" href="#label-text">Label Text</a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div class="make-switch" data-text-label="TV">
-                    <input type="checkbox" checked>
-                </div>
-            </div>
-            <pre class="prettyprint linenums">
-&lt;div class="make-switch" data-text-label="TV">
-    &lt;input type="checkbox" checked>
-&lt;/div></pre>
-            <pre class="prettyprint linenums">
-$('#label-text-switch').bootstrapSwitch('setTextLabel', 'Radio');</pre>
-        </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="html-text" class="anchor" href="#html-text">HTML text</a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div class="make-switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
-                    <input type="checkbox" checked>
-                </div>
-            </div>
-            <pre class="prettyprint linenums">
-&lt;div class="make-switch" data-on-label="&lt;i class='icon-ok icon-white'>&lt;/i>" data-off-label="&lt;i class='icon-remove'>&lt;/i>">
-    &lt;input type="checkbox" checked />
-&lt;/div></pre>
+        <br>
+        <br>
+        <button id="btn-animate-switch" class="btn btn-default">Animate</button>
+        <button id="btn-dont-animate-switch" class="btn btn-default">Don't animate</button>
+      </div>
+      <pre class="prettyprint lang-html linenums">
+  &lt;div id="animated-switch" class="make-switch" data-animated="false">
+  &lt;input type="checkbox" checked>
+  &lt;/div></pre>
+      <pre class="prettyprint lang-javascript linenums">
+  // Enables animation for the selected item
+  $('#animated-switch').bootstrapSwitch('setAnimated', true);
+
+  // Disables animation for the selected item
+  $('#animated-switch').bootstrapSwitch('setAnimated', false);</pre>
+      <h2><a name="disabled" class="anchor" href="#disabled">Disabled</a></h2>
+      <div class="bs-docs-example">
+        <div class="make-switch">
+          <input type="checkbox" checked disabled>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="html-text-label-icon" class="anchor" href="#html-text-label-icon">HTML text Label Icon</a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <h5>Standard</h5>
-                <div class="make-switch switch-large" data-label-icon="icon-fullscreen" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
-                    <input type="checkbox" checked>
-                </div>
-
-                <h5>Font Awesome</h5>
-                <div class="make-switch switch-large" data-label-icon="icon-youtube icon-large" data-on-label="<i class='icon-thumbs-up icon-white'></i>" data-off-label="<i class='icon-thumbs-down'></i>">
-                    <input type="checkbox" checked>
-                </div>
-
-                <h5>Flat UI</h5>
-                <div class="make-switch switch-large" data-label-icon="fui-video" data-on-label="<i class='fui-check icon-white'></i>" data-off-label="<i class='fui-cross'></i>">
-                    <input type="checkbox" checked>
-                </div>
-            </div>
-
-            <!--<h3>Standard</h3>-->
-            <pre class="prettyprint linenums">
-&lt;div class="make-switch switch-large" data-label-icon="icon-fullscreen" data-on-label="&lt;i class='icon-ok icon-white'>&lt;/i>" data-off-label="&lt;i class='icon-remove'>&lt;/i>">
-    &lt;input type="checkbox" checked>
-&lt;/div>
-
-&lt;div class="make-switch switch-large" data-label-icon="icon-youtube icon-large" data-on-label="&lt;i class='icon-thumbs-up icon-white'>&lt;/i>" data-off-label="&lt;i class='icon-thumbs-down'>&lt;/i>">
-    &lt;input type="checkbox" checked>
-&lt;/div>
-
-&lt;div class="make-switch" data-label-icon="fui-video" data-on-label="&lt;i class='fui-check icon-white'>&lt;/i>" data-off-label="&lt;i class='fui-cross'>&lt;/i>">
-    &lt;input type="checkbox" checked>
-&lt;/div></pre>
-            <pre class="prettyprint linenums">
-$('#label-icon-switch').bootstrapSwitch('setIconLabel', 'icon-remove');</pre>
+      </div>
+      <pre class="prettyprint lang-html linenums">
+  &lt;div class="make-switch">
+  &lt;input type="checkbox" checked disabled>
+  &lt;/div></pre>
+      <h2><a name="text" class="anchor" href="#text">Text</a></h2>
+      <div class="bs-docs-example">
+        <div id="label-switch" class="make-switch" data-on-label="SI" data-off-label="NO">
+          <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="event-handler-javascript" class="anchor" href="#event-handler-javascript">Event handler <small>javascript</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div id="mySwitch" class="make-switch">
-                    <input type="checkbox" checked>
-                </div>
-            </div>
-            <pre class="prettyprint linenums">
-$('#mySwitch').on('switch-change', function (e, data) {
-    var $el = $(data.el)
-      , value = data.value;
-    console.log(e, $el, value);
-});</pre>
+        <br>
+        <br>
+        <button id="btn-label-on-switch" class="btn btn-default">Change "On" label</button>
+        <button id="btn-label-off-switch" class="btn btn-default">Change "Off" label</button>
+      </div>
+      <pre class="prettyprint lang-html linenums">
+  &lt;div id="label-switch" class="make-switch" data-on-label="SI" data-off-label="NO">
+  &lt;input type="checkbox" checked>
+  &lt;/div></pre>
+      <pre class="prettyprint lang-javascript linenums">
+  $('#label-switch').bootstrapSwitch('setOnLabel', 'I');
+  $('#label-switch').bootstrapSwitch('setOffLabel', 'O');</pre>
+      <h2><a name="label-text" class="anchor" href="#label-text">Label Text</a></h2>
+      <div class="bs-docs-example">
+      <div class="make-switch" data-text-label="TV">
+        <input type="checkbox" checked>
+      </div>
+      </div>
+      <pre class="prettyprint lang-html linenums">
+  &lt;div class="make-switch" data-text-label="TV">
+  &lt;input type="checkbox" checked>
+  &lt;/div></pre>
+      <h2><a name="html-text" class="anchor" href="#html-text">HTML text</a></h2>
+      <div class="bs-docs-example">
+        <div class="make-switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
+          <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="label-event-handler-javascript" class="anchor" href="#label-event-handler-javascript">Label Event handler <small>javascript</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <h5>Label 1</h5>
-                <label id="label-toggle-switch">Click on this Text to change the switch state</label>
-                <div class="label-toggle-switch make-switch">
-                    <input type="checkbox" checked>
-                </div>
-
-                <h5>Label 2</h5>
-                <div id="label2-toggle-switch">
-                    <label class="label-change-switch">Click on this Text to change the switch state
-                        <div class="label2-toggle-switch make-switch">
-                            <input type="checkbox" checked>
-                        </div>
-                    </label>
-                </div>
-            </div>
-
-            <pre class="prettyprint linenums">
-&lt;label id="label-toggle-switch">Click on this Text to change the switch state&lt;/label>
-    &lt;div class="label-toggle-switch make-switch">
-        &lt;input type="checkbox" checked />
-    &lt;/div>
-&lt;script>
-    $('#label-toggle-switch').on('click', function(e, data) {
-        $('.label-toggle-switch').bootstrapSwitch('toggleState');
-    });
-    $('.label-toggle-switch').on('switch-change', function (e, data) {
-        alert(data.value);
-    });
-&lt;/script>
-
-&lt;div id="label2-toggle-switch">
-    &lt;label class="label-change-switch">Click on this Text to change the switch state
-    &lt;div class="label2-toggle-switch make-switch">
-        &lt;input type="checkbox" checked />
-    &lt;/div>
-    &lt;/label>
-&lt;/div>
-&lt;script>
-    $('#label2-toggle-switch').on('switch-change', function(e, data) {
-        alert(data.value);
-    });
-&lt;/script></pre>
+      </div>
+      <pre class="prettyprint lang-html linenums">
+  &lt;div class="make-switch" data-on-label="&lt;i class='icon-ok icon-white'>&lt;/i>" data-off-label="&lt;i class='icon-remove'>&lt;/i>">
+  &lt;input type="checkbox" checked />
+  &lt;/div></pre>
+      <h2><a name="html-text-label-icon" class="anchor" href="#html-text-label-icon">HTML text Label Icon</a></h2>
+      <div class="bs-docs-example">
+        <h5>Standard</h5>
+        <div class="make-switch switch-large" data-label-icon="icon-fullscreen" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
+            <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="toggle-state" class="anchor" href="#toggle-state">Toggle State <small>javascript</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div id="toggle-state-switch" class="make-switch">
-                    <input type="checkbox" checked>
-                </div>
-
-                <br />
-                <br />
-
-                <div id="toggle-state-switch-button-status" class="btny">Status!</div>
-                <div id="toggle-state-switch-button-on" class="btn">ON!</div>
-                <div id="toggle-state-switch-button" class="btn">Toggle me!</div>
-                <div id="toggle-state-switch-button-off" class="btn">OFF!</div>
-            </div>
-            <pre class="prettyprint linenums">
-$('#toggle-state-switch').bootstrapSwitch('status'); // true || false
-$('#toggle-state-switch').bootstrapSwitch('toggleState');
-$('#toggle-state-switch').bootstrapSwitch('setState', false); // true || false</pre>
+        <h5>Font Awesome</h5>
+        <div class="make-switch switch-large" data-label-icon="icon-youtube icon-large" data-on-label="<i class='icon-thumbs-up icon-white'></i>" data-off-label="<i class='icon-thumbs-down'></i>">
+            <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="destroy" class="anchor" href="#destroy">Destroy <small>javascript</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div id="destroy-switch" class="make-switch">
-                    <input type="checkbox" checked>
-                </div>
-
-                <br />
-                <br />
-
-                <button id="btn-destroy-switch" class="btn">Destroy me!</button>
-            </div>
-            <pre class="prettyprint linenums">
-$('#destroy-switch').bootstrapSwitch('destroy');</pre>
+        <h5>Flat UI</h5>
+        <div class="make-switch switch-large" data-label-icon="fui-video" data-on-label="<i class='fui-check icon-white'></i>" data-off-label="<i class='fui-cross'></i>">
+            <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="create" class="anchor" href="#create">Create <small>javascript</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <input id="create-switch" type="checkbox" checked>
-
-                <br />
-                <br />
-
-                <div id="btn-create" class="btn">Create</div>
-            </div>
-            <pre class="prettyprint linenums">
-$('#create-switch').wrap('&lt;div class="make-switch" />').parent().bootstrapSwitch();</pre>
+      </div>
+      <pre class="prettyprint lang-html linenums">
+  &lt;div class="make-switch switch-large" data-label-icon="icon-fullscreen" data-on-label="&lt;i class='icon-ok icon-white'>&lt;/i>" data-off-label="&lt;i class='icon-remove'>&lt;/i>">
+  &lt;input type="checkbox" checked>
+  &lt;/div>
+
+  &lt;div class="make-switch switch-large" data-label-icon="icon-youtube icon-large" data-on-label="&lt;i class='icon-thumbs-up icon-white'>&lt;/i>" data-off-label="&lt;i class='icon-thumbs-down'>&lt;/i>">
+  &lt;input type="checkbox" checked>
+  &lt;/div>
+
+  &lt;div class="make-switch" data-label-icon="fui-video" data-on-label="&lt;i class='fui-check icon-white'>&lt;/i>" data-off-label="&lt;i class='fui-cross'>&lt;/i>">
+  &lt;input type="checkbox" checked>
+  &lt;/div></pre>
+      <h2><a name="event-handler-javascript" class="anchor" href="#event-handler-javascript">Event handler <small>jav</small></a></h2>
+      <div class="bs-docs-example">
+        <div id="mySwitch" class="make-switch">
+          <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="disabled-javascript" class="anchor" href="#disabled-javascript">Disabled <small>javascript</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <label for="disable-switch-input">amazing label</label>
-                <div id="disable-switch" class="make-switch">
-                    <input id="disable-switch-input" type="checkbox" checked>
-                </div>
-
-                <br />
-                <br />
-
-                <button id="btn-is-active-switch" class="btn">Is active?</button>
-                <button id="btn-toggle-activation-switch" class="btn">Toggle activation!</button>
-                <button id="btn-disable-switch" class="btn">Disable!</button>
-                <button id="btn-activate-switch" class="btn">Activate!</button>
-            </div>
-            <pre class="prettyprint linenums">
-$('#disable-switch').bootstrapSwitch('isActive');
-$('#disable-switch').bootstrapSwitch('toggleActivation');
-$('#disable-switch').bootstrapSwitch('setActive', false);  // true || false</pre>
+      </div>
+      <pre class="prettyprint lang-javascript linenums">
+  $('#mySwitch').on('switch-change', function (e, data) {
+  var $el = $(data.el)
+    , value = data.value;
+  console.log(e, $el, value);
+  });</pre>
+      <h2><a name="label-event-handler-javascript" class="anchor" href="#label-event-handler-javascript">Label Event h<small>javascript</small></a></h2>
+      <div class="bs-docs-example">
+        <h5>Label 1</h5>
+        <label id="label-toggle-switch">Click on this Text to change the switch state</label>
+        <div class="label-toggle-switch make-switch">
+          <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="radio-javascript" class="anchor" href="#radio-javascript">Radio <small>javascript</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div class="control-group">
-                     <div class="controls">
-                        <label for="option1">Option 1</label>
-                        <div class="make-switch radio1 radio-no-uncheck">
-                            <input id="option1" type="radio" name="radio1" value="option1">
-                        </div>
-                        <label for="option2">Option 2</label>
-                        <div class="make-switch radio1 radio-no-uncheck">
-                            <input id="option2" type="radio" name="radio1" value="option2">
-                        </div>
-                        <label for="option3">Option 3</label>
-                        <div class="make-switch radio1 radio-no-uncheck">
-                            <input id="option3" type="radio" name="radio1" value="option3">
-                        </div>
-                     </div>
-                </div>
+        <h5>Label 2</h5>
+        <div id="label2-toggle-switch">
+          <label class="label-change-switch">Click on this Text to change the switch state
+            <div class="label2-toggle-switch make-switch">
+              <input type="checkbox" checked>
             </div>
-            <pre class="prettyprint linenums">
-&lt;div class="control-group">
-    &lt;div class="controls">
-        &lt;label for="option1">Option 1&lt;/label>
-        &lt;div class="make-switch radio1 radio-no-uncheck">
-            &lt;input id="option1" type="radio" name="radio1" value="option1">
-        &lt;/div>
-        &lt;label for="option2">Option 2&lt;/label>
-        &lt;div class="make-switch radio1 radio-no-uncheck">
-            &lt;input id="option2" type="radio" name="radio1" value="option2">
-        &lt;/div>
-        &lt;label for="option3">Option 3&lt;/label>
-        &lt;div class="make-switch radio1 radio-no-uncheck">
-            &lt;input id="option3" type="radio" name="radio1" value="option3">
-        &lt;/div>
-    &lt;/div>
-&lt;/div>            
-&lt;script>
-    $('.radio1').on('switch-change', function () {
-        $('.radio1').bootstrapSwitch('toggleRadioState');
-    });
-    // or
-    $('.radio1').on('switch-change', function () {
-        $('.radio1').bootstrapSwitch('toggleRadioStateAllowUncheck');
-    });
-    // or
-    $('.radio1').on('switch-change', function () {
-        $('.radio1').bootstrapSwitch('toggleRadioStateAllowUncheck', false);
-    });
-&lt;/script></pre>
+          </label>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="radio-javascript-allow-uncheck" class="anchor" href="#radio-javascript-allow-uncheck">Radio <small>javascript (allow radios uncheck)</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <div class="control-group">
-                     <div class="controls">
-                        <label for="option11">Option 1</label>
-                        <div class="make-switch radio2">
-                            <input id="option11" type="radio" name="radio2" value="option11">
-                        </div>
-                        <label for="option12">Option 2</label>
-                        <div class="make-switch radio2">
-                            <input id="option12" type="radio" name="radio2" value="option12" checked="checked">
-                        </div>
-                        <label for="option13">Option 3</label>
-                        <div class="make-switch radio2">
-                            <input id="option13" type="radio" name="radio2" value="option13">
-                        </div>
-                     </div>
-                </div>
-            </div>
-            <pre class="prettyprint linenums">
-&lt;div class="control-group">
-    &lt;div class="controls">
-        &lt;label for="option11">Option 1&lt;/label>
-        &lt;div class="make-switch radio2">
-            &lt;input id="option11" type="radio" name="radio2" value="option1">
-        &lt;/div>
-        &lt;label for="option12">Option 2&lt;/label>
-        &lt;div class="make-switch radio2">
-            &lt;input id="option12" type="radio" name="radio2" value="option2" checked="checked">
-        &lt;/div>
-        &lt;label for="option13">Option 3&lt;/label>
-        &lt;div class="make-switch radio2">
-            &lt;input id="option13" type="radio" name="radio2" value="option3">
-        &lt;/div>
-    &lt;/div>
-&lt;/div>            
-&lt;script>
-    $('.radio2').on('switch-change', function () {
-        $('.radio2').bootstrapSwitch('toggleRadioStateAllowUncheck', true);
-    });
-&lt;/script></pre>
+      </div>
+      <pre class="prettyprint lang-html linenums">
+  &lt;label id="label-toggle-switch">Click on this Text to change the switch state&lt;/label>
+  &lt;div class="label-toggle-switch make-switch">
+      &lt;input type="checkbox" checked />
+  &lt;/div>
+  &lt;script>
+  $('#label-toggle-switch').on('click', function(e, data) {
+      $('.label-toggle-switch').bootstrapSwitch('toggleState');
+  });
+  $('.label-toggle-switch').on('switch-change', function (e, data) {
+      alert(data.value);
+  });
+  &lt;/script>
+
+  &lt;div id="label2-toggle-switch">
+  &lt;label class="label-change-switch">Click on this Text to change the switch state
+  &lt;div class="label2-toggle-switch make-switch">
+      &lt;input type="checkbox" checked />
+  &lt;/div>
+  &lt;/label>
+  &lt;/div>
+  &lt;script>
+  $('#label2-toggle-switch').on('switch-change', function(e, data) {
+      alert(data.value);
+  });
+  &lt;/script></pre>
+      <h2><a name="toggle-state" class="anchor" href="#toggle-state">Toggle State <small>javascript</small></a></h2>
+      <div class="bs-docs-example">
+        <div id="toggle-state-switch" class="make-switch">
+          <input type="checkbox" checked>
         </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="form" class="anchor" href="#form">Form <small>- try to use tab, space and reset button</small></a>
-        </h2>
-    </div>
-
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <form class="form-horizontal span8 offset2">
-                    <div class="control-group">
-                        <label class="control-label" for="inputEmail">Email</label>
-                        <div class="controls">
-                            <input type="text" id="inputEmail" placeholder="Email">
-                        </div>
-                    </div>
-
-                    <div class="control-group">
-                        <label class="control-label" for="notification1">Notification 1</label>
-
-                        <div class="controls">
-                            <div class="make-switch" tabindex="0">
-                                <input id="notification1" type="checkbox">
-                            </div>
-                        </div>
-                    </div>
-                    <div class="control-group">
-                        <label class="control-label" for="notification2">Notification 2</label>
-
-                        <div class="controls">
-                            <div class="make-switch" tabindex="0">
-                                <input id="notification2" type="checkbox">
-                            </div>
-                        </div>
-                    </div>
-
-                    <div class="form-actions">
-                        <button type="reset" class="btn btn-inverse">Reset</button>
-                    </div>
-                </form>
-                <div class="clearfix"></div>
-            </div>
-            
-            <pre class="prettyprint linenums">
-&lt;form class="form-horizontal">
-    &lt;div class="control-group">
-        &lt;label class="control-label" for="inputEmail">Email&lt;/label>
-        &lt;div class="controls">
-            &lt;input type="text" id="inputEmail" placeholder="Email">
-        &lt;/div>
+        <br>
+        <br>
+        <div id="toggle-state-switch-button-status" class="btny">Status!</div>
+        <div id="toggle-state-switch-button-on" class="btn btn-default">ON!</div>
+        <div id="toggle-state-switch-button" class="btn btn-default">Toggle me!</div>
+        <div id="toggle-state-switch-button-off" class="btn btn-default">OFF!</div>
+      </div>
+      <pre class="prettyprint lang-javascript linenums">
+  $('#toggle-state-switch').bootstrapSwitch('status'); // true || false
+  $('#toggle-state-switch').bootstrapSwitch('toggleState');
+  $('#toggle-state-switch').bootstrapSwitch('setState', false); // true || false</pre>
+      <h2><a name="destroy" class="anchor" href="#destroy">Destroy <small>javascript</small></a></h2>
+          <div class="bs-docs-example">
+              <div id="destroy-switch" class="make-switch">
+                  <input type="checkbox" checked>
+              </div>
+              <br />
+              <br />
+              <button id="btn-destroy-switch" class="btn btn-default">Destroy me!</button>
+          </div>
+          <pre class="prettyprint lang-javascript linenums">
+  $('#destroy-switch').bootstrapSwitch('destroy');</pre>
+      <h2><a name="create" class="anchor" href="#create">Create <small>javascript</small></a></h2>
+          <div class="bs-docs-example">
+              <input id="create-switch" type="checkbox" checked>
+
+              <br />
+              <br />
+
+              <div id="btn-create" class="btn btn-default">Create</div>
+          </div>
+          <pre class="prettyprint lang-javascript linenums">
+  $('#create-switch').wrap('&lt;div class="make-switch" />').parent().bootstrapSwitch();</pre>
+      <h2><a name="disabled-javascript" class="anchor" href="#disabled-javascript">Disabled <small>javascript</small></a></h2>
+          <div class="bs-docs-example">
+              <label for="disable-switch-input">amazing label</label>
+              <div id="disable-switch" class="make-switch">
+                  <input id="disable-switch-input" type="checkbox" checked>
+              </div>
+              <br />
+              <br />
+              <button id="btn-is-active-switch" class="btn btn-default">Is active?</button>
+              <button id="btn-toggle-activation-switch" class="btn btn-default">Toggle activation!</button>
+              <button id="btn-disable-switch" class="btn btn-default">Disable!</button>
+              <button id="btn-activate-switch" class="btn btn-default">Activate!</button>
+          </div>
+          <pre class="prettyprint lang-javascript linenums">
+  $('#disable-switch').bootstrapSwitch('isActive');
+  $('#disable-switch').bootstrapSwitch('toggleActivation');
+  $('#disable-switch').bootstrapSwitch('setActive', false);  // true || false</pre>
+      <h2><a name="radio-javascript" class="anchor" href="#radio-javascript">Radio <small>javascript</small></a></h2>
+          <div class="bs-docs-example">
+              <div class="control-group">
+                   <div class="controls">
+                      <label for="option1">Option 1</label>
+                      <div class="make-switch radio1 radio-no-uncheck">
+                          <input id="option1" type="radio" name="radio1" value="option1">
+                      </div>
+                      <label for="option2">Option 2</label>
+                      <div class="make-switch radio1 radio-no-uncheck">
+                          <input id="option2" type="radio" name="radio1" value="option2">
+                      </div>
+                      <label for="option3">Option 3</label>
+                      <div class="make-switch radio1 radio-no-uncheck">
+                          <input id="option3" type="radio" name="radio1" value="option3">
+                      </div>
+                   </div>
+              </div>
+          </div>
+          <pre class="prettyprint lang-html linenums">
+  &lt;div class="control-group">
+  &lt;div class="controls">
+      &lt;label for="option1">Option 1&lt;/label>
+      &lt;div class="make-switch radio1 radio-no-uncheck">
+          &lt;input id="option1" type="radio" name="radio1" value="option1">
+      &lt;/div>
+      &lt;label for="option2">Option 2&lt;/label>
+      &lt;div class="make-switch radio1 radio-no-uncheck">
+          &lt;input id="option2" type="radio" name="radio1" value="option2">
+      &lt;/div>
+      &lt;label for="option3">Option 3&lt;/label>
+      &lt;div class="make-switch radio1 radio-no-uncheck">
+          &lt;input id="option3" type="radio" name="radio1" value="option3">
+      &lt;/div>
+  &lt;/div>
+  &lt;/div>
+  &lt;script>
+  $('.radio1').on('switch-change', function () {
+      $('.radio1').bootstrapSwitch('toggleRadioState');
+  });
+  // or
+  $('.radio1').on('switch-change', function () {
+      $('.radio1').bootstrapSwitch('toggleRadioStateAllowUncheck');
+  });
+  // or
+  $('.radio1').on('switch-change', function () {
+      $('.radio1').bootstrapSwitch('toggleRadioStateAllowUncheck', false);
+  });
+  &lt;/script></pre>
+      <h2><a name="radio-javascript-allow-uncheck" class="anchor" href="#radio-javascript-allow-uncheck"><small>javascript (allow radios uncheck)</small></a>
+      </h2>
+          <div class="bs-docs-example">
+              <div class="control-group">
+                   <div class="controls">
+                      <label for="option11">Option 1</label>
+                      <div class="make-switch radio2">
+                          <input id="option11" type="radio" name="radio2" value="option11">
+                      </div>
+                      <label for="option12">Option 2</label>
+                      <div class="make-switch radio2">
+                          <input id="option12" type="radio" name="radio2" value="option12" checked="checked">
+                      </div>
+                      <label for="option13">Option 3</label>
+                      <div class="make-switch radio2">
+                          <input id="option13" type="radio" name="radio2" value="option13">
+                      </div>
+                   </div>
+              </div>
+          </div>
+          <pre class="prettyprint lang-html linenums">
+  &lt;div class="control-group">
+  &lt;div class="controls">
+      &lt;label for="option11">Option 1&lt;/label>
+      &lt;div class="make-switch radio2">
+          &lt;input id="option11" type="radio" name="radio2" value="option1">
+      &lt;/div>
+      &lt;label for="option12">Option 2&lt;/label>
+      &lt;div class="make-switch radio2">
+          &lt;input id="option12" type="radio" name="radio2" value="option2" checked="checked">
+      &lt;/div>
+      &lt;label for="option13">Option 3&lt;/label>
+      &lt;div class="make-switch radio2">
+          &lt;input id="option13" type="radio" name="radio2" value="option3">
+      &lt;/div>
+  &lt;/div>
+  &lt;/div>
+  &lt;script>
+  $('.radio2').on('switch-change', function () {
+      $('.radio2').bootstrapSwitch('toggleRadioStateAllowUncheck', true);
+  });
+  &lt;/script></pre>
+      <h2><a name="form" class="anchor" href="#form">Form <small>- try to use tab, space and reset button</small></a></h2>
+          <div class="bs-docs-example">
+              <form class="form-horizontal span8 offset2">
+                  <div class="control-group">
+                      <label class="control-label" for="inputEmail">Email</label>
+                      <div class="controls">
+                          <input type="text" id="inputEmail" placeholder="Email">
+                      </div>
+                  </div>
+
+                  <div class="control-group">
+                      <label class="control-label" for="notification1">Notification 1</label>
+
+                      <div class="controls">
+                          <div class="make-switch" tabindex="0">
+                              <input id="notification1" type="checkbox">
+                          </div>
+                      </div>
+                  </div>
+                  <div class="control-group">
+                      <label class="control-label" for="notification2">Notification 2</label>
+
+                      <div class="controls">
+                          <div class="make-switch" tabindex="0">
+                              <input id="notification2" type="checkbox">
+                          </div>
+                      </div>
+                  </div>
+
+                  <div class="form-actions">
+                      <button type="reset" class="btn btn-inverse">Reset</button>
+                  </div>
+              </form>
+              <div class="clearfix"></div>
+          </div>
+          <pre class="prettyprint lang-html linenums">
+  &lt;form class="form-horizontal">
+  &lt;div class="control-group">
+      &lt;label class="control-label" for="inputEmail">Email&lt;/label>
+      &lt;div class="controls">
+          &lt;input type="text" id="inputEmail" placeholder="Email">
+      &lt;/div>
+  &lt;/div>
+  &lt;div class="control-group">
+      &lt;label class="control-label" for="notification1">Notification 1&lt;/label>
+      &lt;div class="controls">
+          &lt;div class="make-switch" tabindex="0">
+              &lt;input id="notification1" type="checkbox">
+          &lt;/div>
+      &lt;/div>
+  &lt;/div>
+  &lt;div class="control-group">
+      &lt;label class="control-label" for="notification2">Notification 2&lt;/label>
+      &lt;div class="controls">
+          &lt;div class="make-switch" tabindex="0">
+              &lt;input id="notification2" type="checkbox">
+          &lt;/div>
+      &lt;/div>
+  &lt;/div>
+  &lt;div class="form-actions">
+      &lt;button type="reset" class="btn btn-inverse">Reset&lt;/button>
+  &lt;/div>
+  &lt;/form></pre>
+    <h2><a name="modal" class="anchor" href="#modal">Modal</a></h2>
+    <div class="bs-docs-example">
+      <a href="#myModal" role="button" class="btn btn-default" data-toggle="modal">Modal</a>
+    </div>
+    <pre class="prettyprint lang-html linenums">
+&lt;a href="#myModal" role="button" class="btn btn-default" data-toggle="modal">Modal&lt;/a>
+
+&lt;div class="modal-body">
+    &lt;div class="make-switch">
+        &lt;input type="checkbox" checked>
     &lt;/div>
-    &lt;div class="control-group">
-        &lt;label class="control-label" for="notification1">Notification 1&lt;/label>
-        &lt;div class="controls">
-            &lt;div class="make-switch" tabindex="0">
-                &lt;input id="notification1" type="checkbox">
-            &lt;/div>
-        &lt;/div>
-    &lt;/div>
-    &lt;div class="control-group">
-        &lt;label class="control-label" for="notification2">Notification 2&lt;/label>
-        &lt;div class="controls">
-            &lt;div class="make-switch" tabindex="0">
-                &lt;input id="notification2" type="checkbox">
-            &lt;/div>
-        &lt;/div>
-    &lt;/div>
-    &lt;div class="form-actions">
-        &lt;button type="reset" class="btn btn-inverse">Reset&lt;/button>
-    &lt;/div>
-&lt;/form></pre>
-        </div>
-    </div>
-
-    <div class="row-fluid">
-        <h2 class="span8 offset2">
-            <a name="modal" class="anchor" href="#modal">Modal</a>
-        </h2>
-    </div>
-        <!-- MODAL -->
-    <div class="row-fluid">
-        <div class="span8 offset2">
-            <div class="bs-docs-example">
-                <a href="#myModal" role="button" class="btn" data-toggle="modal">Modal</a>
-            </div>
-            <pre class="prettyprint linenums">
-    &lt;a href="#myModal" role="button" class="btn" data-toggle="modal">Modal&lt;/a>
-
-    &lt;div class="modal-body">
-        &lt;div class="make-switch">
-            &lt;input type="checkbox" checked>
-        &lt;/div>
-    &lt;/div></pre>
-        </div>
-    </div>
-</div>
-
-<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
+&lt;/div></pre>
+  </div>
+  <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
     <div class="modal-header">
-        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
-        <h3>Modal</h3>
+      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+      <h3>Modal</h3>
     </div>
     <div class="modal-body">
-        <div class="make-switch">
-            <input type="checkbox" checked>
-        </div>
+      <div class="make-switch">
+        <input type="checkbox" checked>
+      </div>
     </div>
     <div class="modal-footer">
-        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
+      <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
     </div>
-</div>
-
-<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
-
-<script>
-    $(document).ready(function() {
-        window.prettyPrint && prettyPrint();
-        $('#mySwitch').on('switch-change', function (e, data) {
-            var $el = $(data.el)
-                , value = data.value;
-            console.log(e, $el, value);
-        });
-
-        // DIMENSION
-        $('#btn-size-regular-switch').on('click', function () {
-            $('#dimension-switch').bootstrapSwitch('setSizeClass', '');
-        });
-        $('#btn-size-mini-switch').on('click', function () {
-            $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-mini');
-        });
-        $('#btn-size-small-switch').on('click', function () {
-            $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-small');
-        });
-        $('#btn-size-large-switch').on('click', function () {
-            $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-large');
-        });
-
-        // STATE
-        $('#toggle-state-switch-button').on('click', function () {
-            $('#toggle-state-switch').bootstrapSwitch('toggleState');
-        });
-        $('#toggle-state-switch-button-on').on('click', function () {
-            $('#toggle-state-switch').bootstrapSwitch('setState', true);
-        });
-        $('#toggle-state-switch-button-off').on('click', function () {
-            $('#toggle-state-switch').bootstrapSwitch('setState', false);
-        });
-        $('#toggle-state-switch-button-status').on('click', function () {
-            alert($('#toggle-state-switch').bootstrapSwitch('status'));
-        });
-
-        // DESTROY
-        $('#btn-destroy-switch').on('click', function () {
-            $('#destroy-switch').bootstrapSwitch('destroy');
-            $(this).remove();
-        });
-        // CREATE
-        $('#btn-create').on('click', function () {
-            $('#create-switch').wrap('<div class="make-switch" />').parent().bootstrapSwitch();
-            $(this).remove()
-        });
-
-        // ACTIVATION
-        $('#btn-is-active-switch').on('click', function () {
-            alert($('#disable-switch').bootstrapSwitch('isActive'));
-        });
-        $('#btn-toggle-activation-switch').on('click', function () {
-            $('#disable-switch').bootstrapSwitch('toggleActivation');
-        });
-        $('#btn-disable-switch').on('click', function () {
-            $('#disable-switch').bootstrapSwitch('setActive', false);
-        });
-        $('#btn-activate-switch').on('click', function () {
-            $('#disable-switch').bootstrapSwitch('setActive', true);
-        });
-
-        // LABEL
-        $('#btn-label-on-switch').on('click', function() {
-            $('#label-switch').bootstrapSwitch('setOnLabel', 'I');
-        });
-        $('#btn-label-off-switch').on('click', function() {
-            $('#label-switch').bootstrapSwitch('setOffLabel', 'O');
-        });
-
-        $('#label-toggle-switch').on('click', function(e, data) {
-            $('.label-toggle-switch').bootstrapSwitch('toggleState');
-        });
-        $('.label-toggle-switch').on('switch-change', function(e, data) {
-            alert(data.value);
-        });
-        $('#label2-toggle-switch').on('switch-change', function(e, data) {
-            alert(data.value);
-        });
-
-        // COLOR
-        $('#btn-color-on-switch').on('click', function() {
-            $('#change-color-switch').bootstrapSwitch('setOnClass', 'success');
-        });
-        $('#btn-color-off-switch').on('click', function() {
-            $('#change-color-switch').bootstrapSwitch('setOffClass', 'danger');
-        });
-
-        // ANIMATION
-        $('#btn-animate-switch').on('click', function() {
-            $('#animated-switch').bootstrapSwitch('setAnimated', true);
-        });
-        $('#btn-dont-animate-switch').on('click', function() {
-            $('#animated-switch').bootstrapSwitch('setAnimated', false);
-        });
-
-        // RADIO
-        $('.radio1').on('switch-change', function () {
-            $('.radio1').bootstrapSwitch('toggleRadioState');
-        });
-        $('.radio2').on('switch-change', function () {
-            $('.radio2').bootstrapSwitch('toggleRadioStateAllowUncheck', true);
-        });
-    });
-</script>
-
-    <footer>
-        <div class="container-fluid">
-            <p style="float:left; padding-top: 5px;">
-                &copy; by
-                <a href="http://larentis.eu" target="_blank">Mattia Larentis</a> (<a href="https://twitter.com/SpiritualGuru">@SpiritualGuru</a>)
-                and
-                <a href="http://www.bdmdesign.org/" target="_blank">Peter Stein</a>
-            </p>
-        </div>
-    </footer>
-
-    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
-    <script src="http://getbootstrap.com/2.3.2/assets/js/google-code-prettify/prettify.js"></script>
-    <script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
-    <script src="../static/js/bootstrap-switch.js"></script>
-</body>
+  </div>
+  <footer>
+    <div class="container">
+      <p>&copy; by <a href="http://larentis.eu" target="_blank">Mattia Larentis</a> (<a href="https://twitter.com/SpiritualGuru">@SpiritualGuru</a>) and <a href="http://www.bdmdesign.org/" target="_blank">Peter Stein</a></p>
+    </div>
+  </footer>
+  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
+  <script src="http://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js"></script>
+  <script src="http://cdnjs.cloudflare.com/ajax/libs/prettify/r298/run_prettify.min.js"></script>
+  <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
+  <script src="../build/js/bootstrap-switch.js"></script>
+  <script src="index.js"></script>
+  </body>
 </html>

+ 103 - 0
examples/index.js

@@ -0,0 +1,103 @@
+$(function() {
+  $('#mySwitch').on('switch-change', function (e, data) {
+    var $el = $(data.el),
+        value = data.value;
+
+    console.log(e, $el, value);
+  });
+
+  // DIMENSION
+  $('#btn-size-regular-switch').on('click', function () {
+    $('#dimension-switch').bootstrapSwitch('setSizeClass', '');
+  });
+  $('#btn-size-mini-switch').on('click', function () {
+    $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-mini');
+  });
+  $('#btn-size-small-switch').on('click', function () {
+    $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-small');
+  });
+  $('#btn-size-large-switch').on('click', function () {
+    $('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-large');
+  });
+
+  // STATE
+  $('#toggle-state-switch-button').on('click', function () {
+    $('#toggle-state-switch').bootstrapSwitch('toggleState');
+  });
+  $('#toggle-state-switch-button-on').on('click', function () {
+    $('#toggle-state-switch').bootstrapSwitch('setState', true);
+  });
+  $('#toggle-state-switch-button-off').on('click', function () {
+    $('#toggle-state-switch').bootstrapSwitch('setState', false);
+  });
+  $('#toggle-state-switch-button-status').on('click', function () {
+    alert($('#toggle-state-switch').bootstrapSwitch('status'));
+  });
+
+  // DESTROY
+  $('#btn-destroy-switch').on('click', function () {
+    $('#destroy-switch').bootstrapSwitch('destroy');
+    $(this).remove();
+  });
+  // CREATE
+  $('#btn-create').on('click', function () {
+    $('#create-switch').wrap('<div class="make-switch" />').parent().bootstrapSwitch();
+    $(this).remove()
+  });
+
+  // ACTIVATION
+  $('#btn-is-active-switch').on('click', function () {
+    alert($('#disable-switch').bootstrapSwitch('isActive'));
+  });
+  $('#btn-toggle-activation-switch').on('click', function () {
+    $('#disable-switch').bootstrapSwitch('toggleActivation');
+  });
+  $('#btn-disable-switch').on('click', function () {
+    $('#disable-switch').bootstrapSwitch('setActive', false);
+  });
+  $('#btn-activate-switch').on('click', function () {
+    $('#disable-switch').bootstrapSwitch('setActive', true);
+  });
+
+  // LABEL
+  $('#btn-label-on-switch').on('click', function() {
+    $('#label-switch').bootstrapSwitch('setOnLabel', 'I');
+  });
+  $('#btn-label-off-switch').on('click', function() {
+    $('#label-switch').bootstrapSwitch('setOffLabel', 'O');
+  });
+
+  $('#label-toggle-switch').on('click', function(e, data) {
+    $('.label-toggle-switch').bootstrapSwitch('toggleState');
+  });
+  $('.label-toggle-switch').on('switch-change', function(e, data) {
+    alert(data.value);
+  });
+  $('#label2-toggle-switch').on('switch-change', function(e, data) {
+    alert(data.value);
+  });
+
+  // COLOR
+  $('#btn-color-on-switch').on('click', function() {
+    $('#change-color-switch').bootstrapSwitch('setOnClass', 'success');
+  });
+  $('#btn-color-off-switch').on('click', function() {
+    $('#change-color-switch').bootstrapSwitch('setOffClass', 'danger');
+  });
+
+  // ANIMATION
+  $('#btn-animate-switch').on('click', function() {
+    $('#animated-switch').bootstrapSwitch('setAnimated', true);
+  });
+  $('#btn-dont-animate-switch').on('click', function() {
+    $('#animated-switch').bootstrapSwitch('setAnimated', false);
+  });
+
+  // RADIO
+  $('.radio1').on('switch-change', function () {
+    $('.radio1').bootstrapSwitch('toggleRadioState');
+  });
+  $('.radio2').on('switch-change', function () {
+    $('.radio2').bootstrapSwitch('toggleRadioStateAllowUncheck', true);
+  });
+});

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
examples/index.min.js


+ 137 - 101
static/js/bootstrap-switch.js → src/js/bootstrap-switch.js

@@ -1,5 +1,5 @@
 /*! ============================================================
- * bootstrapSwitch v1.8.1 by Larentis Mattia @SpiritualGuru
+ * bootstrap-switch v1.9.0 by Larentis Mattia @SpiritualGuru
  * http://www.larentis.eu/
  *
  * Enhanced for radiobuttons by Stein, Peter @BdMdesigN
@@ -15,68 +15,76 @@
 !function ($) {
   "use strict";
 
-  $.fn['bootstrapSwitch'] = function (method) {
+  $.fn.bootstrapSwitch = function (method) {
     var inputSelector = 'input[type!="hidden"]';
     var methods = {
+
       init: function () {
         return this.each(function () {
-            var $element = $(this)
-              , $div
-              , $switchLeft
-              , $switchRight
-              , $label
-              , $form = $element.closest('form')
-              , myClasses = ""
-              , classes = $element.attr('class')
-              , color
-              , moving
-              , onLabel = "ON"
-              , offLabel = "OFF"
-              , icon = false
-              , textLabel = false;
+            var $element = $(this),
+                $div,
+                $switchLeft,
+                $switchRight,
+                $label,
+                $form = $element.closest('form'),
+                myClasses = "",
+                classes = $element.attr('class'),
+                color,
+                moving,
+                onLabel = "ON",
+                offLabel = "OFF",
+                icon = false,
+                textLabel = false;
 
             $.each(['switch-mini', 'switch-small', 'switch-large'], function (i, el) {
-              if (classes.indexOf(el) >= 0)
+              if (classes.indexOf(el) >= 0) {
                 myClasses = el;
+              }
             });
 
             $element.addClass('has-switch');
 
-            if ($element.data('on') !== undefined)
+            if ($element.data('on') !== undefined) {
               color = "switch-" + $element.data('on');
+            }
 
-            if ($element.data('on-label') !== undefined)
+            if ($element.data('on-label') !== undefined) {
               onLabel = $element.data('on-label');
+            }
 
-            if ($element.data('off-label') !== undefined)
+            if ($element.data('off-label') !== undefined) {
               offLabel = $element.data('off-label');
+            }
 
-            if ($element.data('label-icon') !== undefined)
+            if ($element.data('label-icon') !== undefined) {
               icon = $element.data('label-icon');
+            }
 
-            if ($element.data('text-label') !== undefined)
+            if ($element.data('text-label') !== undefined) {
               textLabel = $element.data('text-label');
+            }
 
             $switchLeft = $('<span>')
-              .addClass("switch-left")
-              .addClass(myClasses)
-              .addClass(color)
-              .html(onLabel);
+            .addClass("switch-left")
+            .addClass(myClasses)
+            .addClass(color)
+            .html('' + onLabel + '');
 
             color = '';
-            if ($element.data('off') !== undefined)
+            if ($element.data('off') !== undefined) {
               color = "switch-" + $element.data('off');
+            }
 
             $switchRight = $('<span>')
-              .addClass("switch-right")
-              .addClass(myClasses)
-              .addClass(color)
-              .html(offLabel);
+            .addClass("switch-right")
+            .addClass(myClasses)
+            .addClass(color)
+            .html('' + offLabel + '');
 
             $label = $('<label>')
-              .html("&nbsp;")
-              .addClass(myClasses)
-              .attr('for', $element.find(inputSelector).attr('id'));
+            .html("&nbsp;")
+            .addClass(myClasses)
+            .attr('for', $element.find(inputSelector).attr('id'));
 
             if (icon) {
               $label.html('<i class="icon ' + icon + '"></i>');
@@ -88,20 +96,20 @@
 
             $div = $element.find(inputSelector).wrap($('<div>')).parent().data('animated', false);
 
-            if ($element.data('animated') !== false)
+            if ($element.data('animated') !== false) {
               $div.addClass('switch-animate').data('animated', true);
+            }
 
             $div
-              .append($switchLeft)
-              .append($label)
-              .append($switchRight);
+            .append($switchLeft)
+            .append($label)
+            .append($switchRight);
 
-            $element.find('>div').addClass(
-              $element.find(inputSelector).is(':checked') ? 'switch-on' : 'switch-off'
-            );
+            $element.find('> div').addClass($element.find(inputSelector).is(':checked') ? 'switch-on' : 'switch-off');
 
-            if ($element.find(inputSelector).is(':disabled'))
+            if ($element.find(inputSelector).is(':disabled')) {
               $(this).addClass('deactivate');
+            }
 
             var changeStatus = function ($this) {
               if ($element.parent('label').is('.label-change-switch')) {
@@ -119,37 +127,44 @@
               }
             });
 
-            $switchLeft.on('click', function (e) {
+            $switchLeft.on('click', function () {
               changeStatus($(this));
             });
 
-            $switchRight.on('click', function (e) {
+            $switchRight.on('click', function () {
               changeStatus($(this));
             });
 
             $element.find(inputSelector).on('change', function (e, skipOnChange) {
-              var $this = $(this)
-                , $element = $this.parent()
-                , thisState = $this.is(':checked')
-                , state = $element.is('.switch-off');
+              var $this = $(this),
+                  $element = $this.parent(),
+                  thisState = $this.is(':checked'),
+                  state = $element.is('.switch-off');
 
               e.preventDefault();
 
               $element.css('left', '');
 
               if (state === thisState) {
-
-                if (thisState)
+                if (thisState) {
                   $element.removeClass('switch-off').addClass('switch-on');
-                else $element.removeClass('switch-on').addClass('switch-off');
+                }
+                else {
+                  $element.removeClass('switch-on').addClass('switch-off');
+                }
 
-                if ($element.data('animated') !== false)
+                if ($element.data('animated') !== false) {
                   $element.addClass("switch-animate");
+                }
 
-                if (typeof skipOnChange === 'boolean' && skipOnChange)
+                if (typeof skipOnChange === 'boolean' && skipOnChange) {
                   return;
+                }
 
-                $element.parent().trigger('switch-change', {'el': $this, 'value': thisState})
+                $element.parent().trigger('switch-change', {
+                  el: $this,
+                  value: thisState
+                });
               }
             });
 
@@ -168,43 +183,47 @@
                 $this.unbind('click');
               } else {
                 $this.on('mousemove touchmove', function (e) {
-                  var $element = $(this).closest('.make-switch')
-                    , relativeX = (e.pageX || e.originalEvent.targetTouches[0].pageX) - $element.offset().left
-                    , percent = (relativeX / $element.width()) * 100
-                    , left = 25
-                    , right = 75;
+                  var $element = $(this).closest('.make-switch'),
+                      relativeX = (e.pageX || e.originalEvent.targetTouches[0].pageX) - $element.offset().left,
+                      percent = (relativeX / $element.width()) * 100,
+                      left = 25,
+                      right = 75;
 
                   moving = true;
 
-                  if (percent < left)
+                  if (percent < left) {
                     percent = left;
-                  else if (percent > right)
+                  }
+                  else if (percent > right) {
                     percent = right;
+                  }
 
-                  $element.find('>div').css('left', (percent - right) + "%")
+                  $element.find('>div').css('left', (percent - right) + "%");
                 });
 
                 $this.on('click touchend', function (e) {
-                  var $this = $(this)
-                    , $myInputBox = $this.siblings('input');
+                  var $this = $(this),
+                      $myInputBox = $this.siblings('input');
 
                   e.stopImmediatePropagation();
                   e.preventDefault();
 
                   $this.unbind('mouseleave');
 
-                  if (moving)
-                    $myInputBox.prop('checked', !(parseInt($this.parent().css('left')) < -25));
-                  else
+                  if (moving) {
+                    $myInputBox.prop('checked', !(parseInt($this.parent().css('left'), 10) < -25));
+                  }
+                  else {
                     $myInputBox.prop("checked", !$myInputBox.is(":checked"));
+                  }
 
                   moving = false;
                   $myInputBox.trigger('change');
                 });
 
                 $this.on('mouseleave', function (e) {
-                  var $this = $(this)
-                    , $myInputBox = $this.siblings('input');
+                  var $this = $(this),
+                      $myInputBox = $this.siblings('input');
 
                   e.preventDefault();
                   e.stopImmediatePropagation();
@@ -212,7 +231,7 @@
                   $this.unbind('mouseleave mousemove');
                   $this.trigger('mouseup');
 
-                  $myInputBox.prop('checked', !(parseInt($this.parent().css('left')) < -25)).trigger('change');
+                  $myInputBox.prop('checked', ! (parseInt($this.parent().css('left'), 10) < -25)).trigger('change');
                 });
 
                 $this.on('mouseup', function (e) {
@@ -239,15 +258,18 @@
           }
         );
       },
+
       toggleActivation: function () {
         var $this = $(this);
 
         $this.toggleClass('deactivate');
         $this.find(inputSelector).prop('disabled', $this.is('.deactivate'));
       },
+
       isActive: function () {
         return !$(this).hasClass('deactivate');
       },
+
       setActive: function (active) {
         var $this = $(this);
 
@@ -260,74 +282,84 @@
           $this.find(inputSelector).attr('disabled', 'disabled');
         }
       },
+
       toggleState: function (skipOnChange) {
         var $input = $(this).find(':checkbox');
         $input.prop('checked', !$input.is(':checked')).trigger('change', skipOnChange);
       },
+
       toggleRadioState: function (skipOnChange) {
         var $radioinput = $(this).find(':radio');
         $radioinput.not(':checked').prop('checked', !$radioinput.is(':checked')).trigger('change', skipOnChange);
       },
+
       toggleRadioStateAllowUncheck: function (uncheck, skipOnChange) {
         var $radioinput = $(this).find(':radio');
+
         if (uncheck) {
           $radioinput.not(':checked').trigger('change', skipOnChange);
         }
         else {
-          $radioinput.not(':checked').prop('checked', !$radioinput.is(':checked')).trigger('change', skipOnChange);
+          $radioinput.not(':checked').prop('checked', ! $radioinput.is(':checked')).trigger('change', skipOnChange);
         }
       },
+
       setState: function (value, skipOnChange) {
         $(this).find(inputSelector).prop('checked', value).trigger('change', skipOnChange);
       },
+
       setOnLabel: function (value) {
         var $switchLeft = $(this).find(".switch-left");
+
         $switchLeft.html(value);
       },
+
       setOffLabel: function (value) {
         var $switchRight = $(this).find(".switch-right");
+
         $switchRight.html(value);
       },
+
       setOnClass: function (value) {
-        var $switchLeft = $(this).find(".switch-left");
-        var color = '';
-        if (value) {
-          // Delete the old color
+        var $switchLeft = $(this).find('.switch-left'),
+            color = '';
+
+        if (value !== undefined) {
           if ($(this).attr('data-on') !== undefined) {
             color = "switch-" + $(this).attr('data-on');
           }
           $switchLeft.removeClass(color);
-          // Add the new color
           color = "switch-" + value;
           $switchLeft.addClass(color);
         }
       },
+
       setOffClass: function (value) {
-        var $switchRight = $(this).find(".switch-right");
-        var color = '';
-        if (value) {
-          // Delete the old color
+        var $switchRight = $(this).find('.switch-right'),
+            color = '';
+
+        if (value !== undefined) {
           if ($(this).attr('data-off') !== undefined) {
             color = "switch-" + $(this).attr('data-off');
           }
           $switchRight.removeClass(color);
-          // Add the new color
           color = "switch-" + value;
           $switchRight.addClass(color);
         }
       },
+
       setAnimated: function (value) {
         var $element = $(this).find(inputSelector).parent();
-        if (value === undefined) value = false;
-        $element.data('animated', value);
-        $element.attr('data-animated', value);
 
-        if ($element.data('animated') !== false) {
-          $element.addClass("switch-animate");
-        } else {
-          $element.removeClass("switch-animate");
+        if (value === undefined) {
+          value = false;
         }
+
+        $element.data('animated', value);
+        $element.attr('data-animated', value);
+        $element[$element.data('animated') !== false ? 'addClass' : 'removeClass']("switch-animate");
       },
+
       setSizeClass: function (value) {
         var $element = $(this);
         var $switchLeft = $element.find(".switch-left");
@@ -345,28 +377,30 @@
           }
         });
       },
+
       setTextLabel: function(value) {
-        var $label = $(this).find("label");
+        var $label = $(this).find('label');
         $label.html('' + value || '&nbsp' + '');
       },
+
       setTextIcon: function(value) {
-        var $label = $(this).find("label");''
+        var $label = $(this).find('label');
         $label.html(value ? '<i class="icon ' + value + '"></i>' : '&nbsp;');
       },
+
       status: function () {
         return $(this).find(inputSelector).is(':checked');
       },
+
       destroy: function () {
-        var $element = $(this)
-          , $div = $element.find('div')
-          , $form = $element.closest('form')
-          , $inputbox;
+        var $element = $(this),
+            $div = $element.find('div'),
+            $form = $element.closest('form'),
+            $inputbox;
 
         $div.find(':not(input)').remove();
-
         $inputbox = $div.children();
         $inputbox.unwrap().unwrap();
-
         $inputbox.unbind('change');
 
         if ($form) {
@@ -378,17 +412,19 @@
       }
     };
 
-    if (methods[method])
+    if (methods[method]) {
       return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
-    else if (typeof method === 'object' || !method)
+    }
+    if (typeof method === 'object' || ! method) {
       return methods.init.apply(this, arguments);
-    else
-      $.error('Method ' + method + ' does not exist!');
+    }
+
+    $.error('Method ' + method + ' does not exist!');
   };
 }(jQuery);
 
 (function ($) {
   $(function () {
-    $('.make-switch')['bootstrapSwitch']();
+    $('.make-switch').bootstrapSwitch();
   });
 })(jQuery);

+ 3 - 3
static/less/bootstrap-switch.less → src/less/bootstrap2/bootstrap-switch.less

@@ -1,5 +1,5 @@
 /* ============================================================
- * bootstrapSwitch v1.8.1 by Larentis Mattia @SpiritualGuru
+ * bootstrap-switch v1.9.0 by Larentis Mattia @SpiritualGuru
  * http://www.larentis.eu/
  *
  * and Peter Stein (BdMdesigN)
@@ -12,8 +12,8 @@
  * http://www.apache.org/licenses/LICENSE-2.0
  * ============================================================ */
 
-@import "deps/variables";
-@import "deps/mixins";
+@import "variables";
+@import "mixins";
 
 .has-switch {
   display: inline-block;

+ 702 - 0
src/less/bootstrap2/mixins.less

@@ -0,0 +1,702 @@
+//
+// Mixins
+// --------------------------------------------------
+
+
+// UTILITY MIXINS
+// --------------------------------------------------
+
+// Clearfix
+// --------
+// For clearing floats like a boss h5bp.com/q
+.clearfix {
+  *zoom: 1;
+  &:before,
+  &:after {
+    display: table;
+    content: "";
+    // Fixes Opera/contenteditable bug:
+    // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
+    line-height: 0;
+  }
+  &:after {
+    clear: both;
+  }
+}
+
+// Webkit-style focus
+// ------------------
+.tab-focus() {
+  // Default
+  outline: thin dotted #333;
+  // Webkit
+  outline: 5px auto -webkit-focus-ring-color;
+  outline-offset: -2px;
+}
+
+// Center-align a block level element
+// ----------------------------------
+.center-block() {
+  display: block;
+  margin-left: auto;
+  margin-right: auto;
+}
+
+// IE7 inline-block
+// ----------------
+.ie7-inline-block() {
+  *display: inline; /* IE7 inline-block hack */
+  *zoom: 1;
+}
+
+// IE7 likes to collapse whitespace on either side of the inline-block elements.
+// Ems because we're attempting to match the width of a space character. Left
+// version is for form buttons, which typically come after other elements, and
+// right version is for icons, which come before. Applying both is ok, but it will
+// mean that space between those elements will be .6em (~2 space characters) in IE7,
+// instead of the 1 space in other browsers.
+.ie7-restore-left-whitespace() {
+  *margin-left: .3em;
+
+  &:first-child {
+    *margin-left: 0;
+  }
+}
+
+.ie7-restore-right-whitespace() {
+  *margin-right: .3em;
+}
+
+// Sizing shortcuts
+// -------------------------
+.size(@height, @width) {
+  width: @width;
+  height: @height;
+}
+.square(@size) {
+  .size(@size, @size);
+}
+
+// Placeholder text
+// -------------------------
+.placeholder(@color: @placeholderText) {
+  &:-moz-placeholder {
+    color: @color;
+  }
+  &:-ms-input-placeholder {
+    color: @color;
+  }
+  &::-webkit-input-placeholder {
+    color: @color;
+  }
+}
+
+// Text overflow
+// -------------------------
+// Requires inline-block or block for proper styling
+.text-overflow() {
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+// CSS image replacement
+// -------------------------
+// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
+.hide-text {
+  font: 0/0 a;
+  color: transparent;
+  text-shadow: none;
+  background-color: transparent;
+  border: 0;
+}
+
+
+// FONTS
+// --------------------------------------------------
+
+#font {
+  #family {
+    .serif() {
+      font-family: @serifFontFamily;
+    }
+    .sans-serif() {
+      font-family: @sansFontFamily;
+    }
+    .monospace() {
+      font-family: @monoFontFamily;
+    }
+  }
+  .shorthand(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
+    font-size: @size;
+    font-weight: @weight;
+    line-height: @lineHeight;
+  }
+  .serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
+    #font > #family > .serif;
+    #font > .shorthand(@size, @weight, @lineHeight);
+  }
+  .sans-serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
+    #font > #family > .sans-serif;
+    #font > .shorthand(@size, @weight, @lineHeight);
+  }
+  .monospace(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
+    #font > #family > .monospace;
+    #font > .shorthand(@size, @weight, @lineHeight);
+  }
+}
+
+
+// FORMS
+// --------------------------------------------------
+
+// Block level inputs
+.input-block-level {
+  display: block;
+  width: 100%;
+  min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
+  .box-sizing(border-box); // Makes inputs behave like true block-level elements
+}
+
+
+
+// Mixin for form field states
+.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
+  // Set the text color
+  .control-label,
+  .help-block,
+  .help-inline {
+    color: @textColor;
+  }
+  // Style inputs accordingly
+  .checkbox,
+  .radio,
+  input,
+  select,
+  textarea {
+    color: @textColor;
+  }
+  input,
+  select,
+  textarea {
+    border-color: @borderColor;
+    .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
+    &:focus {
+      border-color: darken(@borderColor, 10%);
+      @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%);
+      .box-shadow(@shadow);
+    }
+  }
+  // Give a small background color for input-prepend/-append
+  .input-prepend .add-on,
+  .input-append .add-on {
+    color: @textColor;
+    background-color: @backgroundColor;
+    border-color: @textColor;
+  }
+}
+
+
+
+// CSS3 PROPERTIES
+// --------------------------------------------------
+
+// Border Radius
+.border-radius(@radius) {
+  -webkit-border-radius: @radius;
+     -moz-border-radius: @radius;
+          border-radius: @radius;
+}
+
+// Single Corner Border Radius
+.border-top-left-radius(@radius) {
+  -webkit-border-top-left-radius: @radius;
+      -moz-border-radius-topleft: @radius;
+          border-top-left-radius: @radius;
+}
+.border-top-right-radius(@radius) {
+  -webkit-border-top-right-radius: @radius;
+      -moz-border-radius-topright: @radius;
+          border-top-right-radius: @radius;
+}
+.border-bottom-right-radius(@radius) {
+  -webkit-border-bottom-right-radius: @radius;
+      -moz-border-radius-bottomright: @radius;
+          border-bottom-right-radius: @radius;
+}
+.border-bottom-left-radius(@radius) {
+  -webkit-border-bottom-left-radius: @radius;
+      -moz-border-radius-bottomleft: @radius;
+          border-bottom-left-radius: @radius;
+}
+
+// Single Side Border Radius
+.border-top-radius(@radius) {
+  .border-top-right-radius(@radius);
+  .border-top-left-radius(@radius);
+}
+.border-right-radius(@radius) {
+  .border-top-right-radius(@radius);
+  .border-bottom-right-radius(@radius);
+}
+.border-bottom-radius(@radius) {
+  .border-bottom-right-radius(@radius);
+  .border-bottom-left-radius(@radius);
+}
+.border-left-radius(@radius) {
+  .border-top-left-radius(@radius);
+  .border-bottom-left-radius(@radius);
+}
+
+// Drop shadows
+.box-shadow(@shadow) {
+  -webkit-box-shadow: @shadow;
+     -moz-box-shadow: @shadow;
+          box-shadow: @shadow;
+}
+
+// Transitions
+.transition(@transition) {
+  -webkit-transition: @transition;
+     -moz-transition: @transition;
+       -o-transition: @transition;
+          transition: @transition;
+}
+.transition-delay(@transition-delay) {
+  -webkit-transition-delay: @transition-delay;
+     -moz-transition-delay: @transition-delay;
+       -o-transition-delay: @transition-delay;
+          transition-delay: @transition-delay;
+}
+.transition-duration(@transition-duration) {
+  -webkit-transition-duration: @transition-duration;
+     -moz-transition-duration: @transition-duration;
+       -o-transition-duration: @transition-duration;
+          transition-duration: @transition-duration;
+}
+
+// Transformations
+.rotate(@degrees) {
+  -webkit-transform: rotate(@degrees);
+     -moz-transform: rotate(@degrees);
+      -ms-transform: rotate(@degrees);
+       -o-transform: rotate(@degrees);
+          transform: rotate(@degrees);
+}
+.scale(@ratio) {
+  -webkit-transform: scale(@ratio);
+     -moz-transform: scale(@ratio);
+      -ms-transform: scale(@ratio);
+       -o-transform: scale(@ratio);
+          transform: scale(@ratio);
+}
+.translate(@x, @y) {
+  -webkit-transform: translate(@x, @y);
+     -moz-transform: translate(@x, @y);
+      -ms-transform: translate(@x, @y);
+       -o-transform: translate(@x, @y);
+          transform: translate(@x, @y);
+}
+.skew(@x, @y) {
+  -webkit-transform: skew(@x, @y);
+     -moz-transform: skew(@x, @y);
+      -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885
+       -o-transform: skew(@x, @y);
+          transform: skew(@x, @y);
+  -webkit-backface-visibility: hidden; // See https://github.com/twbs/bootstrap/issues/5319
+}
+.translate3d(@x, @y, @z) {
+  -webkit-transform: translate3d(@x, @y, @z);
+     -moz-transform: translate3d(@x, @y, @z);
+       -o-transform: translate3d(@x, @y, @z);
+          transform: translate3d(@x, @y, @z);
+}
+
+// Backface visibility
+// Prevent browsers from flickering when using CSS 3D transforms.
+// Default value is `visible`, but can be changed to `hidden
+// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples
+.backface-visibility(@visibility){
+  -webkit-backface-visibility: @visibility;
+     -moz-backface-visibility: @visibility;
+          backface-visibility: @visibility;
+}
+
+// Background clipping
+// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
+.background-clip(@clip) {
+  -webkit-background-clip: @clip;
+     -moz-background-clip: @clip;
+          background-clip: @clip;
+}
+
+// Background sizing
+.background-size(@size) {
+  -webkit-background-size: @size;
+     -moz-background-size: @size;
+       -o-background-size: @size;
+          background-size: @size;
+}
+
+
+// Box sizing
+.box-sizing(@boxmodel) {
+  -webkit-box-sizing: @boxmodel;
+     -moz-box-sizing: @boxmodel;
+          box-sizing: @boxmodel;
+}
+
+// User select
+// For selecting text on the page
+.user-select(@select) {
+  -webkit-user-select: @select;
+     -moz-user-select: @select;
+      -ms-user-select: @select;
+       -o-user-select: @select;
+          user-select: @select;
+}
+
+// Resize anything
+.resizable(@direction) {
+  resize: @direction; // Options: horizontal, vertical, both
+  overflow: auto; // Safari fix
+}
+
+// CSS3 Content Columns
+.content-columns(@columnCount, @columnGap: @gridGutterWidth) {
+  -webkit-column-count: @columnCount;
+     -moz-column-count: @columnCount;
+          column-count: @columnCount;
+  -webkit-column-gap: @columnGap;
+     -moz-column-gap: @columnGap;
+          column-gap: @columnGap;
+}
+
+// Optional hyphenation
+.hyphens(@mode: auto) {
+  word-wrap: break-word;
+  -webkit-hyphens: @mode;
+     -moz-hyphens: @mode;
+      -ms-hyphens: @mode;
+       -o-hyphens: @mode;
+          hyphens: @mode;
+}
+
+// Opacity
+.opacity(@opacity) {
+  opacity: @opacity / 100;
+  filter: ~"alpha(opacity=@{opacity})";
+}
+
+
+
+// BACKGROUNDS
+// --------------------------------------------------
+
+// Add an alphatransparency value to any background or border color (via Elyse Holladay)
+#translucent {
+  .background(@color: @white, @alpha: 1) {
+    background-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
+  }
+  .border(@color: @white, @alpha: 1) {
+    border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
+    .background-clip(padding-box);
+  }
+}
+
+// Gradient Bar Colors for buttons and alerts
+.gradientBar(@primaryColor, @secondaryColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
+  color: @textColor;
+  text-shadow: @textShadow;
+  #gradient > .vertical(@primaryColor, @secondaryColor);
+  border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
+  border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
+}
+
+// Gradients
+#gradient {
+  .horizontal(@startColor: #555, @endColor: #333) {
+    background-color: @endColor;
+    background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
+    background-image: -webkit-gradient(linear, 0 0, 100% 0, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
+    background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
+    background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
+    background-image: linear-gradient(to right, @startColor, @endColor); // Standard, IE10
+    background-repeat: repeat-x;
+    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@startColor),argb(@endColor))); // IE9 and down
+  }
+  .vertical(@startColor: #555, @endColor: #333) {
+    background-color: mix(@startColor, @endColor, 60%);
+    background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
+    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
+    background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
+    background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
+    background-image: linear-gradient(to bottom, @startColor, @endColor); // Standard, IE10
+    background-repeat: repeat-x;
+    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down
+  }
+  .directional(@startColor: #555, @endColor: #333, @deg: 45deg) {
+    background-color: @endColor;
+    background-repeat: repeat-x;
+    background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+
+    background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+
+    background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
+    background-image: linear-gradient(@deg, @startColor, @endColor); // Standard, IE10
+  }
+  .horizontal-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
+    background-color: mix(@midColor, @endColor, 80%);
+    background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
+    background-image: -webkit-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
+    background-image: -moz-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
+    background-image: -o-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
+    background-image: linear-gradient(to right, @startColor, @midColor @colorStop, @endColor);
+    background-repeat: no-repeat;
+    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback
+  }
+
+  .vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
+    background-color: mix(@midColor, @endColor, 80%);
+    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
+    background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
+    background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
+    background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
+    background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
+    background-repeat: no-repeat;
+    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback
+  }
+  .radial(@innerColor: #555, @outerColor: #333) {
+    background-color: @outerColor;
+    background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(@innerColor), to(@outerColor));
+    background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
+    background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
+    background-image: -o-radial-gradient(circle, @innerColor, @outerColor);
+    background-repeat: no-repeat;
+  }
+  .striped(@color: #555, @angle: 45deg) {
+    background-color: @color;
+    background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
+    background-image: -webkit-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
+    background-image: -moz-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
+    background-image: -o-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
+    background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
+  }
+}
+// Reset filters for IE
+.reset-filter() {
+  filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
+}
+
+
+
+// COMPONENT MIXINS
+// --------------------------------------------------
+
+// Horizontal dividers
+// -------------------------
+// Dividers (basically an hr) within dropdowns and nav lists
+.nav-divider(@top: #e5e5e5, @bottom: @white) {
+  // IE7 needs a set width since we gave a height. Restricting just
+  // to IE7 to keep the 1px left/right space in other browsers.
+  // It is unclear where IE is getting the extra space that we need
+  // to negative-margin away, but so it goes.
+  *width: 100%;
+  height: 1px;
+  margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
+  *margin: -5px 0 5px;
+  overflow: hidden;
+  background-color: @top;
+  border-bottom: 1px solid @bottom;
+}
+
+// Button backgrounds
+// ------------------
+.buttonBackground(@startColor, @endColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
+  // gradientBar will set the background to a pleasing blend of these, to support IE<=9
+  .gradientBar(@startColor, @endColor, @textColor, @textShadow);
+  *background-color: @endColor; /* Darken IE7 buttons by default so they stand out more given they won't have borders */
+  .reset-filter();
+
+  // in these cases the gradient won't cover the background, so we override
+  &:hover, &:focus, &:active, &.active, &.disabled, &[disabled] {
+    color: @textColor;
+    background-color: @endColor;
+    *background-color: darken(@endColor, 5%);
+  }
+
+  // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
+  &:active,
+  &.active {
+    background-color: darken(@endColor, 10%) e("\9");
+  }
+}
+
+// Navbar vertical align
+// -------------------------
+// Vertically center elements in the navbar.
+// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
+.navbarVerticalAlign(@elementHeight) {
+  margin-top: (@navbarHeight - @elementHeight) / 2;
+}
+
+
+
+// Grid System
+// -----------
+
+// Centered container element
+.container-fixed() {
+  margin-right: auto;
+  margin-left: auto;
+  .clearfix();
+}
+
+// Table columns
+.tableColumns(@columnSpan: 1) {
+  float: none; // undo default grid column styles
+  width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 16; // 16 is total padding on left and right of table cells
+  margin-left: 0; // undo default grid column styles
+}
+
+// Make a Grid
+// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
+.makeRow() {
+  margin-left: @gridGutterWidth * -1;
+  .clearfix();
+}
+.makeColumn(@columns: 1, @offset: 0) {
+  float: left;
+  margin-left: (@gridColumnWidth * @offset) + (@gridGutterWidth * (@offset - 1)) + (@gridGutterWidth * 2);
+  width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
+}
+
+// The Grid
+#grid {
+
+  .core (@gridColumnWidth, @gridGutterWidth) {
+
+    .spanX (@index) when (@index > 0) {
+      .span@{index} { .span(@index); }
+      .spanX(@index - 1);
+    }
+    .spanX (0) {}
+
+    .offsetX (@index) when (@index > 0) {
+      .offset@{index} { .offset(@index); }
+      .offsetX(@index - 1);
+    }
+    .offsetX (0) {}
+
+    .offset (@columns) {
+      margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns + 1));
+    }
+
+    .span (@columns) {
+      width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
+    }
+
+    .row {
+      margin-left: @gridGutterWidth * -1;
+      .clearfix();
+    }
+
+    [class*="span"] {
+      float: left;
+      min-height: 1px; // prevent collapsing columns
+      margin-left: @gridGutterWidth;
+    }
+
+    // Set the container width, and override it for fixed navbars in media queries
+    .container,
+    .navbar-static-top .container,
+    .navbar-fixed-top .container,
+    .navbar-fixed-bottom .container { .span(@gridColumns); }
+
+    // generate .spanX and .offsetX
+    .spanX (@gridColumns);
+    .offsetX (@gridColumns);
+
+  }
+
+  .fluid (@fluidGridColumnWidth, @fluidGridGutterWidth) {
+
+    .spanX (@index) when (@index > 0) {
+      .span@{index} { .span(@index); }
+      .spanX(@index - 1);
+    }
+    .spanX (0) {}
+
+    .offsetX (@index) when (@index > 0) {
+      .offset@{index} { .offset(@index); }
+      .offset@{index}:first-child { .offsetFirstChild(@index); }
+      .offsetX(@index - 1);
+    }
+    .offsetX (0) {}
+
+    .offset (@columns) {
+      margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) + (@fluidGridGutterWidth*2);
+      *margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%) + (@fluidGridGutterWidth*2) - (.5 / @gridRowWidth * 100 * 1%);
+    }
+
+    .offsetFirstChild (@columns) {
+      margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) + (@fluidGridGutterWidth);
+      *margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%) + @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
+    }
+
+    .span (@columns) {
+      width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1));
+      *width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%);
+    }
+
+    .row-fluid {
+      width: 100%;
+      .clearfix();
+      [class*="span"] {
+        .input-block-level();
+        float: left;
+        margin-left: @fluidGridGutterWidth;
+        *margin-left: @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
+      }
+      [class*="span"]:first-child {
+        margin-left: 0;
+      }
+
+      // Space grid-sized controls properly if multiple per line
+      .controls-row [class*="span"] + [class*="span"] {
+        margin-left: @fluidGridGutterWidth;
+      }
+
+      // generate .spanX and .offsetX
+      .spanX (@gridColumns);
+      .offsetX (@gridColumns);
+    }
+
+  }
+
+  .input(@gridColumnWidth, @gridGutterWidth) {
+
+    .spanX (@index) when (@index > 0) {
+      input.span@{index}, textarea.span@{index}, .uneditable-input.span@{index} { .span(@index); }
+      .spanX(@index - 1);
+    }
+    .spanX (0) {}
+
+    .span(@columns) {
+      width: ((@gridColumnWidth) * @columns) + (@gridGutterWidth * (@columns - 1)) - 14;
+    }
+
+    input,
+    textarea,
+    .uneditable-input {
+      margin-left: 0; // override margin-left from core grid system
+    }
+
+    // Space grid-sized controls properly if multiple per line
+    .controls-row [class*="span"] + [class*="span"] {
+      margin-left: @gridGutterWidth;
+    }
+
+    // generate .spanX
+    .spanX (@gridColumns);
+
+  }
+}

+ 301 - 0
src/less/bootstrap2/variables.less

@@ -0,0 +1,301 @@
+//
+// Variables
+// --------------------------------------------------
+
+
+// Global values
+// --------------------------------------------------
+
+
+// Grays
+// -------------------------
+@black:                 #000;
+@grayDarker:            #222;
+@grayDark:              #333;
+@gray:                  #555;
+@grayLight:             #999;
+@grayLighter:           #eee;
+@white:                 #fff;
+
+
+// Accent colors
+// -------------------------
+@blue:                  #049cdb;
+@blueDark:              #0064cd;
+@green:                 #46a546;
+@red:                   #9d261d;
+@yellow:                #ffc40d;
+@orange:                #f89406;
+@pink:                  #c3325f;
+@purple:                #7a43b6;
+
+
+// Scaffolding
+// -------------------------
+@bodyBackground:        @white;
+@textColor:             @grayDark;
+
+
+// Links
+// -------------------------
+@linkColor:             #08c;
+@linkColorHover:        darken(@linkColor, 15%);
+
+
+// Typography
+// -------------------------
+@sansFontFamily:        "Helvetica Neue", Helvetica, Arial, sans-serif;
+@serifFontFamily:       Georgia, "Times New Roman", Times, serif;
+@monoFontFamily:        Monaco, Menlo, Consolas, "Courier New", monospace;
+
+@baseFontSize:          14px;
+@baseFontFamily:        @sansFontFamily;
+@baseLineHeight:        20px;
+@altFontFamily:         @serifFontFamily;
+
+@headingsFontFamily:    inherit; // empty to use BS default, @baseFontFamily
+@headingsFontWeight:    bold;    // instead of browser default, bold
+@headingsColor:         inherit; // empty to use BS default, @textColor
+
+
+// Component sizing
+// -------------------------
+// Based on 14px font-size and 20px line-height
+
+@fontSizeLarge:         @baseFontSize * 1.25; // ~18px
+@fontSizeSmall:         @baseFontSize * 0.85; // ~12px
+@fontSizeMini:          @baseFontSize * 0.75; // ~11px
+
+@paddingLarge:          11px 19px; // 44px
+@paddingSmall:          2px 10px;  // 26px
+@paddingMini:           0 6px;   // 22px
+
+@baseBorderRadius:      4px;
+@borderRadiusLarge:     6px;
+@borderRadiusSmall:     3px;
+
+
+// Tables
+// -------------------------
+@tableBackground:                   transparent; // overall background-color
+@tableBackgroundAccent:             #f9f9f9; // for striping
+@tableBackgroundHover:              #f5f5f5; // for hover
+@tableBorder:                       #ddd; // table and cell border
+
+// Buttons
+// -------------------------
+@btnBackground:                     @white;
+@btnBackgroundHighlight:            darken(@white, 10%);
+@btnBorder:                         #ccc;
+
+@btnPrimaryBackground:              @linkColor;
+@btnPrimaryBackgroundHighlight:     spin(@btnPrimaryBackground, 20%);
+
+@btnInfoBackground:                 #5bc0de;
+@btnInfoBackgroundHighlight:        #2f96b4;
+
+@btnSuccessBackground:              #62c462;
+@btnSuccessBackgroundHighlight:     #51a351;
+
+@btnWarningBackground:              lighten(@orange, 15%);
+@btnWarningBackgroundHighlight:     @orange;
+
+@btnDangerBackground:               #ee5f5b;
+@btnDangerBackgroundHighlight:      #bd362f;
+
+@btnInverseBackground:              #444;
+@btnInverseBackgroundHighlight:     @grayDarker;
+
+
+// Forms
+// -------------------------
+@inputBackground:               @white;
+@inputBorder:                   #ccc;
+@inputBorderRadius:             @baseBorderRadius;
+@inputDisabledBackground:       @grayLighter;
+@formActionsBackground:         #f5f5f5;
+@inputHeight:                   @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
+
+
+// Dropdowns
+// -------------------------
+@dropdownBackground:            @white;
+@dropdownBorder:                rgba(0,0,0,.2);
+@dropdownDividerTop:            #e5e5e5;
+@dropdownDividerBottom:         @white;
+
+@dropdownLinkColor:             @grayDark;
+@dropdownLinkColorHover:        @white;
+@dropdownLinkColorActive:       @white;
+
+@dropdownLinkBackgroundActive:  @linkColor;
+@dropdownLinkBackgroundHover:   @dropdownLinkBackgroundActive;
+
+
+
+// COMPONENT VARIABLES
+// --------------------------------------------------
+
+
+// Z-index master list
+// -------------------------
+// Used for a bird's eye view of components dependent on the z-axis
+// Try to avoid customizing these :)
+@zindexDropdown:          1000;
+@zindexPopover:           1010;
+@zindexTooltip:           1030;
+@zindexFixedNavbar:       1030;
+@zindexModalBackdrop:     1040;
+@zindexModal:             1050;
+
+
+// Sprite icons path
+// -------------------------
+@iconSpritePath:          "../img/glyphicons-halflings.png";
+@iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";
+
+
+// Input placeholder text color
+// -------------------------
+@placeholderText:         @grayLight;
+
+
+// Hr border color
+// -------------------------
+@hrBorder:                @grayLighter;
+
+
+// Horizontal forms & lists
+// -------------------------
+@horizontalComponentOffset:       180px;
+
+
+// Wells
+// -------------------------
+@wellBackground:                  #f5f5f5;
+
+
+// Navbar
+// -------------------------
+@navbarCollapseWidth:             979px;
+@navbarCollapseDesktopWidth:      @navbarCollapseWidth + 1;
+
+@navbarHeight:                    40px;
+@navbarBackgroundHighlight:       #ffffff;
+@navbarBackground:                darken(@navbarBackgroundHighlight, 5%);
+@navbarBorder:                    darken(@navbarBackground, 12%);
+
+@navbarText:                      #777;
+@navbarLinkColor:                 #777;
+@navbarLinkColorHover:            @grayDark;
+@navbarLinkColorActive:           @gray;
+@navbarLinkBackgroundHover:       transparent;
+@navbarLinkBackgroundActive:      darken(@navbarBackground, 5%);
+
+@navbarBrandColor:                @navbarLinkColor;
+
+// Inverted navbar
+@navbarInverseBackground:                #111111;
+@navbarInverseBackgroundHighlight:       #222222;
+@navbarInverseBorder:                    #252525;
+
+@navbarInverseText:                      @grayLight;
+@navbarInverseLinkColor:                 @grayLight;
+@navbarInverseLinkColorHover:            @white;
+@navbarInverseLinkColorActive:           @navbarInverseLinkColorHover;
+@navbarInverseLinkBackgroundHover:       transparent;
+@navbarInverseLinkBackgroundActive:      @navbarInverseBackground;
+
+@navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
+@navbarInverseSearchBackgroundFocus:     @white;
+@navbarInverseSearchBorder:              @navbarInverseBackground;
+@navbarInverseSearchPlaceholderColor:    #ccc;
+
+@navbarInverseBrandColor:                @navbarInverseLinkColor;
+
+
+// Pagination
+// -------------------------
+@paginationBackground:                #fff;
+@paginationBorder:                    #ddd;
+@paginationActiveBackground:          #f5f5f5;
+
+
+// Hero unit
+// -------------------------
+@heroUnitBackground:              @grayLighter;
+@heroUnitHeadingColor:            inherit;
+@heroUnitLeadColor:               inherit;
+
+
+// Form states and alerts
+// -------------------------
+@warningText:             #c09853;
+@warningBackground:       #fcf8e3;
+@warningBorder:           darken(spin(@warningBackground, -10), 3%);
+
+@errorText:               #b94a48;
+@errorBackground:         #f2dede;
+@errorBorder:             darken(spin(@errorBackground, -10), 3%);
+
+@successText:             #468847;
+@successBackground:       #dff0d8;
+@successBorder:           darken(spin(@successBackground, -10), 5%);
+
+@infoText:                #3a87ad;
+@infoBackground:          #d9edf7;
+@infoBorder:              darken(spin(@infoBackground, -10), 7%);
+
+
+// Tooltips and popovers
+// -------------------------
+@tooltipColor:            #fff;
+@tooltipBackground:       #000;
+@tooltipArrowWidth:       5px;
+@tooltipArrowColor:       @tooltipBackground;
+
+@popoverBackground:       #fff;
+@popoverArrowWidth:       10px;
+@popoverArrowColor:       #fff;
+@popoverTitleBackground:  darken(@popoverBackground, 3%);
+
+// Special enhancement for popovers
+@popoverArrowOuterWidth:  @popoverArrowWidth + 1;
+@popoverArrowOuterColor:  rgba(0,0,0,.25);
+
+
+
+// GRID
+// --------------------------------------------------
+
+
+// Default 940px grid
+// -------------------------
+@gridColumns:             12;
+@gridColumnWidth:         60px;
+@gridGutterWidth:         20px;
+@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
+
+// 1200px min
+@gridColumnWidth1200:     70px;
+@gridGutterWidth1200:     30px;
+@gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
+
+// 768px-979px
+@gridColumnWidth768:      42px;
+@gridGutterWidth768:      20px;
+@gridRowWidth768:         (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
+
+
+// Fluid grid
+// -------------------------
+@fluidGridColumnWidth:    percentage(@gridColumnWidth/@gridRowWidth);
+@fluidGridGutterWidth:    percentage(@gridGutterWidth/@gridRowWidth);
+
+// 1200px min
+@fluidGridColumnWidth1200:     percentage(@gridColumnWidth1200/@gridRowWidth1200);
+@fluidGridGutterWidth1200:     percentage(@gridGutterWidth1200/@gridRowWidth1200);
+
+// 768px-979px
+@fluidGridColumnWidth768:      percentage(@gridColumnWidth768/@gridRowWidth768);
+@fluidGridGutterWidth768:      percentage(@gridGutterWidth768/@gridRowWidth768);

+ 199 - 0
src/less/bootstrap3/bootstrap-switch.less

@@ -0,0 +1,199 @@
+/* ============================================================
+ * bootstrap-switch v1.9.0 by Larentis Mattia @SpiritualGuru
+ * http://www.larentis.eu/
+ *
+ * Enhanced for radiobuttons by Stein, Peter @BdMdesigN
+ * http://www.bdmdesign.org/
+ *
+ * Project site:
+ * http://www.larentis.eu/switch/
+ * ============================================================
+ * Licensed under the Apache License, Version 2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * ============================================================ */
+
+@import "variables";
+@import "mixins";
+
+.has-switch {
+  display: inline-block;
+  cursor: pointer;
+  border-radius: @border-radius-base;
+  border: 1px solid;
+  border-color: @btn-default-border;
+  position: relative;
+  text-align: left;
+  overflow: hidden;
+  line-height: 8px;
+  .user-select(none);
+  vertical-align: middle;
+  min-width: 100px;
+
+  &.switch-mini {
+    min-width: 72px;
+
+    i.switch-mini-icons {
+      height: 1.20em;
+      line-height: 9px;
+      vertical-align: text-top;
+      text-align: center;
+      transform: scale(0.6);
+      margin-top: -1px;
+      margin-bottom: -1px;
+    }
+  }
+
+  &.switch-small {
+    min-width: 80px;
+  }
+
+  &.switch-large {
+    min-width: 120px;
+  }
+
+  &.deactivate {
+    .opacity(50);
+    cursor: default !important;
+
+    label,
+    span {
+      cursor: default !important;
+    }
+  }
+
+  > div {
+    display: inline-block;
+    width: 150%;
+    position: relative;
+    top: 0;
+
+    &.switch-animate {
+      .transition(left 0.5s);
+    }
+
+    &.switch-off {
+      left: -50%;
+    }
+
+    &.switch-on {
+      left: 0%;
+    }
+  }
+
+  input[type=radio],
+  input[type=checkbox] {
+    // debug
+    display: none;
+    // position: absolute;
+    // margin-left: 60%;
+    // z-index: 123;
+  }
+
+  span,
+  label {
+    .box-sizing(border-box);
+    cursor: pointer;
+    position: relative;
+    display: inline-block;
+    height: 100%;
+
+    padding-bottom: 4px;
+    padding-top: 4px;
+    font-size: 14px;
+    line-height: 20px;
+
+    &.switch-mini {
+      padding-bottom: 4px;
+      padding-top: 4px;
+      font-size: 10px;
+      line-height: 9px;
+    }
+
+    &.switch-small {
+      padding-bottom: 3px;
+      padding-top: 3px;
+      font-size: 12px;
+      line-height: 18px;
+    }
+
+    &.switch-large {
+      padding-bottom: 9px;
+      padding-top: 9px;
+      font-size: 16px;
+      line-height: normal;
+    }
+  }
+
+  label {
+    text-align: center;
+    margin-top: -1px;
+    margin-bottom: -1px;
+    z-index: 100;
+    width: 34%;
+    // border-left: 1px solid @btnBorder;
+    // border-right: 1px solid @btnBorder;
+    background: @btn-default-bg;
+    // .buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark);
+
+    i {
+      color: #000;
+      text-shadow: 0 1px 0 #fff;
+      line-height: 18px;
+      pointer-events: none;
+    }
+  }
+
+  span {
+    text-align: center;
+    z-index: 1;
+    width: 33%;
+
+    &.switch-left {
+      color: #f00;
+      .border-left-radius(@border-radius-base);
+    }
+
+    &.switch-right {
+      color: #000;
+      background: @gray-lighter;
+      // .buttonBackground(@btnBackgroundHighlight, @btnBackground, @grayDark, 0 1px 1px rgba(255,255,255,.75));
+    }
+
+    &.switch-primary,
+    &.switch-left {
+      color: #fff;
+      background: @btn-primary-bg;
+      // .buttonBackground(@btnPrimaryBackgroundHighlight, @btnPrimaryBackground);
+    }
+
+    &.switch-info {
+      color: #fff;
+      background: @btn-info-bg;
+      // .buttonBackground(@btnInfoBackgroundHighlight, @btnInfoBackground);
+    }
+
+    &.switch-success {
+      color: #fff;
+      background: @btn-success-bg;
+      // .buttonBackground(@btnSuccessBackgroundHighlight, @btnSuccessBackground);
+    }
+
+    &.switch-warning {
+      background: @btn-warning-bg;
+      color: #fff;
+      // .buttonBackground(@btnWarningBackgroundHighlight, @btnWarningBackground);
+    }
+
+    &.switch-danger {
+      color: #fff;
+      background: @btn-danger-bg;
+      // .buttonBackground(@btnDangerBackgroundHighlight, @btnDangerBackground);
+    }
+
+    &.switch-default {
+      color: #000;
+      background: @gray-lighter;
+      // .buttonBackground(@btnBackgroundHighlight, @btnBackground, @grayDark, 0 1px 1px rgba(255,255,255,.75));
+    }
+  }
+}

+ 873 - 0
src/less/bootstrap3/mixins.less

@@ -0,0 +1,873 @@
+//
+// Mixins
+// --------------------------------------------------
+
+
+// Utilities
+// -------------------------
+
+// Clearfix
+// Source: http://nicolasgallagher.com/micro-clearfix-hack/
+//
+// For modern browsers
+// 1. The space content is one way to avoid an Opera bug when the
+//    contenteditable attribute is included anywhere else in the document.
+//    Otherwise it causes space to appear at the top and bottom of elements
+//    that are clearfixed.
+// 2. The use of `table` rather than `block` is only necessary if using
+//    `:before` to contain the top-margins of child elements.
+.clearfix() {
+  &:before,
+  &:after {
+    content: " "; // 1
+    display: table; // 2
+  }
+  &:after {
+    clear: both;
+  }
+}
+
+// WebKit-style focus
+.tab-focus() {
+  // Default
+  outline: thin dotted;
+  // WebKit
+  outline: 5px auto -webkit-focus-ring-color;
+  outline-offset: -2px;
+}
+
+// Center-align a block level element
+.center-block() {
+  display: block;
+  margin-left: auto;
+  margin-right: auto;
+}
+
+// Sizing shortcuts
+.size(@width; @height) {
+  width: @width;
+  height: @height;
+}
+.square(@size) {
+  .size(@size; @size);
+}
+
+// Placeholder text
+.placeholder(@color: @input-color-placeholder) {
+  &:-moz-placeholder            { color: @color; } // Firefox 4-18
+  &::-moz-placeholder           { color: @color;   // Firefox 19+
+                                  opacity: 1; } // See https://github.com/twbs/bootstrap/pull/11526
+  &:-ms-input-placeholder       { color: @color; } // Internet Explorer 10+
+  &::-webkit-input-placeholder  { color: @color; } // Safari and Chrome
+}
+
+// Text overflow
+// Requires inline-block or block for proper styling
+.text-overflow() {
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+// CSS image replacement
+//
+// Heads up! v3 launched with with only `.hide-text()`, but per our pattern for
+// mixins being reused as classes with the same name, this doesn't hold up. As
+// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. Note
+// that we cannot chain the mixins together in Less, so they are repeated.
+//
+// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
+
+// Deprecated as of v3.0.1 (will be removed in v4)
+.hide-text() {
+  font: ~"0/0" a;
+  color: transparent;
+  text-shadow: none;
+  background-color: transparent;
+  border: 0;
+}
+// New mixin to use as of v3.0.1
+.text-hide() {
+  .hide-text();
+}
+
+
+
+// CSS3 PROPERTIES
+// --------------------------------------------------
+
+// Single side border-radius
+.border-top-radius(@radius) {
+  border-top-right-radius: @radius;
+   border-top-left-radius: @radius;
+}
+.border-right-radius(@radius) {
+  border-bottom-right-radius: @radius;
+     border-top-right-radius: @radius;
+}
+.border-bottom-radius(@radius) {
+  border-bottom-right-radius: @radius;
+   border-bottom-left-radius: @radius;
+}
+.border-left-radius(@radius) {
+  border-bottom-left-radius: @radius;
+     border-top-left-radius: @radius;
+}
+
+// Drop shadows
+.box-shadow(@shadow) {
+  -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
+          box-shadow: @shadow;
+}
+
+// Transitions
+.transition(@transition) {
+  -webkit-transition: @transition;
+          transition: @transition;
+}
+.transition-property(@transition-property) {
+  -webkit-transition-property: @transition-property;
+          transition-property: @transition-property;
+}
+.transition-delay(@transition-delay) {
+  -webkit-transition-delay: @transition-delay;
+          transition-delay: @transition-delay;
+}
+.transition-duration(@transition-duration) {
+  -webkit-transition-duration: @transition-duration;
+          transition-duration: @transition-duration;
+}
+.transition-transform(@transition) {
+  -webkit-transition: -webkit-transform @transition;
+     -moz-transition: -moz-transform @transition;
+       -o-transition: -o-transform @transition;
+          transition: transform @transition;
+}
+
+// Transformations
+.rotate(@degrees) {
+  -webkit-transform: rotate(@degrees);
+      -ms-transform: rotate(@degrees); // IE9+
+          transform: rotate(@degrees);
+}
+.scale(@ratio; @ratio-y...) {
+  -webkit-transform: scale(@ratio, @ratio-y);
+      -ms-transform: scale(@ratio, @ratio-y); // IE9+
+          transform: scale(@ratio, @ratio-y);
+}
+.translate(@x; @y) {
+  -webkit-transform: translate(@x, @y);
+      -ms-transform: translate(@x, @y); // IE9+
+          transform: translate(@x, @y);
+}
+.skew(@x; @y) {
+  -webkit-transform: skew(@x, @y);
+      -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
+          transform: skew(@x, @y);
+}
+.translate3d(@x; @y; @z) {
+  -webkit-transform: translate3d(@x, @y, @z);
+          transform: translate3d(@x, @y, @z);
+}
+
+.rotateX(@degrees) {
+  -webkit-transform: rotateX(@degrees);
+      -ms-transform: rotateX(@degrees); // IE9+
+          transform: rotateX(@degrees);
+}
+.rotateY(@degrees) {
+  -webkit-transform: rotateY(@degrees);
+      -ms-transform: rotateY(@degrees); // IE9+
+          transform: rotateY(@degrees);
+}
+.perspective(@perspective) {
+  -webkit-perspective: @perspective;
+     -moz-perspective: @perspective;
+          perspective: @perspective;
+}
+.perspective-origin(@perspective) {
+  -webkit-perspective-origin: @perspective;
+     -moz-perspective-origin: @perspective;
+          perspective-origin: @perspective;
+}
+.transform-origin(@origin) {
+  -webkit-transform-origin: @origin;
+     -moz-transform-origin: @origin;
+          transform-origin: @origin;
+}
+
+// Animations
+.animation(@animation) {
+  -webkit-animation: @animation;
+          animation: @animation;
+}
+
+// Backface visibility
+// Prevent browsers from flickering when using CSS 3D transforms.
+// Default value is `visible`, but can be changed to `hidden`
+.backface-visibility(@visibility){
+  -webkit-backface-visibility: @visibility;
+     -moz-backface-visibility: @visibility;
+          backface-visibility: @visibility;
+}
+
+// Box sizing
+.box-sizing(@boxmodel) {
+  -webkit-box-sizing: @boxmodel;
+     -moz-box-sizing: @boxmodel;
+          box-sizing: @boxmodel;
+}
+
+// User select
+// For selecting text on the page
+.user-select(@select) {
+  -webkit-user-select: @select;
+     -moz-user-select: @select;
+      -ms-user-select: @select; // IE10+
+       -o-user-select: @select;
+          user-select: @select;
+}
+
+// Resize anything
+.resizable(@direction) {
+  resize: @direction; // Options: horizontal, vertical, both
+  overflow: auto; // Safari fix
+}
+
+// CSS3 Content Columns
+.content-columns(@column-count; @column-gap: @grid-gutter-width) {
+  -webkit-column-count: @column-count;
+     -moz-column-count: @column-count;
+          column-count: @column-count;
+  -webkit-column-gap: @column-gap;
+     -moz-column-gap: @column-gap;
+          column-gap: @column-gap;
+}
+
+// Optional hyphenation
+.hyphens(@mode: auto) {
+  word-wrap: break-word;
+  -webkit-hyphens: @mode;
+     -moz-hyphens: @mode;
+      -ms-hyphens: @mode; // IE10+
+       -o-hyphens: @mode;
+          hyphens: @mode;
+}
+
+// Opacity
+.opacity(@opacity) {
+  opacity: @opacity;
+  // IE8 filter
+  @opacity-ie: (@opacity * 100);
+  filter: ~"alpha(opacity=@{opacity-ie})";
+}
+
+
+
+// GRADIENTS
+// --------------------------------------------------
+
+#gradient {
+
+  // Horizontal gradient, from left to right
+  //
+  // Creates two color stops, start and end, by specifying a color and position for each color stop.
+  // Color stops are not available in IE9 and below.
+  .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
+    background-image: -webkit-linear-gradient(left, color-stop(@start-color @start-percent), color-stop(@end-color @end-percent)); // Safari 5.1-6, Chrome 10+
+    background-image:  linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
+    background-repeat: repeat-x;
+    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
+  }
+
+  // Vertical gradient, from top to bottom
+  //
+  // Creates two color stops, start and end, by specifying a color and position for each color stop.
+  // Color stops are not available in IE9 and below.
+  .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
+    background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent);  // Safari 5.1-6, Chrome 10+
+    background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
+    background-repeat: repeat-x;
+    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
+  }
+
+  .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
+    background-repeat: repeat-x;
+    background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+
+    background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
+  }
+  .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
+    background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
+    background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
+    background-repeat: no-repeat;
+    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
+  }
+  .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
+    background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
+    background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
+    background-repeat: no-repeat;
+    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
+  }
+  .radial(@inner-color: #555; @outer-color: #333) {
+    background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
+    background-image: radial-gradient(circle, @inner-color, @outer-color);
+    background-repeat: no-repeat;
+  }
+  .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
+    background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
+    background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
+  }
+}
+
+// Reset filters for IE
+//
+// When you need to remove a gradient background, do not forget to use this to reset
+// the IE filter for IE9 and below.
+.reset-filter() {
+  filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
+}
+
+
+
+// Retina images
+//
+// Short retina mixin for setting background-image and -size
+
+.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
+  background-image: url("@{file-1x}");
+
+  @media
+  only screen and (-webkit-min-device-pixel-ratio: 2),
+  only screen and (   min--moz-device-pixel-ratio: 2),
+  only screen and (     -o-min-device-pixel-ratio: 2/1),
+  only screen and (        min-device-pixel-ratio: 2),
+  only screen and (                min-resolution: 192dpi),
+  only screen and (                min-resolution: 2dppx) {
+    background-image: url("@{file-2x}");
+    background-size: @width-1x @height-1x;
+  }
+}
+
+
+// Responsive image
+//
+// Keep images from scaling beyond the width of their parents.
+
+.img-responsive(@display: block;) {
+  display: @display;
+  max-width: 100%; // Part 1: Set a maximum relative to the parent
+  height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
+}
+
+
+// COMPONENT MIXINS
+// --------------------------------------------------
+
+// Horizontal dividers
+// -------------------------
+// Dividers (basically an hr) within dropdowns and nav lists
+.nav-divider(@color: #e5e5e5) {
+  height: 1px;
+  margin: ((@line-height-computed / 2) - 1) 0;
+  overflow: hidden;
+  background-color: @color;
+}
+
+// Panels
+// -------------------------
+.panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
+  border-color: @border;
+
+  & > .panel-heading {
+    color: @heading-text-color;
+    background-color: @heading-bg-color;
+    border-color: @heading-border;
+
+    + .panel-collapse .panel-body {
+      border-top-color: @border;
+    }
+  }
+  & > .panel-footer {
+    + .panel-collapse .panel-body {
+      border-bottom-color: @border;
+    }
+  }
+}
+
+// Alerts
+// -------------------------
+.alert-variant(@background; @border; @text-color) {
+  background-color: @background;
+  border-color: @border;
+  color: @text-color;
+
+  hr {
+    border-top-color: darken(@border, 5%);
+  }
+  .alert-link {
+    color: darken(@text-color, 10%);
+  }
+}
+
+// Tables
+// -------------------------
+.table-row-variant(@state; @background) {
+  // Exact selectors below required to override `.table-striped` and prevent
+  // inheritance to nested tables.
+  .table > thead > tr,
+  .table > tbody > tr,
+  .table > tfoot > tr {
+    > td.@{state},
+    > th.@{state},
+    &.@{state} > td,
+    &.@{state} > th {
+      background-color: @background;
+    }
+  }
+
+  // Hover states for `.table-hover`
+  // Note: this is not available for cells or rows within `thead` or `tfoot`.
+  .table-hover > tbody > tr {
+    > td.@{state}:hover,
+    > th.@{state}:hover,
+    &.@{state}:hover > td,
+    &.@{state}:hover > th {
+      background-color: darken(@background, 5%);
+    }
+  }
+}
+
+// List Groups
+// -------------------------
+.list-group-item-variant(@state; @background; @color) {
+  .list-group-item-@{state} {
+    color: @color;
+    background-color: @background;
+
+    a& {
+      color: @color;
+
+      .list-group-item-heading { color: inherit; }
+
+      &:hover,
+      &:focus {
+        color: @color;
+        background-color: darken(@background, 5%);
+      }
+      &.active,
+      &.active:hover,
+      &.active:focus {
+        color: #fff;
+        background-color: @color;
+        border-color: @color;
+      }
+    }
+  }
+}
+
+// Button variants
+// -------------------------
+// Easily pump out default styles, as well as :hover, :focus, :active,
+// and disabled options for all buttons
+.button-variant(@color; @background; @border) {
+  color: @color;
+  background-color: @background;
+  border-color: @border;
+
+  &:hover,
+  &:focus,
+  &:active,
+  &.active,
+  .open .dropdown-toggle& {
+    color: @color;
+    background-color: darken(@background, 8%);
+        border-color: darken(@border, 12%);
+  }
+  &:active,
+  &.active,
+  .open .dropdown-toggle& {
+    background-image: none;
+  }
+  &.disabled,
+  &[disabled],
+  fieldset[disabled] & {
+    &,
+    &:hover,
+    &:focus,
+    &:active,
+    &.active {
+      background-color: @background;
+          border-color: @border;
+    }
+  }
+
+  .badge {
+    color: @background;
+    background-color: @color;
+  }
+}
+
+// Button sizes
+// -------------------------
+.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
+  padding: @padding-vertical @padding-horizontal;
+  font-size: @font-size;
+  line-height: @line-height;
+  border-radius: @border-radius;
+}
+
+// Pagination
+// -------------------------
+.pagination-size(@padding-vertical; @padding-horizontal; @font-size; @border-radius) {
+  > li {
+    > a,
+    > span {
+      padding: @padding-vertical @padding-horizontal;
+      font-size: @font-size;
+    }
+    &:first-child {
+      > a,
+      > span {
+        .border-left-radius(@border-radius);
+      }
+    }
+    &:last-child {
+      > a,
+      > span {
+        .border-right-radius(@border-radius);
+      }
+    }
+  }
+}
+
+// Labels
+// -------------------------
+.label-variant(@color) {
+  background-color: @color;
+  &[href] {
+    &:hover,
+    &:focus {
+      background-color: darken(@color, 10%);
+    }
+  }
+}
+
+// Navbar vertical align
+// -------------------------
+// Vertically center elements in the navbar.
+// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
+.navbar-vertical-align(@element-height) {
+  margin-top: ((@navbar-height - @element-height) / 2);
+  margin-bottom: ((@navbar-height - @element-height) / 2);
+}
+
+// Progress bars
+// -------------------------
+.progress-bar-variant(@color) {
+  background-color: @color;
+  .progress-striped & {
+    #gradient > .striped();
+  }
+}
+
+// Responsive utilities
+// -------------------------
+// More easily include all the states for responsive-utilities.less.
+.responsive-visibility() {
+  display: block !important;
+  table&  { display: table; }
+  tr&     { display: table-row !important; }
+  th&,
+  td&     { display: table-cell !important; }
+}
+
+.responsive-invisibility() {
+    &,
+  tr&,
+  th&,
+  td& { display: none !important; }
+}
+
+
+// Grid System
+// -----------
+
+// Centered container element
+.container-fixed() {
+  margin-right: auto;
+  margin-left: auto;
+  padding-left:  (@grid-gutter-width / 2);
+  padding-right: (@grid-gutter-width / 2);
+  .clearfix();
+}
+
+// Creates a wrapper for a series of columns
+.make-row(@gutter: @grid-gutter-width) {
+  margin-left:  (@gutter / -2);
+  margin-right: (@gutter / -2);
+  .clearfix();
+}
+
+// Generate the extra small columns
+.make-xs-column(@columns; @gutter: @grid-gutter-width) {
+  position: relative;
+  float: left;
+  width: percentage((@columns / @grid-columns));
+  // Prevent columns from collapsing when empty
+  min-height: 1px;
+  // Inner gutter via padding
+  padding-left:  (@gutter / 2);
+  padding-right: (@gutter / 2);
+}
+
+// Generate the small columns
+.make-sm-column(@columns; @gutter: @grid-gutter-width) {
+  position: relative;
+  // Prevent columns from collapsing when empty
+  min-height: 1px;
+  // Inner gutter via padding
+  padding-left:  (@gutter / 2);
+  padding-right: (@gutter / 2);
+
+  // Calculate width based on number of columns available
+  @media (min-width: @screen-sm-min) {
+    float: left;
+    width: percentage((@columns / @grid-columns));
+  }
+}
+
+// Generate the small column offsets
+.make-sm-column-offset(@columns) {
+  @media (min-width: @screen-sm-min) {
+    margin-left: percentage((@columns / @grid-columns));
+  }
+}
+.make-sm-column-push(@columns) {
+  @media (min-width: @screen-sm-min) {
+    left: percentage((@columns / @grid-columns));
+  }
+}
+.make-sm-column-pull(@columns) {
+  @media (min-width: @screen-sm-min) {
+    right: percentage((@columns / @grid-columns));
+  }
+}
+
+// Generate the medium columns
+.make-md-column(@columns; @gutter: @grid-gutter-width) {
+  position: relative;
+  // Prevent columns from collapsing when empty
+  min-height: 1px;
+  // Inner gutter via padding
+  padding-left:  (@gutter / 2);
+  padding-right: (@gutter / 2);
+
+  // Calculate width based on number of columns available
+  @media (min-width: @screen-md-min) {
+    float: left;
+    width: percentage((@columns / @grid-columns));
+  }
+}
+
+// Generate the medium column offsets
+.make-md-column-offset(@columns) {
+  @media (min-width: @screen-md-min) {
+    margin-left: percentage((@columns / @grid-columns));
+  }
+}
+.make-md-column-push(@columns) {
+  @media (min-width: @screen-md) {
+    left: percentage((@columns / @grid-columns));
+  }
+}
+.make-md-column-pull(@columns) {
+  @media (min-width: @screen-md-min) {
+    right: percentage((@columns / @grid-columns));
+  }
+}
+
+// Generate the large columns
+.make-lg-column(@columns; @gutter: @grid-gutter-width) {
+  position: relative;
+  // Prevent columns from collapsing when empty
+  min-height: 1px;
+  // Inner gutter via padding
+  padding-left:  (@gutter / 2);
+  padding-right: (@gutter / 2);
+
+  // Calculate width based on number of columns available
+  @media (min-width: @screen-lg-min) {
+    float: left;
+    width: percentage((@columns / @grid-columns));
+  }
+}
+
+// Generate the large column offsets
+.make-lg-column-offset(@columns) {
+  @media (min-width: @screen-lg-min) {
+    margin-left: percentage((@columns / @grid-columns));
+  }
+}
+.make-lg-column-push(@columns) {
+  @media (min-width: @screen-lg-min) {
+    left: percentage((@columns / @grid-columns));
+  }
+}
+.make-lg-column-pull(@columns) {
+  @media (min-width: @screen-lg-min) {
+    right: percentage((@columns / @grid-columns));
+  }
+}
+
+
+// Framework grid generation
+//
+// Used only by Bootstrap to generate the correct number of grid classes given
+// any value of `@grid-columns`.
+
+.make-grid-columns() {
+  // Common styles for all sizes of grid columns, widths 1-12
+  .col(@index) when (@index = 1) { // initial
+    @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
+    .col(@index + 1, @item);
+  }
+  .col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
+    @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
+    .col(@index + 1, ~"@{list}, @{item}");
+  }
+  .col(@index, @list) when (@index > @grid-columns) { // terminal
+    @{list} {
+      position: relative;
+      // Prevent columns from collapsing when empty
+      min-height: 1px;
+      // Inner gutter via padding
+      padding-left:  (@grid-gutter-width / 2);
+      padding-right: (@grid-gutter-width / 2);
+    }
+  }
+  .col(1); // kickstart it
+}
+
+.make-grid-columns-float(@class) {
+  .col(@index) when (@index = 1) { // initial
+    @item: ~".col-@{class}-@{index}";
+    .col(@index + 1, @item);
+  }
+  .col(@index, @list) when (@index =< @grid-columns) { // general
+    @item: ~".col-@{class}-@{index}";
+    .col(@index + 1, ~"@{list}, @{item}");
+  }
+  .col(@index, @list) when (@index > @grid-columns) { // terminal
+    @{list} {
+      float: left;
+    }
+  }
+  .col(1); // kickstart it
+}
+
+.calc-grid(@index, @class, @type) when (@type = width) and (@index > 0) {
+  .col-@{class}-@{index} {
+    width: percentage((@index / @grid-columns));
+  }
+}
+.calc-grid(@index, @class, @type) when (@type = push) {
+  .col-@{class}-push-@{index} {
+    left: percentage((@index / @grid-columns));
+  }
+}
+.calc-grid(@index, @class, @type) when (@type = pull) {
+  .col-@{class}-pull-@{index} {
+    right: percentage((@index / @grid-columns));
+  }
+}
+.calc-grid(@index, @class, @type) when (@type = offset) {
+  .col-@{class}-offset-@{index} {
+    margin-left: percentage((@index / @grid-columns));
+  }
+}
+
+// Basic looping in LESS
+.make-grid(@index, @class, @type) when (@index >= 0) {
+  .calc-grid(@index, @class, @type);
+  // next iteration
+  .make-grid(@index - 1, @class, @type);
+}
+
+
+// Form validation states
+//
+// Used in forms.less to generate the form validation CSS for warnings, errors,
+// and successes.
+
+.form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
+  // Color the label and help text
+  .help-block,
+  .control-label,
+  .radio,
+  .checkbox,
+  .radio-inline,
+  .checkbox-inline  {
+    color: @text-color;
+  }
+  // Set the border and box shadow on specific inputs to match
+  .form-control {
+    border-color: @border-color;
+    .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
+    &:focus {
+      border-color: darken(@border-color, 10%);
+      @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
+      .box-shadow(@shadow);
+    }
+  }
+  // Set validation states also for addons
+  .input-group-addon {
+    color: @text-color;
+    border-color: @border-color;
+    background-color: @background-color;
+  }
+}
+
+// Form control focus state
+//
+// Generate a customized focus state and for any input with the specified color,
+// which defaults to the `@input-focus-border` variable.
+//
+// We highly encourage you to not customize the default value, but instead use
+// this to tweak colors on an as-needed basis. This aesthetic change is based on
+// WebKit's default styles, but applicable to a wider range of browsers. Its
+// usability and accessibility should be taken into account with any change.
+//
+// Example usage: change the default blue border and shadow to white for better
+// contrast against a dark gray background.
+
+.form-control-focus(@color: @input-border-focus) {
+  @color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
+  &:focus {
+    border-color: @color;
+    outline: 0;
+    .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
+  }
+}
+
+// Form control sizing
+//
+// Relative text size, padding, and border-radii changes for form controls. For
+// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
+// element gets special love because it's special, and that's a fact!
+
+.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
+  height: @input-height;
+  padding: @padding-vertical @padding-horizontal;
+  font-size: @font-size;
+  line-height: @line-height;
+  border-radius: @border-radius;
+
+  select& {
+    height: @input-height;
+    line-height: @input-height;
+  }
+
+  textarea& {
+    height: auto;
+  }
+}

+ 645 - 0
src/less/bootstrap3/variables.less

@@ -0,0 +1,645 @@
+//
+// Variables
+// --------------------------------------------------
+
+
+// Global values
+// --------------------------------------------------
+
+// Grays
+// -------------------------
+
+@gray-darker:            lighten(#000, 13.5%); // #222
+@gray-dark:              lighten(#000, 20%);   // #333
+@gray:                   lighten(#000, 33.5%); // #555
+@gray-light:             lighten(#000, 60%);   // #999
+@gray-lighter:           lighten(#000, 93.5%); // #eee
+
+// Brand colors
+// -------------------------
+
+@brand-primary:         #428bca;
+@brand-success:         #5cb85c;
+@brand-warning:         #f0ad4e;
+@brand-danger:          #d9534f;
+@brand-info:            #5bc0de;
+
+// Scaffolding
+// -------------------------
+
+@body-bg:               #fff;
+@text-color:            @gray-dark;
+
+// Links
+// -------------------------
+
+@link-color:            @brand-primary;
+@link-hover-color:      darken(@link-color, 15%);
+
+// Typography
+// -------------------------
+
+@font-family-sans-serif:  "Helvetica Neue", Helvetica, Arial, sans-serif;
+@font-family-serif:       Georgia, "Times New Roman", Times, serif;
+@font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
+@font-family-base:        @font-family-sans-serif;
+
+@font-size-base:          14px;
+@font-size-large:         ceil(@font-size-base * 1.25); // ~18px
+@font-size-small:         ceil(@font-size-base * 0.85); // ~12px
+
+@font-size-h1:            floor(@font-size-base * 2.6); // ~36px
+@font-size-h2:            floor(@font-size-base * 2.15); // ~30px
+@font-size-h3:            ceil(@font-size-base * 1.7); // ~24px
+@font-size-h4:            ceil(@font-size-base * 1.25); // ~18px
+@font-size-h5:            @font-size-base;
+@font-size-h6:            ceil(@font-size-base * 0.85); // ~12px
+
+@line-height-base:        1.428571429; // 20/14
+@line-height-computed:    floor(@font-size-base * @line-height-base); // ~20px
+
+@headings-font-family:    inherit;
+@headings-font-weight:    500;
+@headings-line-height:    1.1;
+@headings-color:          inherit;
+
+
+// Iconography
+// -------------------------
+
+@icon-font-path:          "../fonts/";
+@icon-font-name:          "glyphicons-halflings-regular";
+
+
+// Components
+// -------------------------
+// Based on 14px font-size and 1.428 line-height (~20px to start)
+
+@padding-base-vertical:          6px;
+@padding-base-horizontal:        12px;
+
+@padding-large-vertical:         10px;
+@padding-large-horizontal:       16px;
+
+@padding-small-vertical:         5px;
+@padding-small-horizontal:       10px;
+
+@padding-xs-vertical:            1px;
+@padding-xs-horizontal:          5px;
+
+@line-height-large:              1.33;
+@line-height-small:              1.5;
+
+@border-radius-base:             4px;
+@border-radius-large:            6px;
+@border-radius-small:            3px;
+
+@component-active-color:         #fff;
+@component-active-bg:            @brand-primary;
+
+@caret-width-base:               4px;
+@caret-width-large:              5px;
+
+// Tables
+// -------------------------
+
+@table-cell-padding:                 8px;
+@table-condensed-cell-padding:       5px;
+
+@table-bg:                           transparent; // overall background-color
+@table-bg-accent:                    #f9f9f9; // for striping
+@table-bg-hover:                     #f5f5f5;
+@table-bg-active:                    @table-bg-hover;
+
+@table-border-color:                 #ddd; // table and cell border
+
+
+// Buttons
+// -------------------------
+
+@btn-font-weight:                normal;
+
+@btn-default-color:              #333;
+@btn-default-bg:                 #fff;
+@btn-default-border:             #ccc;
+
+@btn-primary-color:              #fff;
+@btn-primary-bg:                 @brand-primary;
+@btn-primary-border:             darken(@btn-primary-bg, 5%);
+
+@btn-success-color:              #fff;
+@btn-success-bg:                 @brand-success;
+@btn-success-border:             darken(@btn-success-bg, 5%);
+
+@btn-warning-color:              #fff;
+@btn-warning-bg:                 @brand-warning;
+@btn-warning-border:             darken(@btn-warning-bg, 5%);
+
+@btn-danger-color:               #fff;
+@btn-danger-bg:                  @brand-danger;
+@btn-danger-border:              darken(@btn-danger-bg, 5%);
+
+@btn-info-color:                 #fff;
+@btn-info-bg:                    @brand-info;
+@btn-info-border:                darken(@btn-info-bg, 5%);
+
+@btn-link-disabled-color:        @gray-light;
+
+
+// Forms
+// -------------------------
+
+@input-bg:                       #fff;
+@input-bg-disabled:              @gray-lighter;
+
+@input-color:                    @gray;
+@input-border:                   #ccc;
+@input-border-radius:            @border-radius-base;
+@input-border-focus:             #66afe9;
+
+@input-color-placeholder:        @gray-light;
+
+@input-height-base:              (@line-height-computed + (@padding-base-vertical * 2) + 2);
+@input-height-large:             (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
+@input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
+
+@legend-color:                   @gray-dark;
+@legend-border-color:            #e5e5e5;
+
+@input-group-addon-bg:           @gray-lighter;
+@input-group-addon-border-color: @input-border;
+
+
+// Dropdowns
+// -------------------------
+
+@dropdown-bg:                    #fff;
+@dropdown-border:                rgba(0,0,0,.15);
+@dropdown-fallback-border:       #ccc;
+@dropdown-divider-bg:            #e5e5e5;
+
+@dropdown-link-color:            @gray-dark;
+@dropdown-link-hover-color:      darken(@gray-dark, 5%);
+@dropdown-link-hover-bg:         #f5f5f5;
+
+@dropdown-link-active-color:     @component-active-color;
+@dropdown-link-active-bg:        @component-active-bg;
+
+@dropdown-link-disabled-color:   @gray-light;
+
+@dropdown-header-color:          @gray-light;
+
+
+// COMPONENT VARIABLES
+// --------------------------------------------------
+
+
+// Z-index master list
+// -------------------------
+// Used for a bird's eye view of components dependent on the z-axis
+// Try to avoid customizing these :)
+
+@zindex-navbar:            1000;
+@zindex-dropdown:          1000;
+@zindex-popover:           1010;
+@zindex-tooltip:           1030;
+@zindex-navbar-fixed:      1030;
+@zindex-modal-background:  1040;
+@zindex-modal:             1050;
+
+// Media queries breakpoints
+// --------------------------------------------------
+
+// Extra small screen / phone
+// Note: Deprecated @screen-xs and @screen-phone as of v3.0.1
+@screen-xs:                  480px;
+@screen-xs-min:              @screen-xs;
+@screen-phone:               @screen-xs-min;
+
+// Small screen / tablet
+// Note: Deprecated @screen-sm and @screen-tablet as of v3.0.1
+@screen-sm:                  768px;
+@screen-sm-min:              @screen-sm;
+@screen-tablet:              @screen-sm-min;
+
+// Medium screen / desktop
+// Note: Deprecated @screen-md and @screen-desktop as of v3.0.1
+@screen-md:                  992px;
+@screen-md-min:              @screen-md;
+@screen-desktop:             @screen-md-min;
+
+// Large screen / wide desktop
+// Note: Deprecated @screen-lg and @screen-lg-desktop as of v3.0.1
+@screen-lg:                  1200px;
+@screen-lg-min:              @screen-lg;
+@screen-lg-desktop:          @screen-lg-min;
+
+// So media queries don't overlap when required, provide a maximum
+@screen-xs-max:              (@screen-sm-min - 1);
+@screen-sm-max:              (@screen-md-min - 1);
+@screen-md-max:              (@screen-lg-min - 1);
+
+
+// Grid system
+// --------------------------------------------------
+
+// Number of columns in the grid system
+@grid-columns:              12;
+// Padding, to be divided by two and applied to the left and right of all columns
+@grid-gutter-width:         30px;
+
+// Navbar collapse
+
+// Point at which the navbar becomes uncollapsed
+@grid-float-breakpoint:     @screen-sm-min;
+// Point at which the navbar begins collapsing
+@grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
+
+
+// Navbar
+// -------------------------
+
+// Basics of a navbar
+@navbar-height:                    50px;
+@navbar-margin-bottom:             @line-height-computed;
+@navbar-border-radius:             @border-radius-base;
+@navbar-padding-horizontal:        floor(@grid-gutter-width / 2);
+@navbar-padding-vertical:          ((@navbar-height - @line-height-computed) / 2);
+
+@navbar-default-color:             #777;
+@navbar-default-bg:                #f8f8f8;
+@navbar-default-border:            darken(@navbar-default-bg, 6.5%);
+
+// Navbar links
+@navbar-default-link-color:                #777;
+@navbar-default-link-hover-color:          #333;
+@navbar-default-link-hover-bg:             transparent;
+@navbar-default-link-active-color:         #555;
+@navbar-default-link-active-bg:            darken(@navbar-default-bg, 6.5%);
+@navbar-default-link-disabled-color:       #ccc;
+@navbar-default-link-disabled-bg:          transparent;
+
+// Navbar brand label
+@navbar-default-brand-color:               @navbar-default-link-color;
+@navbar-default-brand-hover-color:         darken(@navbar-default-brand-color, 10%);
+@navbar-default-brand-hover-bg:            transparent;
+
+// Navbar toggle
+@navbar-default-toggle-hover-bg:           #ddd;
+@navbar-default-toggle-icon-bar-bg:        #888;
+@navbar-default-toggle-border-color:       #ddd;
+
+
+// Inverted navbar
+//
+// Reset inverted navbar basics
+@navbar-inverse-color:                      @gray-light;
+@navbar-inverse-bg:                         #222;
+@navbar-inverse-border:                     darken(@navbar-inverse-bg, 10%);
+
+// Inverted navbar links
+@navbar-inverse-link-color:                 @gray-light;
+@navbar-inverse-link-hover-color:           #fff;
+@navbar-inverse-link-hover-bg:              transparent;
+@navbar-inverse-link-active-color:          @navbar-inverse-link-hover-color;
+@navbar-inverse-link-active-bg:             darken(@navbar-inverse-bg, 10%);
+@navbar-inverse-link-disabled-color:        #444;
+@navbar-inverse-link-disabled-bg:           transparent;
+
+// Inverted navbar brand label
+@navbar-inverse-brand-color:                @navbar-inverse-link-color;
+@navbar-inverse-brand-hover-color:          #fff;
+@navbar-inverse-brand-hover-bg:             transparent;
+
+// Inverted navbar toggle
+@navbar-inverse-toggle-hover-bg:            #333;
+@navbar-inverse-toggle-icon-bar-bg:         #fff;
+@navbar-inverse-toggle-border-color:        #333;
+
+
+// Navs
+// -------------------------
+
+@nav-link-padding:                          10px 15px;
+@nav-link-hover-bg:                         @gray-lighter;
+
+@nav-disabled-link-color:                   @gray-light;
+@nav-disabled-link-hover-color:             @gray-light;
+
+@nav-open-link-hover-color:                 #fff;
+
+// Tabs
+@nav-tabs-border-color:                     #ddd;
+
+@nav-tabs-link-hover-border-color:          @gray-lighter;
+
+@nav-tabs-active-link-hover-bg:             @body-bg;
+@nav-tabs-active-link-hover-color:          @gray;
+@nav-tabs-active-link-hover-border-color:   #ddd;
+
+@nav-tabs-justified-link-border-color:            #ddd;
+@nav-tabs-justified-active-link-border-color:     @body-bg;
+
+// Pills
+@nav-pills-border-radius:                   @border-radius-base;
+@nav-pills-active-link-hover-bg:            @component-active-bg;
+@nav-pills-active-link-hover-color:         @component-active-color;
+
+
+// Pagination
+// -------------------------
+
+@pagination-bg:                        #fff;
+@pagination-border:                    #ddd;
+
+@pagination-hover-bg:                  @gray-lighter;
+
+@pagination-active-bg:                 @brand-primary;
+@pagination-active-color:              #fff;
+
+@pagination-disabled-color:            @gray-light;
+
+
+// Pager
+// -------------------------
+
+@pager-border-radius:                  15px;
+@pager-disabled-color:                 @gray-light;
+
+
+// Jumbotron
+// -------------------------
+
+@jumbotron-padding:              30px;
+@jumbotron-color:                inherit;
+@jumbotron-bg:                   @gray-lighter;
+@jumbotron-heading-color:        inherit;
+@jumbotron-font-size:            ceil(@font-size-base * 1.5);
+
+
+// Form states and alerts
+// -------------------------
+
+@state-success-text:             #3c763d;
+@state-success-bg:               #dff0d8;
+@state-success-border:           darken(spin(@state-success-bg, -10), 5%);
+
+@state-info-text:                #31708f;
+@state-info-bg:                  #d9edf7;
+@state-info-border:              darken(spin(@state-info-bg, -10), 7%);
+
+@state-warning-text:             #8a6d3b;
+@state-warning-bg:               #fcf8e3;
+@state-warning-border:           darken(spin(@state-warning-bg, -10), 5%);
+
+@state-danger-text:              #a94442;
+@state-danger-bg:                #f2dede;
+@state-danger-border:            darken(spin(@state-danger-bg, -10), 5%);
+
+
+// Tooltips
+// -------------------------
+@tooltip-max-width:           200px;
+@tooltip-color:               #fff;
+@tooltip-bg:                  #000;
+
+@tooltip-arrow-width:         5px;
+@tooltip-arrow-color:         @tooltip-bg;
+
+
+// Popovers
+// -------------------------
+@popover-bg:                          #fff;
+@popover-max-width:                   276px;
+@popover-border-color:                rgba(0,0,0,.2);
+@popover-fallback-border-color:       #ccc;
+
+@popover-title-bg:                    darken(@popover-bg, 3%);
+
+@popover-arrow-width:                 10px;
+@popover-arrow-color:                 #fff;
+
+@popover-arrow-outer-width:           (@popover-arrow-width + 1);
+@popover-arrow-outer-color:           rgba(0,0,0,.25);
+@popover-arrow-outer-fallback-color:  #999;
+
+
+// Labels
+// -------------------------
+
+@label-default-bg:            @gray-light;
+@label-primary-bg:            @brand-primary;
+@label-success-bg:            @brand-success;
+@label-info-bg:               @brand-info;
+@label-warning-bg:            @brand-warning;
+@label-danger-bg:             @brand-danger;
+
+@label-color:                 #fff;
+@label-link-hover-color:      #fff;
+
+
+// Modals
+// -------------------------
+@modal-inner-padding:         20px;
+
+@modal-title-padding:         15px;
+@modal-title-line-height:     @line-height-base;
+
+@modal-content-bg:                             #fff;
+@modal-content-border-color:                   rgba(0,0,0,.2);
+@modal-content-fallback-border-color:          #999;
+
+@modal-backdrop-bg:           #000;
+@modal-header-border-color:   #e5e5e5;
+@modal-footer-border-color:   @modal-header-border-color;
+
+
+// Alerts
+// -------------------------
+@alert-padding:               15px;
+@alert-border-radius:         @border-radius-base;
+@alert-link-font-weight:      bold;
+
+@alert-success-bg:            @state-success-bg;
+@alert-success-text:          @state-success-text;
+@alert-success-border:        @state-success-border;
+
+@alert-info-bg:               @state-info-bg;
+@alert-info-text:             @state-info-text;
+@alert-info-border:           @state-info-border;
+
+@alert-warning-bg:            @state-warning-bg;
+@alert-warning-text:          @state-warning-text;
+@alert-warning-border:        @state-warning-border;
+
+@alert-danger-bg:             @state-danger-bg;
+@alert-danger-text:           @state-danger-text;
+@alert-danger-border:         @state-danger-border;
+
+
+// Progress bars
+// -------------------------
+@progress-bg:                 #f5f5f5;
+@progress-bar-color:          #fff;
+
+@progress-bar-bg:             @brand-primary;
+@progress-bar-success-bg:     @brand-success;
+@progress-bar-warning-bg:     @brand-warning;
+@progress-bar-danger-bg:      @brand-danger;
+@progress-bar-info-bg:        @brand-info;
+
+
+// List group
+// -------------------------
+@list-group-bg:               #fff;
+@list-group-border:           #ddd;
+@list-group-border-radius:    @border-radius-base;
+
+@list-group-hover-bg:         #f5f5f5;
+@list-group-active-color:     @component-active-color;
+@list-group-active-bg:        @component-active-bg;
+@list-group-active-border:    @list-group-active-bg;
+
+@list-group-link-color:          #555;
+@list-group-link-heading-color:  #333;
+
+
+// Panels
+// -------------------------
+@panel-bg:                    #fff;
+@panel-inner-border:          #ddd;
+@panel-border-radius:         @border-radius-base;
+@panel-footer-bg:             #f5f5f5;
+
+@panel-default-text:          @gray-dark;
+@panel-default-border:        #ddd;
+@panel-default-heading-bg:    #f5f5f5;
+
+@panel-primary-text:          #fff;
+@panel-primary-border:        @brand-primary;
+@panel-primary-heading-bg:    @brand-primary;
+
+@panel-success-text:          @state-success-text;
+@panel-success-border:        @state-success-border;
+@panel-success-heading-bg:    @state-success-bg;
+
+@panel-warning-text:          @state-warning-text;
+@panel-warning-border:        @state-warning-border;
+@panel-warning-heading-bg:    @state-warning-bg;
+
+@panel-danger-text:           @state-danger-text;
+@panel-danger-border:         @state-danger-border;
+@panel-danger-heading-bg:     @state-danger-bg;
+
+@panel-info-text:             @state-info-text;
+@panel-info-border:           @state-info-border;
+@panel-info-heading-bg:       @state-info-bg;
+
+
+// Thumbnails
+// -------------------------
+@thumbnail-padding:           4px;
+@thumbnail-bg:                @body-bg;
+@thumbnail-border:            #ddd;
+@thumbnail-border-radius:     @border-radius-base;
+
+@thumbnail-caption-color:     @text-color;
+@thumbnail-caption-padding:   9px;
+
+
+// Wells
+// -------------------------
+@well-bg:                     #f5f5f5;
+
+
+// Badges
+// -------------------------
+@badge-color:                 #fff;
+@badge-link-hover-color:      #fff;
+@badge-bg:                    @gray-light;
+
+@badge-active-color:          @link-color;
+@badge-active-bg:             #fff;
+
+@badge-font-weight:           bold;
+@badge-line-height:           1;
+@badge-border-radius:         10px;
+
+
+// Breadcrumbs
+// -------------------------
+@breadcrumb-bg:               #f5f5f5;
+@breadcrumb-color:            #ccc;
+@breadcrumb-active-color:     @gray-light;
+@breadcrumb-separator:        "/";
+
+
+// Carousel
+// ------------------------
+
+@carousel-text-shadow:                        0 1px 2px rgba(0,0,0,.6);
+
+@carousel-control-color:                      #fff;
+@carousel-control-width:                      15%;
+@carousel-control-opacity:                    .5;
+@carousel-control-font-size:                  20px;
+
+@carousel-indicator-active-bg:                #fff;
+@carousel-indicator-border-color:             #fff;
+
+@carousel-caption-color:                      #fff;
+
+
+// Close
+// ------------------------
+@close-font-weight:           bold;
+@close-color:                 #000;
+@close-text-shadow:           0 1px 0 #fff;
+
+
+// Code
+// ------------------------
+@code-color:                  #c7254e;
+@code-bg:                     #f9f2f4;
+
+@kbd-color:                   #fff;
+@kbd-bg:                      #333;
+
+@pre-bg:                      #f5f5f5;
+@pre-color:                   @gray-dark;
+@pre-border-color:            #ccc;
+@pre-scrollable-max-height:   340px;
+
+// Type
+// ------------------------
+@text-muted:                  @gray-light;
+@abbr-border-color:           @gray-light;
+@headings-small-color:        @gray-light;
+@blockquote-small-color:      @gray-light;
+@blockquote-border-color:     @gray-lighter;
+@page-header-border-color:    @gray-lighter;
+
+// Miscellaneous
+// -------------------------
+
+// Hr border color
+@hr-border:                   @gray-lighter;
+
+// Horizontal forms & lists
+@component-offset-horizontal: 180px;
+
+
+// Container sizes
+// --------------------------------------------------
+
+// Small screen / tablet
+@container-tablet:             ((720px + @grid-gutter-width));
+@container-sm:                 @container-tablet;
+
+// Medium screen / desktop
+@container-desktop:            ((940px + @grid-gutter-width));
+@container-md:                 @container-desktop;
+
+// Large screen / wide desktop
+@container-large-desktop:      ((1140px + @grid-gutter-width));
+@container-lg:                 @container-large-desktop;

+ 0 - 97
static/less/deps/mixins.less

@@ -1,97 +0,0 @@
-.border-radius(@radius) {
-  -webkit-border-radius: @radius;
-  -moz-border-radius: @radius;
-  border-radius: @radius;
-}
-
-.border-top-left-radius(@radius) {
-  -webkit-border-top-left-radius: @radius;
-  -moz-border-radius-topleft: @radius;
-  border-top-left-radius: @radius;
-}
-
-.border-bottom-left-radius(@radius) {
-  -webkit-border-bottom-left-radius: @radius;
-  -moz-border-radius-bottomleft: @radius;
-  border-bottom-left-radius: @radius;
-}
-
-.border-left-radius(@radius) {
-  .border-top-left-radius(@radius);
-  .border-bottom-left-radius(@radius);
-}
-
-// Transitions
-.transition(@transition) {
-  -webkit-transition: @transition;
-  -moz-transition: @transition;
-  -o-transition: @transition;
-  transition: @transition;
-}
-
-// Box sizing
-.box-sizing(@boxmodel) {
-  -webkit-box-sizing: @boxmodel;
-  -moz-box-sizing: @boxmodel;
-  box-sizing: @boxmodel;
-}
-
-// User select
-// For selecting text on the page
-.user-select(@select) {
-  -webkit-user-select: @select;
-  -moz-user-select: @select;
-  -ms-user-select: @select;
-  -o-user-select: @select;
-  user-select: @select;
-}
-
-// Opacity
-.opacity(@opacity) {
-  opacity: @opacity / 100;
-  filter: ~"alpha(opacity=@{opacity})";
-}
-
-// Gradient Bar Colors for buttons and alerts
-.gradientBar(@primaryColor, @secondaryColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
-  color: @textColor;
-  text-shadow: @textShadow;
-  #gradient > .vertical(@primaryColor, @secondaryColor);
-  border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
-  border-color: rgba(0, 0, 0, .1) rgba(0, 0, 0, .1) fadein(rgba(0, 0, 0, .1), 15%);
-}
-
-// Gradients
-#gradient {
-  .vertical(@startColor: #555, @endColor: #333) {
-    background-color: mix(@startColor, @endColor, 60%);
-    background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
-    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
-    background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
-    background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
-    background-image: linear-gradient(to bottom, @startColor, @endColor); // Standard, IE10
-    background-repeat: repeat-x;
-    filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor), argb(@endColor))); // IE9 and down
-  }
-}
-
-.reset-filter() {
-  filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
-}
-
-.buttonBackground(@startColor, @endColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) { // gradientBar will set the background to a pleasing blend of these, to support IE<=9
-  .gradientBar(@startColor, @endColor, @textColor, @textShadow);
-  *background-color: @endColor; /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-  .reset-filter(); // in these cases the gradient won't cover the background, so we override
-  &:hover, &:focus, &:active, &.active, &.disabled, &[disabled] {
-    color: @textColor;
-    background-color: @endColor;
-    *background-color: darken(@endColor, 5%);
-  }
-
-// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
-  &:active,
-  &.active {
-    background-color: darken(@endColor, 10%) e("\9");
-  }
-}

+ 0 - 32
static/less/deps/variables.less

@@ -1,32 +0,0 @@
-@grayDarker: #222;
-@grayDark: #333;
-@white: #fff;
-@orange: #f89406;
-
-@bodyBackground: @white;
-@textColor: @grayDark;
-
-@linkColor: #08c;
-@linkColorHover: darken(@linkColor, 15%);
-
-@btnBackground: @white;
-@btnBackgroundHighlight: darken(@white, 10%);
-@btnBorder: #ccc;
-
-@btnPrimaryBackground: @linkColor;
-@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
-
-@btnInfoBackground: #5bc0de;
-@btnInfoBackgroundHighlight: #2f96b4;
-
-@btnSuccessBackground: #62c462;
-@btnSuccessBackgroundHighlight: #51a351;
-
-@btnWarningBackground: lighten(@orange, 15%);
-@btnWarningBackgroundHighlight: @orange;
-
-@btnDangerBackground: #ee5f5b;
-@btnDangerBackgroundHighlight: #bd362f;
-
-@btnInverseBackground: #444;
-@btnInverseBackgroundHighlight: @grayDarker;

+ 0 - 414
static/stylesheets/bootstrap-switch.css

@@ -1,414 +0,0 @@
-/* ============================================================
- * bootstrapSwitch v1.8.1 by Larentis Mattia @SpiritualGuru
- * http://www.larentis.eu/
- *
- * and Peter Stein (BdMdesigN)
- * http://www.bdmdesign.org/
- *
- * Project site:
- * http://www.bootstrap-switch.org
- * ============================================================
- * Licensed under the Apache License, Version 2.0
- * http://www.apache.org/licenses/LICENSE-2.0
- * ============================================================ */
-.has-switch {
-  display: inline-block;
-  cursor: pointer;
-  -webkit-border-radius: 5px;
-  -moz-border-radius: 5px;
-  border-radius: 5px;
-  border: 1px solid;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  position: relative;
-  text-align: left;
-  overflow: hidden;
-  line-height: 8px;
-  -webkit-user-select: none;
-  -moz-user-select: none;
-  -ms-user-select: none;
-  -o-user-select: none;
-  user-select: none;
-  vertical-align: middle;
-  min-width: 100px;
-}
-.has-switch.switch-mini {
-  min-width: 72px;
-}
-.has-switch.switch-mini i.switch-mini-icons {
-  height: 1.20em;
-  line-height: 9px;
-  vertical-align: text-top;
-  text-align: center;
-  transform: scale(0.6);
-  margin-top: -1px;
-  margin-bottom: -1px;
-}
-.has-switch.switch-small {
-  min-width: 80px;
-}
-.has-switch.switch-large {
-  min-width: 120px;
-}
-.has-switch.deactivate {
-  opacity: 0.5;
-  filter: alpha(opacity=50);
-  cursor: default !important;
-}
-.has-switch.deactivate label,
-.has-switch.deactivate span {
-  cursor: default !important;
-}
-.has-switch > div {
-  display: inline-block;
-  width: 150%;
-  position: relative;
-  top: 0;
-}
-.has-switch > div.switch-animate {
-  -webkit-transition: left 0.5s;
-  -moz-transition: left 0.5s;
-  -o-transition: left 0.5s;
-  transition: left 0.5s;
-}
-.has-switch > div.switch-off {
-  left: -50%;
-}
-.has-switch > div.switch-on {
-  left: 0%;
-}
-.has-switch input[type=radio],
-.has-switch input[type=checkbox] {
-  display: none;
-}
-.has-switch span,
-.has-switch label {
-  -webkit-box-sizing: border-box;
-  -moz-box-sizing: border-box;
-  box-sizing: border-box;
-  cursor: pointer;
-  position: relative;
-  display: inline-block;
-  height: 100%;
-  padding-bottom: 4px;
-  padding-top: 4px;
-  font-size: 14px;
-  line-height: 20px;
-}
-.has-switch span.switch-mini,
-.has-switch label.switch-mini {
-  padding-bottom: 4px;
-  padding-top: 4px;
-  font-size: 10px;
-  line-height: 9px;
-}
-.has-switch span.switch-small,
-.has-switch label.switch-small {
-  padding-bottom: 3px;
-  padding-top: 3px;
-  font-size: 12px;
-  line-height: 18px;
-}
-.has-switch span.switch-large,
-.has-switch label.switch-large {
-  padding-bottom: 9px;
-  padding-top: 9px;
-  font-size: 16px;
-  line-height: normal;
-}
-.has-switch label {
-  text-align: center;
-  margin-top: -1px;
-  margin-bottom: -1px;
-  z-index: 100;
-  width: 34%;
-  border-left: 1px solid #cccccc;
-  border-right: 1px solid #cccccc;
-  color: #333333;
-  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-  background-color: #f5f5f5;
-  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
-  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
-  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
-  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
-  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  *background-color: #e6e6e6;
-  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-}
-.has-switch .switch-on label {
-  border-right: none;
-}
-.has-switch .switch-off label {
-  border-left: none;
-}
-.has-switch label:hover,
-.has-switch label:focus,
-.has-switch label:active,
-.has-switch label.active,
-.has-switch label.disabled,
-.has-switch label[disabled] {
-  color: #333333;
-  background-color: #e6e6e6;
-  *background-color: #d9d9d9;
-}
-.has-switch label:active,
-.has-switch label.active {
-  background-color: #cccccc \9;
-}
-.has-switch label i {
-  color: #000;
-  text-shadow: 0 1px 0 #fff;
-  line-height: 18px;
-  pointer-events: none;
-}
-.has-switch span {
-  text-align: center;
-  z-index: 1;
-  width: 33%;
-}
-.has-switch span.switch-left {
-  -webkit-border-top-left-radius: 4px;
-  -moz-border-radius-topleft: 4px;
-  border-top-left-radius: 4px;
-  -webkit-border-bottom-left-radius: 4px;
-  -moz-border-radius-bottomleft: 4px;
-  border-bottom-left-radius: 4px;
-}
-.has-switch span.switch-right {
-  color: #333333;
-  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
-  background-color: #f0f0f0;
-  background-image: -moz-linear-gradient(top, #e6e6e6, #ffffff);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#ffffff));
-  background-image: -webkit-linear-gradient(top, #e6e6e6, #ffffff);
-  background-image: -o-linear-gradient(top, #e6e6e6, #ffffff);
-  background-image: linear-gradient(to bottom, #e6e6e6, #ffffff);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);
-  border-color: #ffffff #ffffff #d9d9d9;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  *background-color: #ffffff;
-  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-}
-.has-switch span.switch-right:hover,
-.has-switch span.switch-right:focus,
-.has-switch span.switch-right:active,
-.has-switch span.switch-right.active,
-.has-switch span.switch-right.disabled,
-.has-switch span.switch-right[disabled] {
-  color: #333333;
-  background-color: #ffffff;
-  *background-color: #f2f2f2;
-}
-.has-switch span.switch-right:active,
-.has-switch span.switch-right.active {
-  background-color: #e6e6e6 \9;
-}
-.has-switch span.switch-primary,
-.has-switch span.switch-left {
-  color: #ffffff;
-  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-  background-color: #005fcc;
-  background-image: -moz-linear-gradient(top, #0044cc, #0088cc);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0044cc), to(#0088cc));
-  background-image: -webkit-linear-gradient(top, #0044cc, #0088cc);
-  background-image: -o-linear-gradient(top, #0044cc, #0088cc);
-  background-image: linear-gradient(to bottom, #0044cc, #0088cc);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0044cc', endColorstr='#ff0088cc', GradientType=0);
-  border-color: #0088cc #0088cc #005580;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  *background-color: #0088cc;
-  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-}
-.has-switch span.switch-primary:hover,
-.has-switch span.switch-left:hover,
-.has-switch span.switch-primary:focus,
-.has-switch span.switch-left:focus,
-.has-switch span.switch-primary:active,
-.has-switch span.switch-left:active,
-.has-switch span.switch-primary.active,
-.has-switch span.switch-left.active,
-.has-switch span.switch-primary.disabled,
-.has-switch span.switch-left.disabled,
-.has-switch span.switch-primary[disabled],
-.has-switch span.switch-left[disabled] {
-  color: #ffffff;
-  background-color: #0088cc;
-  *background-color: #0077b3;
-}
-.has-switch span.switch-primary:active,
-.has-switch span.switch-left:active,
-.has-switch span.switch-primary.active,
-.has-switch span.switch-left.active {
-  background-color: #006699 \9;
-}
-.has-switch span.switch-info {
-  color: #ffffff;
-  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-  background-color: #41a7c5;
-  background-image: -moz-linear-gradient(top, #2f96b4, #5bc0de);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#2f96b4), to(#5bc0de));
-  background-image: -webkit-linear-gradient(top, #2f96b4, #5bc0de);
-  background-image: -o-linear-gradient(top, #2f96b4, #5bc0de);
-  background-image: linear-gradient(to bottom, #2f96b4, #5bc0de);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2f96b4', endColorstr='#ff5bc0de', GradientType=0);
-  border-color: #5bc0de #5bc0de #28a1c5;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  *background-color: #5bc0de;
-  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-}
-.has-switch span.switch-info:hover,
-.has-switch span.switch-info:focus,
-.has-switch span.switch-info:active,
-.has-switch span.switch-info.active,
-.has-switch span.switch-info.disabled,
-.has-switch span.switch-info[disabled] {
-  color: #ffffff;
-  background-color: #5bc0de;
-  *background-color: #46b8da;
-}
-.has-switch span.switch-info:active,
-.has-switch span.switch-info.active {
-  background-color: #31b0d5 \9;
-}
-.has-switch span.switch-success {
-  color: #ffffff;
-  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-  background-color: #58b058;
-  background-image: -moz-linear-gradient(top, #51a351, #62c462);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#51a351), to(#62c462));
-  background-image: -webkit-linear-gradient(top, #51a351, #62c462);
-  background-image: -o-linear-gradient(top, #51a351, #62c462);
-  background-image: linear-gradient(to bottom, #51a351, #62c462);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff51a351', endColorstr='#ff62c462', GradientType=0);
-  border-color: #62c462 #62c462 #3b9e3b;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  *background-color: #62c462;
-  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-}
-.has-switch span.switch-success:hover,
-.has-switch span.switch-success:focus,
-.has-switch span.switch-success:active,
-.has-switch span.switch-success.active,
-.has-switch span.switch-success.disabled,
-.has-switch span.switch-success[disabled] {
-  color: #ffffff;
-  background-color: #62c462;
-  *background-color: #4fbd4f;
-}
-.has-switch span.switch-success:active,
-.has-switch span.switch-success.active {
-  background-color: #42b142 \9;
-}
-.has-switch span.switch-warning {
-  color: #ffffff;
-  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-  background-color: #f9a123;
-  background-image: -moz-linear-gradient(top, #f89406, #fbb450);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f89406), to(#fbb450));
-  background-image: -webkit-linear-gradient(top, #f89406, #fbb450);
-  background-image: -o-linear-gradient(top, #f89406, #fbb450);
-  background-image: linear-gradient(to bottom, #f89406, #fbb450);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff89406', endColorstr='#fffbb450', GradientType=0);
-  border-color: #fbb450 #fbb450 #f89406;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  *background-color: #fbb450;
-  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-}
-.has-switch span.switch-warning:hover,
-.has-switch span.switch-warning:focus,
-.has-switch span.switch-warning:active,
-.has-switch span.switch-warning.active,
-.has-switch span.switch-warning.disabled,
-.has-switch span.switch-warning[disabled] {
-  color: #ffffff;
-  background-color: #fbb450;
-  *background-color: #faa937;
-}
-.has-switch span.switch-warning:active,
-.has-switch span.switch-warning.active {
-  background-color: #fa9f1e \9;
-}
-.has-switch span.switch-danger {
-  color: #ffffff;
-  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-  background-color: #d14641;
-  background-image: -moz-linear-gradient(top, #bd362f, #ee5f5b);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#bd362f), to(#ee5f5b));
-  background-image: -webkit-linear-gradient(top, #bd362f, #ee5f5b);
-  background-image: -o-linear-gradient(top, #bd362f, #ee5f5b);
-  background-image: linear-gradient(to bottom, #bd362f, #ee5f5b);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbd362f', endColorstr='#ffee5f5b', GradientType=0);
-  border-color: #ee5f5b #ee5f5b #e51d18;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  *background-color: #ee5f5b;
-  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-}
-.has-switch span.switch-danger:hover,
-.has-switch span.switch-danger:focus,
-.has-switch span.switch-danger:active,
-.has-switch span.switch-danger.active,
-.has-switch span.switch-danger.disabled,
-.has-switch span.switch-danger[disabled] {
-  color: #ffffff;
-  background-color: #ee5f5b;
-  *background-color: #ec4844;
-}
-.has-switch span.switch-danger:active,
-.has-switch span.switch-danger.active {
-  background-color: #e9322d \9;
-}
-.has-switch span.switch-default {
-  color: #333333;
-  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
-  background-color: #f0f0f0;
-  background-image: -moz-linear-gradient(top, #e6e6e6, #ffffff);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#ffffff));
-  background-image: -webkit-linear-gradient(top, #e6e6e6, #ffffff);
-  background-image: -o-linear-gradient(top, #e6e6e6, #ffffff);
-  background-image: linear-gradient(to bottom, #e6e6e6, #ffffff);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0);
-  border-color: #ffffff #ffffff #d9d9d9;
-  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-  *background-color: #ffffff;
-  /* Darken IE7 buttons by default so they stand out more given they won't have borders */
-
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-}
-.has-switch span.switch-default:hover,
-.has-switch span.switch-default:focus,
-.has-switch span.switch-default:active,
-.has-switch span.switch-default.active,
-.has-switch span.switch-default.disabled,
-.has-switch span.switch-default[disabled] {
-  color: #333333;
-  background-color: #ffffff;
-  *background-color: #f2f2f2;
-}
-.has-switch span.switch-default:active,
-.has-switch span.switch-default.active {
-  background-color: #e6e6e6 \9;
-}

+ 0 - 153
static/stylesheets/flat-ui-fonts.css

@@ -1,153 +0,0 @@
-@import url("https://fonts.googleapis.com/css?family=Lato:400,700,700italic,900,400italic,300");
-@font-face {
-  font-family: 'Flat-UI-Icons';
-  src: url('../fonts/Flat-UI-Icons.eot');
-  src: url('../fonts/Flat-UI-Icons.eot?#iefix') format('embedded-opentype'), url('../fonts/Flat-UI-Icons.woff') format('woff'), url('../fonts/Flat-UI-Icons.ttf') format('truetype'), url('../fonts/Flat-UI-Icons.svg#Flat-UI-Icons') format('svg');
-  font-weight: normal;
-  font-style: normal;
-}
-/* Use the following CSS code if you want to use data attributes for inserting your icons */
-[data-icon]:before {
-  font-family: 'Flat-UI-Icons';
-  content: attr(data-icon);
-  speak: none;
-  font-weight: normal;
-  font-variant: normal;
-  text-transform: none;
-  -webkit-font-smoothing: antialiased;
-}
-/* Use the following CSS code if you want to have a class per icon */
-/*
-Instead of a list of all class selectors,
-you can use the generic selector below, but it's slower:
-[class*="fui-"] {
-*/
-.fui-arrow-right,
-.fui-arrow-left,
-.fui-cmd,
-.fui-check-inverted,
-.fui-heart,
-.fui-location,
-.fui-plus,
-.fui-check,
-.fui-cross,
-.fui-list,
-.fui-new,
-.fui-video,
-.fui-photo,
-.fui-volume,
-.fui-time,
-.fui-eye,
-.fui-chat,
-.fui-search,
-.fui-user,
-.fui-mail,
-.fui-lock,
-.fui-gear,
-.fui-radio-unchecked,
-.fui-radio-checked,
-.fui-checkbox-unchecked,
-.fui-checkbox-checked,
-.fui-calendar-solid,
-.fui-pause,
-.fui-play,
-.fui-check-inverted-2 {
-  display: inline-block;
-  font-family: 'Flat-UI-Icons';
-  speak: none;
-  font-style: normal;
-  font-weight: normal;
-  font-variant: normal;
-  text-transform: none;
-  -webkit-font-smoothing: antialiased;
-}
-.fui-arrow-right:before {
-  content: "\e02c";
-}
-.fui-arrow-left:before {
-  content: "\e02d";
-}
-.fui-cmd:before {
-  content: "\e02f";
-}
-.fui-check-inverted:before {
-  content: "\e006";
-}
-.fui-heart:before {
-  content: "\e007";
-}
-.fui-location:before {
-  content: "\e008";
-}
-.fui-plus:before {
-  content: "\e009";
-}
-.fui-check:before {
-  content: "\e00a";
-}
-.fui-cross:before {
-  content: "\e00b";
-}
-.fui-list:before {
-  content: "\e00c";
-}
-.fui-new:before {
-  content: "\e00d";
-}
-.fui-video:before {
-  content: "\e00e";
-}
-.fui-photo:before {
-  content: "\e00f";
-}
-.fui-volume:before {
-  content: "\e010";
-}
-.fui-time:before {
-  content: "\e011";
-}
-.fui-eye:before {
-  content: "\e012";
-}
-.fui-chat:before {
-  content: "\e013";
-}
-.fui-search:before {
-  content: "\e01c";
-}
-.fui-user:before {
-  content: "\e01d";
-}
-.fui-mail:before {
-  content: "\e01e";
-}
-.fui-lock:before {
-  content: "\e01f";
-}
-.fui-gear:before {
-  content: "\e024";
-}
-.fui-radio-unchecked:before {
-  content: "\e02b";
-}
-.fui-radio-checked:before {
-  content: "\e032";
-}
-.fui-checkbox-unchecked:before {
-  content: "\e033";
-}
-.fui-checkbox-checked:before {
-  content: "\e034";
-}
-.fui-calendar-solid:before {
-  content: "\e022";
-}
-.fui-pause:before {
-  content: "\e03b";
-}
-.fui-play:before {
-  content: "\e03c";
-}
-.fui-check-inverted-2:before {
-  content: "\e000";
-}

Някои файлове не бяха показани, защото твърде много файлове са промени