bootstrap-sass-rails 1.4.0.3 → 2.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/lib/bootstrap/sass/rails/version.rb +1 -1
  2. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  3. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  4. data/vendor/assets/javascripts/twitter/bootstrap.js +12 -8
  5. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +91 -0
  6. data/vendor/assets/javascripts/twitter/bootstrap/button.js +98 -0
  7. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +154 -0
  8. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +136 -0
  9. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +58 -21
  10. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +63 -114
  11. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +38 -33
  12. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +62 -44
  13. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +130 -0
  14. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +270 -0
  15. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +51 -0
  16. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +271 -0
  17. data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +50 -14
  18. data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss +28 -0
  19. data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +70 -0
  20. data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +22 -0
  21. data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +147 -0
  22. data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +165 -0
  23. data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +121 -0
  24. data/vendor/assets/stylesheets/twitter/bootstrap/_close.scss +18 -0
  25. data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +44 -0
  26. data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +18 -0
  27. data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +131 -0
  28. data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +335 -299
  29. data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +8 -0
  30. data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +20 -0
  31. data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +16 -0
  32. data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.scss +17 -0
  33. data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +429 -124
  34. data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +72 -0
  35. data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +292 -0
  36. data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +343 -0
  37. data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +30 -0
  38. data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +55 -0
  39. data/vendor/assets/stylesheets/twitter/bootstrap/_patterns.scss +5 -1051
  40. data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.scss +49 -0
  41. data/vendor/assets/stylesheets/twitter/bootstrap/_print.scss +18 -0
  42. data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +95 -0
  43. data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +36 -51
  44. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +323 -0
  45. data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +13 -123
  46. data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +156 -0
  47. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +75 -160
  48. data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +35 -0
  49. data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.scss +35 -0
  50. data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +100 -70
  51. data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.scss +23 -0
  52. data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +94 -55
  53. data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +17 -0
  54. metadata +51 -75
  55. data/test/dummy/log/test.log +0 -462
  56. data/test/dummy/tmp/cache/assets/C29/E80/sprockets%2F8f076727207424919c7170c7157bbe37 +0 -1102
  57. data/test/dummy/tmp/cache/assets/D3F/FA0/sprockets%2F22c8366fdbaaa2872b202dfe7376629f +0 -0
  58. data/test/dummy/tmp/cache/assets/E5F/300/sprockets%2F243a2fff0dbb8aeec3dd579b4ff7c81b +0 -1048
  59. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_forms.scssc +0 -0
  60. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_mixins.scssc +0 -0
  61. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_patterns.scssc +0 -0
  62. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_reset.scssc +0 -0
  63. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_scaffolding.scssc +0 -0
  64. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_tables.scssc +0 -0
  65. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_type.scssc +0 -0
  66. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_variables.scssc +0 -0
  67. data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/_bootstrap.scssc +0 -0
  68. data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.css.scssc +0 -0
  69. data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.cssc +0 -0
  70. data/test/dummy/tmp/cache/sass/8f44dddc3cc4868f43c2a4153ce3876663527256/_bootstrap.scssc +0 -0
  71. data/test/dummy/tmp/cache/sass/8f44dddc3cc4868f43c2a4153ce3876663527256/bootstrap.css.scssc +0 -0
  72. data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/application.css.scssc +0 -0
  73. data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/individual.css.scssc +0 -0
  74. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_forms.scssc +0 -0
  75. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_mixins.scssc +0 -0
  76. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_patterns.scssc +0 -0
  77. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_reset.scssc +0 -0
  78. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_scaffolding.scssc +0 -0
  79. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_tables.scssc +0 -0
  80. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_type.scssc +0 -0
  81. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_variables.scssc +0 -0
  82. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/mixins.scssc +0 -0
  83. data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/variables.css.scssc +0 -0
  84. data/vendor/assets/javascripts/twitter/bootstrap/alerts.js +0 -124
  85. data/vendor/assets/javascripts/twitter/bootstrap/buttons.js +0 -64
  86. data/vendor/assets/javascripts/twitter/bootstrap/tabs.js +0 -80
  87. data/vendor/assets/javascripts/twitter/bootstrap/twipsy.js +0 -321
