sass-twitter-bootstrap 0.1.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/{sass-twitter-bootstrap.rb → sass/twitter/bootstrap.rb} +1 -1
- data/lib/sass/twitter/bootstrap/rails.rb +1 -5
- data/lib/sass/twitter/bootstrap/rails/engine.rb +12 -0
- data/lib/sass/twitter/bootstrap/version.rb +1 -1
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap-alert.js +32 -28
- data/vendor/assets/javascripts/twitter/bootstrap-button.js +33 -29
- data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +21 -33
- data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +26 -47
- data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +10 -18
- data/vendor/assets/javascripts/twitter/bootstrap-modal.js +17 -25
- data/vendor/assets/javascripts/twitter/bootstrap-popover.js +10 -13
- data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +18 -44
- data/vendor/assets/javascripts/twitter/bootstrap-tab.js +7 -12
- data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +35 -40
- data/vendor/assets/javascripts/twitter/bootstrap-transition.js +20 -30
- data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +15 -29
- data/vendor/assets/stylesheets/tests/buttons.html +139 -0
- data/vendor/assets/stylesheets/tests/css-tests.css +99 -1
- data/vendor/assets/stylesheets/tests/css-tests.html +519 -37
- data/vendor/assets/stylesheets/tests/forms-responsive.html +71 -0
- data/vendor/assets/stylesheets/tests/navbar-fixed-top.html +104 -0
- data/vendor/assets/stylesheets/tests/navbar-static-top.html +107 -0
- data/vendor/assets/stylesheets/tests/navbar.html +38 -39
- data/vendor/assets/stylesheets/twitter/_accordion.scss +0 -5
- data/vendor/assets/stylesheets/twitter/_alerts.scss +15 -3
- data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +0 -2
- data/vendor/assets/stylesheets/twitter/_button-groups.scss +32 -76
- data/vendor/assets/stylesheets/twitter/_buttons.scss +25 -33
- data/vendor/assets/stylesheets/twitter/_close.scss +1 -12
- data/vendor/assets/stylesheets/twitter/_code.scss +8 -8
- data/vendor/assets/stylesheets/twitter/_component-animations.scss +7 -9
- data/vendor/assets/stylesheets/twitter/_dropdowns.scss +45 -58
- data/vendor/assets/stylesheets/twitter/_forms.scss +146 -206
- data/vendor/assets/stylesheets/twitter/_grid.scss +5 -2
- data/vendor/assets/stylesheets/twitter/_hero-unit.scss +1 -3
- data/vendor/assets/stylesheets/twitter/_labels.scss +32 -0
- data/vendor/assets/stylesheets/twitter/_layouts.scss +2 -2
- data/vendor/assets/stylesheets/twitter/_mixins.scss +208 -273
- data/vendor/assets/stylesheets/twitter/_modals.scss +8 -14
- data/vendor/assets/stylesheets/twitter/_navbar.scss +73 -132
- data/vendor/assets/stylesheets/twitter/_navs.scss +43 -53
- data/vendor/assets/stylesheets/twitter/_pager.scss +0 -6
- data/vendor/assets/stylesheets/twitter/_pagination.scss +0 -1
- data/vendor/assets/stylesheets/twitter/_progress-bars.scss +6 -28
- data/vendor/assets/stylesheets/twitter/_reset.scss +4 -9
- data/vendor/assets/stylesheets/twitter/_scaffolding.scss +8 -4
- data/vendor/assets/stylesheets/twitter/_sprites.scss +7 -40
- data/vendor/assets/stylesheets/twitter/_tables.scss +33 -38
- data/vendor/assets/stylesheets/twitter/_thumbnails.scss +2 -14
- data/vendor/assets/stylesheets/twitter/_tooltip.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_type.scss +14 -28
- data/vendor/assets/stylesheets/twitter/_variables.scss +19 -116
- data/vendor/assets/stylesheets/twitter/_wells.scss +0 -10
- data/vendor/assets/stylesheets/twitter/bootstrap.scss +7 -3
- data/vendor/assets/stylesheets/twitter/responsive.scss +301 -15
- metadata +25 -190
- data/.gitignore +0 -4
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -14
- data/LICENSE +0 -176
- data/Makefile +0 -94
- data/README.md +0 -217
- data/Rakefile +0 -52
- data/bootstrap-2.0.4.css +0 -4661
- data/bootstrap-2.0.4.min.css +0 -9
- data/bootstrap-responsive-2.0.4.css +0 -932
- data/bootstrap-responsive-2.0.4.min.css +0 -9
- data/docs/assets/css/bootstrap-responsive.css +0 -932
- data/docs/assets/css/bootstrap.css +0 -4661
- data/docs/assets/css/docs.css +0 -846
- data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
- data/docs/assets/ico/favicon.ico +0 -0
- data/docs/assets/img/bird.png +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
- data/docs/assets/img/browsers.png +0 -0
- data/docs/assets/img/example-sites/fleetio.png +0 -0
- data/docs/assets/img/example-sites/jshint.png +0 -0
- data/docs/assets/img/example-sites/kippt.png +0 -0
- data/docs/assets/img/example-sites/soundready.png +0 -0
- data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
- data/docs/assets/img/github-16px.png +0 -0
- data/docs/assets/img/glyphicons-halflings-white.png +0 -0
- data/docs/assets/img/glyphicons-halflings.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/docs/assets/img/grid-18px-masked.png +0 -0
- data/docs/assets/img/icon-css3.png +0 -0
- data/docs/assets/img/icon-github.png +0 -0
- data/docs/assets/img/icon-html5.png +0 -0
- data/docs/assets/img/icon-twitter.png +0 -0
- data/docs/assets/img/less-logo-large.png +0 -0
- data/docs/assets/img/less-small.png +0 -0
- data/docs/assets/img/responsive-illustrations.png +0 -0
- data/docs/assets/js/README.md +0 -106
- data/docs/assets/js/application.js +0 -184
- data/docs/assets/js/bootstrap-alert.js +0 -90
- data/docs/assets/js/bootstrap-button.js +0 -96
- data/docs/assets/js/bootstrap-carousel.js +0 -169
- data/docs/assets/js/bootstrap-collapse.js +0 -157
- data/docs/assets/js/bootstrap-dropdown.js +0 -100
- data/docs/assets/js/bootstrap-modal.js +0 -218
- data/docs/assets/js/bootstrap-popover.js +0 -98
- data/docs/assets/js/bootstrap-scrollspy.js +0 -151
- data/docs/assets/js/bootstrap-tab.js +0 -135
- data/docs/assets/js/bootstrap-tooltip.js +0 -275
- data/docs/assets/js/bootstrap-transition.js +0 -61
- data/docs/assets/js/bootstrap-typeahead.js +0 -285
- data/docs/assets/js/bootstrap.js +0 -1825
- data/docs/assets/js/bootstrap.min.js +0 -6
- data/docs/assets/js/google-code-prettify/prettify.css +0 -30
- data/docs/assets/js/google-code-prettify/prettify.js +0 -28
- data/docs/assets/js/jquery.js +0 -9252
- data/docs/base-css.html +0 -1710
- data/docs/build/index.js +0 -44
- data/docs/build/node_modules/.bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/.git_ignore +0 -1
- data/docs/build/node_modules/hogan.js/.gitmodules +0 -3
- data/docs/build/node_modules/hogan.js/LICENSE +0 -177
- data/docs/build/node_modules/hogan.js/Makefile +0 -62
- data/docs/build/node_modules/hogan.js/README.md +0 -93
- data/docs/build/node_modules/hogan.js/bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
- data/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
- data/docs/build/node_modules/hogan.js/lib/template.js +0 -233
- data/docs/build/node_modules/hogan.js/package.json +0 -20
- data/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
- data/docs/build/node_modules/hogan.js/test/index.html +0 -13
- data/docs/build/node_modules/hogan.js/test/index.js +0 -848
- data/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
- data/docs/build/node_modules/hogan.js/test/spec.js +0 -77
- data/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
- data/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
- data/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
- data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
- data/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
- data/docs/build/node_modules/hogan.js/tools/release.js +0 -74
- data/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
- data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
- data/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
- data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
- data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
- data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
- data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
- data/docs/build/package.json +0 -6
- data/docs/components.html +0 -1931
- data/docs/download.html +0 -454
- data/docs/examples.html +0 -147
- data/docs/examples/fluid.html +0 -162
- data/docs/examples/hero.html +0 -109
- data/docs/examples/starter-template.html +0 -79
- data/docs/index.html +0 -259
- data/docs/javascript.html +0 -1520
- data/docs/less.html +0 -1060
- data/docs/scaffolding.html +0 -671
- data/docs/templates/layout.mustache +0 -146
- data/docs/templates/pages/base-css.mustache +0 -1594
- data/docs/templates/pages/components.mustache +0 -1815
- data/docs/templates/pages/download.mustache +0 -338
- data/docs/templates/pages/examples.mustache +0 -31
- data/docs/templates/pages/index.mustache +0 -144
- data/docs/templates/pages/javascript.mustache +0 -1405
- data/docs/templates/pages/less.mustache +0 -944
- data/docs/templates/pages/scaffolding.mustache +0 -555
- data/docs/templates/pages/upgrading.mustache +0 -194
- data/docs/upgrading.html +0 -310
- data/js/tests/index.html +0 -54
- data/js/tests/phantom.js +0 -63
- data/js/tests/server.js +0 -14
- data/js/tests/unit/bootstrap-alert.js +0 -56
- data/js/tests/unit/bootstrap-button.js +0 -77
- data/js/tests/unit/bootstrap-carousel.js +0 -28
- data/js/tests/unit/bootstrap-collapse.js +0 -54
- data/js/tests/unit/bootstrap-dropdown.js +0 -87
- data/js/tests/unit/bootstrap-modal.js +0 -114
- data/js/tests/unit/bootstrap-phantom.js +0 -21
- data/js/tests/unit/bootstrap-popover.js +0 -93
- data/js/tests/unit/bootstrap-scrollspy.js +0 -31
- data/js/tests/unit/bootstrap-tab.js +0 -61
- data/js/tests/unit/bootstrap-tooltip.js +0 -155
- data/js/tests/unit/bootstrap-transition.js +0 -13
- data/js/tests/unit/bootstrap-typeahead.js +0 -148
- data/js/tests/vendor/jquery.js +0 -9252
- data/js/tests/vendor/qunit.css +0 -232
- data/js/tests/vendor/qunit.js +0 -1510
- data/package.json +0 -25
- data/sass-twitter-bootstrap.gemspec +0 -19
- data/vendor/assets/javascripts/README.md +0 -112
- data/vendor/assets/javascripts/twitter/bootstrap.js +0 -12
- data/vendor/assets/stylesheets/twitter/_labels-badges.scss +0 -52
- data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +0 -26
- data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +0 -149
- data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +0 -17
- data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +0 -153
- data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +0 -41
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ===================================================
|
2
|
-
* bootstrap-transition.js v2.0.
|
2
|
+
* bootstrap-transition.js v2.0.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
4
4
|
* ===================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -17,45 +17,35 @@
|
|
17
17
|
* limitations under the License.
|
18
18
|
* ========================================================== */
|
19
19
|
|
20
|
-
|
21
|
-
!function ($) {
|
20
|
+
!function( $ ) {
|
22
21
|
|
23
22
|
$(function () {
|
24
23
|
|
25
|
-
"use strict"
|
26
|
-
|
24
|
+
"use strict"
|
27
25
|
|
28
|
-
/* CSS TRANSITION SUPPORT (
|
26
|
+
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
|
29
27
|
* ======================================================= */
|
30
28
|
|
31
29
|
$.support.transition = (function () {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
for (name in transEndEventNames){
|
46
|
-
if (el.style[name] !== undefined) {
|
47
|
-
return transEndEventNames[name]
|
30
|
+
var thisBody = document.body || document.documentElement
|
31
|
+
, thisStyle = thisBody.style
|
32
|
+
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
|
33
|
+
|
34
|
+
return support && {
|
35
|
+
end: (function () {
|
36
|
+
var transitionEnd = "TransitionEnd"
|
37
|
+
if ( $.browser.webkit ) {
|
38
|
+
transitionEnd = "webkitTransitionEnd"
|
39
|
+
} else if ( $.browser.mozilla ) {
|
40
|
+
transitionEnd = "transitionend"
|
41
|
+
} else if ( $.browser.opera ) {
|
42
|
+
transitionEnd = "oTransitionEnd"
|
48
43
|
}
|
49
|
-
|
50
|
-
|
51
|
-
}())
|
52
|
-
|
53
|
-
return transitionEnd && {
|
54
|
-
end: transitionEnd
|
44
|
+
return transitionEnd
|
45
|
+
}())
|
55
46
|
}
|
56
|
-
|
57
47
|
})()
|
58
48
|
|
59
49
|
})
|
60
50
|
|
61
|
-
}(window.jQuery);
|
51
|
+
}( window.jQuery );
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* =============================================================
|
2
|
-
* bootstrap-typeahead.js v2.0.
|
2
|
+
* bootstrap-typeahead.js v2.0.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
4
4
|
* =============================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -17,22 +17,16 @@
|
|
17
17
|
* limitations under the License.
|
18
18
|
* ============================================================ */
|
19
19
|
|
20
|
+
!function( $ ){
|
20
21
|
|
21
|
-
|
22
|
+
"use strict"
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
/* TYPEAHEAD PUBLIC CLASS DEFINITION
|
27
|
-
* ================================= */
|
28
|
-
|
29
|
-
var Typeahead = function (element, options) {
|
24
|
+
var Typeahead = function ( element, options ) {
|
30
25
|
this.$element = $(element)
|
31
26
|
this.options = $.extend({}, $.fn.typeahead.defaults, options)
|
32
27
|
this.matcher = this.options.matcher || this.matcher
|
33
28
|
this.sorter = this.options.sorter || this.sorter
|
34
29
|
this.highlighter = this.options.highlighter || this.highlighter
|
35
|
-
this.updater = this.options.updater || this.updater
|
36
30
|
this.$menu = $(this.options.menu).appendTo('body')
|
37
31
|
this.source = this.options.source
|
38
32
|
this.shown = false
|
@@ -45,16 +39,10 @@
|
|
45
39
|
|
46
40
|
, select: function () {
|
47
41
|
var val = this.$menu.find('.active').attr('data-value')
|
48
|
-
this.$element
|
49
|
-
.val(this.updater(val))
|
50
|
-
.change()
|
42
|
+
this.$element.val(val)
|
51
43
|
return this.hide()
|
52
44
|
}
|
53
45
|
|
54
|
-
, updater: function (item) {
|
55
|
-
return item
|
56
|
-
}
|
57
|
-
|
58
46
|
, show: function () {
|
59
47
|
var pos = $.extend({}, this.$element.offset(), {
|
60
48
|
height: this.$element[0].offsetHeight
|
@@ -88,7 +76,7 @@
|
|
88
76
|
}
|
89
77
|
|
90
78
|
items = $.grep(this.source, function (item) {
|
91
|
-
|
79
|
+
if (that.matcher(item)) return item
|
92
80
|
})
|
93
81
|
|
94
82
|
items = this.sorter(items)
|
@@ -120,8 +108,7 @@
|
|
120
108
|
}
|
121
109
|
|
122
110
|
, highlighter: function (item) {
|
123
|
-
|
124
|
-
return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
|
111
|
+
return item.replace(new RegExp('(' + this.query + ')', 'ig'), function ($1, match) {
|
125
112
|
return '<strong>' + match + '</strong>'
|
126
113
|
})
|
127
114
|
}
|
@@ -178,6 +165,9 @@
|
|
178
165
|
}
|
179
166
|
|
180
167
|
, keyup: function (e) {
|
168
|
+
e.stopPropagation()
|
169
|
+
e.preventDefault()
|
170
|
+
|
181
171
|
switch(e.keyCode) {
|
182
172
|
case 40: // down arrow
|
183
173
|
case 38: // up arrow
|
@@ -190,7 +180,6 @@
|
|
190
180
|
break
|
191
181
|
|
192
182
|
case 27: // escape
|
193
|
-
if (!this.shown) return
|
194
183
|
this.hide()
|
195
184
|
break
|
196
185
|
|
@@ -198,11 +187,10 @@
|
|
198
187
|
this.lookup()
|
199
188
|
}
|
200
189
|
|
201
|
-
e.stopPropagation()
|
202
|
-
e.preventDefault()
|
203
190
|
}
|
204
191
|
|
205
192
|
, keypress: function (e) {
|
193
|
+
e.stopPropagation()
|
206
194
|
if (!this.shown) return
|
207
195
|
|
208
196
|
switch(e.keyCode) {
|
@@ -213,23 +201,21 @@
|
|
213
201
|
break
|
214
202
|
|
215
203
|
case 38: // up arrow
|
216
|
-
if (e.type != 'keydown') break
|
217
204
|
e.preventDefault()
|
218
205
|
this.prev()
|
219
206
|
break
|
220
207
|
|
221
208
|
case 40: // down arrow
|
222
|
-
if (e.type != 'keydown') break
|
223
209
|
e.preventDefault()
|
224
210
|
this.next()
|
225
211
|
break
|
226
212
|
}
|
227
|
-
|
228
|
-
e.stopPropagation()
|
229
213
|
}
|
230
214
|
|
231
215
|
, blur: function (e) {
|
232
216
|
var that = this
|
217
|
+
e.stopPropagation()
|
218
|
+
e.preventDefault()
|
233
219
|
setTimeout(function () { that.hide() }, 150)
|
234
220
|
}
|
235
221
|
|
@@ -250,7 +236,7 @@
|
|
250
236
|
/* TYPEAHEAD PLUGIN DEFINITION
|
251
237
|
* =========================== */
|
252
238
|
|
253
|
-
$.fn.typeahead = function (option) {
|
239
|
+
$.fn.typeahead = function ( option ) {
|
254
240
|
return this.each(function () {
|
255
241
|
var $this = $(this)
|
256
242
|
, data = $this.data('typeahead')
|
@@ -282,4 +268,4 @@
|
|
282
268
|
})
|
283
269
|
})
|
284
270
|
|
285
|
-
}(window.jQuery);
|
271
|
+
}( window.jQuery );
|
@@ -0,0 +1,139 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Buttons · Bootstrap</title>
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
<meta name="description" content="">
|
8
|
+
<meta name="author" content="">
|
9
|
+
|
10
|
+
<!-- Le styles -->
|
11
|
+
<link href="../../docs/assets/css/bootstrap.css" rel="stylesheet">
|
12
|
+
<style>
|
13
|
+
body {
|
14
|
+
padding-top: 30px;
|
15
|
+
padding-bottom: 30px;
|
16
|
+
}
|
17
|
+
</style>
|
18
|
+
<link href="../../docs/assets/css/bootstrap-responsive.css" rel="stylesheet">
|
19
|
+
|
20
|
+
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
21
|
+
<!--[if lt IE 9]>
|
22
|
+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
23
|
+
<![endif]-->
|
24
|
+
|
25
|
+
<!-- Le fav and touch icons -->
|
26
|
+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../docs/assets/ico/apple-touch-icon-144-precomposed.png">
|
27
|
+
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../docs/assets/ico/apple-touch-icon-114-precomposed.png">
|
28
|
+
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../docs/assets/ico/apple-touch-icon-72-precomposed.png">
|
29
|
+
<link rel="apple-touch-icon-precomposed" href="../../docs/assets/ico/apple-touch-icon-57-precomposed.png">
|
30
|
+
<link rel="shortcut icon" href="../../docs/assets/ico/favicon.png">
|
31
|
+
</head>
|
32
|
+
|
33
|
+
<body>
|
34
|
+
|
35
|
+
<div class="container">
|
36
|
+
|
37
|
+
<h2>Dropups</h2>
|
38
|
+
<div class="btn-toolbar">
|
39
|
+
<div class="btn-group dropup">
|
40
|
+
<button class="btn">Dropup</button>
|
41
|
+
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
42
|
+
<ul class="dropdown-menu">
|
43
|
+
<li><a href="#">Action</a></li>
|
44
|
+
<li><a href="#">Another action</a></li>
|
45
|
+
<li><a href="#">Something else here</a></li>
|
46
|
+
<li class="divider"></li>
|
47
|
+
<li><a href="#">Separated link</a></li>
|
48
|
+
</ul>
|
49
|
+
</div><!-- /btn-group -->
|
50
|
+
<div class="btn-group dropup">
|
51
|
+
<button class="btn btn-primary">Dropup</button>
|
52
|
+
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
53
|
+
<ul class="dropdown-menu">
|
54
|
+
<li><a href="#">Action</a></li>
|
55
|
+
<li><a href="#">Another action</a></li>
|
56
|
+
<li><a href="#">Something else here</a></li>
|
57
|
+
<li class="divider"></li>
|
58
|
+
<li><a href="#">Separated link</a></li>
|
59
|
+
</ul>
|
60
|
+
</div><!-- /btn-group -->
|
61
|
+
<div class="btn-group dropup">
|
62
|
+
<button class="btn btn-danger">Dropup</button>
|
63
|
+
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
64
|
+
<ul class="dropdown-menu">
|
65
|
+
<li><a href="#">Action</a></li>
|
66
|
+
<li><a href="#">Another action</a></li>
|
67
|
+
<li><a href="#">Something else here</a></li>
|
68
|
+
<li class="divider"></li>
|
69
|
+
<li><a href="#">Separated link</a></li>
|
70
|
+
</ul>
|
71
|
+
</div><!-- /btn-group -->
|
72
|
+
<div class="btn-group dropup">
|
73
|
+
<button class="btn btn-warning">Dropup</button>
|
74
|
+
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
75
|
+
<ul class="dropdown-menu">
|
76
|
+
<li><a href="#">Action</a></li>
|
77
|
+
<li><a href="#">Another action</a></li>
|
78
|
+
<li><a href="#">Something else here</a></li>
|
79
|
+
<li class="divider"></li>
|
80
|
+
<li><a href="#">Separated link</a></li>
|
81
|
+
</ul>
|
82
|
+
</div><!-- /btn-group -->
|
83
|
+
<div class="btn-group dropup">
|
84
|
+
<button class="btn btn-success">Dropup</button>
|
85
|
+
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
86
|
+
<ul class="dropdown-menu">
|
87
|
+
<li><a href="#">Action</a></li>
|
88
|
+
<li><a href="#">Another action</a></li>
|
89
|
+
<li><a href="#">Something else here</a></li>
|
90
|
+
<li class="divider"></li>
|
91
|
+
<li><a href="#">Separated link</a></li>
|
92
|
+
</ul>
|
93
|
+
</div><!-- /btn-group -->
|
94
|
+
<div class="btn-group dropup">
|
95
|
+
<button class="btn btn-info">Dropup</button>
|
96
|
+
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
97
|
+
<ul class="dropdown-menu">
|
98
|
+
<li><a href="#">Action</a></li>
|
99
|
+
<li><a href="#">Another action</a></li>
|
100
|
+
<li><a href="#">Something else here</a></li>
|
101
|
+
<li class="divider"></li>
|
102
|
+
<li><a href="#">Separated link</a></li>
|
103
|
+
</ul>
|
104
|
+
</div><!-- /btn-group -->
|
105
|
+
<div class="btn-group dropup">
|
106
|
+
<button class="btn btn-inverse">Dropup</button>
|
107
|
+
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
108
|
+
<ul class="dropdown-menu">
|
109
|
+
<li><a href="#">Action</a></li>
|
110
|
+
<li><a href="#">Another action</a></li>
|
111
|
+
<li><a href="#">Something else here</a></li>
|
112
|
+
<li class="divider"></li>
|
113
|
+
<li><a href="#">Separated link</a></li>
|
114
|
+
</ul>
|
115
|
+
</div><!-- /btn-group -->
|
116
|
+
</div><!-- /btn-toolbar -->
|
117
|
+
|
118
|
+
|
119
|
+
</div> <!-- /container -->
|
120
|
+
|
121
|
+
<!-- Le javascript
|
122
|
+
================================================== -->
|
123
|
+
<!-- Placed at the end of the document so the pages load faster -->
|
124
|
+
<script src="../../docs/assets/js/jquery.js"></script>
|
125
|
+
<script src="../../docs/assets/js/bootstrap-transition.js"></script>
|
126
|
+
<script src="../../docs/assets/js/bootstrap-alert.js"></script>
|
127
|
+
<script src="../../docs/assets/js/bootstrap-modal.js"></script>
|
128
|
+
<script src="../../docs/assets/js/bootstrap-dropdown.js"></script>
|
129
|
+
<script src="../../docs/assets/js/bootstrap-scrollspy.js"></script>
|
130
|
+
<script src="../../docs/assets/js/bootstrap-tab.js"></script>
|
131
|
+
<script src="../../docs/assets/js/bootstrap-tooltip.js"></script>
|
132
|
+
<script src="../../docs/assets/js/bootstrap-popover.js"></script>
|
133
|
+
<script src="../../docs/assets/js/bootstrap-button.js"></script>
|
134
|
+
<script src="../../docs/assets/js/bootstrap-collapse.js"></script>
|
135
|
+
<script src="../../docs/assets/js/bootstrap-carousel.js"></script>
|
136
|
+
<script src="../../docs/assets/js/bootstrap-typeahead.js"></script>
|
137
|
+
|
138
|
+
</body>
|
139
|
+
</html>
|
@@ -12,9 +12,24 @@ body {
|
|
12
12
|
.subhead {
|
13
13
|
margin-bottom: 36px;
|
14
14
|
}
|
15
|
-
h4 {
|
15
|
+
/*h4 {
|
16
16
|
margin-bottom: 5px;
|
17
17
|
}
|
18
|
+
*/
|
19
|
+
|
20
|
+
.type-test {
|
21
|
+
margin-bottom: 20px;
|
22
|
+
padding: 0 20px 20px;
|
23
|
+
background: url(../../docs/assets/img/grid-baseline-20px.png);
|
24
|
+
}
|
25
|
+
.type-test h1,
|
26
|
+
.type-test h2,
|
27
|
+
.type-test h3,
|
28
|
+
.type-test h4,
|
29
|
+
.type-test h5,
|
30
|
+
.type-test h6 {
|
31
|
+
background-color: rgba(255,0,0,.2);
|
32
|
+
}
|
18
33
|
|
19
34
|
|
20
35
|
/* colgroup tests */
|
@@ -50,3 +65,86 @@ h4 {
|
|
50
65
|
.fluid-grid .span1 {
|
51
66
|
background-color: #999;
|
52
67
|
}
|
68
|
+
|
69
|
+
|
70
|
+
/* Gradients */
|
71
|
+
|
72
|
+
[class^="gradient-"] {
|
73
|
+
width: 100%;
|
74
|
+
height: 400px;
|
75
|
+
margin: 20px 0;
|
76
|
+
-webkit-border-radius: 5px;
|
77
|
+
-moz-border-radius: 5px;
|
78
|
+
border-radius: 5px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.gradient-horizontal {
|
82
|
+
background-color: #333333;
|
83
|
+
background-image: -moz-linear-gradient(left, #555555, #333333);
|
84
|
+
background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#555555), to(#333333));
|
85
|
+
background-image: -webkit-linear-gradient(left, #555555, #333333);
|
86
|
+
background-image: -o-linear-gradient(left, #555555, #333333);
|
87
|
+
background-image: linear-gradient(to right, #555555, #333333);
|
88
|
+
background-repeat: repeat-x;
|
89
|
+
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff555555', endColorstr='#ff333333', GradientType=1);
|
90
|
+
}
|
91
|
+
|
92
|
+
.gradient-vertical {
|
93
|
+
background-color: #474747;
|
94
|
+
background-image: -moz-linear-gradient(top, #555555, #333333);
|
95
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#333333));
|
96
|
+
background-image: -webkit-linear-gradient(top, #555555, #333333);
|
97
|
+
background-image: -o-linear-gradient(top, #555555, #333333);
|
98
|
+
background-image: linear-gradient(to bottom, #555555, #333333);
|
99
|
+
background-repeat: repeat-x;
|
100
|
+
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff555555', endColorstr='#ff333333', GradientType=0);
|
101
|
+
}
|
102
|
+
|
103
|
+
.gradient-directional {
|
104
|
+
background-color: #333333;
|
105
|
+
background-image: -moz-linear-gradient(45deg, #555555, #333333);
|
106
|
+
background-image: -webkit-linear-gradient(45deg, #555555, #333333);
|
107
|
+
background-image: -o-linear-gradient(45deg, #555555, #333333);
|
108
|
+
background-image: linear-gradient(45deg, #555555, #333333);
|
109
|
+
background-repeat: repeat-x;
|
110
|
+
}
|
111
|
+
|
112
|
+
.gradient-vertical-three {
|
113
|
+
background-color: #8940a5;
|
114
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#00b3ee), color-stop(50%, #7a43b6), to(#c3325f));
|
115
|
+
background-image: -webkit-linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
|
116
|
+
background-image: -moz-linear-gradient(top, #00b3ee, #7a43b6 50%, #c3325f);
|
117
|
+
background-image: -o-linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
|
118
|
+
background-image: linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
|
119
|
+
background-repeat: no-repeat;
|
120
|
+
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff00b3ee', endColorstr='#ffc3325f', GradientType=0);
|
121
|
+
}
|
122
|
+
|
123
|
+
.gradient-radial {
|
124
|
+
background-color: #333333;
|
125
|
+
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(#555555), to(#333333));
|
126
|
+
background-image: -webkit-radial-gradient(circle, #555555, #333333);
|
127
|
+
background-image: -moz-radial-gradient(circle, #555555, #333333);
|
128
|
+
background-image: -o-radial-gradient(circle, #555555, #333333);
|
129
|
+
background-repeat: no-repeat;
|
130
|
+
}
|
131
|
+
|
132
|
+
.gradient-striped {
|
133
|
+
background-color: #555555;
|
134
|
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
135
|
+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
136
|
+
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
137
|
+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
138
|
+
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
139
|
+
}
|
140
|
+
|
141
|
+
.gradient-horizontal-three {
|
142
|
+
background-color: #00b3ee;
|
143
|
+
background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from(#00b3ee), color-stop(50%, #7a43b6), to(#c3325f));
|
144
|
+
background-image: -webkit-linear-gradient(left, #00b3ee, #7a43b6 50%, #c3325f);
|
145
|
+
background-image: -moz-linear-gradient(left, #00b3ee, #7a43b6 50%, #c3325f);
|
146
|
+
background-image: -o-linear-gradient(left, #00b3ee, #7a43b6 50%, #c3325f);
|
147
|
+
background-image: linear-gradient(to right, #00b3ee, #7a43b6 50%, #c3325f);
|
148
|
+
background-repeat: no-repeat;
|
149
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00b3ee', endColorstr='#c3325f', GradientType=0);
|
150
|
+
}
|