twitter-bootswatch-rails 2.3.2.8 → 3.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +8 -8
  2. data/lib/generators/bootswatch/import/import_generator.rb +4 -5
  3. data/lib/generators/bootswatch/install/install_generator.rb +4 -6
  4. data/lib/generators/bootswatch/install/templates/bootstrap.less +29 -33
  5. data/lib/generators/bootswatch/install/templates/bootswatch.css.less.tt +0 -4
  6. data/lib/generators/bootswatch/install/templates/bootswatch.js.tt +3 -0
  7. data/lib/generators/bootswatch/install/templates/loader.css.less.tt +1 -1
  8. data/lib/generators/bootswatch/install/templates/loader.js.tt +10 -0
  9. data/lib/generators/bootswatch/install/templates/mixins.less.tt +487 -466
  10. data/lib/generators/bootswatch/install/templates/variables.less.tt +498 -179
  11. data/lib/generators/bootswatch/layout/templates/layout.html.erb +349 -18
  12. data/lib/generators/bootswatch/layout/templates/layout.html.haml +0 -5
  13. data/lib/generators/bootswatch/layout/templates/layout.html.slim +0 -5
  14. data/lib/twitter/bootswatch/rails/version.rb +1 -1
  15. data/vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  16. data/vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +228 -0
  17. data/vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  18. data/vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  19. data/vendor/assets/javascripts/twitter/bootstrap/affix.js +126 -0
  20. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +98 -0
  21. data/vendor/assets/javascripts/twitter/bootstrap/button.js +109 -0
  22. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +217 -0
  23. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +179 -0
  24. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +154 -0
  25. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +246 -0
  26. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +117 -0
  27. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +158 -0
  28. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +135 -0
  29. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +386 -0
  30. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +56 -0
  31. data/vendor/toolkit/twitter/bootstrap/alerts.less +46 -58
  32. data/vendor/toolkit/twitter/bootstrap/badges.less +51 -0
  33. data/vendor/toolkit/twitter/bootstrap/bootstrap.less +29 -33
  34. data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +7 -8
  35. data/vendor/toolkit/twitter/bootstrap/button-groups.less +173 -154
  36. data/vendor/toolkit/twitter/bootstrap/buttons.less +97 -165
  37. data/vendor/toolkit/twitter/bootstrap/carousel.less +115 -64
  38. data/vendor/toolkit/twitter/bootstrap/close.less +20 -19
  39. data/vendor/toolkit/twitter/bootstrap/code.less +17 -22
  40. data/vendor/toolkit/twitter/bootstrap/component-animations.less +10 -3
  41. data/vendor/toolkit/twitter/bootstrap/dropdowns.less +92 -147
  42. data/vendor/toolkit/twitter/bootstrap/forms.less +224 -561
  43. data/vendor/toolkit/twitter/bootstrap/glyphicons.less +232 -0
  44. data/vendor/toolkit/twitter/bootstrap/grid.less +336 -11
  45. data/vendor/toolkit/twitter/bootstrap/input-groups.less +127 -0
  46. data/vendor/toolkit/twitter/bootstrap/jumbotron.less +40 -0
  47. data/vendor/toolkit/twitter/bootstrap/labels.less +58 -0
  48. data/vendor/toolkit/twitter/bootstrap/list-group.less +88 -0
  49. data/vendor/toolkit/twitter/bootstrap/media.less +8 -7
  50. data/vendor/toolkit/twitter/bootstrap/mixins.less +487 -466
  51. data/vendor/toolkit/twitter/bootstrap/modals.less +98 -52
  52. data/vendor/toolkit/twitter/bootstrap/navbar.less +507 -383
  53. data/vendor/toolkit/twitter/bootstrap/navs.less +169 -349
  54. data/vendor/toolkit/twitter/bootstrap/normalize.less +396 -0
  55. data/vendor/toolkit/twitter/bootstrap/pager.less +45 -33
  56. data/vendor/toolkit/twitter/bootstrap/pagination.less +65 -105
  57. data/vendor/toolkit/twitter/bootstrap/panels.less +148 -0
  58. data/vendor/toolkit/twitter/bootstrap/popovers.less +51 -51
  59. data/vendor/toolkit/twitter/bootstrap/print.less +100 -0
  60. data/vendor/toolkit/twitter/bootstrap/progress-bars.less +28 -55
  61. data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +195 -34
  62. data/vendor/toolkit/twitter/bootstrap/scaffolding.less +101 -24
  63. data/vendor/toolkit/twitter/bootstrap/tables.less +170 -178
  64. data/vendor/toolkit/twitter/bootstrap/theme.less +232 -0
  65. data/vendor/toolkit/twitter/bootstrap/thumbnails.less +11 -33
  66. data/vendor/toolkit/twitter/bootstrap/tooltip.less +45 -20
  67. data/vendor/toolkit/twitter/bootstrap/type.less +101 -110
  68. data/vendor/toolkit/twitter/bootstrap/utilities.less +19 -7
  69. data/vendor/toolkit/twitter/bootstrap/variables.less +498 -179
  70. data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
  71. metadata +33 -36
  72. data/lib/generators/bootswatch/install/templates/bootswatch.js.coffee.tt +0 -9
  73. data/lib/generators/bootswatch/install/templates/loader.coffee.tt +0 -23
  74. data/lib/generators/bootswatch/install/templates/responsive.less.tt +0 -51
  75. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  76. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  77. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +0 -117
  78. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +0 -99
  79. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +0 -105
  80. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +0 -207
  81. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +0 -167
  82. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +0 -169
  83. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +0 -247
  84. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +0 -114
  85. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +0 -162
  86. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +0 -144
  87. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +0 -361
  88. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +0 -60
  89. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +0 -335
  90. data/vendor/toolkit/twitter/bootstrap/accordion.less +0 -34
  91. data/vendor/toolkit/twitter/bootstrap/hero-unit.less +0 -25
  92. data/vendor/toolkit/twitter/bootstrap/labels-badges.less +0 -84
  93. data/vendor/toolkit/twitter/bootstrap/layouts.less +0 -16
  94. data/vendor/toolkit/twitter/bootstrap/reset.less +0 -216
  95. data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +0 -28
  96. data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +0 -193
  97. data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +0 -19
  98. data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +0 -189
  99. data/vendor/toolkit/twitter/bootstrap/responsive.less +0 -48
  100. data/vendor/toolkit/twitter/bootstrap/sprites.less +0 -197