@@ -0,0 +1,51 @@
1
+ /* ===================================================
2
+ * bootstrap-transition.js v2.0.0
3
+ * http://twitter.github.com/bootstrap/javascript.html#transitions
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
+ !function( $ ) {
21
+
22
+ $(function () {
23
+
24
+ "use strict"
25
+
26
+ /* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
27
+ * ======================================================= */
28
+
29
+ $.support.transition = (function () {
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"
43
+ }
44
+ return transitionEnd
45
+ }())
46
+ }
47
+ })()
48
+
49
+ })
50
+
51
+ }( window.jQuery )
@@ -0,0 +1,271 @@
1
+ /* =============================================================
2
+ * bootstrap-typeahead.js v2.0.0
3
+ * http://twitter.github.com/bootstrap/javascript.html#typeahead
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
+ !function( $ ){
21
+
22
+ "use strict"
23
+
24
+ var Typeahead = function ( element, options ) {
25
+ this.$element = $(element)
26
+ this.options = $.extend({}, $.fn.typeahead.defaults, options)
27
+ this.matcher = this.options.matcher || this.matcher
28
+ this.sorter = this.options.sorter || this.sorter
29
+ this.highlighter = this.options.highlighter || this.highlighter
30
+ this.$menu = $(this.options.menu).appendTo('body')
31
+ this.source = this.options.source
32
+ this.shown = false
33
+ this.listen()
34
+ }
35
+
36
+ Typeahead.prototype = {
37
+
38
+ constructor: Typeahead
39
+
40
+ , select: function () {
41
+ var val = this.$menu.find('.active').attr('data-value')
42
+ this.$element.val(val)
43
+ return this.hide()
44
+ }
45
+
46
+ , show: function () {
47
+ var pos = $.extend({}, this.$element.offset(), {
48
+ height: this.$element[0].offsetHeight
49
+ })
50
+
51
+ this.$menu.css({
52
+ top: pos.top + pos.height
53
+ , left: pos.left
54
+ })
55
+
56
+ this.$menu.show()
57
+ this.shown = true
58
+ return this
59
+ }
60
+
61
+ , hide: function () {
62
+ this.$menu.hide()
63
+ this.shown = false
64
+ return this
65
+ }
66
+
67
+ , lookup: function (event) {
68
+ var that = this
69
+ , items
70
+ , q
71
+
72
+ this.query = this.$element.val()
73
+
74
+ if (!this.query) {
75
+ return this.shown ? this.hide() : this
76
+ }
77
+
78
+ items = $.grep(this.source, function (item) {
79
+ if (that.matcher(item)) return item
80
+ })
81
+
82
+ items = this.sorter(items)
83
+
84
+ if (!items.length) {
85
+ return this.shown ? this.hide() : this
86
+ }
87
+
88
+ return this.render(items.slice(0, this.options.items)).show()
89
+ }
90
+
91
+ , matcher: function (item) {
92
+ return ~item.toLowerCase().indexOf(this.query.toLowerCase())
93
+ }
94
+
95
+ , sorter: function (items) {
96
+ var beginswith = []
97
+ , caseSensitive = []
98
+ , caseInsensitive = []
99
+ , item
100
+
101
+ while (item = items.shift()) {
102
+ if (!item.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(item)
103
+ else if (~item.indexOf(this.query)) caseSensitive.push(item)
104
+ else caseInsensitive.push(item)
105
+ }
106
+
107
+ return beginswith.concat(caseSensitive, caseInsensitive)
108
+ }
109
+
110
+ , highlighter: function (item) {
111
+ return item.replace(new RegExp('(' + this.query + ')', 'ig'), function ($1, match) {
112
+ return '<strong>' + match + '</strong>'
113
+ })
114
+ }
115
+
116
+ , render: function (items) {
117
+ var that = this
118
+
119
+ items = $(items).map(function (i, item) {
120
+ i = $(that.options.item).attr('data-value', item)
121
+ i.find('a').html(that.highlighter(item))
122
+ return i[0]
123
+ })
124
+
125
+ items.first().addClass('active')
126
+ this.$menu.html(items)
127
+ return this
128
+ }
129
+
130
+ , next: function (event) {
131
+ var active = this.$menu.find('.active').removeClass('active')
132
+ , next = active.next()
133
+
134
+ if (!next.length) {
135
+ next = $(this.$menu.find('li')[0])
136
+ }
137
+
138
+ next.addClass('active')
139
+ }
140
+
141
+ , prev: function (event) {
142
+ var active = this.$menu.find('.active').removeClass('active')
143
+ , prev = active.prev()
144
+
145
+ if (!prev.length) {
146
+ prev = this.$menu.find('li').last()
147
+ }
148
+
149
+ prev.addClass('active')
150
+ }
151
+
152
+ , listen: function () {
153
+ this.$element
154
+ .on('blur', $.proxy(this.blur, this))
155
+ .on('keypress', $.proxy(this.keypress, this))
156
+ .on('keyup', $.proxy(this.keyup, this))
157
+
158
+ if ($.browser.webkit || $.browser.msie) {
159
+ this.$element.on('keydown', $.proxy(this.keypress, this))
160
+ }
161
+
162
+ this.$menu
163
+ .on('click', $.proxy(this.click, this))
164
+ .on('mouseenter', 'li', $.proxy(this.mouseenter, this))
165
+ }
166
+
167
+ , keyup: function (e) {
168
+ e.stopPropagation()
169
+ e.preventDefault()
170
+
171
+ switch(e.keyCode) {
172
+ case 40: // down arrow
173
+ case 38: // up arrow
174
+ break
175
+
176
+ case 9: // tab
177
+ case 13: // enter
178
+ if (!this.shown) return
179
+ this.select()
180
+ break
181
+
182
+ case 27: // escape
183
+ this.hide()
184
+ break
185
+
186
+ default:
187
+ this.lookup()
188
+ }
189
+
190
+ }
191
+
192
+ , keypress: function (e) {
193
+ e.stopPropagation()
194
+ if (!this.shown) return
195
+
196
+ switch(e.keyCode) {
197
+ case 9: // tab
198
+ case 13: // enter
199
+ case 27: // escape
200
+ e.preventDefault()
201
+ break
202
+
203
+ case 38: // up arrow
204
+ e.preventDefault()
205
+ this.prev()
206
+ break
207
+
208
+ case 40: // down arrow
209
+ e.preventDefault()
210
+ this.next()
211
+ break
212
+ }
213
+ }
214
+
215
+ , blur: function (e) {
216
+ var that = this
217
+ e.stopPropagation()
218
+ e.preventDefault()
219
+ setTimeout(function () { that.hide() }, 150)
220
+ }
221
+
222
+ , click: function (e) {
223
+ e.stopPropagation()
224
+ e.preventDefault()
225
+ this.select()
226
+ }
227
+
228
+ , mouseenter: function (e) {
229
+ this.$menu.find('.active').removeClass('active')
230
+ $(e.currentTarget).addClass('active')
231
+ }
232
+
233
+ }
234
+
235
+
236
+ /* TYPEAHEAD PLUGIN DEFINITION
237
+ * =========================== */
238
+
239
+ $.fn.typeahead = function ( option ) {
240
+ return this.each(function () {
241
+ var $this = $(this)
242
+ , data = $this.data('typeahead')
243
+ , options = typeof option == 'object' && option
244
+ if (!data) $this.data('typeahead', (data = new Typeahead(this, options)))
245
+ if (typeof option == 'string') data[option]()
246
+ })
247
+ }
248
+
249
+ $.fn.typeahead.defaults = {
250
+ source: []
251
+ , items: 8
252
+ , menu: '<ul class="typeahead dropdown-menu"></ul>'
253
+ , item: '<li><a href="#"></a></li>'
254
+ }
255
+
256
+ $.fn.typeahead.Constructor = Typeahead
257
+
258
+
259
+ /* TYPEAHEAD DATA-API
260
+ * ================== */
261
+
262
+ $(function () {
263
+ $('body').on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
264
+ var $this = $(this)
265
+ if ($this.data('typeahead')) return
266
+ e.preventDefault()
267
+ $this.typeahead($this.data())
268
+ })
269
+ })
270
+
271
+ }( window.jQuery )
@@ -1,26 +1,62 @@
1
1
  /*!
2
- * Bootstrap @VERSION
2
+ * Bootstrap v2.0.0
3
3
  *
4
- * Copyright 2011 Twitter, Inc
4
+ * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
6
6
  * http://www.apache.org/licenses/LICENSE-2.0
7
7
  *
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
- * Date: @DATE
10
9
  */
