Holger Frey
7 years ago
19 changed files with 15076 additions and 154 deletions
@ -0,0 +1,567 @@
@@ -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; |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,51 @@
@@ -0,0 +1,51 @@
|
||||
* { |
||||
margin: 0; |
||||
} |
||||
body { |
||||
background: url(../img/bg.png) repeat-x scroll 0 0 #FCFCFC; |
||||
margin: 10px 20px; |
||||
} |
||||
h1 { |
||||
font-family: 'Anton', sans-serif; |
||||
font-size: 45px; |
||||
margin-bottom: 25px; |
||||
} |
||||
p { |
||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; |
||||
font-size: 16px; |
||||
line-height: 24px; |
||||
margin-bottom: 9px; |
||||
} |
||||
a { |
||||
color: #0088CC; |
||||
text-decoration: none; |
||||
} |
||||
small { |
||||
color: #888888; |
||||
font-size: 10px; |
||||
} |
||||
strong { |
||||
display: block; |
||||
margin: 15px 0 35px; |
||||
font-size: 25px; |
||||
} |
||||
.signature { |
||||
margin-top: 20px; |
||||
} |
||||
.signature .brand { |
||||
font-family: 'Anton', sans-serif; |
||||
font-size: 20px; |
||||
} |
||||
.footprint { |
||||
border-top: 1px solid #E5E5E5; |
||||
margin-top: 20px; |
||||
} |
||||
.footprint .icon-dbs { |
||||
background-image: url(../img/sprite.png); |
||||
background-position: 0px -214px; |
||||
width: 174px; |
||||
display: block; |
||||
height: 26px; |
||||
opacity: 0.5; |
||||
margin: 5px 0 0 120px;; |
||||
} |
@ -0,0 +1,720 @@
@@ -0,0 +1,720 @@
|
||||
html, body { |
||||
height: 100%; |
||||
} |
||||
|
||||
body { |
||||
background-color: #FCFCFC; |
||||
|
||||
} |
||||
|
||||
/*Opera Fix*/ |
||||
body:before {/* thanks to Maleika (Kohoutec)*/ |
||||
content:""; |
||||
height:100%; |
||||
float:left; |
||||
width:0; |
||||
margin-top:-32767px;/* thank you Erik J - negate effect of float*/ |
||||
} |
||||
|
||||
.rounded-box { |
||||
-webkit-border-radius: 5px; |
||||
-moz-border-radius: 5px; |
||||
border-radius: 5px; |
||||
background-color: #EEEEEE; |
||||
padding: 10px; |
||||
} |
||||
.brand { |
||||
font-family: 'Anton', sans-serif; |
||||
color: #049CDB; |
||||
} |
||||
|
||||
.right { |
||||
float: right; |
||||
} |
||||
|
||||
.left { |
||||
float: left; |
||||
} |
||||
|
||||
.clear:after { |
||||
content: "."; |
||||
visibility: hidden; |
||||
display: block; |
||||
height: 0; |
||||
clear: both; |
||||
} |
||||
|
||||
.bordered { |
||||
border-top: 1px solid #EEEEEE; |
||||
border-bottom: 1px solid #EEEEEE; |
||||
padding: 7px 0; |
||||
margin: 35px 0 15px; |
||||
} |
||||
|
||||
/*================================ BT FIXES ================================*/ |
||||
|
||||
.sidebar-nav { |
||||
padding: 9px 0; |
||||
} |
||||
|
||||
.tooltip { |
||||
z-index: 2000 |
||||
} |
||||
|
||||
/*================================= LAYOUT =================================*/ |
||||
|
||||
.content { |
||||
min-height: 100%; |
||||
} |
||||
|
||||
.content:before { |
||||
display: table; |
||||
content: ""; |
||||
height: 40px; |
||||
zoom: 1; |
||||
} |
||||
|
||||
.content.controls:before { |
||||
background: none repeat scroll 0 0 #F1F1F1; |
||||
border-bottom: 1px solid #D2D2D2; |
||||
content: ""; |
||||
display: table; |
||||
height: 86px; |
||||
margin-bottom: -47px; |
||||
width: 100%; |
||||
} |
||||
|
||||
.content .container-fluid, .content .container { |
||||
overflow:auto; |
||||
padding-bottom: 53px; |
||||
} |
||||
|
||||
footer { |
||||
position: relative; |
||||
margin: -53px 20px 0; /* negative value of footer height */ |
||||
height: 53px; |
||||
clear:both; |
||||
text-align: center; |
||||
} |
||||
|
||||
footer a { |
||||
display: inline-block; |
||||
height: 26px; |
||||
opacity: 0.5; |
||||
-webkit-transition: all 0.5s ease 0s; |
||||
-moz-transition: all 0.5s ease 0s; |
||||
-o-transition: all 0.5s ease 0s; |
||||
transition: all 0.5s ease 0s; |
||||
} |
||||
|
||||
footer a:hover { |
||||
opacity: 1; |
||||
} |
||||
|
||||
footer .copy{ |
||||
border-top: 1px solid #E5E5E5; |
||||
padding-top: 15px; |
||||
} |
||||
|
||||
footer .icon-html { |
||||
background-image: url(../img/sprite.png); |
||||
background-position: -174px -214px; |
||||
width: 60px; |
||||
margin-left: 114px; |
||||
} |
||||
|
||||
footer .icon-dbs { |
||||
background-image: url(../img/sprite.png); |
||||
background-position: 0px -214px; |
||||
height: 26px; |
||||
width: 174px; |
||||
} |
||||
|
||||
/*================================ BUTTONS ================================*/ |
||||
|
||||
.btn-flat { |
||||
text-decoration: none; |
||||
text-shadow: 0 1px 0 #fff; |
||||
font: bold 14px Helvetica, Arial, sans-serif; |
||||
color: #444; |
||||
line-height: 17px; |
||||
display: inline-block; |
||||
margin: 0 15px 0 0; |
||||
padding: 5px 15px; |
||||
background: #F3F3F3; |
||||
border: solid 1px #D9D9D9; |
||||
border-radius: 4px; |
||||
-webkit-border-radius: 4px; |
||||
-moz-border-radius: 4px; |
||||
-webkit-transition: border-color .20s; |
||||
-moz-transition: border-color .20s; |
||||
-o-transition: border-color .20s; |
||||
transition: border-color .20s; |
||||
} |
||||
|
||||
a.btn-flat { |
||||
cursor: pointer; |
||||
height: 18px; |
||||
} |
||||
|
||||
button.btn-flat { |
||||
height: 30px; |
||||
} |
||||
|
||||
.btn-flat:hover { |
||||
text-decoration: none; |
||||
background: #F4F4F4; |
||||
border-color: #C0C0C0; |
||||
color: #333; |
||||
} |
||||
|
||||
.btn-flat:active { |
||||
border-color: #0069D6; |
||||
color: #0069D6; |
||||
-moz-box-shadow: inset 0 0 10px #D4D4D4; |
||||
-webkit-box-shadow: inset 0 0 10px #D4D4D4; |
||||
box-shadow: inset 0 0 10px #D4D4D4; |
||||
} |
||||
|
||||
.btn-flat i { |
||||
background-image: url(../img/sprite.png); |
||||
display: inline-block; |
||||
height: 18px; |
||||
width: 18px; |
||||
} |
||||
|
||||
.btn-flat i.pencil { |
||||
background-position: -72px 0px; |
||||
} |
||||
.btn-flat:hover i.pencil { |
||||
background-position: -72px -18px; |
||||
} |
||||
|
||||
.btn-flat i.trash { |
||||
background-position: -90px 0px; |
||||
} |
||||
.btn-flat:hover i.trash { |
||||
background-position: -90px -18px; |
||||
} |
||||
|
||||
.btn-flat i.add { |
||||
background-position: -108px 0px; |
||||
} |
||||
.btn-flat:hover i.add { |
||||
background-position: -108px -18px; |
||||
} |
||||
|
||||
.btn-flat i.abacus { |
||||
background-position: -126px 0px; |
||||
} |
||||
.btn-flat:hover i.abacus { |
||||
background-position: -126px -18px; |
||||
} |
||||
|
||||
.btn-flat i.eye { |
||||
background-position: -144px 0px; |
||||
} |
||||
.btn-flat:hover i.eye { |
||||
background-position: -144px -18px; |
||||
} |
||||
|
||||
.btn-flat i.group { |
||||
background-position: -54px 0; |
||||
} |
||||
|
||||
.btn-flat:hover i.group { |
||||
background-position: -54px -18px; |
||||
} |
||||
|
||||
.btn-flat i.reset { |
||||
background-position: -162px 0; |
||||
} |
||||
|
||||
.btn-flat:hover i.reset { |
||||
background-position: -162px -18px; |
||||
} |
||||
|
||||
.btn-flat i.clip { |
||||
background-position: -180px 0; |
||||
} |
||||
|
||||
.btn-flat:hover i.clip { |
||||
background-position: -180px -18px; |
||||
} |
||||
|
||||
.btn-flat i.download { |
||||
background-position: -198px 0; |
||||
} |
||||
|
||||
.btn-flat:hover i.download { |
||||
background-position: -198px -18px; |
||||
} |
||||
|
||||
.page-controls .btn-group, .page-controls .actions, .page-controls .btn-flat { |
||||
float: left; |
||||
display: block; |
||||
} |
||||
|
||||
.page-controls .btn-group { |
||||
margin-right: 15px; |
||||
} |
||||
|
||||
.btn-group + .btn-group { |
||||
margin-left: 0; |
||||
} |
||||
|
||||
.btn-group .btn-flat { |
||||
position: relative; |
||||
float: left; |
||||
margin-left: -1px; |
||||
margin-right: 0px; |
||||
-webkit-border-radius: 0; |
||||
-moz-border-radius: 0; |
||||
border-radius: 0; |
||||
} |
||||
|
||||
.btn-group .btn-flat: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-flat:last-child { |
||||
-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; |
||||
} |
||||
|
||||
.search [type="search"] { |
||||
padding: 5px 4px; |
||||
} |
||||
|
||||
.search .add-on { |
||||
cursor: pointer; |
||||
padding: 5px; |
||||
} |
||||
|
||||
.search [type="submit"] { |
||||
background-image: url(../img/sprite.png); |
||||
background-position: 0px -68px; |
||||
background-color: #F5F5F5; |
||||
border: none; |
||||
height: 18px; |
||||
width: 18px; |
||||
display: inline-block; |
||||
overflow: hidden; |
||||
text-indent: -9999px; |
||||
} |
||||
|
||||
.search .autocomplete { |
||||
background-image: url(../img/sprite.png); |
||||
background-position: -18px -68px; |
||||
background-color: #F5F5F5; |
||||
height: 18px; |
||||
width: 18px; |
||||
display: inline-block; |
||||
overflow: hidden; |
||||
text-indent: -9999px; |
||||
} |
||||
|
||||
.search .add-on:active { |
||||
border-color: #0069D6; |
||||
color: #0069D6; |
||||
-moz-box-shadow: inset 0 0 3px #D4D4D4; |
||||
-webkit-box-shadow: inset 0 0 3px #D4D4D4; |
||||
box-shadow: inset 0 0 3px #D4D4D4; |
||||
} |
||||
|
||||
.typeahead.dropdown-menu { |
||||
overflow: hidden; |
||||
} |
||||
|
||||
.btn-group.marking-needed, .btn-flat.marking-needed { |
||||
display: none; |
||||
} |
||||
|
||||
/*================================ NAVIGATION ================================*/ |
||||
|
||||
.navbar .brand, .navbar .brand:hover { |
||||
color: #049CDB; |
||||
} |
||||
|
||||
#user-options a { |
||||
color: #555555; |
||||
text-shadow: none; |
||||
} |
||||
|
||||
#user-options .user-name { |
||||
color: #0088CC; |
||||
} |
||||
|
||||
#user-options:hover .user-name { |
||||
text-decoration: underline; |
||||
} |
||||
|
||||
.page-controls { |
||||
display: block; |
||||
height: 30px; |
||||
margin-bottom: 25px; |
||||
padding: 8px 0; |
||||
} |
||||
|
||||
.page-controls:after { |
||||
content: "."; |
||||
visibility: hidden; |
||||
display: block; |
||||
height: 0; |
||||
clear: both; |
||||
} |
||||
|
||||
.page-controls h1 { |
||||
line-height: 30px; |
||||
} |
||||
|
||||
.page-controls form { |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
.page-controls .input-append.search { |
||||
float: right; |
||||
} |
||||
|
||||
/*================================ TABLES ================================*/ |
||||
|
||||
thead { |
||||
background-color: #E0F3FF; |
||||
border-bottom: 2px solid #0064CD; |
||||
} |
||||
th { |
||||
border-top: none; |
||||
} |
||||
th.sortable { |
||||
cursor: pointer; |
||||
background-color: #E0F3FF; |
||||
} |
||||
|
||||
th.sortable.headerSortDown, th.sortable.headerSortUp { |
||||
background-color: #C7E9FF; |
||||
} |
||||
th, th a { |
||||
color: #0064CD; |
||||
} |
||||
th a:hover { |
||||
text-decoration: none; |
||||
color: #0064CD; |
||||
} |
||||
tbody tr:hover { |
||||
background-color: #FAFAFA; |
||||
} |
||||
|
||||
td.center, th.center { |
||||
text-align: center; |
||||
vertical-align: middle; |
||||
} |
||||
|
||||
table .header:hover:after { |
||||
border-width: 4px 4px 0; |
||||
} |
||||
|
||||
table .action { |
||||
background-image: url(../img/sprite.png); |
||||
margin-bottom: -5px; |
||||
margin-right: 2px; |
||||
height: 16px; |
||||
width: 16px; |
||||
display: inline-block; |
||||
overflow: hidden; |
||||
text-indent: -9999px; |
||||
background-repeat: no-repeat; |
||||
-webkit-transition: background-image 0.20s linear; |
||||
-moz-transition: background-image 0.20s linear; |
||||
-o-transition: background-image 0.20s linear; |
||||
transition: background-image 0.20s linear; |
||||
zoom: 1; |
||||
filter: alpha(opacity=40); |
||||
opacity: 0.4; |
||||
} |
||||
|
||||
table .action:hover { |
||||
filter: alpha(opacity=100); |
||||
opacity: 1; |
||||
} |
||||
|
||||
table .action.delete { |
||||
background-position: 0px -36px; |
||||
} |
||||
|
||||
table .action.delete:hover { |
||||
background-position: 0px -52px; |
||||
} |
||||
|
||||
table .action.edit { |
||||
background-position: -16px -36px; |
||||
} |
||||
|
||||
table .action.edit:hover { |
||||
background-position: -16px -52px; |
||||
} |
||||
|
||||
/*================================ MODALS ================================*/ |
||||
|
||||
.modal form { |
||||
margin: 0; |
||||
} |
||||
|
||||
.modal-body .option { |
||||
font-size: 15px; |
||||
} |
||||
|
||||
.modal-body .option a { |
||||
font-weight: bold; |
||||
} |
||||
|
||||
.modal-body .checklist { |
||||
margin: 0 20px; |
||||
} |
||||
|
||||
.modal-body .checklist:after { |
||||
content: "."; |
||||
visibility: hidden; |
||||
display: block; |
||||
height: 0; |
||||
clear: both; |
||||
} |
||||
|
||||
.modal-body .checklist .checkbox { |
||||
margin-bottom: 10px; |
||||
} |
||||
|
||||
.modal-body .checklist .left { |
||||
float: left; |
||||
width: 50%; |
||||
} |
||||
|
||||
.modal-body .checklist .right { |
||||
float: right; |
||||
width: 50%; |
||||
} |
||||
|
||||
.modal-body .checklist .checkbox input { |
||||
margin-left: -20px; |
||||
} |
||||
|
||||
.modal-body .help-block { |
||||
margin-bottom: 15px; |
||||
} |
||||
|
||||
/*============================= WELCOME PAGE =============================*/ |
||||
|
||||
.welcome .content { |
||||
background: url(../img/bg.png) repeat-x scroll 0 0 #FCFCFC; |
||||
} |
||||
|
||||
#welcome { |
||||
margin: 90px 0 80px; |
||||
text-align: center; |
||||
} |
||||
|
||||
#welcome h1 { |
||||
font-family: 'Anton',sans-serif; |
||||
font-size: 120px; |
||||
line-height: 1; |
||||
margin-bottom: 5px; |
||||
} |
||||
|
||||
#welcome .brand { |
||||
text-transform: none; |
||||
} |
||||
|
||||
#welcome .quote { |
||||
color: #878787; |
||||
font-size: 16px; |
||||
} |
||||
|
||||
/*============================= ACCOUNT =============================*/ |
||||
|
||||
#register-successful, #access-denied { |
||||
margin: 90px 0 50px; |
||||
text-align: center; |
||||
} |
||||
|
||||
#register-successful h1, #access-denied h1 { |
||||
font-family: 'Anton',sans-serif; |
||||
font-size: 80px; |
||||
line-height: 1; |
||||
margin-bottom: 5px; |
||||
} |
||||
|
||||
#access-denied { |
||||
margin-top: 150px; |
||||
} |
||||
|
||||
#access-denied h1 { |
||||
color: #B94A48; |
||||
} |
||||
|
||||
hgroup .info { |
||||
color: #878787; |
||||
font-size: 16px; |
||||
line-height: 24px; |
||||
} |
||||
|
||||
.account.login_failed h1 { |
||||
border-bottom: 1px solid #EEEEEE; |
||||
font-family: 'Anton',sans-serif; |
||||
font-size: 50px; |
||||
line-height: 50px; |
||||
margin: 80px 0 20px; |
||||
padding-bottom: 5px; |
||||
} |
||||
|
||||
/*============================== ADMIN AREA ==============================*/ |
||||
|
||||
.admin-options a:hover [class*="span"] { |
||||
background-color: #EEEEEE; |
||||
-webkit-transition: background-color 0.50s linear; |
||||
-moz-transition: background-color 0.50s linear; |
||||
-o-transition: background-color 0.50s linear; |
||||
transition: background-color 0.50s linear; |
||||
} |
||||
|
||||
.admin-options .option { |
||||
background-image: url(../img/sprite.png); |
||||
background-position: 0px -86px; |
||||
margin: 0 auto; |
||||
width: 128px; |
||||
height: 128px; |
||||
} |
||||
|
||||
.admin-options .option.shop { |
||||
background-position: -128px -86px; |
||||
} |
||||
|
||||
.admin-options h2 { |
||||
margin-top: 5px; |
||||
text-align: center; |
||||
} |
||||
|
||||
.admin-options [class*="span"] { |
||||
padding: 20px 0; |
||||
background-color: #F7F7F7; |
||||
} |
||||
|
||||
/*============================== FAQ ==============================*/ |
||||
|
||||
.faq h1 { |
||||
font-family: 'Anton',sans-serif; |
||||
font-size: 60px; |
||||
line-height: 1; |
||||
margin: 30px 0; |
||||
text-align: center; |
||||
} |
||||
|
||||
.faq h2 { |
||||
color: #FCFCFC; |
||||
font-size: 28px; |
||||
line-height: 1; |
||||
background-color: #049CDB; |
||||
padding: 10px; |
||||
margin-bottom: 5px; |
||||
-webkit-border-radius: 5px; |
||||
-moz-border-radius: 5px; |
||||
border-radius: 5px; |
||||
} |
||||
|
||||
.faq section { |
||||
margin-bottom: 35px; |
||||
} |
||||
|
||||
/*============================= ACTIONS =============================*/ |
||||
|
||||
.action-header { |
||||
margin-bottom: 15px; |
||||
} |
||||
|
||||
/*============================== FORMS ==============================*/ |
||||
|
||||
.control-group.information { |
||||
margin: 0; |
||||
} |
||||
|
||||
.control-group.information p { |
||||
padding: 5px 0; |
||||
color: #AAAAAA; |
||||
} |
||||
|
||||
/*=========================== ORDER SPLASH ===========================*/ |
||||
|
||||
.accordion { |
||||
margin-top: 5px; |
||||
} |
||||
|
||||
.accordion li { |
||||
background-color: #EAEAEA; |
||||
cursor: pointer; |
||||
font-size: 16px; |
||||
margin: 5px 0; |
||||
padding: 12px 10px; |
||||
-webkit-border-radius: 5px; |
||||
-moz-border-radius: 5px; |
||||
border-radius: 5px; |
||||
-webkit-transition: background-color 0.1s ease 0s; |
||||
-moz-transition: background-color 0.1s ease 0s; |
||||
-o-transition: background-color 0.1s ease 0s; |
||||
transition: background-color 0.1s ease 0s; |
||||
} |
||||
|
||||
.accordion li:hover { |
||||
background-color: #DDDDDD; |
||||
} |
||||
|
||||
|
||||
.accordion li span { |
||||
font-size: 13px; |
||||
color: #A0A0A0; |
||||
} |
||||
|
||||
.accordion-heading { |
||||
background-color: #333333; |
||||
padding: 0; |
||||
-webkit-border-radius: 5px; |
||||
-moz-border-radius: 5px; |
||||
border-radius: 5px; |
||||
-webkit-transition: background-color 0.1s ease 0s; |
||||
-moz-transition: background-color 0.1s ease 0s; |
||||
-o-transition: background-color 0.1s ease 0s; |
||||
transition: background-color 0.1s ease 0s; |
||||
} |
||||
|
||||
.accordion-heading a { |
||||
color: #EEEEEE; |
||||
display: block; |
||||
font-size: 18px; |
||||
font-weight: bold; |
||||
line-height: 27px; |
||||
padding: 8px 15px; |
||||
text-decoration: none; |
||||
outline: none; |
||||
-webkit-transition: color 0.1s ease 0s; |
||||
-moz-transition: color 0.1s ease 0s; |
||||
-o-transition: color 0.1s ease 0s; |
||||
transition: color 0.1s ease 0s; |
||||
} |
||||
|
||||
.accordion-heading a:hover { |
||||
color: #049CDB; |
||||
} |
||||
|
||||
/*========================= RESPONSIVE =========================*/ |
||||
|
||||
@media (max-width: 1200px) { |
||||
.page-controls h1 { font-size: 25px; } |
||||
} |
||||
|
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,91 @@
@@ -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 ) |
@ -0,0 +1,136 @@
@@ -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 ) |
@ -0,0 +1,92 @@
@@ -0,0 +1,92 @@
|
||||
/* ============================================================ |
||||
* bootstrap-dropdown.js v2.0.0 |
||||
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
|
||||
* ============================================================ |
||||
* 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" |
||||
|
||||
/* DROPDOWN CLASS DEFINITION |
||||
* ========================= */ |
||||
|
||||
var toggle = '[data-toggle="dropdown"]' |
||||
, Dropdown = function ( element ) { |
||||
var $el = $(element).on('click.dropdown.data-api', this.toggle) |
||||
$('html').on('click.dropdown.data-api', function () { |
||||
$el.parent().removeClass('open') |
||||
}) |
||||
} |
||||
|
||||
Dropdown.prototype = { |
||||
|
||||
constructor: Dropdown |
||||
|
||||
, toggle: function ( e ) { |
||||
var $this = $(this) |
||||
, selector = $this.attr('data-target') |
||||
, $parent |
||||
, isActive |
||||
|
||||
if (!selector) { |
||||
selector = $this.attr('href') |
||||
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||
} |
||||
|
||||
$parent = $(selector) |
||||
$parent.length || ($parent = $this.parent()) |
||||
|
||||
isActive = $parent.hasClass('open') |
||||
|
||||
clearMenus() |
||||
!isActive && $parent.toggleClass('open') |
||||
|
||||
return false |
||||
} |
||||
|
||||
} |
||||
|
||||
function clearMenus() { |
||||
$(toggle).parent().removeClass('open') |
||||
} |
||||
|
||||
|
||||
/* DROPDOWN PLUGIN DEFINITION |
||||
* ========================== */ |
||||
|
||||
$.fn.dropdown = function ( option ) { |
||||
return this.each(function () { |
||||
var $this = $(this) |
||||
, data = $this.data('dropdown') |
||||
if (!data) $this.data('dropdown', (data = new Dropdown(this))) |
||||
if (typeof option == 'string') data[option].call($this) |
||||
}) |
||||
} |
||||
|
||||
$.fn.dropdown.Constructor = Dropdown |
||||
|
||||
|
||||
/* APPLY TO STANDARD DROPDOWN ELEMENTS |
||||
* =================================== */ |
||||
|
||||
$(function () { |
||||
$('html').on('click.dropdown.data-api', clearMenus) |
||||
$('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle) |
||||
}) |
||||
|
||||
}( window.jQuery ) |
@ -0,0 +1,209 @@
@@ -0,0 +1,209 @@
|
||||
/* ========================================================= |
||||
* bootstrap-modal.js v2.0.0 |
||||
* http://twitter.github.com/bootstrap/javascript.html#modals
|
||||
* ========================================================= |
||||
* 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" |
||||
|
||||
/* MODAL CLASS DEFINITION |
||||
* ====================== */ |
||||
|
||||
var Modal = function ( content, options ) { |
||||
this.options = $.extend({}, $.fn.modal.defaults, options) |
||||
this.$element = $(content) |
||||
.delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this)) |
||||
} |
||||
|
||||
Modal.prototype = { |
||||
|
||||
constructor: Modal |
||||
|
||||
, toggle: function () { |
||||
return this[!this.isShown ? 'show' : 'hide']() |
||||
} |
||||
|
||||
, show: function () { |
||||
var that = this |
||||
|
||||
if (this.isShown) return |
||||
|
||||
$('body').addClass('modal-open') |
||||
|
||||
this.isShown = true |
||||
this.$element.trigger('show') |
||||
|
||||
escape.call(this) |
||||
backdrop.call(this, function () { |
||||
var transition = $.support.transition && that.$element.hasClass('fade') |
||||
|
||||
!that.$element.parent().length && that.$element.appendTo(document.body) //don't move modals dom position
|
||||
|
||||
that.$element |
||||
.show() |
||||
|
||||
if (transition) { |
||||
that.$element[0].offsetWidth // force reflow
|
||||
} |
||||
|
||||
that.$element.addClass('in') |
||||
|
||||
transition ? |
||||
that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) : |
||||
that.$element.trigger('shown') |
||||
|
||||
}) |
||||
} |
||||
|
||||
, hide: function ( e ) { |
||||
e && e.preventDefault() |
||||
|
||||
if (!this.isShown) return |
||||
|
||||
var that = this |
||||
this.isShown = false |
||||
|
||||
$('body').removeClass('modal-open') |
||||
|
||||
escape.call(this) |
||||
|
||||
this.$element |
||||
.trigger('hide') |
||||
.removeClass('in') |
||||
|
||||
$.support.transition && this.$element.hasClass('fade') ? |
||||
hideWithTransition.call(this) : |
||||
hideModal.call(this) |
||||
} |
||||
|
||||
} |
||||
|
||||
|
||||
/* MODAL PRIVATE METHODS |
||||
* ===================== */ |
||||
|
||||
function hideWithTransition() { |
||||
var that = this |
||||
, timeout = setTimeout(function () { |
||||
that.$element.off($.support.transition.end) |
||||
hideModal.call(that) |
||||
}, 500) |
||||
|
||||
this.$element.one($.support.transition.end, function () { |
||||
clearTimeout(timeout) |
||||
hideModal.call(that) |
||||
}) |
||||
} |
||||
|
||||
function hideModal( that ) { |
||||
this.$element |
||||
.hide() |
||||
.trigger('hidden') |
||||
|
||||
backdrop.call(this) |
||||
} |
||||
|
||||
function backdrop( callback ) { |
||||
var that = this |
||||
, animate = this.$element.hasClass('fade') ? 'fade' : '' |
||||
|
||||
if (this.isShown && this.options.backdrop) { |
||||
var doAnimate = $.support.transition && animate |
||||
|
||||
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />') |
||||
.appendTo(document.body) |
||||
|
||||
if (this.options.backdrop != 'static') { |
||||
this.$backdrop.click($.proxy(this.hide, this)) |
||||
} |
||||
|
||||
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
||||
|
||||
this.$backdrop.addClass('in') |
||||
|
||||
doAnimate ? |
||||
this.$backdrop.one($.support.transition.end, callback) : |
||||
callback() |
||||
|
||||
} else if (!this.isShown && this.$backdrop) { |
||||
this.$backdrop.removeClass('in') |
||||
|
||||
$.support.transition && this.$element.hasClass('fade')? |
||||
this.$backdrop.one($.support.transition.end, $.proxy(removeBackdrop, this)) : |
||||
removeBackdrop.call(this) |
||||
|
||||
} else if (callback) { |
||||
callback() |
||||
} |
||||
} |
||||
|
||||
function removeBackdrop() { |
||||
this.$backdrop.remove() |
||||
this.$backdrop = null |
||||
} |
||||
|
||||
function escape() { |
||||
var that = this |
||||
if (this.isShown && this.options.keyboard) { |
||||
$(document).on('keyup.dismiss.modal', function ( e ) { |
||||
e.which == 27 && that.hide() |
||||
}) |
||||
} else if (!this.isShown) { |
||||
$(document).off('keyup.dismiss.modal') |
||||
} |
||||
} |
||||
|
||||
|
||||
/* MODAL PLUGIN DEFINITION |
||||
* ======================= */ |
||||
|
||||
$.fn.modal = function ( option ) { |
||||
return this.each(function () { |
||||
var $this = $(this) |
||||
, data = $this.data('modal') |
||||
, options = typeof option == 'object' && option |
||||
if (!data) $this.data('modal', (data = new Modal(this, options))) |
||||
if (typeof option == 'string') data[option]() |
||||
else data.show() |
||||
}) |
||||
} |
||||
|
||||
$.fn.modal.defaults = { |
||||
backdrop: true |
||||
, keyboard: true |
||||
} |
||||
|
||||
$.fn.modal.Constructor = Modal |
||||
|
||||
|
||||
/* MODAL DATA-API |
||||
* ============== */ |
||||
|
||||
$(function () { |
||||
$('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) { |
||||
var $this = $(this), href |
||||
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
||||
, option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data()) |
||||
|
||||
e.preventDefault() |
||||
$target.modal(option) |
||||
}) |
||||
}) |
||||
|
||||
}( window.jQuery ) |
@ -0,0 +1,270 @@
@@ -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 ) |
@ -0,0 +1,51 @@
@@ -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 ) |
@ -0,0 +1,271 @@
@@ -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 ) |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
$(document).ready(function() {
// autocomplete of the username (registration form)
$('.register #username').val( $('.register #firstname').val() + $('.register #lastname').val() );
$('.register #firstname').keyup(function() {
$('.register #username').val( $('.register #firstname').val() + $('.register #lastname').val() );
});
$('.register #lastname').keyup(function() {
$('.register #username').val( $('.register #firstname').val() + $('.register #lastname').val() );
});
// "dispatch" clicking a th to the corresponding anchor
$('th.sortable').click( function() {
window.location = $(this).children('a').attr('href');
});
// "dispatch" clicking list item in collapse to the corresponding anchor
$('.accordion li').click( function() {
window.location = $(this).children('a').attr('href');
});
// the mark all
$('input[name="mark_all"]').click(function() {
var checked_status = this.checked;
$('input[name*="marked"]').each(function() {
this.checked = checked_status;
});
if( $('input[name="mark_all"]').is(':checked') && $('.marking-needed').is(':hidden') ) {
$('.marking-needed').fadeIn("fast");
} else if( $('input[name="mark_all"]').is(':checked') && $('.marking-needed').is(':visible') ) {
// do nothing
} else {
$('.marking-needed').fadeOut("fast");
}
});
// show actions only if some data is marked
$('input[name*="marked"]').change(function() {
if( $('input[name*="marked"]').is(':checked') ) {
if( $('.marking-needed').is(':hidden') )
$('.marking-needed').fadeIn("slow");
} else {
$('.marking-needed').fadeOut("slow");
}
});
// quick-actions
$('.quick-action a[data-value]').click(function(event) {
event.preventDefault();
var value = $(this).attr('data-value');
var action = $(this).closest('div').attr('data-action');
$('select[name*='+action+']').each(function() {
$(this).val(value);
});
});
// submit search
$('.search-form input[type="search"]').keypress(function(event) {
if( event.keyCode == 13 && $('.typeahead.dropdown-menu').is(':hidden') )
$('.search-form').submit();
});
// aside filter
$('.filter input[type="checkbox"]').click( function() {
if( $(this).is(':checked') ) {
$(this).parents('li').addClass('active');
} else {
$(this).parents('li').removeClass('active');
}
});
// tooltips
$('.page-controls').tooltip({
selector: "[rel=tooltip]"
});
// calculator
if ( $('input[name="price_unit"]').length ) {
if( $('input[name="price_unit"]').val() != '' && $('input[name="quantity"]').val() != '' ){
var total = $('input[name="price_unit"]').val().replace(",", ".") * $('input[name="quantity"]').val();
total = Math.round(total*100)/100;
$('input[name="price_total_disabled"]').attr( 'placeholder', total );
}
$('input[name="price_unit"], input[name="quantity"]').keyup(function() {
var total = $('input[name="price_unit"]').val().replace(",", ".") * $('input[name="quantity"]').val();
total = Math.round(total*100)/100;
$('input[name="price_total_disabled"]').attr( 'placeholder', total );
});
}
if ( $('input[name="currency"]').length ) {
// added currency to total price
if( $('input[name="currency"]').val() != '' ){
$('input[name="currency_disabled"]').attr( 'placeholder', $('input[name="currency"]').val() );
}
$('input[name="currency"]').keyup(function() {
$('input[name="currency_disabled"]').attr( 'placeholder', $('input[name="currency"]').val() );
});
$('input[name="currency"]').change(function() {
$('input[name="currency_disabled"]').attr( 'placeholder', $('input[name="currency"]').val() );
});
}
}); |
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 13 KiB |
@ -1,154 +0,0 @@
@@ -1,154 +0,0 @@
|
||||
@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700); |
||||
body { |
||||
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; |
||||
font-weight: 300; |
||||
color: #ffffff; |
||||
background: #bc2131; |
||||
} |
||||
h1, |
||||
h2, |
||||
h3, |
||||
h4, |
||||
h5, |
||||
h6 { |
||||
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; |
||||
font-weight: 300; |
||||
} |
||||
p { |
||||
font-weight: 300; |
||||
} |
||||
.font-normal { |
||||
font-weight: 400; |
||||
} |
||||
.font-semi-bold { |
||||
font-weight: 600; |
||||
} |
||||
.font-bold { |
||||
font-weight: 700; |
||||
} |
||||
.starter-template { |
||||
margin-top: 250px; |
||||
} |
||||
.starter-template .content { |
||||
margin-left: 10px; |
||||
} |
||||
.starter-template .content h1 { |
||||
margin-top: 10px; |
||||
font-size: 60px; |
||||
} |
||||
.starter-template .content h1 .smaller { |
||||
font-size: 40px; |
||||
color: #f2b7bd; |
||||
} |
||||
.starter-template .content .lead { |
||||
font-size: 25px; |
||||
color: #f2b7bd; |
||||
} |
||||
.starter-template .content .lead .font-normal { |
||||
color: #ffffff; |
||||
} |
||||
.starter-template .links { |
||||
float: right; |
||||
right: 0; |
||||
margin-top: 125px; |
||||
} |
||||
.starter-template .links ul { |
||||
display: block; |
||||
padding: 0; |
||||
margin: 0; |
||||
} |
||||
.starter-template .links ul li { |
||||
list-style: none; |
||||
display: inline; |
||||
margin: 0 10px; |
||||
} |
||||
.starter-template .links ul li:first-child { |
||||
margin-left: 0; |
||||
} |
||||
.starter-template .links ul li:last-child { |
||||
margin-right: 0; |
||||
} |
||||
.starter-template .links ul li.current-version { |
||||
color: #f2b7bd; |
||||
font-weight: 400; |
||||
} |
||||
.starter-template .links ul li a, a { |
||||
color: #f2b7bd; |
||||
text-decoration: underline; |
||||
} |
||||
.starter-template .links ul li a:hover, a:hover { |
||||
color: #ffffff; |
||||
text-decoration: underline; |
||||
} |
||||
.starter-template .links ul li .icon-muted { |
||||
color: #eb8b95; |
||||
margin-right: 5px; |
||||
} |
||||
.starter-template .links ul li:hover .icon-muted { |
||||
color: #ffffff; |
||||
} |
||||
.starter-template .copyright { |
||||
margin-top: 10px; |
||||
font-size: 0.9em; |
||||
color: #f2b7bd; |
||||
text-transform: lowercase; |
||||
float: right; |
||||
right: 0; |
||||
} |
||||
@media (max-width: 1199px) { |
||||
.starter-template .content h1 { |
||||
font-size: 45px; |
||||
} |
||||
.starter-template .content h1 .smaller { |
||||
font-size: 30px; |
||||
} |
||||
.starter-template .content .lead { |
||||
font-size: 20px; |
||||
} |
||||
} |
||||
@media (max-width: 991px) { |
||||
.starter-template { |
||||
margin-top: 0; |
||||
} |
||||
.starter-template .logo { |
||||
margin: 40px auto; |
||||
} |
||||
.starter-template .content { |
||||
margin-left: 0; |
||||
text-align: center; |
||||
} |
||||
.starter-template .content h1 { |
||||
margin-bottom: 20px; |
||||
} |
||||
.starter-template .links { |
||||
float: none; |
||||
text-align: center; |
||||
margin-top: 60px; |
||||
} |
||||
.starter-template .copyright { |
||||
float: none; |
||||
text-align: center; |
||||
} |
||||
} |
||||
@media (max-width: 767px) { |
||||
.starter-template .content h1 .smaller { |
||||
font-size: 25px; |
||||
display: block; |
||||
} |
||||
.starter-template .content .lead { |
||||
font-size: 16px; |
||||
} |
||||
.starter-template .links { |
||||
margin-top: 40px; |
||||
} |
||||
.starter-template .links ul li { |
||||
display: block; |
||||
margin: 0; |
||||
} |
||||
.starter-template .links ul li .icon-muted { |
||||
display: none; |
||||
} |
||||
.starter-template .copyright { |
||||
margin-top: 20px; |
||||
} |
||||
} |
Reference in new issue