@@ -8,9 +8,9 @@
8
8
  min-height: 20px;
9
9
  padding: 19px;
10
10
  margin-bottom: 20px;
11
- background-color: @wellBackground;
12
- border: 1px solid darken(@wellBackground, 7%);
13
- .border-radius(@baseBorderRadius);
11
+ background-color: @well-bg;
12
+ border: 1px solid darken(@well-bg, 7%);
13
+ border-radius: @border-radius-base;
14
14
  .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
15
15
  blockquote {
16
16
  border-color: #ddd;
@@ -19,11 +19,11 @@
19
19
  }
20
20
 
21
21
  // Sizes
22
- .well-large {
22
+ .well-lg {
23
23
  padding: 24px;
24
- .border-radius(@borderRadiusLarge);
24
+ border-radius: @border-radius-large;
25
25
  }
26
- .well-small {
26
+ .well-sm {
27
27
  padding: 9px;
28
- .border-radius(@borderRadiusSmall);
28
+ border-radius: @border-radius-small;
29
29
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-bootswatch-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2.8
4
+ version: 3.0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott V. Rosenthal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-12 00:00:00.000000000 Z
11
+ date: 2013-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -80,9 +80,8 @@ dependencies:
80
80
  - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.11.1
83
- description: twitter-bootswatch-rails project integrates Bootstrap CSS toolkit for
84
- Rails 3.1+ Asset Pipeline with less-rails and allows you to easily cherry pick and
85
- customize a theme for your app
83
+ description: twitter-bootswatch-rails gem integrates Twitter Bootstrap for Rails Asset
84
+ Pipeline with less-rails
86
85
  email:
87
86
  - sr7575@gmail.com
88
87
  executables: []
@@ -98,11 +97,10 @@ files:
98
97
  - lib/generators/bootswatch/install/templates/base.less.tt
99
98
  - lib/generators/bootswatch/install/templates/bootstrap.less
100
99
  - lib/generators/bootswatch/install/templates/bootswatch.css.less.tt
101
- - lib/generators/bootswatch/install/templates/bootswatch.js.coffee.tt
102
- - lib/generators/bootswatch/install/templates/loader.coffee.tt
100
+ - lib/generators/bootswatch/install/templates/bootswatch.js.tt
103
101
  - lib/generators/bootswatch/install/templates/loader.css.less.tt
102
+ - lib/generators/bootswatch/install/templates/loader.js.tt
104
103
  - lib/generators/bootswatch/install/templates/mixins.less.tt
105
- - lib/generators/bootswatch/install/templates/responsive.less.tt
106
104
  - lib/generators/bootswatch/install/templates/variables.less.tt
107
105
  - lib/generators/bootswatch/layout/layout_generator.rb
108
106
  - lib/generators/bootswatch/layout/templates/layout.html.erb
@@ -127,23 +125,24 @@ files:
127
125
  - lib/generators/bootswatch/themed/templates/simple_form/_form.html.haml
128
126
  - lib/generators/bootswatch/themed/templates/simple_form/_form.html.slim
129
127
  - lib/generators/bootswatch/themed/themed_generator.rb
130
- - vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png
131
- - vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png
132
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-affix.js
133
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js
134
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js
135
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js
136
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js
137
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js
138
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js
139
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js
140
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js
141
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js
142
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js
143
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js
144
- - vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js
145
- - vendor/toolkit/twitter/bootstrap/accordion.less
128
+ - vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot
129
+ - vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg
130
+ - vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf
131
+ - vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff
132
+ - vendor/assets/javascripts/twitter/bootstrap/affix.js
133
+ - vendor/assets/javascripts/twitter/bootstrap/alert.js
134
+ - vendor/assets/javascripts/twitter/bootstrap/button.js
135
+ - vendor/assets/javascripts/twitter/bootstrap/carousel.js
136
+ - vendor/assets/javascripts/twitter/bootstrap/collapse.js
137
+ - vendor/assets/javascripts/twitter/bootstrap/dropdown.js
138
+ - vendor/assets/javascripts/twitter/bootstrap/modal.js
139
+ - vendor/assets/javascripts/twitter/bootstrap/popover.js
140
+ - vendor/assets/javascripts/twitter/bootstrap/scrollspy.js
141
+ - vendor/assets/javascripts/twitter/bootstrap/tab.js
142
+ - vendor/assets/javascripts/twitter/bootstrap/tooltip.js
143
+ - vendor/assets/javascripts/twitter/bootstrap/transition.js
146
144
  - vendor/toolkit/twitter/bootstrap/alerts.less
145
+ - vendor/toolkit/twitter/bootstrap/badges.less
147
146
  - vendor/toolkit/twitter/bootstrap/bootstrap.less
148
147
  - vendor/toolkit/twitter/bootstrap/breadcrumbs.less
149
148
  - vendor/toolkit/twitter/bootstrap/button-groups.less
@@ -154,29 +153,28 @@ files:
154
153
  - vendor/toolkit/twitter/bootstrap/component-animations.less
155
154
  - vendor/toolkit/twitter/bootstrap/dropdowns.less
156
155
  - vendor/toolkit/twitter/bootstrap/forms.less
156
+ - vendor/toolkit/twitter/bootstrap/glyphicons.less
157
157
  - vendor/toolkit/twitter/bootstrap/grid.less
158
- - vendor/toolkit/twitter/bootstrap/hero-unit.less
159
- - vendor/toolkit/twitter/bootstrap/labels-badges.less
160
- - vendor/toolkit/twitter/bootstrap/layouts.less
158
+ - vendor/toolkit/twitter/bootstrap/input-groups.less
159
+ - vendor/toolkit/twitter/bootstrap/jumbotron.less
160
+ - vendor/toolkit/twitter/bootstrap/labels.less
161
+ - vendor/toolkit/twitter/bootstrap/list-group.less
161
162
  - vendor/toolkit/twitter/bootstrap/media.less
162
163
  - vendor/toolkit/twitter/bootstrap/mixins.less
163
164
  - vendor/toolkit/twitter/bootstrap/modals.less
164
165
  - vendor/toolkit/twitter/bootstrap/navbar.less
165
166
  - vendor/toolkit/twitter/bootstrap/navs.less
167
+ - vendor/toolkit/twitter/bootstrap/normalize.less
166
168
  - vendor/toolkit/twitter/bootstrap/pager.less
167
169
  - vendor/toolkit/twitter/bootstrap/pagination.less
170
+ - vendor/toolkit/twitter/bootstrap/panels.less
168
171
  - vendor/toolkit/twitter/bootstrap/popovers.less
172
+ - vendor/toolkit/twitter/bootstrap/print.less
169
173
  - vendor/toolkit/twitter/bootstrap/progress-bars.less
170
- - vendor/toolkit/twitter/bootstrap/reset.less
171
- - vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less
172
- - vendor/toolkit/twitter/bootstrap/responsive-767px-max.less
173
- - vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less
174
- - vendor/toolkit/twitter/bootstrap/responsive-navbar.less
175
174
  - vendor/toolkit/twitter/bootstrap/responsive-utilities.less
176
- - vendor/toolkit/twitter/bootstrap/responsive.less
177
175
  - vendor/toolkit/twitter/bootstrap/scaffolding.less
178
- - vendor/toolkit/twitter/bootstrap/sprites.less
179
176
  - vendor/toolkit/twitter/bootstrap/tables.less
177
+ - vendor/toolkit/twitter/bootstrap/theme.less
180
178
  - vendor/toolkit/twitter/bootstrap/thumbnails.less
181
179
  - vendor/toolkit/twitter/bootstrap/tooltip.less
182
180
  - vendor/toolkit/twitter/bootstrap/type.less
@@ -211,6 +209,5 @@ rubyforge_project:
211
209
  rubygems_version: 2.0.3
212
210
  signing_key:
213
211
  specification_version: 4
214
- summary: Twitter Bootstrap CSS toolkit for Rails 3.1+ Asset Pipeline with less-rails
215
- (no fluff - core only)
212
+ summary: Twitter Bootstrap toolkit for Rails Asset Pipeline with less-rails
216
213
  test_files: []
@@ -1,9 +0,0 @@
1
- # <%= config[:theme_info] %>
2
- # Bootswatch
3
- # bootswatch.js.coffee
4
- # http://coffeescriptcookbook.com/chapters/syntax/embedding_javascript
5
-
6
- #jQuery ->
7
- # $("a[rel=popover]").popover()
8
- # $(".tooltip").tooltip()
9
- # $("a[rel=tooltip]").tooltip()
@@ -1,23 +0,0 @@
1
- # <%= config[:theme_info] %>
2
- # Bootswatch
3
- # loader.coffee
4
-
5
- <%
6
- js_files = %w[
7
- bootstrap-transition
8
- bootstrap-alert
9
- bootstrap-button
10
- bootstrap-carousel
11
- bootstrap-collapse
12
- bootstrap-dropdown
13
- bootstrap-modal
14
- bootstrap-tooltip
15
- bootstrap-popover
16
- bootstrap-scrollspy
17
- bootstrap-tab
18
- bootstrap-typeahead
19
- bootstrap-affix]
20
-
21
- js_files.each do |js_file|
22
- %>#= require twitter/bootstrap/<%= js_file %>
23
- <% end %>
@@ -1,51 +0,0 @@
1
- // <%= config[:theme_info] %>
2
- // Bootswatch
3
-
4
- /*!
5
- * Bootstrap Responsive v2.3.2
6
- *
7
- * Copyright 2012 Twitter, Inc
8
- * Licensed under the Apache License v2.0
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Designed and built with all the love in the world @twitter by @mdo and @fat.
12
- */
13
-
14
-
15
- // Responsive.less
16
- // For phone and tablet devices
17
- // -------------------------------------------------------------
18
-
19
-
20
- // REPEAT VARIABLES & MIXINS
21
- // -------------------------
22
- // Required since we compile the responsive stuff separately
23
-
24
- @import "<%= config[:theme_name] %>/variables.less"; // Modify this for custom colors, font-sizes, etc
25
- @import "<%= config[:theme_name] %>/mixins.less";
26
-
27
-
28
- // RESPONSIVE CLASSES
29
- // ------------------
30
-
31
- @import "twitter/bootstrap/responsive-utilities.less";
32
-
33
-
34
- // MEDIA QUERIES
35
- // ------------------
36
-
37
- // Large desktops
38
- @import "twitter/bootstrap/responsive-1200px-min.less";
39
-
40
- // Tablets to regular desktops
41
- @import "twitter/bootstrap/responsive-768px-979px.less";
42
-
43
- // Phones to portrait tablets and narrow desktops
44
- @import "twitter/bootstrap/responsive-767px-max.less";
45
-
46
-
47
- // RESPONSIVE NAVBAR
48
- // ------------------
49
-
50
- // From 979px and below, show a button to toggle navbar contents
51
- @import "twitter/bootstrap/responsive-navbar.less";
@@ -1,117 +0,0 @@
1
- /* ==========================================================
2
- * bootstrap-affix.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#affix
4
- * ==========================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ========================================================== */
19
-
20
-
21
- !function ($) {
22
-
23
- "use strict"; // jshint ;_;
24
-
25
-
26
- /* AFFIX CLASS DEFINITION
27
- * ====================== */
28
-
29
- var Affix = function (element, options) {
30
- this.options = $.extend({}, $.fn.affix.defaults, options)
31
- this.$window = $(window)
32
- .on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
33
- .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
34
- this.$element = $(element)
35
- this.checkPosition()
36
- }
37
-
38
- Affix.prototype.checkPosition = function () {
39
- if (!this.$element.is(':visible')) return
40
-
41
- var scrollHeight = $(document).height()
42
- , scrollTop = this.$window.scrollTop()
43
- , position = this.$element.offset()
44
- , offset = this.options.offset
45
- , offsetBottom = offset.bottom
46
- , offsetTop = offset.top
47
- , reset = 'affix affix-top affix-bottom'
48
- , affix
49
-
50
- if (typeof offset != 'object') offsetBottom = offsetTop = offset
51
- if (typeof offsetTop == 'function') offsetTop = offset.top()
52
- if (typeof offsetBottom == 'function') offsetBottom = offset.bottom()
53
-
54
- affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ?
55
- false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ?
56
- 'bottom' : offsetTop != null && scrollTop <= offsetTop ?
57
- 'top' : false
58
-
59
- if (this.affixed === affix) return
60
-
61
- this.affixed = affix
62
- this.unpin = affix == 'bottom' ? position.top - scrollTop : null
63
-
64
- this.$element.removeClass(reset).addClass('affix' + (affix ? '-' + affix : ''))
65
- }
66
-
67
-
68
- /* AFFIX PLUGIN DEFINITION
69
- * ======================= */
70
-
71
- var old = $.fn.affix
72
-
73
- $.fn.affix = function (option) {
74
- return this.each(function () {
75
- var $this = $(this)
76
- , data = $this.data('affix')
77
- , options = typeof option == 'object' && option
78
- if (!data) $this.data('affix', (data = new Affix(this, options)))
79
- if (typeof option == 'string') data[option]()
80
- })
81
- }
82
-
83
- $.fn.affix.Constructor = Affix
84
-
85
- $.fn.affix.defaults = {
86
- offset: 0
87
- }
88
-
89
-
90
- /* AFFIX NO CONFLICT
91
- * ================= */
92
-
93
- $.fn.affix.noConflict = function () {
94
- $.fn.affix = old
95
- return this
96
- }
97
-
98
-
99
- /* AFFIX DATA-API
100
- * ============== */
101
-
102
- $(window).on('load', function () {
103
- $('[data-spy="affix"]').each(function () {
104
- var $spy = $(this)
105
- , data = $spy.data()
106
-
107
- data.offset = data.offset || {}
108
-
109
- data.offsetBottom && (data.offset.bottom = data.offsetBottom)
110
- data.offsetTop && (data.offset.top = data.offsetTop)
111
-
112
- $spy.affix(data)
113
- })
114
- })
115
-
116
-
117
- }(window.jQuery);
@@ -1,99 +0,0 @@
1
- /* ==========================================================
2
- * bootstrap-alert.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#alerts
4
- * ==========================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ========================================================== */
19
-
20
-
21
- !function ($) {
22
-
23
- "use strict"; // jshint ;_;
24
-
25
-
26
- /* ALERT CLASS DEFINITION
27
- * ====================== */
28
-
29
- var dismiss = '[data-dismiss="alert"]'
30
- , Alert = function (el) {
31
- $(el).on('click', dismiss, this.close)
32
- }
33
-
34
- Alert.prototype.close = function (e) {
35
- var $this = $(this)
36
- , selector = $this.attr('data-target')
37
- , $parent
38
-
39
- if (!selector) {
40
- selector = $this.attr('href')
41
- selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
42
- }
43
-
44
- $parent = $(selector)
45
-
46
- e && e.preventDefault()
47
-
48
- $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
49
-
50
- $parent.trigger(e = $.Event('close'))
51
-
52
- if (e.isDefaultPrevented()) return
53
-
54
- $parent.removeClass('in')
55
-
56
- function removeElement() {
57
- $parent
58
- .trigger('closed')
59
- .remove()
60
- }
61
-
62
- $.support.transition && $parent.hasClass('fade') ?
63
- $parent.on($.support.transition.end, removeElement) :
64
- removeElement()
65
- }
66
-
67
-
68
- /* ALERT PLUGIN DEFINITION
69
- * ======================= */
70
-
71
- var old = $.fn.alert
72
-
73
- $.fn.alert = function (option) {
74
- return this.each(function () {
75
- var $this = $(this)
76
- , data = $this.data('alert')
77
- if (!data) $this.data('alert', (data = new Alert(this)))
78
- if (typeof option == 'string') data[option].call($this)
79
- })
80
- }
81
-
82
- $.fn.alert.Constructor = Alert
83
-
84
-
85
- /* ALERT NO CONFLICT
86
- * ================= */
87
-
88
- $.fn.alert.noConflict = function () {
89
- $.fn.alert = old
90
- return this
91
- }
92
-
93
-
94
- /* ALERT DATA-API
95
- * ============== */
96
-
97
- $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
98
-
99
- }(window.jQuery);