11
10
 
12
- // CSS Reset
13
- @import "bootstrap/reset";
14
-
15
11
  // Core variables and mixins
16
- @import "bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
17
- @import "bootstrap/mixins";
12
+ @import "bootstrap/variables.scss"; // Modify this for custom colors, font-sizes, etc
13
+ @import "bootstrap/mixins.scss";
14
+
15
+ // CSS Reset
16
+ @import "bootstrap/reset.scss";
18
17
 
19
18
  // Grid system and page structure
20
- @import "bootstrap/scaffolding";
19
+ @import "bootstrap/scaffolding.scss";
20
+ @import "bootstrap/grid.scss";
21
+ @import "bootstrap/layouts.scss";
22
+
23
+ // Base CSS
24
+ @import "bootstrap/type.scss";
25
+ @import "bootstrap/code.scss";
26
+ @import "bootstrap/forms.scss";
27
+ @import "bootstrap/tables.scss";
28
+
29
+ // Components: common
30
+ @import "bootstrap/sprites.scss";
31
+ @import "bootstrap/dropdowns.scss";
32
+ @import "bootstrap/wells.scss";
33
+ @import "bootstrap/component-animations.scss";
34
+ @import "bootstrap/close.scss";
35
+
36
+ // Components: Buttons & Alerts
37
+ @import "bootstrap/buttons.scss";
38
+ @import "bootstrap/button-groups.scss";
39
+ @import "bootstrap/alerts.scss"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
40
+
41
+ // Components: Nav
42
+ @import "bootstrap/navs.scss";
43
+ @import "bootstrap/navbar.scss";
44
+ @import "bootstrap/breadcrumbs.scss";
45
+ @import "bootstrap/pagination.scss";
46
+ @import "bootstrap/pager.scss";
47
+
48
+ // Components: Popovers
49
+ @import "bootstrap/modals.scss";
50
+ @import "bootstrap/tooltip.scss";
51
+ @import "bootstrap/popovers.scss";
52
+
53
+ // Components: Misc
54
+ @import "bootstrap/thumbnails.scss";
55
+ @import "bootstrap/labels.scss";
56
+ @import "bootstrap/progress-bars.scss";
57
+ @import "bootstrap/accordion.scss";
58
+ @import "bootstrap/carousel.scss";
59
+ @import "bootstrap/hero-unit.scss";
21
60
 
