Merge pull request #261 from coreywagehoft/d045e1be56130693dc48bae494654b900a13fc81
Upgrading Twitter Bootstrap to v.2.0.0
This commit is contained in:
567
css/bootstrap/bootstrap-responsive.css
vendored
Normal file
567
css/bootstrap/bootstrap-responsive.css
vendored
Normal file
@@ -0,0 +1,567 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap Responsive v2.0.0
|
||||||
|
*
|
||||||
|
* Copyright 2012 Twitter, Inc
|
||||||
|
* Licensed under the Apache License v2.0
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
|
*/
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.nav-collapse {
|
||||||
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
.page-header h1 small {
|
||||||
|
display: block;
|
||||||
|
line-height: 18px;
|
||||||
|
}
|
||||||
|
input[class*="span"],
|
||||||
|
select[class*="span"],
|
||||||
|
textarea[class*="span"],
|
||||||
|
.uneditable-input {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 28px;
|
||||||
|
/* Make inputs at least the height of their button counterpart */
|
||||||
|
|
||||||
|
/* Makes inputs behave like true block-level elements */
|
||||||
|
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
/* Older Webkit */
|
||||||
|
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
/* Older FF */
|
||||||
|
|
||||||
|
-ms-box-sizing: border-box;
|
||||||
|
/* IE8 */
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
/* CSS3 spec*/
|
||||||
|
|
||||||
|
}
|
||||||
|
.input-prepend input[class*="span"], .input-append input[class*="span"] {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
input[type="checkbox"], input[type="radio"] {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
.form-horizontal .control-group > label {
|
||||||
|
float: none;
|
||||||
|
width: auto;
|
||||||
|
padding-top: 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.form-horizontal .controls {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.form-horizontal .control-list {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
.form-horizontal .form-actions {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
.modal {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
left: 10px;
|
||||||
|
right: 10px;
|
||||||
|
width: auto;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.modal.fade.in {
|
||||||
|
top: auto;
|
||||||
|
}
|
||||||
|
.modal-header .close {
|
||||||
|
padding: 10px;
|
||||||
|
margin: -10px;
|
||||||
|
}
|
||||||
|
.carousel-caption {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.container {
|
||||||
|
width: auto;
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
.row-fluid {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.row {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.row > [class*="span"], .row-fluid > [class*="span"] {
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
width: auto;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) and (max-width: 980px) {
|
||||||
|
.row {
|
||||||
|
margin-left: -20px;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
.row:before, .row:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
.row:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
[class*="span"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
.span1 {
|
||||||
|
width: 42px;
|
||||||
|
}
|
||||||
|
.span2 {
|
||||||
|
width: 104px;
|
||||||
|
}
|
||||||
|
.span3 {
|
||||||
|
width: 166px;
|
||||||
|
}
|
||||||
|
.span4 {
|
||||||
|
width: 228px;
|
||||||
|
}
|
||||||
|
.span5 {
|
||||||
|
width: 290px;
|
||||||
|
}
|
||||||
|
.span6 {
|
||||||
|
width: 352px;
|
||||||
|
}
|
||||||
|
.span7 {
|
||||||
|
width: 414px;
|
||||||
|
}
|
||||||
|
.span8 {
|
||||||
|
width: 476px;
|
||||||
|
}
|
||||||
|
.span9 {
|
||||||
|
width: 538px;
|
||||||
|
}
|
||||||
|
.span10 {
|
||||||
|
width: 600px;
|
||||||
|
}
|
||||||
|
.span11 {
|
||||||
|
width: 662px;
|
||||||
|
}
|
||||||
|
.span12, .container {
|
||||||
|
width: 724px;
|
||||||
|
}
|
||||||
|
.offset1 {
|
||||||
|
margin-left: 82px;
|
||||||
|
}
|
||||||
|
.offset2 {
|
||||||
|
margin-left: 144px;
|
||||||
|
}
|
||||||
|
.offset3 {
|
||||||
|
margin-left: 206px;
|
||||||
|
}
|
||||||
|
.offset4 {
|
||||||
|
margin-left: 268px;
|
||||||
|
}
|
||||||
|
.offset5 {
|
||||||
|
margin-left: 330px;
|
||||||
|
}
|
||||||
|
.offset6 {
|
||||||
|
margin-left: 392px;
|
||||||
|
}
|
||||||
|
.offset7 {
|
||||||
|
margin-left: 454px;
|
||||||
|
}
|
||||||
|
.offset8 {
|
||||||
|
margin-left: 516px;
|
||||||
|
}
|
||||||
|
.offset9 {
|
||||||
|
margin-left: 578px;
|
||||||
|
}
|
||||||
|
.offset10 {
|
||||||
|
margin-left: 640px;
|
||||||
|
}
|
||||||
|
.offset11 {
|
||||||
|
margin-left: 702px;
|
||||||
|
}
|
||||||
|
.row-fluid {
|
||||||
|
width: 100%;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
.row-fluid:before, .row-fluid:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
.row-fluid:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.row-fluid > [class*="span"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: 2.762430939%;
|
||||||
|
}
|
||||||
|
.row-fluid > [class*="span"]:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.row-fluid .span1 {
|
||||||
|
width: 5.801104972%;
|
||||||
|
}
|
||||||
|
.row-fluid .span2 {
|
||||||
|
width: 14.364640883%;
|
||||||
|
}
|
||||||
|
.row-fluid .span3 {
|
||||||
|
width: 22.928176794%;
|
||||||
|
}
|
||||||
|
.row-fluid .span4 {
|
||||||
|
width: 31.491712705%;
|
||||||
|
}
|
||||||
|
.row-fluid .span5 {
|
||||||
|
width: 40.055248616%;
|
||||||
|
}
|
||||||
|
.row-fluid .span6 {
|
||||||
|
width: 48.618784527%;
|
||||||
|
}
|
||||||
|
.row-fluid .span7 {
|
||||||
|
width: 57.182320438000005%;
|
||||||
|
}
|
||||||
|
.row-fluid .span8 {
|
||||||
|
width: 65.74585634900001%;
|
||||||
|
}
|
||||||
|
.row-fluid .span9 {
|
||||||
|
width: 74.30939226%;
|
||||||
|
}
|
||||||
|
.row-fluid .span10 {
|
||||||
|
width: 82.87292817100001%;
|
||||||
|
}
|
||||||
|
.row-fluid .span11 {
|
||||||
|
width: 91.436464082%;
|
||||||
|
}
|
||||||
|
.row-fluid .span12 {
|
||||||
|
width: 99.999999993%;
|
||||||
|
}
|
||||||
|
input.span1, textarea.span1, .uneditable-input.span1 {
|
||||||
|
width: 32px;
|
||||||
|
}
|
||||||
|
input.span2, textarea.span2, .uneditable-input.span2 {
|
||||||
|
width: 94px;
|
||||||
|
}
|
||||||
|
input.span3, textarea.span3, .uneditable-input.span3 {
|
||||||
|
width: 156px;
|
||||||
|
}
|
||||||
|
input.span4, textarea.span4, .uneditable-input.span4 {
|
||||||
|
width: 218px;
|
||||||
|
}
|
||||||
|
input.span5, textarea.span5, .uneditable-input.span5 {
|
||||||
|
width: 280px;
|
||||||
|
}
|
||||||
|
input.span6, textarea.span6, .uneditable-input.span6 {
|
||||||
|
width: 342px;
|
||||||
|
}
|
||||||
|
input.span7, textarea.span7, .uneditable-input.span7 {
|
||||||
|
width: 404px;
|
||||||
|
}
|
||||||
|
input.span8, textarea.span8, .uneditable-input.span8 {
|
||||||
|
width: 466px;
|
||||||
|
}
|
||||||
|
input.span9, textarea.span9, .uneditable-input.span9 {
|
||||||
|
width: 528px;
|
||||||
|
}
|
||||||
|
input.span10, textarea.span10, .uneditable-input.span10 {
|
||||||
|
width: 590px;
|
||||||
|
}
|
||||||
|
input.span11, textarea.span11, .uneditable-input.span11 {
|
||||||
|
width: 652px;
|
||||||
|
}
|
||||||
|
input.span12, textarea.span12, .uneditable-input.span12 {
|
||||||
|
width: 714px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 980px) {
|
||||||
|
body {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top {
|
||||||
|
position: static;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top .navbar-inner {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
.navbar .container {
|
||||||
|
width: auto;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.navbar .brand {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
margin: 0 0 0 -5px;
|
||||||
|
}
|
||||||
|
.navbar .nav-collapse {
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
.navbar .nav {
|
||||||
|
float: none;
|
||||||
|
margin: 0 0 9px;
|
||||||
|
}
|
||||||
|
.navbar .nav > li {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
.navbar .nav > li > a {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
.navbar .nav > .divider-vertical {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.navbar .nav > li > a, .navbar .dropdown-menu a {
|
||||||
|
padding: 6px 15px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #999999;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
.navbar .dropdown-menu li + li a {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
.navbar .nav > li > a:hover, .navbar .dropdown-menu a:hover {
|
||||||
|
background-color: #222222;
|
||||||
|
}
|
||||||
|
.navbar .dropdown-menu {
|
||||||
|
position: static;
|
||||||
|
top: auto;
|
||||||
|
left: auto;
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
max-width: none;
|
||||||
|
margin: 0 15px;
|
||||||
|
padding: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
-webkit-border-radius: 0;
|
||||||
|
-moz-border-radius: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
.navbar .dropdown-menu:before, .navbar .dropdown-menu:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.navbar .dropdown-menu .divider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.navbar-form, .navbar-search {
|
||||||
|
float: none;
|
||||||
|
padding: 9px 15px;
|
||||||
|
margin: 9px 0;
|
||||||
|
border-top: 1px solid #222222;
|
||||||
|
border-bottom: 1px solid #222222;
|
||||||
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
.navbar .nav.pull-right {
|
||||||
|
float: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.navbar-static .navbar-inner {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
.btn-navbar {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.nav-collapse {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 980px) {
|
||||||
|
.nav-collapse.collapse {
|
||||||
|
height: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.row {
|
||||||
|
margin-left: -30px;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
.row:before, .row:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
.row:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
[class*="span"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
.span1 {
|
||||||
|
width: 70px;
|
||||||
|
}
|
||||||
|
.span2 {
|
||||||
|
width: 170px;
|
||||||
|
}
|
||||||
|
.span3 {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
.span4 {
|
||||||
|
width: 370px;
|
||||||
|
}
|
||||||
|
.span5 {
|
||||||
|
width: 470px;
|
||||||
|
}
|
||||||
|
.span6 {
|
||||||
|
width: 570px;
|
||||||
|
}
|
||||||
|
.span7 {
|
||||||
|
width: 670px;
|
||||||
|
}
|
||||||
|
.span8 {
|
||||||
|
width: 770px;
|
||||||
|
}
|
||||||
|
.span9 {
|
||||||
|
width: 870px;
|
||||||
|
}
|
||||||
|
.span10 {
|
||||||
|
width: 970px;
|
||||||
|
}
|
||||||
|
.span11 {
|
||||||
|
width: 1070px;
|
||||||
|
}
|
||||||
|
.span12, .container {
|
||||||
|
width: 1170px;
|
||||||
|
}
|
||||||
|
.offset1 {
|
||||||
|
margin-left: 130px;
|
||||||
|
}
|
||||||
|
.offset2 {
|
||||||
|
margin-left: 230px;
|
||||||
|
}
|
||||||
|
.offset3 {
|
||||||
|
margin-left: 330px;
|
||||||
|
}
|
||||||
|
.offset4 {
|
||||||
|
margin-left: 430px;
|
||||||
|
}
|
||||||
|
.offset5 {
|
||||||
|
margin-left: 530px;
|
||||||
|
}
|
||||||
|
.offset6 {
|
||||||
|
margin-left: 630px;
|
||||||
|
}
|
||||||
|
.offset7 {
|
||||||
|
margin-left: 730px;
|
||||||
|
}
|
||||||
|
.offset8 {
|
||||||
|
margin-left: 830px;
|
||||||
|
}
|
||||||
|
.offset9 {
|
||||||
|
margin-left: 930px;
|
||||||
|
}
|
||||||
|
.offset10 {
|
||||||
|
margin-left: 1030px;
|
||||||
|
}
|
||||||
|
.offset11 {
|
||||||
|
margin-left: 1130px;
|
||||||
|
}
|
||||||
|
.row-fluid {
|
||||||
|
width: 100%;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
.row-fluid:before, .row-fluid:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
.row-fluid:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.row-fluid > [class*="span"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: 2.564102564%;
|
||||||
|
}
|
||||||
|
.row-fluid > [class*="span"]:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.row-fluid .span1 {
|
||||||
|
width: 5.982905983%;
|
||||||
|
}
|
||||||
|
.row-fluid .span2 {
|
||||||
|
width: 14.529914530000001%;
|
||||||
|
}
|
||||||
|
.row-fluid .span3 {
|
||||||
|
width: 23.076923077%;
|
||||||
|
}
|
||||||
|
.row-fluid .span4 {
|
||||||
|
width: 31.623931624%;
|
||||||
|
}
|
||||||
|
.row-fluid .span5 {
|
||||||
|
width: 40.170940171000005%;
|
||||||
|
}
|
||||||
|
.row-fluid .span6 {
|
||||||
|
width: 48.717948718%;
|
||||||
|
}
|
||||||
|
.row-fluid .span7 {
|
||||||
|
width: 57.264957265%;
|
||||||
|
}
|
||||||
|
.row-fluid .span8 {
|
||||||
|
width: 65.81196581200001%;
|
||||||
|
}
|
||||||
|
.row-fluid .span9 {
|
||||||
|
width: 74.358974359%;
|
||||||
|
}
|
||||||
|
.row-fluid .span10 {
|
||||||
|
width: 82.905982906%;
|
||||||
|
}
|
||||||
|
.row-fluid .span11 {
|
||||||
|
width: 91.45299145300001%;
|
||||||
|
}
|
||||||
|
.row-fluid .span12 {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
input.span1, textarea.span1, .uneditable-input.span1 {
|
||||||
|
width: 60px;
|
||||||
|
}
|
||||||
|
input.span2, textarea.span2, .uneditable-input.span2 {
|
||||||
|
width: 160px;
|
||||||
|
}
|
||||||
|
input.span3, textarea.span3, .uneditable-input.span3 {
|
||||||
|
width: 260px;
|
||||||
|
}
|
||||||
|
input.span4, textarea.span4, .uneditable-input.span4 {
|
||||||
|
width: 360px;
|
||||||
|
}
|
||||||
|
input.span5, textarea.span5, .uneditable-input.span5 {
|
||||||
|
width: 460px;
|
||||||
|
}
|
||||||
|
input.span6, textarea.span6, .uneditable-input.span6 {
|
||||||
|
width: 560px;
|
||||||
|
}
|
||||||
|
input.span7, textarea.span7, .uneditable-input.span7 {
|
||||||
|
width: 660px;
|
||||||
|
}
|
||||||
|
input.span8, textarea.span8, .uneditable-input.span8 {
|
||||||
|
width: 760px;
|
||||||
|
}
|
||||||
|
input.span9, textarea.span9, .uneditable-input.span9 {
|
||||||
|
width: 860px;
|
||||||
|
}
|
||||||
|
input.span10, textarea.span10, .uneditable-input.span10 {
|
||||||
|
width: 960px;
|
||||||
|
}
|
||||||
|
input.span11, textarea.span11, .uneditable-input.span11 {
|
||||||
|
width: 1060px;
|
||||||
|
}
|
||||||
|
input.span12, textarea.span12, .uneditable-input.span12 {
|
||||||
|
width: 1160px;
|
||||||
|
}
|
||||||
|
.thumbnails {
|
||||||
|
margin-left: -30px;
|
||||||
|
}
|
||||||
|
.thumbnails > li {
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
28
css/bootstrap/lib/accordion.less
Normal file
28
css/bootstrap/lib/accordion.less
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
// ACCORDION
|
||||||
|
// ---------
|
||||||
|
|
||||||
|
|
||||||
|
// Parent container
|
||||||
|
.accordion {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Group == heading + body
|
||||||
|
.accordion-group {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
.border-radius(4px);
|
||||||
|
}
|
||||||
|
.accordion-heading {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
.accordion-heading .accordion-toggle {
|
||||||
|
display: block;
|
||||||
|
padding: 8px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inner needs the styles because you can't animate properly with any styles on the element
|
||||||
|
.accordion-inner {
|
||||||
|
padding: 9px 15px;
|
||||||
|
border-top: 1px solid #e5e5e5;
|
||||||
|
}
|
||||||
70
css/bootstrap/lib/alerts.less
Normal file
70
css/bootstrap/lib/alerts.less
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
// ALERT STYLES
|
||||||
|
// ------------
|
||||||
|
|
||||||
|
// Base alert styles
|
||||||
|
.alert {
|
||||||
|
padding: 8px 35px 8px 14px;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
|
background-color: @warningBackground;
|
||||||
|
border: 1px solid @warningBorder;
|
||||||
|
.border-radius(4px);
|
||||||
|
}
|
||||||
|
.alert,
|
||||||
|
.alert-heading {
|
||||||
|
color: @warningText;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adjust close link position
|
||||||
|
.alert .close {
|
||||||
|
position: relative;
|
||||||
|
top: -2px;
|
||||||
|
right: -21px;
|
||||||
|
line-height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Alternate styles
|
||||||
|
// ----------------
|
||||||
|
|
||||||
|
.alert-success {
|
||||||
|
background-color: @successBackground;
|
||||||
|
border-color: @successBorder;
|
||||||
|
}
|
||||||
|
.alert-success,
|
||||||
|
.alert-success .alert-heading {
|
||||||
|
color: @successText;
|
||||||
|
}
|
||||||
|
.alert-danger,
|
||||||
|
.alert-error {
|
||||||
|
background-color: @errorBackground;
|
||||||
|
border-color: @errorBorder;
|
||||||
|
}
|
||||||
|
.alert-danger,
|
||||||
|
.alert-error,
|
||||||
|
.alert-danger .alert-heading,
|
||||||
|
.alert-error .alert-heading {
|
||||||
|
color: @errorText;
|
||||||
|
}
|
||||||
|
.alert-info {
|
||||||
|
background-color: @infoBackground;
|
||||||
|
border-color: @infoBorder;
|
||||||
|
}
|
||||||
|
.alert-info,
|
||||||
|
.alert-info .alert-heading {
|
||||||
|
color: @infoText;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Block alerts
|
||||||
|
// ------------------------
|
||||||
|
.alert-block {
|
||||||
|
padding-top: 14px;
|
||||||
|
padding-bottom: 14px;
|
||||||
|
}
|
||||||
|
.alert-block > p,
|
||||||
|
.alert-block > ul {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.alert-block p + p {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
22
css/bootstrap/lib/breadcrumbs.less
Normal file
22
css/bootstrap/lib/breadcrumbs.less
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// BREADCRUMBS
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
padding: 7px 14px;
|
||||||
|
margin: 0 0 @baseLineHeight;
|
||||||
|
#gradient > .vertical(@white, #f5f5f5);
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
.border-radius(3px);
|
||||||
|
.box-shadow(inset 0 1px 0 @white);
|
||||||
|
li {
|
||||||
|
display: inline;
|
||||||
|
text-shadow: 0 1px 0 @white;
|
||||||
|
}
|
||||||
|
.divider {
|
||||||
|
padding: 0 5px;
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
.active a {
|
||||||
|
color: @grayDark;
|
||||||
|
}
|
||||||
|
}
|
||||||
147
css/bootstrap/lib/button-groups.less
Normal file
147
css/bootstrap/lib/button-groups.less
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
// BUTTON GROUPS
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
|
||||||
|
// Make the div behave like a button
|
||||||
|
.btn-group {
|
||||||
|
position: relative;
|
||||||
|
.clearfix(); // clears the floated buttons
|
||||||
|
.ie7-restore-left-whitespace();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Space out series of button groups
|
||||||
|
.btn-group + .btn-group {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optional: Group multiple button groups together for a toolbar
|
||||||
|
.btn-toolbar {
|
||||||
|
margin-top: @baseLineHeight / 2;
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
.btn-group {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Float them, remove border radius, then re-add to first and last elements
|
||||||
|
.btn-group .btn {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
margin-left: -1px;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
||||||
|
.btn-group .btn:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
-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;
|
||||||
|
}
|
||||||
|
.btn-group .btn:last-child,
|
||||||
|
.btn-group .dropdown-toggle {
|
||||||
|
-webkit-border-top-right-radius: 4px;
|
||||||
|
-moz-border-radius-topright: 4px;
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
-webkit-border-bottom-right-radius: 4px;
|
||||||
|
-moz-border-radius-bottomright: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
}
|
||||||
|
// Reset corners for large buttons
|
||||||
|
.btn-group .btn.large:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
-webkit-border-top-left-radius: 6px;
|
||||||
|
-moz-border-radius-topleft: 6px;
|
||||||
|
border-top-left-radius: 6px;
|
||||||
|
-webkit-border-bottom-left-radius: 6px;
|
||||||
|
-moz-border-radius-bottomleft: 6px;
|
||||||
|
border-bottom-left-radius: 6px;
|
||||||
|
}
|
||||||
|
.btn-group .btn.large:last-child,
|
||||||
|
.btn-group .large.dropdown-toggle {
|
||||||
|
-webkit-border-top-right-radius: 6px;
|
||||||
|
-moz-border-radius-topright: 6px;
|
||||||
|
border-top-right-radius: 6px;
|
||||||
|
-webkit-border-bottom-right-radius: 6px;
|
||||||
|
-moz-border-radius-bottomright: 6px;
|
||||||
|
border-bottom-right-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// On hover/focus/active, bring the proper btn to front
|
||||||
|
.btn-group .btn:hover,
|
||||||
|
.btn-group .btn:focus,
|
||||||
|
.btn-group .btn:active,
|
||||||
|
.btn-group .btn.active {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// On active and open, don't show outline
|
||||||
|
.btn-group .dropdown-toggle:active,
|
||||||
|
.btn-group.open .dropdown-toggle {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Split button dropdowns
|
||||||
|
// ----------------------
|
||||||
|
|
||||||
|
// Give the line between buttons some depth
|
||||||
|
.btn-group .dropdown-toggle {
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
@shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
*padding-top: 5px;
|
||||||
|
*padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group.open {
|
||||||
|
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
||||||
|
// make the menu appear below buttons that appeared later on the page
|
||||||
|
*z-index: @zindexDropdown;
|
||||||
|
|
||||||
|
// Reposition menu on open and round all corners
|
||||||
|
.dropdown-menu {
|
||||||
|
display: block;
|
||||||
|
margin-top: 1px;
|
||||||
|
.border-radius(5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-toggle {
|
||||||
|
background-image: none;
|
||||||
|
@shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reposition the caret
|
||||||
|
.btn .caret {
|
||||||
|
margin-top: 7px;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.btn:hover .caret,
|
||||||
|
.open.btn-group .caret {
|
||||||
|
.opacity(100);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Account for other colors
|
||||||
|
.btn-primary,
|
||||||
|
.btn-danger,
|
||||||
|
.btn-info,
|
||||||
|
.btn-success {
|
||||||
|
.caret {
|
||||||
|
border-top-color: @white;
|
||||||
|
.opacity(75);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Small button dropdowns
|
||||||
|
.btn-small .caret {
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
165
css/bootstrap/lib/buttons.less
Normal file
165
css/bootstrap/lib/buttons.less
Normal file
@@ -0,0 +1,165 @@
|
|||||||
|
// BUTTON STYLES
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base styles
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Core
|
||||||
|
.btn {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 4px 10px 4px;
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @grayDark;
|
||||||
|
text-align: center;
|
||||||
|
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
||||||
|
#gradient > .vertical-three-colors(@white, @white, 25%, darken(@white, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-bottom-color: #bbb;
|
||||||
|
.border-radius(4px);
|
||||||
|
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
// Give IE7 some love
|
||||||
|
.ie7-restore-left-whitespace();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover state
|
||||||
|
.btn:hover {
|
||||||
|
color: @grayDark;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: darken(@white, 10%);
|
||||||
|
background-position: 0 -15px;
|
||||||
|
|
||||||
|
// transition is only when going to hover, otherwise the background
|
||||||
|
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
||||||
|
.transition(background-position .1s linear);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Focus state for keyboard and accessibility
|
||||||
|
.btn:focus {
|
||||||
|
.tab-focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active state
|
||||||
|
.btn.active,
|
||||||
|
.btn:active {
|
||||||
|
background-image: none;
|
||||||
|
@shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
background-color: darken(@white, 10%);
|
||||||
|
background-color: darken(@white, 15%) e("\9");
|
||||||
|
color: rgba(0,0,0,.5);
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Disabled state
|
||||||
|
.btn.disabled,
|
||||||
|
.btn[disabled] {
|
||||||
|
cursor: default;
|
||||||
|
background-image: none;
|
||||||
|
background-color: darken(@white, 10%);
|
||||||
|
.opacity(65);
|
||||||
|
.box-shadow(none);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Button Sizes
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Large
|
||||||
|
.btn-large {
|
||||||
|
padding: 9px 14px;
|
||||||
|
font-size: @baseFontSize + 2px;
|
||||||
|
line-height: normal;
|
||||||
|
.border-radius(5px);
|
||||||
|
}
|
||||||
|
.btn-large .icon {
|
||||||
|
margin-top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Small
|
||||||
|
.btn-small {
|
||||||
|
padding: 5px 9px;
|
||||||
|
font-size: @baseFontSize - 2px;
|
||||||
|
line-height: @baseLineHeight - 2px;
|
||||||
|
}
|
||||||
|
.btn-small .icon {
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Alternate buttons
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Set text color
|
||||||
|
// -------------------------
|
||||||
|
.btn-primary,
|
||||||
|
.btn-primary:hover,
|
||||||
|
.btn-warning,
|
||||||
|
.btn-warning:hover,
|
||||||
|
.btn-danger,
|
||||||
|
.btn-danger:hover,
|
||||||
|
.btn-success,
|
||||||
|
.btn-success:hover,
|
||||||
|
.btn-info,
|
||||||
|
.btn-info:hover {
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
|
color: @white
|
||||||
|
}
|
||||||
|
// Provide *some* extra contrast for those who can get it
|
||||||
|
.btn-primary.active,
|
||||||
|
.btn-warning.active,
|
||||||
|
.btn-danger.active,
|
||||||
|
.btn-success.active,
|
||||||
|
.btn-info.active {
|
||||||
|
color: rgba(255,255,255,.75);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the backgrounds
|
||||||
|
// -------------------------
|
||||||
|
.btn-primary {
|
||||||
|
.buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 20));
|
||||||
|
}
|
||||||
|
// Warning appears are orange
|
||||||
|
.btn-warning {
|
||||||
|
.buttonBackground(lighten(@orange, 15%), @orange);
|
||||||
|
}
|
||||||
|
// Danger and error appear as red
|
||||||
|
.btn-danger {
|
||||||
|
.buttonBackground(#ee5f5b, #bd362f);
|
||||||
|
}
|
||||||
|
// Success appears as green
|
||||||
|
.btn-success {
|
||||||
|
.buttonBackground(#62c462, #51a351);
|
||||||
|
}
|
||||||
|
// Info appears as a neutral blue
|
||||||
|
.btn-info {
|
||||||
|
.buttonBackground(#5bc0de, #2f96b4);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Cross-browser Jank
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
button.btn,
|
||||||
|
input[type="submit"].btn {
|
||||||
|
&::-moz-focus-inner {
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE7 has some default padding on button controls
|
||||||
|
*padding-top: 2px;
|
||||||
|
*padding-bottom: 2px;
|
||||||
|
&.large {
|
||||||
|
*padding-top: 7px;
|
||||||
|
*padding-bottom: 7px;
|
||||||
|
}
|
||||||
|
&.small {
|
||||||
|
*padding-top: 3px;
|
||||||
|
*padding-bottom: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
121
css/bootstrap/lib/carousel.less
Normal file
121
css/bootstrap/lib/carousel.less
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
// CAROUSEL
|
||||||
|
// --------
|
||||||
|
|
||||||
|
.carousel {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-inner {
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel {
|
||||||
|
|
||||||
|
.item {
|
||||||
|
display: none;
|
||||||
|
position: relative;
|
||||||
|
.transition(.6s ease-in-out left);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Account for jankitude on images
|
||||||
|
.item > img {
|
||||||
|
display: block;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active,
|
||||||
|
.next,
|
||||||
|
.prev { display: block; }
|
||||||
|
|
||||||
|
.active {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.next,
|
||||||
|
.prev {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.next {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
.prev {
|
||||||
|
left: -100%;
|
||||||
|
}
|
||||||
|
.next.left,
|
||||||
|
.prev.right {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active.left {
|
||||||
|
left: -100%;
|
||||||
|
}
|
||||||
|
.active.right {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Left/right controls for nav
|
||||||
|
// ---------------------------
|
||||||
|
|
||||||
|
.carousel-control {
|
||||||
|
position: absolute;
|
||||||
|
top: 40%;
|
||||||
|
left: 15px;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
margin-top: -20px;
|
||||||
|
font-size: 60px;
|
||||||
|
font-weight: 100;
|
||||||
|
line-height: 30px;
|
||||||
|
color: @white;
|
||||||
|
text-align: center;
|
||||||
|
background: @grayDarker;
|
||||||
|
border: 3px solid @white;
|
||||||
|
.border-radius(23px);
|
||||||
|
.opacity(50);
|
||||||
|
|
||||||
|
// we can't have this transition here
|
||||||
|
// because webkit cancels the carousel
|
||||||
|
// animation if you trip this while
|
||||||
|
// in the middle of another animation
|
||||||
|
// ;_;
|
||||||
|
// .transition(opacity .2s linear);
|
||||||
|
|
||||||
|
// Reposition the right one
|
||||||
|
&.right {
|
||||||
|
left: auto;
|
||||||
|
right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover state
|
||||||
|
&:hover {
|
||||||
|
color: @white;
|
||||||
|
text-decoration: none;
|
||||||
|
.opacity(90);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Caption for text below images
|
||||||
|
// -----------------------------
|
||||||
|
|
||||||
|
.carousel-caption {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
padding: 10px 15px 5px;
|
||||||
|
background: @grayDark;
|
||||||
|
background: rgba(0,0,0,.75);
|
||||||
|
}
|
||||||
|
.carousel-caption h4,
|
||||||
|
.carousel-caption p {
|
||||||
|
color: @white;
|
||||||
|
}
|
||||||
18
css/bootstrap/lib/close.less
Normal file
18
css/bootstrap/lib/close.less
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
// CLOSE ICONS
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
.close {
|
||||||
|
float: right;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @black;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
||||||
|
.opacity(20);
|
||||||
|
&:hover {
|
||||||
|
color: @black;
|
||||||
|
text-decoration: none;
|
||||||
|
.opacity(40);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
44
css/bootstrap/lib/code.less
Normal file
44
css/bootstrap/lib/code.less
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
// Code.less
|
||||||
|
// Code typography styles for the <code> and <pre> elements
|
||||||
|
// --------------------------------------------------------
|
||||||
|
|
||||||
|
// Inline and block code styles
|
||||||
|
code,
|
||||||
|
pre {
|
||||||
|
padding: 0 3px 2px;
|
||||||
|
#font > #family > .monospace;
|
||||||
|
font-size: @baseFontSize - 1;
|
||||||
|
color: @grayDark;
|
||||||
|
.border-radius(3px);
|
||||||
|
}
|
||||||
|
code {
|
||||||
|
padding: 3px 4px;
|
||||||
|
color: #d14;
|
||||||
|
background-color: #f7f7f9;
|
||||||
|
border: 1px solid #e1e1e8;
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
display: block;
|
||||||
|
padding: (@baseLineHeight - 1) / 2;
|
||||||
|
margin: 0 0 @baseLineHeight / 2;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border: 1px solid #ccc; // fallback for IE7-8
|
||||||
|
border: 1px solid rgba(0,0,0,.15);
|
||||||
|
.border-radius(4px);
|
||||||
|
white-space: pre;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-break: break-all;
|
||||||
|
|
||||||
|
// Make prettyprint styles more spaced out for readability
|
||||||
|
&.prettyprint {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Account for some code outputs that place code tags in pre tags
|
||||||
|
code {
|
||||||
|
padding: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
18
css/bootstrap/lib/component-animations.less
Normal file
18
css/bootstrap/lib/component-animations.less
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
// COMPONENT ANIMATIONS
|
||||||
|
// --------------------
|
||||||
|
|
||||||
|
.fade {
|
||||||
|
.transition(opacity .15s linear);
|
||||||
|
opacity: 0;
|
||||||
|
&.in {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapse {
|
||||||
|
.transition(height .35s ease);
|
||||||
|
position:relative;
|
||||||
|
overflow:hidden;
|
||||||
|
height: 0;
|
||||||
|
&.in { height: auto; }
|
||||||
|
}
|
||||||
131
css/bootstrap/lib/dropdowns.less
Normal file
131
css/bootstrap/lib/dropdowns.less
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
// DROPDOWN MENUS
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
||||||
|
.dropdown {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.dropdown-toggle {
|
||||||
|
// The caret makes the toggle a bit too tall in IE7
|
||||||
|
*margin-bottom: -3px;
|
||||||
|
}
|
||||||
|
.dropdown-toggle:active,
|
||||||
|
.open .dropdown-toggle {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
// Dropdown arrow/caret
|
||||||
|
.caret {
|
||||||
|
display: inline-block;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
text-indent: -99999px;
|
||||||
|
// IE7 won't do the border trick if there's a text indent, but it doesn't
|
||||||
|
// do the content that text-indent is hiding, either, so we're ok.
|
||||||
|
*text-indent: 0;
|
||||||
|
vertical-align: top;
|
||||||
|
border-left: 4px solid transparent;
|
||||||
|
border-right: 4px solid transparent;
|
||||||
|
border-top: 4px solid @black;
|
||||||
|
.opacity(30);
|
||||||
|
content: "\2193";
|
||||||
|
}
|
||||||
|
.dropdown .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
.dropdown:hover .caret,
|
||||||
|
.open.dropdown .caret {
|
||||||
|
.opacity(100);
|
||||||
|
}
|
||||||
|
// The dropdown menu (ul)
|
||||||
|
.dropdown-menu {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexDropdown;
|
||||||
|
float: left;
|
||||||
|
display: none; // none by default, but block on "open" of the menu
|
||||||
|
min-width: 160px;
|
||||||
|
max-width: 220px;
|
||||||
|
_width: 160px;
|
||||||
|
padding: 4px 0;
|
||||||
|
margin: 0; // override default ul
|
||||||
|
list-style: none;
|
||||||
|
background-color: @white;
|
||||||
|
border-color: #ccc;
|
||||||
|
border-color: rgba(0,0,0,.2);
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
.border-radius(0 0 5px 5px);
|
||||||
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
background-clip: padding-box;
|
||||||
|
*border-right-width: 2px;
|
||||||
|
*border-bottom-width: 2px;
|
||||||
|
|
||||||
|
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
||||||
|
&.bottom-up {
|
||||||
|
top: auto;
|
||||||
|
bottom: 100%;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dividers (basically an hr) within the dropdown
|
||||||
|
.divider {
|
||||||
|
height: 1px;
|
||||||
|
margin: 5px 1px;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: #e5e5e5;
|
||||||
|
border-bottom: 1px solid @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%;
|
||||||
|
*margin: -5px 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Links within the dropdown menu
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
padding: 3px 15px;
|
||||||
|
clear: both;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 18px;
|
||||||
|
color: @gray;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover state
|
||||||
|
.dropdown-menu li > a:hover,
|
||||||
|
.dropdown-menu .active > a,
|
||||||
|
.dropdown-menu .active > a:hover {
|
||||||
|
color: @white;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @linkColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open state for the dropdown
|
||||||
|
.dropdown.open {
|
||||||
|
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
||||||
|
// make the menu appear below buttons that appeared later on the page
|
||||||
|
*z-index: @zindexDropdown;
|
||||||
|
|
||||||
|
.dropdown-toggle {
|
||||||
|
color: @white;
|
||||||
|
background: #ccc;
|
||||||
|
background: rgba(0,0,0,.3);
|
||||||
|
}
|
||||||
|
.dropdown-menu {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Typeahead
|
||||||
|
.typeahead {
|
||||||
|
margin-top: 2px; // give it some space to breathe
|
||||||
|
.border-radius(4px);
|
||||||
|
}
|
||||||
8
css/bootstrap/lib/grid.less
Normal file
8
css/bootstrap/lib/grid.less
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
// GRID SYSTEM
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
// Fixed (940px)
|
||||||
|
#gridSystem > .generate(@gridColumns, @gridColumnWidth, @gridGutterWidth);
|
||||||
|
|
||||||
|
// Fluid (940px)
|
||||||
|
#fluidGridSystem > .generate(@gridColumns, @fluidGridColumnWidth, @fluidGridGutterWidth);
|
||||||
20
css/bootstrap/lib/hero-unit.less
Normal file
20
css/bootstrap/lib/hero-unit.less
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// HERO UNIT
|
||||||
|
// ---------
|
||||||
|
|
||||||
|
.hero-unit {
|
||||||
|
padding: 60px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
.border-radius(6px);
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: 60px;
|
||||||
|
line-height: 1;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 200;
|
||||||
|
line-height: @baseLineHeight * 1.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
16
css/bootstrap/lib/labels.less
Normal file
16
css/bootstrap/lib/labels.less
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
// LABELS
|
||||||
|
// ------
|
||||||
|
|
||||||
|
.label {
|
||||||
|
padding: 1px 3px 2px;
|
||||||
|
font-size: @baseFontSize * .75;
|
||||||
|
font-weight: bold;
|
||||||
|
color: @white;
|
||||||
|
text-transform: uppercase;
|
||||||
|
background-color: @grayLight;
|
||||||
|
.border-radius(3px);
|
||||||
|
}
|
||||||
|
.label-important { background-color: @errorText; }
|
||||||
|
.label-warning { background-color: @orange; }
|
||||||
|
.label-success { background-color: @successText; }
|
||||||
|
.label-info { background-color: @infoText; }
|
||||||
17
css/bootstrap/lib/layouts.less
Normal file
17
css/bootstrap/lib/layouts.less
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
//
|
||||||
|
// Layouts
|
||||||
|
// Fixed-width and fluid (with sidebar) layouts
|
||||||
|
// --------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Container (centered, fixed-width layouts)
|
||||||
|
.container {
|
||||||
|
.container-fixed();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
||||||
|
.container-fluid {
|
||||||
|
padding-left: @gridGutterWidth;
|
||||||
|
padding-right: @gridGutterWidth;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
72
css/bootstrap/lib/modals.less
Normal file
72
css/bootstrap/lib/modals.less
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
// MODALS
|
||||||
|
// ------
|
||||||
|
|
||||||
|
.modal-open {
|
||||||
|
.dropdown-menu { z-index: @zindexDropdown + @zindexModal; }
|
||||||
|
.dropdown.open { *z-index: @zindexDropdown + @zindexModal; }
|
||||||
|
.popover { z-index: @zindexPopover + @zindexModal; }
|
||||||
|
.tooltip { z-index: @zindexTooltip + @zindexModal; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexModalBackdrop;
|
||||||
|
background-color: @black;
|
||||||
|
// Fade for backdrop
|
||||||
|
&.fade { opacity: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-backdrop,
|
||||||
|
.modal-backdrop.fade.in {
|
||||||
|
.opacity(80);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal {
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
z-index: @zindexModal;
|
||||||
|
max-height: 500px;
|
||||||
|
overflow: auto;
|
||||||
|
width: 560px;
|
||||||
|
margin: -250px 0 0 -280px;
|
||||||
|
background-color: @white;
|
||||||
|
border: 1px solid #999;
|
||||||
|
border: 1px solid rgba(0,0,0,.3);
|
||||||
|
*border: 1px solid #999; /* IE6-7 */
|
||||||
|
.border-radius(6px);
|
||||||
|
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
||||||
|
.background-clip(padding-box);
|
||||||
|
&.fade {
|
||||||
|
.transition(e('opacity .3s linear, top .3s ease-out'));
|
||||||
|
top: -25%;
|
||||||
|
}
|
||||||
|
&.fade.in { top: 50%; }
|
||||||
|
}
|
||||||
|
.modal-header {
|
||||||
|
padding: 9px 15px;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
// Close icon
|
||||||
|
.close { margin-top: 2px; }
|
||||||
|
}
|
||||||
|
.modal-body {
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
.modal-footer {
|
||||||
|
padding: 14px 15px 15px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
.border-radius(0 0 6px 6px);
|
||||||
|
.box-shadow(inset 0 1px 0 @white);
|
||||||
|
.clearfix();
|
||||||
|
.btn {
|
||||||
|
float: right;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
||||||
|
}
|
||||||
|
}
|
||||||
292
css/bootstrap/lib/navbar.less
Normal file
292
css/bootstrap/lib/navbar.less
Normal file
@@ -0,0 +1,292 @@
|
|||||||
|
// NAVBAR (FIXED AND STATIC)
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// COMMON STYLES
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
overflow: visible;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
||||||
|
.navbar-inner {
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
||||||
|
.border-radius(4px);
|
||||||
|
@shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar button for toggling navbar items in responsive layouts
|
||||||
|
.btn-navbar {
|
||||||
|
display: none;
|
||||||
|
float: right;
|
||||||
|
padding: 7px 10px;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
|
.buttonBackground(@navbarBackgroundHighlight, @navbarBackground);
|
||||||
|
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
}
|
||||||
|
.btn-navbar .icon-bar {
|
||||||
|
display: block;
|
||||||
|
width: 18px;
|
||||||
|
height: 2px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
.border-radius(1px);
|
||||||
|
.box-shadow(0 1px 0 rgba(0,0,0,.25));
|
||||||
|
}
|
||||||
|
.btn-navbar .icon-bar + .icon-bar {
|
||||||
|
margin-top: 3px;
|
||||||
|
}
|
||||||
|
// Override the default collapsed state
|
||||||
|
.nav-collapse.collapse {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Brand, links, text, and buttons
|
||||||
|
.navbar {
|
||||||
|
// Hover and active states
|
||||||
|
.brand:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
// Website or project name
|
||||||
|
.brand {
|
||||||
|
float: left;
|
||||||
|
display: block;
|
||||||
|
padding: 8px 20px 12px;
|
||||||
|
margin-left: -20px; // negative indent to left-align the text down the page
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 200;
|
||||||
|
line-height: 1;
|
||||||
|
color: @white;
|
||||||
|
}
|
||||||
|
// Plain text in topbar
|
||||||
|
.navbar-text {
|
||||||
|
margin-bottom: 0;
|
||||||
|
line-height: 40px;
|
||||||
|
color: @navbarText;
|
||||||
|
a:hover {
|
||||||
|
color: @white;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Buttons in navbar
|
||||||
|
.btn,
|
||||||
|
.btn-group {
|
||||||
|
margin-top: 5px; // make buttons vertically centered in navbar
|
||||||
|
}
|
||||||
|
.btn-group .btn {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar forms
|
||||||
|
.navbar-form {
|
||||||
|
margin-bottom: 0; // remove default bottom margin
|
||||||
|
.clearfix();
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.radio,
|
||||||
|
.checkbox {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
input[type="image"],
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
margin-top: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar search
|
||||||
|
.navbar-search {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
margin-top: 6px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
.search-query {
|
||||||
|
padding: 4px 9px;
|
||||||
|
#font > .sans-serif(13px, normal, 1);
|
||||||
|
color: @white;
|
||||||
|
color: rgba(255,255,255,.75);
|
||||||
|
background: #666;
|
||||||
|
background: rgba(255,255,255,.3);
|
||||||
|
border: 1px solid #111;
|
||||||
|
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
.transition(none);
|
||||||
|
|
||||||
|
// Placeholder text gets special styles; can't be bundled together though for some reason
|
||||||
|
.placeholder(@grayLighter);
|
||||||
|
|
||||||
|
// Hover states
|
||||||
|
&:hover {
|
||||||
|
color: @white;
|
||||||
|
background-color: @grayLight;
|
||||||
|
background-color: rgba(255,255,255,.5);
|
||||||
|
}
|
||||||
|
// Focus states (we use .focused since IE8 and down doesn't support :focus)
|
||||||
|
&:focus,
|
||||||
|
&.focused {
|
||||||
|
padding: 5px 10px;
|
||||||
|
color: @grayDark;
|
||||||
|
text-shadow: 0 1px 0 @white;
|
||||||
|
background-color: @white;
|
||||||
|
border: 0;
|
||||||
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FIXED NAVBAR
|
||||||
|
// ------------
|
||||||
|
|
||||||
|
.navbar-fixed-top {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexFixedNavbar;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top .navbar-inner {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// NAVIGATION
|
||||||
|
// ----------
|
||||||
|
|
||||||
|
.navbar .nav {
|
||||||
|
position: relative;
|
||||||
|
left: 0;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
margin: 0 10px 0 0;
|
||||||
|
}
|
||||||
|
.navbar .nav.pull-right {
|
||||||
|
float: right; // redeclare due to specificity
|
||||||
|
}
|
||||||
|
.navbar .nav > li {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Links
|
||||||
|
.navbar .nav > li > a {
|
||||||
|
float: none;
|
||||||
|
padding: 10px 10px 11px;
|
||||||
|
line-height: 19px;
|
||||||
|
color: @navbarLinkColor;
|
||||||
|
text-decoration: none;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
|
}
|
||||||
|
// Hover
|
||||||
|
.navbar .nav > li > a:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
color: @navbarLinkColorHover;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active nav items
|
||||||
|
.navbar .nav .active > a,
|
||||||
|
.navbar .nav .active > a:hover {
|
||||||
|
color: @navbarLinkColorHover;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @navbarBackground;
|
||||||
|
background-color: rgba(0,0,0,.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dividers (basically a vertical hr)
|
||||||
|
.navbar .divider-vertical {
|
||||||
|
height: @navbarHeight;
|
||||||
|
width: 1px;
|
||||||
|
margin: 0 9px;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: @navbarBackground;
|
||||||
|
border-right: 1px solid @navbarBackgroundHighlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Secondary (floated right) nav in topbar
|
||||||
|
.navbar .nav.pull-right {
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Dropdown menus
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// Menu position and menu carets
|
||||||
|
.navbar .dropdown-menu {
|
||||||
|
margin-top: 1px;
|
||||||
|
.border-radius(4px);
|
||||||
|
&:before {
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
border-left: 7px solid transparent;
|
||||||
|
border-right: 7px solid transparent;
|
||||||
|
border-bottom: 7px solid #ccc;
|
||||||
|
border-bottom-color: rgba(0,0,0,.2);
|
||||||
|
position: absolute;
|
||||||
|
top: -7px;
|
||||||
|
left: 9px;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
border-left: 6px solid transparent;
|
||||||
|
border-right: 6px solid transparent;
|
||||||
|
border-bottom: 6px solid @white;
|
||||||
|
position: absolute;
|
||||||
|
top: -6px;
|
||||||
|
left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dropdown toggle caret
|
||||||
|
.navbar .nav .dropdown-toggle .caret,
|
||||||
|
.navbar .nav .open.dropdown .caret {
|
||||||
|
border-top-color: @white;
|
||||||
|
}
|
||||||
|
.navbar .nav .active .caret {
|
||||||
|
.opacity(100);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove background color from open dropdown
|
||||||
|
.navbar .nav .open > .dropdown-toggle,
|
||||||
|
.navbar .nav .active > .dropdown-toggle,
|
||||||
|
.navbar .nav .open.active > .dropdown-toggle {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dropdown link on hover
|
||||||
|
.navbar .nav .active > .dropdown-toggle:hover {
|
||||||
|
color: @white;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Right aligned menus need alt position
|
||||||
|
.navbar .nav.pull-right .dropdown-menu {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
&:before {
|
||||||
|
left: auto;
|
||||||
|
right: 12px;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
left: auto;
|
||||||
|
right: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
343
css/bootstrap/lib/navs.less
Normal file
343
css/bootstrap/lib/navs.less
Normal file
@@ -0,0 +1,343 @@
|
|||||||
|
// NAVIGATIONS
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// BASE CLASS
|
||||||
|
// ----------
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make links block level
|
||||||
|
.nav > li > a {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.nav > li > a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @grayLighter;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// NAV LIST
|
||||||
|
// --------
|
||||||
|
|
||||||
|
.nav-list {
|
||||||
|
padding-left: 14px;
|
||||||
|
padding-right: 14px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.nav-list > li > a,
|
||||||
|
.nav-list .nav-header {
|
||||||
|
display: block;
|
||||||
|
padding: 3px 15px;
|
||||||
|
margin-left: -15px;
|
||||||
|
margin-right: -15px;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
|
}
|
||||||
|
.nav-list .nav-header {
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @grayLight;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.nav-list > li + .nav-header {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
.nav-list .active > a {
|
||||||
|
color: @white;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
||||||
|
background-color: @linkColor;
|
||||||
|
}
|
||||||
|
.nav-list .icon {
|
||||||
|
margin-right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TABS AND PILLS
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
// Common styles
|
||||||
|
.nav-tabs,
|
||||||
|
.nav-pills {
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
.nav-tabs > li,
|
||||||
|
.nav-pills > li {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.nav-tabs > li > a,
|
||||||
|
.nav-pills > li > a {
|
||||||
|
padding-right: 12px;
|
||||||
|
padding-left: 12px;
|
||||||
|
margin-right: 2px;
|
||||||
|
line-height: 14px; // keeps the overall height an even number
|
||||||
|
}
|
||||||
|
|
||||||
|
// TABS
|
||||||
|
// ----
|
||||||
|
|
||||||
|
// Give the tabs something to sit on
|
||||||
|
.nav-tabs {
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make the list-items overlay the bottom border
|
||||||
|
.nav-tabs > li {
|
||||||
|
margin-bottom: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actual tabs (as links)
|
||||||
|
.nav-tabs > li > a {
|
||||||
|
padding-top: 9px;
|
||||||
|
padding-bottom: 9px;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
.border-radius(4px 4px 0 0);
|
||||||
|
&:hover {
|
||||||
|
border-color: @grayLighter @grayLighter #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Active state, and it's :hover to override normal :hover
|
||||||
|
.nav-tabs > .active > a,
|
||||||
|
.nav-tabs > .active > a:hover {
|
||||||
|
color: @gray;
|
||||||
|
background-color: @white;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
// PILLS
|
||||||
|
// -----
|
||||||
|
|
||||||
|
// Links rendered as pills
|
||||||
|
.nav-pills > li > a {
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
margin-top: 2px;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
.border-radius(5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active state
|
||||||
|
.nav-pills .active > a,
|
||||||
|
.nav-pills .active > a:hover {
|
||||||
|
color: @white;
|
||||||
|
background-color: @linkColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// STACKED NAV
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
// Stacked tabs and pills
|
||||||
|
.nav-stacked > li {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
.nav-stacked > li > a {
|
||||||
|
margin-right: 0; // no need for the gap between nav items
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tabs
|
||||||
|
.nav-tabs.nav-stacked {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
.nav-tabs.nav-stacked > li > a {
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.nav-tabs.nav-stacked > li:first-child > a {
|
||||||
|
.border-radius(4px 4px 0 0);
|
||||||
|
}
|
||||||
|
.nav-tabs.nav-stacked > li:last-child > a {
|
||||||
|
.border-radius(0 0 4px 4px);
|
||||||
|
}
|
||||||
|
.nav-tabs.nav-stacked > li > a:hover {
|
||||||
|
border-color: #ddd;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pills
|
||||||
|
.nav-pills.nav-stacked > li > a {
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
.nav-pills.nav-stacked > li:last-child > a {
|
||||||
|
margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DROPDOWNS
|
||||||
|
// ---------
|
||||||
|
|
||||||
|
// Position the menu
|
||||||
|
.nav-tabs .dropdown-menu,
|
||||||
|
.nav-pills .dropdown-menu {
|
||||||
|
margin-top: 1px;
|
||||||
|
border-width: 1px;
|
||||||
|
}
|
||||||
|
.nav-pills .dropdown-menu {
|
||||||
|
.border-radius(4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Default dropdown links
|
||||||
|
// -------------------------
|
||||||
|
// Make carets use linkColor to start
|
||||||
|
.nav-tabs .dropdown-toggle .caret,
|
||||||
|
.nav-pills .dropdown-toggle .caret {
|
||||||
|
border-top-color: @linkColor;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
.nav-tabs .dropdown-toggle:hover .caret,
|
||||||
|
.nav-pills .dropdown-toggle:hover .caret {
|
||||||
|
border-top-color: @linkColorHover;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active dropdown links
|
||||||
|
// -------------------------
|
||||||
|
.nav-tabs .active .dropdown-toggle .caret,
|
||||||
|
.nav-pills .active .dropdown-toggle .caret {
|
||||||
|
border-top-color: @grayDark;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active:hover dropdown links
|
||||||
|
// -------------------------
|
||||||
|
.nav > .dropdown.active > a:hover {
|
||||||
|
color: @black;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open dropdowns
|
||||||
|
// -------------------------
|
||||||
|
.nav-tabs .open .dropdown-toggle,
|
||||||
|
.nav-pills .open .dropdown-toggle,
|
||||||
|
.nav > .open.active > a:hover {
|
||||||
|
color: @white;
|
||||||
|
background-color: @grayLight;
|
||||||
|
border-color: @grayLight;
|
||||||
|
}
|
||||||
|
.nav .open .caret,
|
||||||
|
.nav .open.active .caret,
|
||||||
|
.nav .open a:hover .caret {
|
||||||
|
border-top-color: @white;
|
||||||
|
.opacity(100);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dropdowns in stacked tabs
|
||||||
|
.tabs-stacked .open > a:hover {
|
||||||
|
border-color: @grayLight;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TABBABLE
|
||||||
|
// --------
|
||||||
|
|
||||||
|
|
||||||
|
// COMMON STYLES
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
// Clear any floats
|
||||||
|
.tabbable {
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove border on bottom, left, right
|
||||||
|
.tabs-below .nav-tabs,
|
||||||
|
.tabs-right .nav-tabs,
|
||||||
|
.tabs-left .nav-tabs {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show/hide tabbable areas
|
||||||
|
.tab-content > .tab-pane,
|
||||||
|
.pill-content > .pill-pane {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.tab-content > .active,
|
||||||
|
.pill-content > .active {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// BOTTOM
|
||||||
|
// ------
|
||||||
|
|
||||||
|
.tabs-below .nav-tabs {
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
.tabs-below .nav-tabs > li {
|
||||||
|
margin-top: -1px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.tabs-below .nav-tabs > li > a {
|
||||||
|
.border-radius(0 0 4px 4px);
|
||||||
|
&:hover {
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
border-top-color: #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tabs-below .nav-tabs .active > a,
|
||||||
|
.tabs-below .nav-tabs .active > a:hover {
|
||||||
|
border-color: transparent #ddd #ddd #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
// LEFT & RIGHT
|
||||||
|
// ------------
|
||||||
|
|
||||||
|
// Common styles
|
||||||
|
.tabs-left .nav-tabs > li,
|
||||||
|
.tabs-right .nav-tabs > li {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
.tabs-left .nav-tabs > li > a,
|
||||||
|
.tabs-right .nav-tabs > li > a {
|
||||||
|
min-width: 74px;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tabs on the left
|
||||||
|
.tabs-left .nav-tabs {
|
||||||
|
float: left;
|
||||||
|
margin-right: 19px;
|
||||||
|
border-right: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
.tabs-left .nav-tabs > li > a {
|
||||||
|
margin-right: -1px;
|
||||||
|
.border-radius(4px 0 0 4px);
|
||||||
|
}
|
||||||
|
.tabs-left .nav-tabs > li > a:hover {
|
||||||
|
border-color: @grayLighter #ddd @grayLighter @grayLighter;
|
||||||
|
}
|
||||||
|
.tabs-left .nav-tabs .active > a,
|
||||||
|
.tabs-left .nav-tabs .active > a:hover {
|
||||||
|
border-color: #ddd transparent #ddd #ddd;
|
||||||
|
*border-right-color: @white;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tabs on the right
|
||||||
|
.tabs-right .nav-tabs {
|
||||||
|
float: right;
|
||||||
|
margin-left: 19px;
|
||||||
|
border-left: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
.tabs-right .nav-tabs > li > a {
|
||||||
|
margin-left: -1px;
|
||||||
|
.border-radius(0 4px 4px 0);
|
||||||
|
}
|
||||||
|
.tabs-right .nav-tabs > li > a:hover {
|
||||||
|
border-color: @grayLighter @grayLighter @grayLighter #ddd;
|
||||||
|
}
|
||||||
|
.tabs-right .nav-tabs .active > a,
|
||||||
|
.tabs-right .nav-tabs .active > a:hover {
|
||||||
|
border-color: #ddd #ddd #ddd transparent;
|
||||||
|
*border-left-color: @white;
|
||||||
|
}
|
||||||
30
css/bootstrap/lib/pager.less
Normal file
30
css/bootstrap/lib/pager.less
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
// PAGER
|
||||||
|
// -----
|
||||||
|
|
||||||
|
.pager {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
list-style: none;
|
||||||
|
text-align: center;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
.pager li {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.pager a {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 5px 14px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
.border-radius(15px);
|
||||||
|
}
|
||||||
|
.pager a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
.pager .next a {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.pager .previous a {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
55
css/bootstrap/lib/pagination.less
Normal file
55
css/bootstrap/lib/pagination.less
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
// PAGINATION
|
||||||
|
// ----------
|
||||||
|
|
||||||
|
.pagination {
|
||||||
|
height: @baseLineHeight * 2;
|
||||||
|
margin: @baseLineHeight 0;
|
||||||
|
}
|
||||||
|
.pagination ul {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
margin-left: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
.border-radius(3px);
|
||||||
|
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
||||||
|
}
|
||||||
|
.pagination li {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.pagination a {
|
||||||
|
float: left;
|
||||||
|
padding: 0 14px;
|
||||||
|
line-height: (@baseLineHeight * 2) - 2;
|
||||||
|
text-decoration: none;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-left-width: 0;
|
||||||
|
}
|
||||||
|
.pagination a:hover,
|
||||||
|
.pagination .active a {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
.pagination .active a {
|
||||||
|
color: @grayLight;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.pagination .disabled a,
|
||||||
|
.pagination .disabled a:hover {
|
||||||
|
color: @grayLight;
|
||||||
|
background-color: transparent;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.pagination li:first-child a {
|
||||||
|
border-left-width: 1px;
|
||||||
|
.border-radius(3px 0 0 3px);
|
||||||
|
}
|
||||||
|
.pagination li:last-child a {
|
||||||
|
.border-radius(0 3px 3px 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Centered
|
||||||
|
.pagination-centered {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.pagination-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
49
css/bootstrap/lib/popovers.less
Normal file
49
css/bootstrap/lib/popovers.less
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
// POPOVERS
|
||||||
|
// --------
|
||||||
|
|
||||||
|
.popover {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexPopover;
|
||||||
|
display: none;
|
||||||
|
padding: 5px;
|
||||||
|
&.top { margin-top: -5px; }
|
||||||
|
&.right { margin-left: 5px; }
|
||||||
|
&.bottom { margin-top: 5px; }
|
||||||
|
&.left { margin-left: -5px; }
|
||||||
|
&.top .arrow { #popoverArrow > .top(); }
|
||||||
|
&.right .arrow { #popoverArrow > .right(); }
|
||||||
|
&.bottom .arrow { #popoverArrow > .bottom(); }
|
||||||
|
&.left .arrow { #popoverArrow > .left(); }
|
||||||
|
.arrow {
|
||||||
|
position: absolute;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.popover-inner {
|
||||||
|
padding: 3px;
|
||||||
|
width: 280px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: @black; // has to be full background declaration for IE fallback
|
||||||
|
background: rgba(0,0,0,.8);
|
||||||
|
.border-radius(6px);
|
||||||
|
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
||||||
|
}
|
||||||
|
.popover-title {
|
||||||
|
padding: 9px 15px;
|
||||||
|
line-height: 1;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border-bottom:1px solid #eee;
|
||||||
|
.border-radius(3px 3px 0 0);
|
||||||
|
}
|
||||||
|
.popover-content {
|
||||||
|
padding: 14px;
|
||||||
|
background-color: @white;
|
||||||
|
.border-radius(0 0 3px 3px);
|
||||||
|
.background-clip(padding-box);
|
||||||
|
p, ul, ol {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
18
css/bootstrap/lib/print.less
Normal file
18
css/bootstrap/lib/print.less
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap @VERSION for Print
|
||||||
|
*
|
||||||
|
* Copyright 2012 Twitter, Inc
|
||||||
|
* Licensed under the Apache License v2.0
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
|
* Date: @DATE
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// HIDE UNECESSARY COMPONENTS
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
.navbar-fixed {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
95
css/bootstrap/lib/progress-bars.less
Normal file
95
css/bootstrap/lib/progress-bars.less
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
// PROGRESS BARS
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
|
||||||
|
// ANIMATIONS
|
||||||
|
// ----------
|
||||||
|
|
||||||
|
// Webkit
|
||||||
|
@-webkit-keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 0 0; }
|
||||||
|
to { background-position: 40px 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Firefox
|
||||||
|
@-moz-keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 0 0; }
|
||||||
|
to { background-position: 40px 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Spec
|
||||||
|
@keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 0 0; }
|
||||||
|
to { background-position: 40px 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// THE BARS
|
||||||
|
// --------
|
||||||
|
|
||||||
|
// Outer container
|
||||||
|
.progress {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 18px;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
#gradient > .vertical(#f5f5f5, #f9f9f9);
|
||||||
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
||||||
|
.border-radius(4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bar of progress
|
||||||
|
.progress .bar {
|
||||||
|
width: 0%;
|
||||||
|
height: 18px;
|
||||||
|
color: @white;
|
||||||
|
font-size: 12px;
|
||||||
|
text-align: center;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
|
#gradient > .vertical(#149bdf, #0480be);
|
||||||
|
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
||||||
|
.box-sizing(border-box);
|
||||||
|
.transition(width .6s ease);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Striped bars
|
||||||
|
.progress-striped .bar {
|
||||||
|
#gradient > .striped(#62c462);
|
||||||
|
.background-size(40px 40px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Call animation for the active one
|
||||||
|
.progress.active .bar {
|
||||||
|
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
-moz-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// COLORS
|
||||||
|
// ------
|
||||||
|
|
||||||
|
// Danger (red)
|
||||||
|
.progress-danger .bar {
|
||||||
|
#gradient > .vertical(#ee5f5b, #c43c35);
|
||||||
|
}
|
||||||
|
.progress-danger.progress-striped .bar {
|
||||||
|
#gradient > .striped(#ee5f5b);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Success (green)
|
||||||
|
.progress-success .bar {
|
||||||
|
#gradient > .vertical(#62c462, #57a957);
|
||||||
|
}
|
||||||
|
.progress-success.progress-striped .bar {
|
||||||
|
#gradient > .striped(#62c462);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Info (teal)
|
||||||
|
.progress-info .bar {
|
||||||
|
#gradient > .vertical(#5bc0de, #339bb9);
|
||||||
|
}
|
||||||
|
.progress-info.progress-striped .bar {
|
||||||
|
#gradient > .striped(#5bc0de);
|
||||||
|
}
|
||||||
323
css/bootstrap/lib/responsive.less
Normal file
323
css/bootstrap/lib/responsive.less
Normal file
@@ -0,0 +1,323 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap Responsive v2.0.0
|
||||||
|
*
|
||||||
|
* Copyright 2012 Twitter, Inc
|
||||||
|
* Licensed under the Apache License v2.0
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Responsive.less
|
||||||
|
// For phone and tablet devices
|
||||||
|
// -------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// REPEAT VARIABLES & MIXINS
|
||||||
|
// -------------------------
|
||||||
|
// Required since we compile the responsive stuff separately
|
||||||
|
|
||||||
|
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
|
||||||
|
@import "mixins.less";
|
||||||
|
|
||||||
|
|
||||||
|
// RESPONSIVE CLASSES
|
||||||
|
// ------------------
|
||||||
|
|
||||||
|
// Hide from screenreaders and browsers
|
||||||
|
// Credit: HTML5 Boilerplate
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// UP TO LANDSCAPE PHONE
|
||||||
|
// ---------------------
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
|
||||||
|
// Smooth out the collapsing/expanding nav
|
||||||
|
.nav-collapse {
|
||||||
|
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
|
||||||
|
}
|
||||||
|
|
||||||
|
// Block level the page header small tag for readability
|
||||||
|
.page-header h1 small {
|
||||||
|
display: block;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make span* classes full width
|
||||||
|
input[class*="span"],
|
||||||
|
select[class*="span"],
|
||||||
|
textarea[class*="span"],
|
||||||
|
.uneditable-input {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 28px; /* Make inputs at least the height of their button counterpart */
|
||||||
|
/* Makes inputs behave like true block-level elements */
|
||||||
|
-webkit-box-sizing: border-box; /* Older Webkit */
|
||||||
|
-moz-box-sizing: border-box; /* Older FF */
|
||||||
|
-ms-box-sizing: border-box; /* IE8 */
|
||||||
|
box-sizing: border-box; /* CSS3 spec*/
|
||||||
|
}
|
||||||
|
// But don't let it screw up prepend/append inputs
|
||||||
|
.input-prepend input[class*="span"],
|
||||||
|
.input-append input[class*="span"] {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update checkboxes for iOS
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove the horizontal form styles
|
||||||
|
.form-horizontal .control-group > label {
|
||||||
|
float: none;
|
||||||
|
width: auto;
|
||||||
|
padding-top: 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
// Move over all input controls and content
|
||||||
|
.form-horizontal .controls {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
// Move the options list down to align with labels
|
||||||
|
.form-horizontal .control-list {
|
||||||
|
padding-top: 0; // has to be padding because margin collaspes
|
||||||
|
}
|
||||||
|
// Move over buttons in .form-actions to align with .controls
|
||||||
|
.form-horizontal .form-actions {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modals
|
||||||
|
.modal {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
left: 10px;
|
||||||
|
right: 10px;
|
||||||
|
width: auto;
|
||||||
|
margin: 0;
|
||||||
|
&.fade.in { top: auto; }
|
||||||
|
}
|
||||||
|
.modal-header .close {
|
||||||
|
padding: 10px;
|
||||||
|
margin: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Carousel
|
||||||
|
.carousel-caption {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
// GRID & CONTAINERS
|
||||||
|
// -----------------
|
||||||
|
// Remove width from containers
|
||||||
|
.container {
|
||||||
|
width: auto;
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
// Fluid rows
|
||||||
|
.row-fluid {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
// Undo negative margin on rows
|
||||||
|
.row {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
// Make all columns even
|
||||||
|
.row > [class*="span"],
|
||||||
|
.row-fluid > [class*="span"] {
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
width: auto;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// PORTRAIT TABLET TO DEFAULT DESKTOP
|
||||||
|
// ----------------------------------
|
||||||
|
|
||||||
|
@media (min-width: 768px) and (max-width: 980px) {
|
||||||
|
|
||||||
|
// Fixed grid
|
||||||
|
#gridSystem > .generate(12, 42px, 20px);
|
||||||
|
|
||||||
|
// Fluid grid
|
||||||
|
#fluidGridSystem > .generate(12, 5.801104972%, 2.762430939%);
|
||||||
|
|
||||||
|
// Input grid
|
||||||
|
#inputGridSystem > .generate(12, 42px, 20px);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TABLETS AND BELOW
|
||||||
|
// -----------------
|
||||||
|
@media (max-width: 980px) {
|
||||||
|
|
||||||
|
// UNFIX THE TOPBAR
|
||||||
|
// ----------------
|
||||||
|
// Remove any padding from the body
|
||||||
|
body {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
// Unfix the navbar
|
||||||
|
.navbar-fixed-top {
|
||||||
|
position: static;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top .navbar-inner {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
.navbar .container {
|
||||||
|
width: auto;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
// Account for brand name
|
||||||
|
.navbar .brand {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
margin: 0 0 0 -5px;
|
||||||
|
}
|
||||||
|
// Nav collapse clears brand
|
||||||
|
.navbar .nav-collapse {
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
// Block-level the nav
|
||||||
|
.navbar .nav {
|
||||||
|
float: none;
|
||||||
|
margin: 0 0 (@baseLineHeight / 2);
|
||||||
|
}
|
||||||
|
.navbar .nav > li {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
.navbar .nav > li > a {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
.navbar .nav > .divider-vertical {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
// Nav and dropdown links in navbar
|
||||||
|
.navbar .nav > li > a,
|
||||||
|
.navbar .dropdown-menu a {
|
||||||
|
padding: 6px 15px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: @navbarLinkColor;
|
||||||
|
.border-radius(3px);
|
||||||
|
}
|
||||||
|
.navbar .dropdown-menu li + li a {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
.navbar .nav > li > a:hover,
|
||||||
|
.navbar .dropdown-menu a:hover {
|
||||||
|
background-color: @navbarBackground;
|
||||||
|
}
|
||||||
|
// Dropdowns in the navbar
|
||||||
|
.navbar .dropdown-menu {
|
||||||
|
position: static;
|
||||||
|
top: auto;
|
||||||
|
left: auto;
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
max-width: none;
|
||||||
|
margin: 0 15px;
|
||||||
|
padding: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
.border-radius(0);
|
||||||
|
.box-shadow(none);
|
||||||
|
}
|
||||||
|
.navbar .dropdown-menu:before,
|
||||||
|
.navbar .dropdown-menu:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.navbar .dropdown-menu .divider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
// Forms in navbar
|
||||||
|
.navbar-form,
|
||||||
|
.navbar-search {
|
||||||
|
float: none;
|
||||||
|
padding: (@baseLineHeight / 2) 15px;
|
||||||
|
margin: (@baseLineHeight / 2) 0;
|
||||||
|
border-top: 1px solid @navbarBackground;
|
||||||
|
border-bottom: 1px solid @navbarBackground;
|
||||||
|
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
}
|
||||||
|
// Pull right (secondary) nav content
|
||||||
|
.navbar .nav.pull-right {
|
||||||
|
float: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
// Static navbar
|
||||||
|
.navbar-static .navbar-inner {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
// Navbar button
|
||||||
|
.btn-navbar {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hide everything in the navbar save .brand and toggle button */
|
||||||
|
.nav-collapse {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DEFAULT DESKTOP
|
||||||
|
// ---------------
|
||||||
|
|
||||||
|
@media (min-width: 980px) {
|
||||||
|
.nav-collapse.collapse {
|
||||||
|
height: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// LARGE DESKTOP & UP
|
||||||
|
// ------------------
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
|
||||||
|
// Fixed grid
|
||||||
|
#gridSystem > .generate(12, 70px, 30px);
|
||||||
|
|
||||||
|
// Fluid grid
|
||||||
|
#fluidGridSystem > .generate(12, 5.982905983%, 2.564102564%);
|
||||||
|
|
||||||
|
// Input grid
|
||||||
|
#inputGridSystem > .generate(12, 70px, 30px);
|
||||||
|
|
||||||
|
// Thumbnails
|
||||||
|
.thumbnails {
|
||||||
|
margin-left: -30px;
|
||||||
|
}
|
||||||
|
.thumbnails > li {
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
156
css/bootstrap/lib/sprites.less
Normal file
156
css/bootstrap/lib/sprites.less
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
// SPRITES
|
||||||
|
// Glyphs and icons for buttons, nav, and more
|
||||||
|
// -------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// ICONS
|
||||||
|
// -----
|
||||||
|
|
||||||
|
// All icons receive the styles of the <i> tag with a base class
|
||||||
|
// of .i and are then given a unique class to add width, height,
|
||||||
|
// and background-position. Your resulting HTML will look like
|
||||||
|
// <i class="i icon-inbox"></i>.
|
||||||
|
|
||||||
|
// For the white version of the icons, just add the .icon-white class:
|
||||||
|
// <i class="i icon-inbox icon-white"></i>
|
||||||
|
|
||||||
|
[class^="icon-"] {
|
||||||
|
display: inline-block;
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
vertical-align: text-top;
|
||||||
|
background-image: url(../img/glyphicons-halflings.png);
|
||||||
|
background-position: 14px 14px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
|
.ie7-restore-right-whitespace();
|
||||||
|
}
|
||||||
|
.icon-white {
|
||||||
|
background-image: url(../img/glyphicons-halflings-white.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-glass { background-position: 0 0; }
|
||||||
|
.icon-music { background-position: -24px 0; }
|
||||||
|
.icon-search { background-position: -48px 0; }
|
||||||
|
.icon-envelope { background-position: -72px 0; }
|
||||||
|
.icon-heart { background-position: -96px 0; }
|
||||||
|
.icon-star { background-position: -120px 0; }
|
||||||
|
.icon-star-empty { background-position: -144px 0; }
|
||||||
|
.icon-user { background-position: -168px 0; }
|
||||||
|
.icon-film { background-position: -192px 0; }
|
||||||
|
.icon-th-large { background-position: -216px 0; }
|
||||||
|
.icon-th { background-position: -240px 0; }
|
||||||
|
.icon-th-list { background-position: -264px 0; }
|
||||||
|
.icon-ok { background-position: -288px 0; }
|
||||||
|
.icon-remove { background-position: -312px 0; }
|
||||||
|
.icon-zoom-in { background-position: -336px 0; }
|
||||||
|
.icon-zoom-out { background-position: -360px 0; }
|
||||||
|
.icon-off { background-position: -384px 0; }
|
||||||
|
.icon-signal { background-position: -408px 0; }
|
||||||
|
.icon-cog { background-position: -432px 0; }
|
||||||
|
.icon-trash { background-position: -456px 0; }
|
||||||
|
|
||||||
|
.icon-home { background-position: 0 -24px; }
|
||||||
|
.icon-file { background-position: -24px -24px; }
|
||||||
|
.icon-time { background-position: -48px -24px; }
|
||||||
|
.icon-road { background-position: -72px -24px; }
|
||||||
|
.icon-download-alt { background-position: -96px -24px; }
|
||||||
|
.icon-download { background-position: -120px -24px; }
|
||||||
|
.icon-upload { background-position: -144px -24px; }
|
||||||
|
.icon-inbox { background-position: -168px -24px; }
|
||||||
|
.icon-play-circle { background-position: -192px -24px; }
|
||||||
|
.icon-repeat { background-position: -216px -24px; }
|
||||||
|
.icon-refresh { background-position: -240px -24px; }
|
||||||
|
.icon-list-alt { background-position: -264px -24px; }
|
||||||
|
.icon-lock { background-position: -287px -24px; } // 1px off
|
||||||
|
.icon-flag { background-position: -312px -24px; }
|
||||||
|
.icon-headphones { background-position: -336px -24px; }
|
||||||
|
.icon-volume-off { background-position: -360px -24px; }
|
||||||
|
.icon-volume-down { background-position: -384px -24px; }
|
||||||
|
.icon-volume-up { background-position: -408px -24px; }
|
||||||
|
.icon-qrcode { background-position: -432px -24px; }
|
||||||
|
.icon-barcode { background-position: -456px -24px; }
|
||||||
|
|
||||||
|
.icon-tag { background-position: 0 -48px; }
|
||||||
|
.icon-tags { background-position: -25px -48px; } // 1px off
|
||||||
|
.icon-book { background-position: -48px -48px; }
|
||||||
|
.icon-bookmark { background-position: -72px -48px; }
|
||||||
|
.icon-print { background-position: -96px -48px; }
|
||||||
|
.icon-camera { background-position: -120px -48px; }
|
||||||
|
.icon-font { background-position: -144px -48px; }
|
||||||
|
.icon-bold { background-position: -167px -48px; } // 1px off
|
||||||
|
.icon-italic { background-position: -192px -48px; }
|
||||||
|
.icon-text-height { background-position: -216px -48px; }
|
||||||
|
.icon-text-width { background-position: -240px -48px; }
|
||||||
|
.icon-align-left { background-position: -264px -48px; }
|
||||||
|
.icon-align-center { background-position: -288px -48px; }
|
||||||
|
.icon-align-right { background-position: -312px -48px; }
|
||||||
|
.icon-align-justify { background-position: -336px -48px; }
|
||||||
|
.icon-list { background-position: -360px -48px; }
|
||||||
|
.icon-indent-left { background-position: -384px -48px; }
|
||||||
|
.icon-indent-right { background-position: -408px -48px; }
|
||||||
|
.icon-facetime-video { background-position: -432px -48px; }
|
||||||
|
.icon-picture { background-position: -456px -48px; }
|
||||||
|
|
||||||
|
.icon-pencil { background-position: 0 -72px; }
|
||||||
|
.icon-map-marker { background-position: -24px -72px; }
|
||||||
|
.icon-adjust { background-position: -48px -72px; }
|
||||||
|
.icon-tint { background-position: -72px -72px; }
|
||||||
|
.icon-edit { background-position: -96px -72px; }
|
||||||
|
.icon-share { background-position: -120px -72px; }
|
||||||
|
.icon-check { background-position: -144px -72px; }
|
||||||
|
.icon-move { background-position: -168px -72px; }
|
||||||
|
.icon-step-backward { background-position: -192px -72px; }
|
||||||
|
.icon-fast-backward { background-position: -216px -72px; }
|
||||||
|
.icon-backward { background-position: -240px -72px; }
|
||||||
|
.icon-play { background-position: -264px -72px; }
|
||||||
|
.icon-pause { background-position: -288px -72px; }
|
||||||
|
.icon-stop { background-position: -312px -72px; }
|
||||||
|
.icon-forward { background-position: -336px -72px; }
|
||||||
|
.icon-fast-forward { background-position: -360px -72px; }
|
||||||
|
.icon-step-forward { background-position: -384px -72px; }
|
||||||
|
.icon-eject { background-position: -408px -72px; }
|
||||||
|
.icon-chevron-left { background-position: -432px -72px; }
|
||||||
|
.icon-chevron-right { background-position: -456px -72px; }
|
||||||
|
|
||||||
|
.icon-plus-sign { background-position: 0 -96px; }
|
||||||
|
.icon-minus-sign { background-position: -24px -96px; }
|
||||||
|
.icon-remove-sign { background-position: -48px -96px; }
|
||||||
|
.icon-ok-sign { background-position: -72px -96px; }
|
||||||
|
.icon-question-sign { background-position: -96px -96px; }
|
||||||
|
.icon-info-sign { background-position: -120px -96px; }
|
||||||
|
.icon-screenshot { background-position: -144px -96px; }
|
||||||
|
.icon-remove-circle { background-position: -168px -96px; }
|
||||||
|
.icon-ok-circle { background-position: -192px -96px; }
|
||||||
|
.icon-ban-circle { background-position: -216px -96px; }
|
||||||
|
.icon-arrow-left { background-position: -240px -96px; }
|
||||||
|
.icon-arrow-right { background-position: -264px -96px; }
|
||||||
|
.icon-arrow-up { background-position: -289px -96px; } // 1px off
|
||||||
|
.icon-arrow-down { background-position: -312px -96px; }
|
||||||
|
.icon-share-alt { background-position: -336px -96px; }
|
||||||
|
.icon-resize-full { background-position: -360px -96px; }
|
||||||
|
.icon-resize-small { background-position: -384px -96px; }
|
||||||
|
.icon-plus { background-position: -408px -96px; }
|
||||||
|
.icon-minus { background-position: -433px -96px; }
|
||||||
|
.icon-asterisk { background-position: -456px -96px; }
|
||||||
|
|
||||||
|
.icon-exclamation-sign { background-position: 0 -120px; }
|
||||||
|
.icon-gift { background-position: -24px -120px; }
|
||||||
|
.icon-leaf { background-position: -48px -120px; }
|
||||||
|
.icon-fire { background-position: -72px -120px; }
|
||||||
|
.icon-eye-open { background-position: -96px -120px; }
|
||||||
|
.icon-eye-close { background-position: -120px -120px; }
|
||||||
|
.icon-warning-sign { background-position: -144px -120px; }
|
||||||
|
.icon-plane { background-position: -168px -120px; }
|
||||||
|
.icon-calendar { background-position: -192px -120px; }
|
||||||
|
.icon-random { background-position: -216px -120px; }
|
||||||
|
.icon-comment { background-position: -240px -120px; }
|
||||||
|
.icon-magnet { background-position: -264px -120px; }
|
||||||
|
.icon-chevron-up { background-position: -288px -120px; }
|
||||||
|
.icon-chevron-down { background-position: -313px -119px; } // 1px off
|
||||||
|
.icon-retweet { background-position: -336px -120px; }
|
||||||
|
.icon-shopping-cart { background-position: -360px -120px; }
|
||||||
|
.icon-folder-close { background-position: -384px -120px; }
|
||||||
|
.icon-folder-open { background-position: -408px -120px; }
|
||||||
|
.icon-resize-vertical { background-position: -432px -119px; }
|
||||||
|
.icon-resize-horizontal { background-position: -456px -118px; }
|
||||||
35
css/bootstrap/lib/thumbnails.less
Normal file
35
css/bootstrap/lib/thumbnails.less
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
// THUMBNAILS
|
||||||
|
// ----------
|
||||||
|
|
||||||
|
.thumbnails {
|
||||||
|
margin-left: -20px;
|
||||||
|
list-style: none;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
.thumbnails > li {
|
||||||
|
float: left;
|
||||||
|
margin: 0 0 @baseLineHeight 20px;
|
||||||
|
}
|
||||||
|
.thumbnail {
|
||||||
|
display: block;
|
||||||
|
padding: 4px;
|
||||||
|
line-height: 1;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
.border-radius(4px);
|
||||||
|
.box-shadow(0 1px 1px rgba(0,0,0,.075));
|
||||||
|
}
|
||||||
|
// Add a hover state for linked versions only
|
||||||
|
a.thumbnail:hover {
|
||||||
|
border-color: @linkColor;
|
||||||
|
.box-shadow(0 1px 4px rgba(0,105,214,.25));
|
||||||
|
}
|
||||||
|
// Images and captions
|
||||||
|
.thumbnail > img {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
.thumbnail .caption {
|
||||||
|
padding: 9px;
|
||||||
|
}
|
||||||
35
css/bootstrap/lib/tooltip.less
Normal file
35
css/bootstrap/lib/tooltip.less
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
// TOOLTIP
|
||||||
|
// ------=
|
||||||
|
|
||||||
|
.tooltip {
|
||||||
|
position: absolute;
|
||||||
|
z-index: @zindexTooltip;
|
||||||
|
display: block;
|
||||||
|
visibility: visible;
|
||||||
|
padding: 5px;
|
||||||
|
font-size: 11px;
|
||||||
|
.opacity(0);
|
||||||
|
&.in { .opacity(80); }
|
||||||
|
&.top { margin-top: -2px; }
|
||||||
|
&.right { margin-left: 2px; }
|
||||||
|
&.bottom { margin-top: 2px; }
|
||||||
|
&.left { margin-left: -2px; }
|
||||||
|
&.top .tooltip-arrow { #popoverArrow > .top(); }
|
||||||
|
&.left .tooltip-arrow { #popoverArrow > .left(); }
|
||||||
|
&.bottom .tooltip-arrow { #popoverArrow > .bottom(); }
|
||||||
|
&.right .tooltip-arrow { #popoverArrow > .right(); }
|
||||||
|
}
|
||||||
|
.tooltip-inner {
|
||||||
|
max-width: 200px;
|
||||||
|
padding: 3px 8px;
|
||||||
|
color: @white;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @black;
|
||||||
|
.border-radius(4px);
|
||||||
|
}
|
||||||
|
.tooltip-arrow {
|
||||||
|
position: absolute;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
23
css/bootstrap/lib/utilities.less
Normal file
23
css/bootstrap/lib/utilities.less
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
// UTILITY CLASSES
|
||||||
|
// ---------------
|
||||||
|
|
||||||
|
// Quick floats
|
||||||
|
.pull-right {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.pull-left {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Toggling content
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.show {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Visibility
|
||||||
|
.invisible {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
17
css/bootstrap/lib/wells.less
Normal file
17
css/bootstrap/lib/wells.less
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
// WELLS
|
||||||
|
// -----
|
||||||
|
|
||||||
|
.well {
|
||||||
|
min-height: 20px;
|
||||||
|
padding: 19px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
border: 1px solid rgba(0,0,0,.05);
|
||||||
|
.border-radius(4px);
|
||||||
|
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
||||||
|
blockquote {
|
||||||
|
border-color: #ddd;
|
||||||
|
border-color: rgba(0,0,0,.15);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -59,6 +59,7 @@ function roots_get_stylesheets() {
|
|||||||
break;
|
break;
|
||||||
case 'bootstrap' :
|
case 'bootstrap' :
|
||||||
$styles .= stylesheet_link_tag('/bootstrap/bootstrap.css');
|
$styles .= stylesheet_link_tag('/bootstrap/bootstrap.css');
|
||||||
|
$styles .= stylesheet_link_tag('/bootstrap/bootstrap-responsive.css');
|
||||||
break;
|
break;
|
||||||
case 'bootstrap_less' :
|
case 'bootstrap_less' :
|
||||||
$styles .= stylesheet_link_tag('/bootstrap/lib/bootstrap.less', 0, true, 'stylesheet/less');
|
$styles .= stylesheet_link_tag('/bootstrap/lib/bootstrap.less', 0, true, 'stylesheet/less');
|
||||||
|
|||||||
@@ -142,9 +142,9 @@ $roots_css_frameworks = array(
|
|||||||
'label' => __('Bootstrap', 'roots'),
|
'label' => __('Bootstrap', 'roots'),
|
||||||
'classes' => array(
|
'classes' => array(
|
||||||
'container' => 'row',
|
'container' => 'row',
|
||||||
'main' => 'span11',
|
'main' => 'span9',
|
||||||
'sidebar' => 'span5',
|
'sidebar' => 'span3',
|
||||||
'fullwidth' => 'span16'
|
'fullwidth' => 'span12'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'bootstrap_less' => array(
|
'bootstrap_less' => array(
|
||||||
@@ -152,9 +152,9 @@ $roots_css_frameworks = array(
|
|||||||
'label' => __('Bootstrap w/ Less', 'roots'),
|
'label' => __('Bootstrap w/ Less', 'roots'),
|
||||||
'classes' => array(
|
'classes' => array(
|
||||||
'container' => 'row',
|
'container' => 'row',
|
||||||
'main' => 'span11',
|
'main' => 'span9',
|
||||||
'sidebar' => 'span5',
|
'sidebar' => 'span3',
|
||||||
'fullwidth' => 'span16'
|
'fullwidth' => 'span12'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'none' => array(
|
'none' => array(
|
||||||
|
|||||||
@@ -38,29 +38,37 @@ function roots_scripts() {
|
|||||||
$roots_bootstrap_less_js = $roots_options['bootstrap_less_javascript'];
|
$roots_bootstrap_less_js = $roots_options['bootstrap_less_javascript'];
|
||||||
$template_uri = get_template_directory_uri();
|
$template_uri = get_template_directory_uri();
|
||||||
if (roots_current_framework() === 'bootstrap_less') {
|
if (roots_current_framework() === 'bootstrap_less') {
|
||||||
wp_register_script('bootstrap-less', ''.$template_uri.'/js/bootstrap/less-1.1.3.min.js', false, null, false);
|
wp_register_script('bootstrap-less', ''.$template_uri.'/js/bootstrap/less-1.2.1.min.js', false, null, false);
|
||||||
wp_enqueue_script('bootstrap-less');
|
wp_enqueue_script('bootstrap-less');
|
||||||
}
|
}
|
||||||
if ($roots_bootstrap_js === true || $roots_bootstrap_less_js === true) {
|
if ($roots_bootstrap_js === true || $roots_bootstrap_less_js === true) {
|
||||||
$roots_options['bootstrap_less_javascript'] = false;
|
$roots_options['bootstrap_less_javascript'] = false;
|
||||||
$roots_options['bootstrap_javascript'] = false;
|
$roots_options['bootstrap_javascript'] = false;
|
||||||
|
|
||||||
|
wp_register_script('bootstrap-transition', ''.$template_uri.'/js/bootstrap/bootstrap-transition.js', false, null, false);
|
||||||
|
wp_register_script('bootstrap-alert', ''.$template_uri.'/js/bootstrap/bootstrap-alert.js', false, null, false);
|
||||||
wp_register_script('bootstrap-modal', ''.$template_uri.'/js/bootstrap/bootstrap-modal.js', false, null, false);
|
wp_register_script('bootstrap-modal', ''.$template_uri.'/js/bootstrap/bootstrap-modal.js', false, null, false);
|
||||||
wp_register_script('bootstrap-alerts', ''.$template_uri.'/js/bootstrap/bootstrap-alerts.js', false, null, false);
|
|
||||||
wp_register_script('bootstrap-twipsy', ''.$template_uri.'/js/bootstrap/bootstrap-twipsy.js', false, null, false);
|
|
||||||
wp_register_script('bootstrap-popover', ''.$template_uri.'/js/bootstrap/bootstrap-popover.js', false, null, false);
|
|
||||||
wp_register_script('bootstrap-dropdown', ''.$template_uri.'/js/bootstrap/bootstrap-dropdown.js', false, null, false);
|
wp_register_script('bootstrap-dropdown', ''.$template_uri.'/js/bootstrap/bootstrap-dropdown.js', false, null, false);
|
||||||
wp_register_script('bootstrap-scrollspy', ''.$template_uri.'/js/bootstrap/bootstrap-scrollspy.js', false, null, false);
|
wp_register_script('bootstrap-scrollspy', ''.$template_uri.'/js/bootstrap/bootstrap-scrollspy.js', false, null, false);
|
||||||
wp_register_script('bootstrap-tabs', ''.$template_uri.'/js/bootstrap/bootstrap-tabs.js', false, null, false);
|
wp_register_script('bootstrap-tab', ''.$template_uri.'/js/bootstrap/bootstrap-tab.js', false, null, false);
|
||||||
wp_register_script('bootstrap-buttons', ''.$template_uri.'/js/bootstrap/bootstrap-buttons.js', false, null, false);
|
wp_register_script('bootstrap-tooltip', ''.$template_uri.'/js/bootstrap/bootstrap-tooltip.js', false, null, false);
|
||||||
|
wp_register_script('bootstrap-popover', ''.$template_uri.'/js/bootstrap/bootstrap-popover.js', false, null, false);
|
||||||
|
wp_register_script('bootstrap-button', ''.$template_uri.'/js/bootstrap/bootstrap-button.js', false, null, false);
|
||||||
|
wp_register_script('bootstrap-collapse', ''.$template_uri.'/js/bootstrap/bootstrap-collapse.js', false, null, false);
|
||||||
|
wp_register_script('bootstrap-carousel', ''.$template_uri.'/js/bootstrap/bootstrap-carousel.js', false, null, false);
|
||||||
|
wp_register_script('bootstrap-typehead', ''.$template_uri.'/js/bootstrap/bootstrap-typehead.js', false, null, false);
|
||||||
|
wp_enqueue_script('bootstrap-modal');
|
||||||
|
wp_enqueue_script('bootstrap-alert');
|
||||||
wp_enqueue_script('bootstrap-modal');
|
wp_enqueue_script('bootstrap-modal');
|
||||||
wp_enqueue_script('bootstrap-alerts');
|
|
||||||
wp_enqueue_script('bootstrap-twipsy');
|
|
||||||
wp_enqueue_script('bootstrap-popover');
|
|
||||||
wp_enqueue_script('bootstrap-dropdown');
|
wp_enqueue_script('bootstrap-dropdown');
|
||||||
wp_enqueue_script('bootstrap-scrollspy');
|
wp_enqueue_script('bootstrap-scrollspy');
|
||||||
wp_enqueue_script('bootstrap-tabs');
|
wp_enqueue_script('bootstrap-tab');
|
||||||
wp_enqueue_script('bootstrap-buttons');
|
wp_enqueue_script('bootstrap-tooltip');
|
||||||
|
wp_enqueue_script('bootstrap-popover');
|
||||||
|
wp_enqueue_script('bootstrap-button');
|
||||||
|
wp_enqueue_script('bootstrap-collapse');
|
||||||
|
wp_enqueue_script('bootstrap-carousel');
|
||||||
|
wp_enqueue_script('bootstrap-typehead');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
91
js/bootstrap/bootstrap-alert.js
vendored
Normal file
91
js/bootstrap/bootstrap-alert.js
vendored
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
/* ==========================================================
|
||||||
|
* bootstrap-alert.js v2.0.0
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
||||||
|
* ==========================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ========================================================== */
|
||||||
|
|
||||||
|
|
||||||
|
!function( $ ){
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
/* ALERT CLASS DEFINITION
|
||||||
|
* ====================== */
|
||||||
|
|
||||||
|
var dismiss = '[data-dismiss="alert"]'
|
||||||
|
, Alert = function ( el ) {
|
||||||
|
$(el).on('click', dismiss, this.close)
|
||||||
|
}
|
||||||
|
|
||||||
|
Alert.prototype = {
|
||||||
|
|
||||||
|
constructor: Alert
|
||||||
|
|
||||||
|
, close: function ( e ) {
|
||||||
|
var $this = $(this)
|
||||||
|
, selector = $this.attr('data-target')
|
||||||
|
, $parent
|
||||||
|
|
||||||
|
if (!selector) {
|
||||||
|
selector = $this.attr('href')
|
||||||
|
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||||
|
}
|
||||||
|
|
||||||
|
$parent = $(selector)
|
||||||
|
$parent.trigger('close')
|
||||||
|
|
||||||
|
e && e.preventDefault()
|
||||||
|
|
||||||
|
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
|
||||||
|
|
||||||
|
$parent.removeClass('in')
|
||||||
|
|
||||||
|
function removeElement() {
|
||||||
|
$parent.remove()
|
||||||
|
$parent.trigger('closed')
|
||||||
|
}
|
||||||
|
|
||||||
|
$.support.transition && $parent.hasClass('fade') ?
|
||||||
|
$parent.on($.support.transition.end, removeElement) :
|
||||||
|
removeElement()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ALERT PLUGIN DEFINITION
|
||||||
|
* ======================= */
|
||||||
|
|
||||||
|
$.fn.alert = function ( option ) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
, data = $this.data('alert')
|
||||||
|
if (!data) $this.data('alert', (data = new Alert(this)))
|
||||||
|
if (typeof option == 'string') data[option].call($this)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.alert.Constructor = Alert
|
||||||
|
|
||||||
|
|
||||||
|
/* ALERT DATA-API
|
||||||
|
* ============== */
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
|
||||||
|
})
|
||||||
|
|
||||||
|
}( window.jQuery )
|
||||||
98
js/bootstrap/bootstrap-button.js
vendored
Normal file
98
js/bootstrap/bootstrap-button.js
vendored
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
/* ============================================================
|
||||||
|
* bootstrap-button.js v2.0.0
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
||||||
|
* ============================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ============================================================ */
|
||||||
|
|
||||||
|
!function( $ ){
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
/* BUTTON PUBLIC CLASS DEFINITION
|
||||||
|
* ============================== */
|
||||||
|
|
||||||
|
var Button = function ( element, options ) {
|
||||||
|
this.$element = $(element)
|
||||||
|
this.options = $.extend({}, $.fn.button.defaults, options)
|
||||||
|
}
|
||||||
|
|
||||||
|
Button.prototype = {
|
||||||
|
|
||||||
|
constructor: Button
|
||||||
|
|
||||||
|
, setState: function ( state ) {
|
||||||
|
var d = 'disabled'
|
||||||
|
, $el = this.$element
|
||||||
|
, data = $el.data()
|
||||||
|
, val = $el.is('input') ? 'val' : 'html'
|
||||||
|
|
||||||
|
state = state + 'Text'
|
||||||
|
data.resetText || $el.data('resetText', $el[val]())
|
||||||
|
|
||||||
|
$el[val](data[state] || this.options[state])
|
||||||
|
|
||||||
|
// push to event loop to allow forms to submit
|
||||||
|
setTimeout(function () {
|
||||||
|
state == 'loadingText' ?
|
||||||
|
$el.addClass(d).attr(d, d) :
|
||||||
|
$el.removeClass(d).removeAttr(d)
|
||||||
|
}, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
, toggle: function () {
|
||||||
|
var $parent = this.$element.parent('[data-toggle="buttons-radio"]')
|
||||||
|
|
||||||
|
$parent && $parent
|
||||||
|
.find('.active')
|
||||||
|
.removeClass('active')
|
||||||
|
|
||||||
|
this.$element.toggleClass('active')
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* BUTTON PLUGIN DEFINITION
|
||||||
|
* ======================== */
|
||||||
|
|
||||||
|
$.fn.button = function ( option ) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
, data = $this.data('button')
|
||||||
|
, options = typeof option == 'object' && option
|
||||||
|
if (!data) $this.data('button', (data = new Button(this, options)))
|
||||||
|
if (option == 'toggle') data.toggle()
|
||||||
|
else if (option) data.setState(option)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.button.defaults = {
|
||||||
|
loadingText: 'loading...'
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.button.Constructor = Button
|
||||||
|
|
||||||
|
|
||||||
|
/* BUTTON DATA-API
|
||||||
|
* =============== */
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
|
||||||
|
$(e.target).button('toggle')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}( window.jQuery )
|
||||||
154
js/bootstrap/bootstrap-carousel.js
vendored
Normal file
154
js/bootstrap/bootstrap-carousel.js
vendored
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
/* ==========================================================
|
||||||
|
* bootstrap-carousel.js v2.0.0
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
||||||
|
* ==========================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ========================================================== */
|
||||||
|
|
||||||
|
|
||||||
|
!function( $ ){
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
/* CAROUSEL CLASS DEFINITION
|
||||||
|
* ========================= */
|
||||||
|
|
||||||
|
var Carousel = function (element, options) {
|
||||||
|
this.$element = $(element)
|
||||||
|
this.options = $.extend({}, $.fn.carousel.defaults, options)
|
||||||
|
this.options.slide && this.slide(this.options.slide)
|
||||||
|
}
|
||||||
|
|
||||||
|
Carousel.prototype = {
|
||||||
|
|
||||||
|
cycle: function () {
|
||||||
|
this.interval = setInterval($.proxy(this.next, this), this.options.interval)
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
, to: function (pos) {
|
||||||
|
var $active = this.$element.find('.active')
|
||||||
|
, children = $active.parent().children()
|
||||||
|
, activePos = children.index($active)
|
||||||
|
, that = this
|
||||||
|
|
||||||
|
if (pos > (children.length - 1) || pos < 0) return
|
||||||
|
|
||||||
|
if (this.sliding) {
|
||||||
|
return this.$element.one('slid', function () {
|
||||||
|
that.to(pos)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if (activePos == pos) {
|
||||||
|
return this.pause().cycle()
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
||||||
|
}
|
||||||
|
|
||||||
|
, pause: function () {
|
||||||
|
clearInterval(this.interval)
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
, next: function () {
|
||||||
|
if (this.sliding) return
|
||||||
|
return this.slide('next')
|
||||||
|
}
|
||||||
|
|
||||||
|
, prev: function () {
|
||||||
|
if (this.sliding) return
|
||||||
|
return this.slide('prev')
|
||||||
|
}
|
||||||
|
|
||||||
|
, slide: function (type, next) {
|
||||||
|
var $active = this.$element.find('.active')
|
||||||
|
, $next = next || $active[type]()
|
||||||
|
, isCycling = this.interval
|
||||||
|
, direction = type == 'next' ? 'left' : 'right'
|
||||||
|
, fallback = type == 'next' ? 'first' : 'last'
|
||||||
|
, that = this
|
||||||
|
|
||||||
|
this.sliding = true
|
||||||
|
|
||||||
|
isCycling && this.pause()
|
||||||
|
|
||||||
|
$next = $next.length ? $next : this.$element.find('.item')[fallback]()
|
||||||
|
|
||||||
|
if (!$.support.transition && this.$element.hasClass('slide')) {
|
||||||
|
this.$element.trigger('slide')
|
||||||
|
$active.removeClass('active')
|
||||||
|
$next.addClass('active')
|
||||||
|
this.sliding = false
|
||||||
|
this.$element.trigger('slid')
|
||||||
|
} else {
|
||||||
|
$next.addClass(type)
|
||||||
|
$next[0].offsetWidth // force reflow
|
||||||
|
$active.addClass(direction)
|
||||||
|
$next.addClass(direction)
|
||||||
|
this.$element.trigger('slide')
|
||||||
|
this.$element.one($.support.transition.end, function () {
|
||||||
|
$next.removeClass([type, direction].join(' ')).addClass('active')
|
||||||
|
$active.removeClass(['active', direction].join(' '))
|
||||||
|
that.sliding = false
|
||||||
|
setTimeout(function () { that.$element.trigger('slid') }, 0)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
isCycling && this.cycle()
|
||||||
|
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* CAROUSEL PLUGIN DEFINITION
|
||||||
|
* ========================== */
|
||||||
|
|
||||||
|
$.fn.carousel = function ( option ) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
, data = $this.data('carousel')
|
||||||
|
, options = typeof option == 'object' && option
|
||||||
|
if (!data) $this.data('carousel', (data = new Carousel(this, options)))
|
||||||
|
if (typeof option == 'number') data.to(option)
|
||||||
|
else if (typeof option == 'string' || (option = options.slide)) data[option]()
|
||||||
|
else data.cycle()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.carousel.defaults = {
|
||||||
|
interval: 5000
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.carousel.Constructor = Carousel
|
||||||
|
|
||||||
|
|
||||||
|
/* CAROUSEL DATA-API
|
||||||
|
* ================= */
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$('body').on('click.carousel.data-api', '[data-slide]', function ( e ) {
|
||||||
|
var $this = $(this), href
|
||||||
|
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
||||||
|
, options = !$target.data('modal') && $.extend({}, $target.data(), $this.data())
|
||||||
|
$target.carousel(options)
|
||||||
|
e.preventDefault()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}( window.jQuery )
|
||||||
136
js/bootstrap/bootstrap-collapse.js
vendored
Normal file
136
js/bootstrap/bootstrap-collapse.js
vendored
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
/* =============================================================
|
||||||
|
* bootstrap-collapse.js v2.0.0
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#collapse
|
||||||
|
* =============================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ============================================================ */
|
||||||
|
|
||||||
|
!function( $ ){
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
var Collapse = function ( element, options ) {
|
||||||
|
this.$element = $(element)
|
||||||
|
this.options = $.extend({}, $.fn.collapse.defaults, options)
|
||||||
|
|
||||||
|
if (this.options["parent"]) {
|
||||||
|
this.$parent = $(this.options["parent"])
|
||||||
|
}
|
||||||
|
|
||||||
|
this.options.toggle && this.toggle()
|
||||||
|
}
|
||||||
|
|
||||||
|
Collapse.prototype = {
|
||||||
|
|
||||||
|
constructor: Collapse
|
||||||
|
|
||||||
|
, dimension: function () {
|
||||||
|
var hasWidth = this.$element.hasClass('width')
|
||||||
|
return hasWidth ? 'width' : 'height'
|
||||||
|
}
|
||||||
|
|
||||||
|
, show: function () {
|
||||||
|
var dimension = this.dimension()
|
||||||
|
, scroll = $.camelCase(['scroll', dimension].join('-'))
|
||||||
|
, actives = this.$parent && this.$parent.find('.in')
|
||||||
|
, hasData
|
||||||
|
|
||||||
|
if (actives && actives.length) {
|
||||||
|
hasData = actives.data('collapse')
|
||||||
|
actives.collapse('hide')
|
||||||
|
hasData || actives.data('collapse', null)
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$element[dimension](0)
|
||||||
|
this.transition('addClass', 'show', 'shown')
|
||||||
|
this.$element[dimension](this.$element[0][scroll])
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
, hide: function () {
|
||||||
|
var dimension = this.dimension()
|
||||||
|
this.reset(this.$element[dimension]())
|
||||||
|
this.transition('removeClass', 'hide', 'hidden')
|
||||||
|
this.$element[dimension](0)
|
||||||
|
}
|
||||||
|
|
||||||
|
, reset: function ( size ) {
|
||||||
|
var dimension = this.dimension()
|
||||||
|
|
||||||
|
this.$element
|
||||||
|
.removeClass('collapse')
|
||||||
|
[dimension](size || 'auto')
|
||||||
|
[0].offsetWidth
|
||||||
|
|
||||||
|
this.$element.addClass('collapse')
|
||||||
|
}
|
||||||
|
|
||||||
|
, transition: function ( method, startEvent, completeEvent ) {
|
||||||
|
var that = this
|
||||||
|
, complete = function () {
|
||||||
|
if (startEvent == 'show') that.reset()
|
||||||
|
that.$element.trigger(completeEvent)
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$element
|
||||||
|
.trigger(startEvent)
|
||||||
|
[method]('in')
|
||||||
|
|
||||||
|
$.support.transition && this.$element.hasClass('collapse') ?
|
||||||
|
this.$element.one($.support.transition.end, complete) :
|
||||||
|
complete()
|
||||||
|
}
|
||||||
|
|
||||||
|
, toggle: function () {
|
||||||
|
this[this.$element.hasClass('in') ? 'hide' : 'show']()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* COLLAPSIBLE PLUGIN DEFINITION
|
||||||
|
* ============================== */
|
||||||
|
|
||||||
|
$.fn.collapse = function ( option ) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
, data = $this.data('collapse')
|
||||||
|
, options = typeof option == 'object' && option
|
||||||
|
if (!data) $this.data('collapse', (data = new Collapse(this, options)))
|
||||||
|
if (typeof option == 'string') data[option]()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.collapse.defaults = {
|
||||||
|
toggle: true
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.collapse.Constructor = Collapse
|
||||||
|
|
||||||
|
|
||||||
|
/* COLLAPSIBLE DATA-API
|
||||||
|
* ==================== */
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$('body').on('click.collapse.data-api', '[data-toggle=collapse]', function ( e ) {
|
||||||
|
var $this = $(this), href
|
||||||
|
, target = $this.attr('data-target')
|
||||||
|
|| e.preventDefault()
|
||||||
|
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
|
||||||
|
, option = $(target).data('collapse') ? 'toggle' : $this.data()
|
||||||
|
$(target).collapse(option)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}( window.jQuery )
|
||||||
130
js/bootstrap/bootstrap-tab.js
vendored
Normal file
130
js/bootstrap/bootstrap-tab.js
vendored
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
/* ========================================================
|
||||||
|
* bootstrap-tab.js v2.0.0
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
||||||
|
* ========================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ======================================================== */
|
||||||
|
|
||||||
|
|
||||||
|
!function( $ ){
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
/* TAB CLASS DEFINITION
|
||||||
|
* ==================== */
|
||||||
|
|
||||||
|
var Tab = function ( element ) {
|
||||||
|
this.element = $(element)
|
||||||
|
}
|
||||||
|
|
||||||
|
Tab.prototype = {
|
||||||
|
|
||||||
|
constructor: Tab
|
||||||
|
|
||||||
|
, show: function () {
|
||||||
|
var $this = this.element
|
||||||
|
, $ul = $this.closest('ul:not(.dropdown-menu)')
|
||||||
|
, selector = $this.attr('data-target')
|
||||||
|
, previous
|
||||||
|
, $target
|
||||||
|
|
||||||
|
if (!selector) {
|
||||||
|
selector = $this.attr('href')
|
||||||
|
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $this.parent('li').hasClass('active') ) return
|
||||||
|
|
||||||
|
previous = $ul.find('.active a').last()[0]
|
||||||
|
|
||||||
|
$this.trigger({
|
||||||
|
type: 'show'
|
||||||
|
, relatedTarget: previous
|
||||||
|
})
|
||||||
|
|
||||||
|
$target = $(selector)
|
||||||
|
|
||||||
|
this.activate($this.parent('li'), $ul)
|
||||||
|
this.activate($target, $target.parent(), function () {
|
||||||
|
$this.trigger({
|
||||||
|
type: 'shown'
|
||||||
|
, relatedTarget: previous
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
, activate: function ( element, container, callback) {
|
||||||
|
var $active = container.find('> .active')
|
||||||
|
, transition = callback
|
||||||
|
&& $.support.transition
|
||||||
|
&& $active.hasClass('fade')
|
||||||
|
|
||||||
|
function next() {
|
||||||
|
$active
|
||||||
|
.removeClass('active')
|
||||||
|
.find('> .dropdown-menu > .active')
|
||||||
|
.removeClass('active')
|
||||||
|
|
||||||
|
element.addClass('active')
|
||||||
|
|
||||||
|
if (transition) {
|
||||||
|
element[0].offsetWidth // reflow for transition
|
||||||
|
element.addClass('in')
|
||||||
|
} else {
|
||||||
|
element.removeClass('fade')
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( element.parent('.dropdown-menu') ) {
|
||||||
|
element.closest('li.dropdown').addClass('active')
|
||||||
|
}
|
||||||
|
|
||||||
|
callback && callback()
|
||||||
|
}
|
||||||
|
|
||||||
|
transition ?
|
||||||
|
$active.one($.support.transition.end, next) :
|
||||||
|
next()
|
||||||
|
|
||||||
|
$active.removeClass('in')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* TAB PLUGIN DEFINITION
|
||||||
|
* ===================== */
|
||||||
|
|
||||||
|
$.fn.tab = function ( option ) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
, data = $this.data('tab')
|
||||||
|
if (!data) $this.data('tab', (data = new Tab(this)))
|
||||||
|
if (typeof option == 'string') data[option]()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.tab.Constructor = Tab
|
||||||
|
|
||||||
|
|
||||||
|
/* TAB DATA-API
|
||||||
|
* ============ */
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
|
||||||
|
e.preventDefault()
|
||||||
|
$(this).tab('show')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}( window.jQuery )
|
||||||
270
js/bootstrap/bootstrap-tooltip.js
vendored
Normal file
270
js/bootstrap/bootstrap-tooltip.js
vendored
Normal file
@@ -0,0 +1,270 @@
|
|||||||
|
/* ===========================================================
|
||||||
|
* bootstrap-tooltip.js v2.0.0
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
||||||
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
||||||
|
* ===========================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ========================================================== */
|
||||||
|
|
||||||
|
!function( $ ) {
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
/* TOOLTIP PUBLIC CLASS DEFINITION
|
||||||
|
* =============================== */
|
||||||
|
|
||||||
|
var Tooltip = function ( element, options ) {
|
||||||
|
this.init('tooltip', element, options)
|
||||||
|
}
|
||||||
|
|
||||||
|
Tooltip.prototype = {
|
||||||
|
|
||||||
|
constructor: Tooltip
|
||||||
|
|
||||||
|
, init: function ( type, element, options ) {
|
||||||
|
var eventIn
|
||||||
|
, eventOut
|
||||||
|
|
||||||
|
this.type = type
|
||||||
|
this.$element = $(element)
|
||||||
|
this.options = this.getOptions(options)
|
||||||
|
this.enabled = true
|
||||||
|
|
||||||
|
if (this.options.trigger != 'manual') {
|
||||||
|
eventIn = this.options.trigger == 'hover' ? 'mouseenter' : 'focus'
|
||||||
|
eventOut = this.options.trigger == 'hover' ? 'mouseleave' : 'blur'
|
||||||
|
this.$element.on(eventIn, this.options.selector, $.proxy(this.enter, this))
|
||||||
|
this.$element.on(eventOut, this.options.selector, $.proxy(this.leave, this))
|
||||||
|
}
|
||||||
|
|
||||||
|
this.options.selector ?
|
||||||
|
(this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
|
||||||
|
this.fixTitle()
|
||||||
|
}
|
||||||
|
|
||||||
|
, getOptions: function ( options ) {
|
||||||
|
options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data())
|
||||||
|
|
||||||
|
if (options.delay && typeof options.delay == 'number') {
|
||||||
|
options.delay = {
|
||||||
|
show: options.delay
|
||||||
|
, hide: options.delay
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return options
|
||||||
|
}
|
||||||
|
|
||||||
|
, enter: function ( e ) {
|
||||||
|
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
||||||
|
|
||||||
|
if (!self.options.delay || !self.options.delay.show) {
|
||||||
|
self.show()
|
||||||
|
} else {
|
||||||
|
self.hoverState = 'in'
|
||||||
|
setTimeout(function() {
|
||||||
|
if (self.hoverState == 'in') {
|
||||||
|
self.show()
|
||||||
|
}
|
||||||
|
}, self.options.delay.show)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
, leave: function ( e ) {
|
||||||
|
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
||||||
|
|
||||||
|
if (!self.options.delay || !self.options.delay.hide) {
|
||||||
|
self.hide()
|
||||||
|
} else {
|
||||||
|
self.hoverState = 'out'
|
||||||
|
setTimeout(function() {
|
||||||
|
if (self.hoverState == 'out') {
|
||||||
|
self.hide()
|
||||||
|
}
|
||||||
|
}, self.options.delay.hide)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
, show: function () {
|
||||||
|
var $tip
|
||||||
|
, inside
|
||||||
|
, pos
|
||||||
|
, actualWidth
|
||||||
|
, actualHeight
|
||||||
|
, placement
|
||||||
|
, tp
|
||||||
|
|
||||||
|
if (this.hasContent() && this.enabled) {
|
||||||
|
$tip = this.tip()
|
||||||
|
this.setContent()
|
||||||
|
|
||||||
|
if (this.options.animation) {
|
||||||
|
$tip.addClass('fade')
|
||||||
|
}
|
||||||
|
|
||||||
|
placement = typeof this.options.placement == 'function' ?
|
||||||
|
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
||||||
|
this.options.placement
|
||||||
|
|
||||||
|
inside = /in/.test(placement)
|
||||||
|
|
||||||
|
$tip
|
||||||
|
.remove()
|
||||||
|
.css({ top: 0, left: 0, display: 'block' })
|
||||||
|
.appendTo(inside ? this.$element : document.body)
|
||||||
|
|
||||||
|
pos = this.getPosition(inside)
|
||||||
|
|
||||||
|
actualWidth = $tip[0].offsetWidth
|
||||||
|
actualHeight = $tip[0].offsetHeight
|
||||||
|
|
||||||
|
switch (inside ? placement.split(' ')[1] : placement) {
|
||||||
|
case 'bottom':
|
||||||
|
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
||||||
|
break
|
||||||
|
case 'top':
|
||||||
|
tp = {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}
|
||||||
|
break
|
||||||
|
case 'left':
|
||||||
|
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}
|
||||||
|
break
|
||||||
|
case 'right':
|
||||||
|
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
$tip
|
||||||
|
.css(tp)
|
||||||
|
.addClass(placement)
|
||||||
|
.addClass('in')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
, setContent: function () {
|
||||||
|
var $tip = this.tip()
|
||||||
|
$tip.find('.tooltip-inner').html(this.getTitle())
|
||||||
|
$tip.removeClass('fade in top bottom left right')
|
||||||
|
}
|
||||||
|
|
||||||
|
, hide: function () {
|
||||||
|
var that = this
|
||||||
|
, $tip = this.tip()
|
||||||
|
|
||||||
|
$tip.removeClass('in')
|
||||||
|
|
||||||
|
function removeWithAnimation() {
|
||||||
|
var timeout = setTimeout(function () {
|
||||||
|
$tip.off($.support.transition.end).remove()
|
||||||
|
}, 500)
|
||||||
|
|
||||||
|
$tip.one($.support.transition.end, function () {
|
||||||
|
clearTimeout(timeout)
|
||||||
|
$tip.remove()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.support.transition && this.$tip.hasClass('fade') ?
|
||||||
|
removeWithAnimation() :
|
||||||
|
$tip.remove()
|
||||||
|
}
|
||||||
|
|
||||||
|
, fixTitle: function () {
|
||||||
|
var $e = this.$element
|
||||||
|
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
||||||
|
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
, hasContent: function () {
|
||||||
|
return this.getTitle()
|
||||||
|
}
|
||||||
|
|
||||||
|
, getPosition: function (inside) {
|
||||||
|
return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), {
|
||||||
|
width: this.$element[0].offsetWidth
|
||||||
|
, height: this.$element[0].offsetHeight
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
, getTitle: function () {
|
||||||
|
var title
|
||||||
|
, $e = this.$element
|
||||||
|
, o = this.options
|
||||||
|
|
||||||
|
title = $e.attr('data-original-title')
|
||||||
|
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
|
||||||
|
|
||||||
|
title = title.toString().replace(/(^\s*|\s*$)/, "")
|
||||||
|
|
||||||
|
return title
|
||||||
|
}
|
||||||
|
|
||||||
|
, tip: function () {
|
||||||
|
return this.$tip = this.$tip || $(this.options.template)
|
||||||
|
}
|
||||||
|
|
||||||
|
, validate: function () {
|
||||||
|
if (!this.$element[0].parentNode) {
|
||||||
|
this.hide()
|
||||||
|
this.$element = null
|
||||||
|
this.options = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
, enable: function () {
|
||||||
|
this.enabled = true
|
||||||
|
}
|
||||||
|
|
||||||
|
, disable: function () {
|
||||||
|
this.enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
, toggleEnabled: function () {
|
||||||
|
this.enabled = !this.enabled
|
||||||
|
}
|
||||||
|
|
||||||
|
, toggle: function () {
|
||||||
|
this[this.tip().hasClass('in') ? 'hide' : 'show']()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* TOOLTIP PLUGIN DEFINITION
|
||||||
|
* ========================= */
|
||||||
|
|
||||||
|
$.fn.tooltip = function ( option ) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
, data = $this.data('tooltip')
|
||||||
|
, options = typeof option == 'object' && option
|
||||||
|
if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))
|
||||||
|
if (typeof option == 'string') data[option]()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.tooltip.Constructor = Tooltip
|
||||||
|
|
||||||
|
$.fn.tooltip.defaults = {
|
||||||
|
animation: true
|
||||||
|
, delay: 0
|
||||||
|
, selector: false
|
||||||
|
, placement: 'top'
|
||||||
|
, trigger: 'hover'
|
||||||
|
, title: ''
|
||||||
|
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
|
||||||
|
}
|
||||||
|
|
||||||
|
}( window.jQuery )
|
||||||
51
js/bootstrap/bootstrap-transition.js
vendored
Normal file
51
js/bootstrap/bootstrap-transition.js
vendored
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/* ===================================================
|
||||||
|
* bootstrap-transition.js v2.0.0
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
||||||
|
* ===================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ========================================================== */
|
||||||
|
|
||||||
|
!function( $ ) {
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
|
||||||
|
* ======================================================= */
|
||||||
|
|
||||||
|
$.support.transition = (function () {
|
||||||
|
var thisBody = document.body || document.documentElement
|
||||||
|
, thisStyle = thisBody.style
|
||||||
|
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
|
||||||
|
|
||||||
|
return support && {
|
||||||
|
end: (function () {
|
||||||
|
var transitionEnd = "TransitionEnd"
|
||||||
|
if ( $.browser.webkit ) {
|
||||||
|
transitionEnd = "webkitTransitionEnd"
|
||||||
|
} else if ( $.browser.mozilla ) {
|
||||||
|
transitionEnd = "transitionend"
|
||||||
|
} else if ( $.browser.opera ) {
|
||||||
|
transitionEnd = "oTransitionEnd"
|
||||||
|
}
|
||||||
|
return transitionEnd
|
||||||
|
}())
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
}( window.jQuery )
|
||||||
271
js/bootstrap/bootstrap-typeahead.js
vendored
Normal file
271
js/bootstrap/bootstrap-typeahead.js
vendored
Normal file
@@ -0,0 +1,271 @@
|
|||||||
|
/* =============================================================
|
||||||
|
* bootstrap-typeahead.js v2.0.0
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
||||||
|
* =============================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ============================================================ */
|
||||||
|
|
||||||
|
!function( $ ){
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
var Typeahead = function ( element, options ) {
|
||||||
|
this.$element = $(element)
|
||||||
|
this.options = $.extend({}, $.fn.typeahead.defaults, options)
|
||||||
|
this.matcher = this.options.matcher || this.matcher
|
||||||
|
this.sorter = this.options.sorter || this.sorter
|
||||||
|
this.highlighter = this.options.highlighter || this.highlighter
|
||||||
|
this.$menu = $(this.options.menu).appendTo('body')
|
||||||
|
this.source = this.options.source
|
||||||
|
this.shown = false
|
||||||
|
this.listen()
|
||||||
|
}
|
||||||
|
|
||||||
|
Typeahead.prototype = {
|
||||||
|
|
||||||
|
constructor: Typeahead
|
||||||
|
|
||||||
|
, select: function () {
|
||||||
|
var val = this.$menu.find('.active').attr('data-value')
|
||||||
|
this.$element.val(val)
|
||||||
|
return this.hide()
|
||||||
|
}
|
||||||
|
|
||||||
|
, show: function () {
|
||||||
|
var pos = $.extend({}, this.$element.offset(), {
|
||||||
|
height: this.$element[0].offsetHeight
|
||||||
|
})
|
||||||
|
|
||||||
|
this.$menu.css({
|
||||||
|
top: pos.top + pos.height
|
||||||
|
, left: pos.left
|
||||||
|
})
|
||||||
|
|
||||||
|
this.$menu.show()
|
||||||
|
this.shown = true
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
, hide: function () {
|
||||||
|
this.$menu.hide()
|
||||||
|
this.shown = false
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
, lookup: function (event) {
|
||||||
|
var that = this
|
||||||
|
, items
|
||||||
|
, q
|
||||||
|
|
||||||
|
this.query = this.$element.val()
|
||||||
|
|
||||||
|
if (!this.query) {
|
||||||
|
return this.shown ? this.hide() : this
|
||||||
|
}
|
||||||
|
|
||||||
|
items = $.grep(this.source, function (item) {
|
||||||
|
if (that.matcher(item)) return item
|
||||||
|
})
|
||||||
|
|
||||||
|
items = this.sorter(items)
|
||||||
|
|
||||||
|
if (!items.length) {
|
||||||
|
return this.shown ? this.hide() : this
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.render(items.slice(0, this.options.items)).show()
|
||||||
|
}
|
||||||
|
|
||||||
|
, matcher: function (item) {
|
||||||
|
return ~item.toLowerCase().indexOf(this.query.toLowerCase())
|
||||||
|
}
|
||||||
|
|
||||||
|
, sorter: function (items) {
|
||||||
|
var beginswith = []
|
||||||
|
, caseSensitive = []
|
||||||
|
, caseInsensitive = []
|
||||||
|
, item
|
||||||
|
|
||||||
|
while (item = items.shift()) {
|
||||||
|
if (!item.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(item)
|
||||||
|
else if (~item.indexOf(this.query)) caseSensitive.push(item)
|
||||||
|
else caseInsensitive.push(item)
|
||||||
|
}
|
||||||
|
|
||||||
|
return beginswith.concat(caseSensitive, caseInsensitive)
|
||||||
|
}
|
||||||
|
|
||||||
|
, highlighter: function (item) {
|
||||||
|
return item.replace(new RegExp('(' + this.query + ')', 'ig'), function ($1, match) {
|
||||||
|
return '<strong>' + match + '</strong>'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
, render: function (items) {
|
||||||
|
var that = this
|
||||||
|
|
||||||
|
items = $(items).map(function (i, item) {
|
||||||
|
i = $(that.options.item).attr('data-value', item)
|
||||||
|
i.find('a').html(that.highlighter(item))
|
||||||
|
return i[0]
|
||||||
|
})
|
||||||
|
|
||||||
|
items.first().addClass('active')
|
||||||
|
this.$menu.html(items)
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
, next: function (event) {
|
||||||
|
var active = this.$menu.find('.active').removeClass('active')
|
||||||
|
, next = active.next()
|
||||||
|
|
||||||
|
if (!next.length) {
|
||||||
|
next = $(this.$menu.find('li')[0])
|
||||||
|
}
|
||||||
|
|
||||||
|
next.addClass('active')
|
||||||
|
}
|
||||||
|
|
||||||
|
, prev: function (event) {
|
||||||
|
var active = this.$menu.find('.active').removeClass('active')
|
||||||
|
, prev = active.prev()
|
||||||
|
|
||||||
|
if (!prev.length) {
|
||||||
|
prev = this.$menu.find('li').last()
|
||||||
|
}
|
||||||
|
|
||||||
|
prev.addClass('active')
|
||||||
|
}
|
||||||
|
|
||||||
|
, listen: function () {
|
||||||
|
this.$element
|
||||||
|
.on('blur', $.proxy(this.blur, this))
|
||||||
|
.on('keypress', $.proxy(this.keypress, this))
|
||||||
|
.on('keyup', $.proxy(this.keyup, this))
|
||||||
|
|
||||||
|
if ($.browser.webkit || $.browser.msie) {
|
||||||
|
this.$element.on('keydown', $.proxy(this.keypress, this))
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$menu
|
||||||
|
.on('click', $.proxy(this.click, this))
|
||||||
|
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
||||||
|
}
|
||||||
|
|
||||||
|
, keyup: function (e) {
|
||||||
|
e.stopPropagation()
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
|
switch(e.keyCode) {
|
||||||
|
case 40: // down arrow
|
||||||
|
case 38: // up arrow
|
||||||
|
break
|
||||||
|
|
||||||
|
case 9: // tab
|
||||||
|
case 13: // enter
|
||||||
|
if (!this.shown) return
|
||||||
|
this.select()
|
||||||
|
break
|
||||||
|
|
||||||
|
case 27: // escape
|
||||||
|
this.hide()
|
||||||
|
break
|
||||||
|
|
||||||
|
default:
|
||||||
|
this.lookup()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
, keypress: function (e) {
|
||||||
|
e.stopPropagation()
|
||||||
|
if (!this.shown) return
|
||||||
|
|
||||||
|
switch(e.keyCode) {
|
||||||
|
case 9: // tab
|
||||||
|
case 13: // enter
|
||||||
|
case 27: // escape
|
||||||
|
e.preventDefault()
|
||||||
|
break
|
||||||
|
|
||||||
|
case 38: // up arrow
|
||||||
|
e.preventDefault()
|
||||||
|
this.prev()
|
||||||
|
break
|
||||||
|
|
||||||
|
case 40: // down arrow
|
||||||
|
e.preventDefault()
|
||||||
|
this.next()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
, blur: function (e) {
|
||||||
|
var that = this
|
||||||
|
e.stopPropagation()
|
||||||
|
e.preventDefault()
|
||||||
|
setTimeout(function () { that.hide() }, 150)
|
||||||
|
}
|
||||||
|
|
||||||
|
, click: function (e) {
|
||||||
|
e.stopPropagation()
|
||||||
|
e.preventDefault()
|
||||||
|
this.select()
|
||||||
|
}
|
||||||
|
|
||||||
|
, mouseenter: function (e) {
|
||||||
|
this.$menu.find('.active').removeClass('active')
|
||||||
|
$(e.currentTarget).addClass('active')
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* TYPEAHEAD PLUGIN DEFINITION
|
||||||
|
* =========================== */
|
||||||
|
|
||||||
|
$.fn.typeahead = function ( option ) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
, data = $this.data('typeahead')
|
||||||
|
, options = typeof option == 'object' && option
|
||||||
|
if (!data) $this.data('typeahead', (data = new Typeahead(this, options)))
|
||||||
|
if (typeof option == 'string') data[option]()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.typeahead.defaults = {
|
||||||
|
source: []
|
||||||
|
, items: 8
|
||||||
|
, menu: '<ul class="typeahead dropdown-menu"></ul>'
|
||||||
|
, item: '<li><a href="#"></a></li>'
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.typeahead.Constructor = Typeahead
|
||||||
|
|
||||||
|
|
||||||
|
/* TYPEAHEAD DATA-API
|
||||||
|
* ================== */
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$('body').on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
||||||
|
var $this = $(this)
|
||||||
|
if ($this.data('typeahead')) return
|
||||||
|
e.preventDefault()
|
||||||
|
$this.typeahead($this.data())
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}( window.jQuery )
|
||||||
9
js/bootstrap/less-1.2.1.min.js
vendored
Normal file
9
js/bootstrap/less-1.2.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user