22
- // Styled patterns and elements
23
- @import "bootstrap/type";
24
- @import "bootstrap/forms";
25
- @import "bootstrap/tables";
26
- @import "bootstrap/patterns";
61
+ // Utility classes
62
+ @import "bootstrap/utilities.scss"; // Has to be last to override when necessary
@@ -0,0 +1,28 @@
1
+ // ACCORDION
2
+ // ---------
3
+
4
+
5
+ // Parent container
6
+ .accordion {
7
+ margin-bottom: $baseLineHeight;
8
+ }
9
+
10
+ // Group == heading + body
11
+ .accordion-group {
12
+ margin-bottom: 2px;
13
+ border: 1px solid #e5e5e5;
14
+ @include border-radius(4px);
15
+ }
16
+ .accordion-heading {
17
+ border-bottom: 0;
18
+ }
19
+ .accordion-heading .accordion-toggle {
20
+ display: block;
21
+ padding: 8px 15px;
22
+ }
23
+
24
+ // Inner needs the styles because you can't animate properly with any styles on the element
25
+ .accordion-inner {
26
+ padding: 9px 15px;
27
+ border-top: 1px solid #e5e5e5;
28
+ }
@@ -0,0 +1,70 @@
1
+ // ALERT STYLES
2
+ // ------------
3
+
4
+ // Base alert styles
5
+ .alert {
6
+ padding: 8px 35px 8px 14px;
7
+ margin-bottom: $baseLineHeight;
8
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
9
+ background-color: $warningBackground;
10
+ border: 1px solid $warningBorder;
11
+ @include border-radius(4px);
12
+ }
13
+ .alert,
14
+ .alert-heading {
15
+ color: $warningText;
16
+ }
17
+
18
+ // Adjust close link position
19
+ .alert .close {
20
+ position: relative;
21
+ top: -2px;
22
+ right: -21px;
23
+ line-height: 18px;
24
+ }
25
+
26
+ // Alternate styles
27
+ // ----------------
28
+
29
+ .alert-success {
30
+ background-color: $successBackground;
31
+ border-color: $successBorder;
32
+ }
33
+ .alert-success,
34
+ .alert-success .alert-heading {
35
+ color: $successText;
36
+ }
37
+ .alert-danger,
38
+ .alert-error {
39
+ background-color: $errorBackground;
40
+ border-color: $errorBorder;
41
+ }
42
+ .alert-danger,
43
+ .alert-error,
44
+ .alert-danger .alert-heading,
45
+ .alert-error .alert-heading {
46
+ color: $errorText;
47
+ }
48
+ .alert-info {
49
+ background-color: $infoBackground;
50
+ border-color: $infoBorder;
51
+ }
52
+ .alert-info,
53
+ .alert-info .alert-heading {
54
+ color: $infoText;
55
+ }
56
+
57
+
58
+ // Block alerts
59
+ // ------------------------
60
+ .alert-block {
61
+ padding-top: 14px;
62
+ padding-bottom: 14px;
63
+ }
64
+ .alert-block > p,
65
+ .alert-block > ul {
66
+ margin-bottom: 0;
67
+ }
68
+ .alert-block p + p {
69
+ margin-top: 5px;
70
+ }