mercury-rails 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/app/assets/javascripts/mercury.js +1 -0
  2. data/app/assets/javascripts/mercury/lightview.js.coffee +26 -12
  3. data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +3 -5
  4. data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +3 -5
  5. data/app/assets/javascripts/mercury/locales/de.locale.js.coffee +4 -6
  6. data/app/assets/javascripts/mercury/locales/es.locale.js.coffee +3 -5
  7. data/app/assets/javascripts/mercury/locales/example.local.js.coffee +3 -1
  8. data/app/assets/javascripts/mercury/locales/fr.locale.js.coffee +3 -5
  9. data/app/assets/javascripts/mercury/locales/it.locale.js.coffee +3 -5
  10. data/app/assets/javascripts/mercury/locales/ko.local.js.coffee +4 -6
  11. data/app/assets/javascripts/mercury/locales/nl.locale.js.coffee +3 -5
  12. data/app/assets/javascripts/mercury/locales/pt.locale.js.coffee +3 -5
  13. data/app/assets/javascripts/mercury/locales/sv.local.js.coffee +3 -5
  14. data/app/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +3 -5
  15. data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +3 -5
  16. data/app/assets/javascripts/mercury/mercury.js.coffee +1 -1
  17. data/app/assets/javascripts/mercury/modal.js.coffee +38 -23
  18. data/app/assets/javascripts/mercury/modals/htmleditor.js.coffee +1 -0
  19. data/app/assets/javascripts/mercury/modals/insertcharacter.js.coffee +1 -0
  20. data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +111 -60
  21. data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +80 -35
  22. data/app/assets/javascripts/mercury/modals/insertsnippet.js.coffee +1 -0
  23. data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +59 -51
  24. data/app/assets/javascripts/mercury/page_editor.js.coffee +1 -1
  25. data/app/assets/javascripts/mercury/regions/full.coffee +1 -1
  26. data/app/assets/javascripts/mercury/regions/image.js.coffee +1 -1
  27. data/app/assets/javascripts/mercury/regions/markdown.coffee +1 -1
  28. data/app/assets/javascripts/mercury/regions/simple.js.coffee +1 -1
  29. data/app/assets/javascripts/mercury/regions/snippets.js.coffee +1 -1
  30. data/app/assets/javascripts/mercury/table_editor.js.coffee +16 -0
  31. data/app/assets/javascripts/mercury/toolbar.js.coffee +2 -2
  32. data/app/assets/stylesheets/mercury.css +0 -5
  33. data/app/assets/stylesheets/mercury/bootstrap-ish.css +1367 -0
  34. data/app/assets/stylesheets/mercury/bootstrap-overrides.css +60 -0
  35. data/app/assets/stylesheets/mercury/lightview.css +2 -52
  36. data/app/assets/stylesheets/mercury/mercury.css +2 -2
  37. data/app/assets/stylesheets/mercury/modal.css +13 -31
  38. data/app/assets/stylesheets/mercury/uploader.css +3 -3
  39. data/app/views/mercury/modals/htmleditor.html +2 -6
  40. data/app/views/mercury/modals/link.html +70 -64
  41. data/app/views/mercury/modals/media.html +80 -71
  42. data/app/views/mercury/modals/table.html +79 -73
  43. data/app/views/mercury/snippets/example/options.html.erb +11 -30
  44. data/features/loading/loading.feature +1 -1
  45. data/features/regions/full/inserting_links.feature +4 -4
  46. data/features/regions/full/inserting_media.feature +3 -3
  47. data/features/step_definitions/mercury_steps.rb +5 -5
  48. data/features/support/env.rb +1 -1
  49. data/lib/mercury/version.rb +1 -1
  50. data/spec/javascripts/mercury/lightview_spec.js.coffee +136 -129
  51. data/spec/javascripts/mercury/modal_spec.js.coffee +143 -139
  52. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +105 -31
  53. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +76 -38
  54. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +32 -35
  55. data/spec/javascripts/mercury/toolbar_spec.js.coffee +8 -0
  56. data/spec/javascripts/templates/mercury/modals/insertlink.html +58 -21
  57. data/spec/javascripts/templates/mercury/modals/insertmedia.html +69 -27
  58. data/spec/javascripts/templates/mercury/modals/inserttable.html +66 -20
  59. metadata +5 -5
  60. data/app/assets/stylesheets/mercury/buttons.css +0 -73
  61. data/app/assets/stylesheets/mercury/form.css +0 -125
@@ -1,4 +1,5 @@
1
1
  @Mercury.modalHandlers.insertSnippet = ->
2
+
2
3
  @element.find('form').on 'submit', (event) =>
3
4
  event.preventDefault()
4
5
  serializedForm = @element.find('form').serializeObject()
@@ -1,54 +1,62 @@
1
- @Mercury.modalHandlers.insertTable = ->
2
- table = @element.find('#table_display table')
3
-
4
- # make td's selectable
5
- table.on 'click', (event) =>
6
- cell = jQuery(event.target)
7
- table = cell.closest('table')
8
- table.find('.selected').removeAttr('class')
9
- cell.addClass('selected')
10
- Mercury.tableEditor(table, cell, ' ')
11
-
12
- # select the first td
13
- firstCell = table.find('td, th').first()
14
- firstCell.addClass('selected')
15
- Mercury.tableEditor(table, firstCell, ' ')
16
-
17
- # make the buttons work
18
- @element.find('input.action').on 'click', (event) =>
19
- action = jQuery(event.target).attr('name')
20
- switch action
21
- when 'insertRowBefore' then Mercury.tableEditor.addRow('before')
22
- when 'insertRowAfter' then Mercury.tableEditor.addRow('after')
23
- when 'deleteRow' then Mercury.tableEditor.removeRow()
24
- when 'insertColumnBefore' then Mercury.tableEditor.addColumn('before')
25
- when 'insertColumnAfter' then Mercury.tableEditor.addColumn('after')
26
- when 'deleteColumn' then Mercury.tableEditor.removeColumn()
27
- when 'increaseColspan' then Mercury.tableEditor.increaseColspan()
28
- when 'decreaseColspan' then Mercury.tableEditor.decreaseColspan()
29
- when 'increaseRowspan' then Mercury.tableEditor.increaseRowspan()
30
- when 'decreaseRowspan' then Mercury.tableEditor.decreaseRowspan()
31
-
32
- # set the alignment
33
- @element.find('#table_alignment').on 'change', =>
34
- table.attr({align: @element.find('#table_alignment').val()})
35
-
36
- # set the border
37
- @element.find('#table_border').on 'keyup', =>
38
- table.attr({border: parseInt(@element.find('#table_border').val())})
39
-
40
- # set the cellspacing
41
- @element.find('#table_spacing').on 'keyup', =>
42
- table.attr({cellspacing: parseInt(@element.find('#table_spacing').val())})
43
-
44
- # build the table on form submission
45
- @element.find('form').on 'submit', (event) =>
46
- event.preventDefault()
47
- table.find('.selected').removeAttr('class')
48
- table.find('td, th').html('<br/>')
49
-
50
- html = jQuery('<div>').html(table).html()
1
+ @Mercury.modalHandlers.insertTable = {
2
+
3
+ initialize: ->
4
+ @table = @element.find('#table_display table')
5
+
6
+ @table.on 'click', (event) => @onCellClick($(event.target))
7
+
8
+ @element.find('#table_alignment').on 'change', => @setTableAlignment()
9
+ @element.find('#table_border').on 'keyup', => @setTableBorder()
10
+ @element.find('#table_spacing').on 'keyup', => @setTableCellSpacing()
11
+ @element.find('[data-action]').on 'click', (event) =>
12
+ event.preventDefault()
13
+ @onActionClick(jQuery(event.target).data('action'))
14
+
15
+ @selectFirstCell()
16
+
17
+ @element.find('form').on 'submit', (event) =>
18
+ event.preventDefault()
19
+ @submitForm()
20
+ @hide()
21
+
22
+
23
+ selectFirstCell: ->
24
+ firstCell = @table.find('td, th').first()
25
+ firstCell.addClass('selected')
26
+ Mercury.tableEditor(@table, firstCell, '&nbsp;')
27
+
28
+
29
+ onCellClick: (@cell) ->
30
+ @table = @cell.closest('table')
31
+ @table.find('.selected').removeAttr('class')
32
+ @cell.addClass('selected')
33
+ Mercury.tableEditor(@table, @cell, '&nbsp;')
34
+
35
+
36
+ onActionClick: (action) ->
37
+ return unless action
38
+ Mercury.tableEditor[action]()
39
+
40
+
41
+ setTableAlignment: ->
42
+ @table.attr({align: @element.find('#table_alignment').val()})
43
+
44
+
45
+ setTableBorder: ->
46
+ @table.attr({border: parseInt(@element.find('#table_border').val(), 10) || 1})
47
+
48
+
49
+ setTableCellSpacing: ->
50
+ @table.attr({cellspacing: parseInt(@element.find('#table_spacing').val(), 10) || 1})
51
+
52
+
53
+ submitForm: ->
54
+ @table.find('.selected').removeAttr('class')
55
+ @table.find('td, th').html('<br/>')
56
+
57
+ html = jQuery('<div>').html(@table).html()
51
58
  value = html.replace(/^\s+|\n/gm, '').replace(/(<\/.*?>|<table.*?>|<tbody>|<tr>)/g, '$1\n')
52
59
 
53
60
  Mercury.trigger('action', {action: 'insertTable', value: value})
54
- @hide()
61
+
62
+ }
@@ -37,7 +37,6 @@ class @Mercury.PageEditor
37
37
  try
38
38
  return if @iframe.data('loaded')
39
39
  @iframe.data('loaded', true)
40
- Mercury.notify("Opera isn't a fully supported browser, your results may not be optimal.") if jQuery.browser.opera
41
40
 
42
41
  # set document reference of iframe
43
42
  @document = jQuery(@iframe.get(0).contentWindow.document)
@@ -151,6 +150,7 @@ class @Mercury.PageEditor
151
150
  @previewing = true
152
151
  else
153
152
  @visible = true
153
+ @iframe.animate({top: @toolbar.height(true)}, 200, 'easeInOutSine', => @resize())
154
154
  @toolbar.show()
155
155
  @statusbar.show()
156
156
  Mercury.trigger('mode', {mode: 'preview'})
@@ -1,7 +1,7 @@
1
1
  class @Mercury.Regions.Full extends Mercury.Region
2
2
  # No IE support yet because it doesn't follow the W3C standards for HTML5 contentEditable (aka designMode).
3
3
  @supported: document.designMode && !jQuery.browser.konqueror && !jQuery.browser.msie
4
- @supportedText: "Chrome 10+, Firefox 4+, Safari 5+"
4
+ @supportedText: "Chrome 10+, Firefox 4+, Safari 5+, Opera 11.64+"
5
5
  type = 'full'
6
6
  type: -> type
7
7
 
@@ -2,7 +2,7 @@
2
2
  # into the page, but provides no editing of other DOM attributes at this time.
3
3
  class @Mercury.Regions.Image extends Mercury.Region
4
4
  @supported: document.getElementById
5
- @supportedText: "IE 7+, Chrome 10+, Firefox 4+, Safari 5+, Opera 8+"
5
+ @supportedText: "Chrome 10+, Firefox 4+, IE 7+, Safari 5+, Opera 8+"
6
6
  type = 'image'
7
7
  type: -> type
8
8
 
@@ -1,6 +1,6 @@
1
1
  class @Mercury.Regions.Markdown extends Mercury.Region
2
2
  @supported: document.getElementById
3
- @supportedText: "IE 7+, Chrome 10+, Firefox 4+, Safari 5+, Opera 8+"
3
+ @supportedText: "Chrome 10+, Firefox 4+, IE 7+, Safari 5+, Opera 8+"
4
4
  type = 'markdown'
5
5
  type: -> type
6
6
 
@@ -1,6 +1,6 @@
1
1
  class @Mercury.Regions.Simple extends Mercury.Region
2
2
  @supported: document.getElementById
3
- @supportedText: "IE 7+, Chrome 10+, Firefox 4+, Safari 5+, Opera 8+"
3
+ @supportedText: "Chrome 10+, Firefox 4+, IE 7+, Safari 5+, Opera 8+"
4
4
  type = 'simple'
5
5
  type: -> type
6
6
 
@@ -1,6 +1,6 @@
1
1
  class @Mercury.Regions.Snippets extends Mercury.Region
2
2
  @supported: document.getElementById
3
- @supportedText: "IE 7+, Chrome 10+, Firefox 4+, Safari 5+, Opera 8+"
3
+ @supportedText: "Chrome 10+, Firefox 4+, IE 7+, Safari 5+, Opera 8+"
4
4
  type = 'snippets'
5
5
  type: -> type
6
6
 
@@ -10,6 +10,14 @@ jQuery.extend Mercury.tableEditor,
10
10
  @rowCount = @getRowCount()
11
11
 
12
12
 
13
+ addColumnBefore: ->
14
+ @addColumn('before')
15
+
16
+
17
+ addColumnAfter: ->
18
+ @addColumn('after')
19
+
20
+
13
21
  addColumn: (position = 'after') ->
14
22
  sig = @cellSignatureFor(@cell)
15
23
 
@@ -42,6 +50,14 @@ jQuery.extend Mercury.tableEditor,
42
50
  @setColspanFor(cell, @colspanFor(cell) - 1) for cell in adjusting
43
51
 
44
52
 
53
+ addRowBefore: ->
54
+ @addRow('before')
55
+
56
+
57
+ addRowAfter: ->
58
+ @addRow('after')
59
+
60
+
45
61
  addRow: (position = 'after') ->
46
62
  newRow = jQuery('<tr>')
47
63
 
@@ -71,8 +71,8 @@ class @Mercury.Toolbar
71
71
  event.preventDefault()
72
72
 
73
73
 
74
- height: ->
75
- if @visible then @element.outerHeight() else 0
74
+ height: (force = false) ->
75
+ if @visible || force then @element.outerHeight() else 0
76
76
 
77
77
 
78
78
  show: ->
@@ -2,11 +2,6 @@
2
2
  * Mercury Editor is a Coffeescript and jQuery based WYSIWYG editor. Documentation and other useful information can be
3
3
  * found at https://github.com/jejacks0n/mercury
4
4
  *
5
- * Supported browsers:
6
- * - Firefox 4+
7
- * - Chrome 10+
8
- * - Safari 5+
9
- *
10
5
  * Copyright (c) 2011 Jeremy Jackson
11
6
  *
12
7
  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
@@ -0,0 +1,1367 @@
1
+ /*!
2
+ * This file is a derivative of the Twitter Bootstrap CSS. It only includes the form and button css.
3
+ *
4
+ * Bootstrap v2.0.4
5
+ *
6
+ * Copyright 2012 Twitter, Inc
7
+ * Licensed under the Apache License v2.0
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
11
+ */
12
+ fieldset {
13
+ padding: 0;
14
+ margin: 0;
15
+ border: 0;
16
+ }
17
+
18
+ legend {
19
+ display: block;
20
+ width: 100%;
21
+ padding: 0;
22
+ margin-bottom: 27px;
23
+ font-size: 19.5px;
24
+ line-height: 36px;
25
+ color: #333333;
26
+ border: 0;
27
+ border-bottom: 1px solid #e5e5e5;
28
+ }
29
+
30
+ legend small {
31
+ font-size: 13.5px;
32
+ color: #999999;
33
+ }
34
+
35
+ label,
36
+ input,
37
+ button,
38
+ select,
39
+ textarea {
40
+ font-size: 13px;
41
+ font-weight: normal;
42
+ line-height: 18px;
43
+ }
44
+
45
+ input,
46
+ button,
47
+ select,
48
+ textarea {
49
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
50
+ }
51
+
52
+ label {
53
+ display: block;
54
+ margin-bottom: 5px;
55
+ }
56
+
57
+ select,
58
+ textarea,
59
+ input[type="text"],
60
+ input[type="password"],
61
+ input[type="datetime"],
62
+ input[type="datetime-local"],
63
+ input[type="date"],
64
+ input[type="month"],
65
+ input[type="time"],
66
+ input[type="week"],
67
+ input[type="number"],
68
+ input[type="email"],
69
+ input[type="url"],
70
+ input[type="search"],
71
+ input[type="tel"],
72
+ input[type="color"],
73
+ .uneditable-input {
74
+ display: inline-block;
75
+ /*height: 18px;*/
76
+ padding: 4px;
77
+ margin-bottom: 9px;
78
+ font-size: 13px;
79
+ /*line-height: 18px;*/
80
+ color: #555555;
81
+ }
82
+
83
+ input,
84
+ textarea {
85
+ width: 210px;
86
+ }
87
+
88
+ textarea {
89
+ height: auto;
90
+ }
91
+
92
+ textarea,
93
+ input[type="text"],
94
+ input[type="password"],
95
+ input[type="datetime"],
96
+ input[type="datetime-local"],
97
+ input[type="date"],
98
+ input[type="month"],
99
+ input[type="time"],
100
+ input[type="week"],
101
+ input[type="number"],
102
+ input[type="email"],
103
+ input[type="url"],
104
+ input[type="search"],
105
+ input[type="tel"],
106
+ input[type="color"],
107
+ .uneditable-input {
108
+ background-color: #ffffff;
109
+ border: 1px solid #cccccc;
110
+ -webkit-border-radius: 3px;
111
+ -moz-border-radius: 3px;
112
+ border-radius: 3px;
113
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
114
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
115
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
116
+ -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
117
+ -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
118
+ -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
119
+ -o-transition: border linear 0.2s, box-shadow linear 0.2s;
120
+ transition: border linear 0.2s, box-shadow linear 0.2s;
121
+ }
122
+
123
+ textarea:focus,
124
+ input[type="text"]:focus,
125
+ input[type="password"]:focus,
126
+ input[type="datetime"]:focus,
127
+ input[type="datetime-local"]:focus,
128
+ input[type="date"]:focus,
129
+ input[type="month"]:focus,
130
+ input[type="time"]:focus,
131
+ input[type="week"]:focus,
132
+ input[type="number"]:focus,
133
+ input[type="email"]:focus,
134
+ input[type="url"]:focus,
135
+ input[type="search"]:focus,
136
+ input[type="tel"]:focus,
137
+ input[type="color"]:focus,
138
+ .uneditable-input:focus {
139
+ border-color: rgba(82, 168, 236, 0.8);
140
+ outline: 0;
141
+ outline: thin dotted \9;
142
+ /* IE6-9 */
143
+
144
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
145
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
146
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
147
+ }
148
+
149
+ input[type="radio"],
150
+ input[type="checkbox"] {
151
+ margin: 3px 0;
152
+ *margin-top: 0;
153
+ /* IE7 */
154
+
155
+ line-height: normal;
156
+ cursor: pointer;
157
+ }
158
+
159
+ input[type="submit"],
160
+ input[type="reset"],
161
+ input[type="button"],
162
+ input[type="radio"],
163
+ input[type="checkbox"] {
164
+ width: auto;
165
+ }
166
+
167
+ .uneditable-textarea {
168
+ width: auto;
169
+ height: auto;
170
+ }
171
+
172
+ select,
173
+ input[type="file"] {
174
+ height: 28px;
175
+ /* In IE7, the height of the select element cannot be changed by height, only font-size */
176
+
177
+ *margin-top: 4px;
178
+ /* For IE7, add top margin to align select with labels */
179
+
180
+ line-height: 28px;
181
+ }
182
+
183
+ select {
184
+ width: 220px;
185
+ border: 1px solid #bbb;
186
+ }
187
+
188
+ select[multiple],
189
+ select[size] {
190
+ height: auto;
191
+ }
192
+
193
+ select:focus,
194
+ input[type="file"]:focus,
195
+ input[type="radio"]:focus,
196
+ input[type="checkbox"]:focus {
197
+ outline: thin dotted #333;
198
+ outline: 5px auto -webkit-focus-ring-color;
199
+ outline-offset: -2px;
200
+ }
201
+
202
+ .radio,
203
+ .checkbox {
204
+ min-height: 18px;
205
+ padding-left: 18px;
206
+ }
207
+
208
+ .radio input[type="radio"],
209
+ .checkbox input[type="checkbox"] {
210
+ float: left;
211
+ margin-left: -18px;
212
+ }
213
+
214
+ .controls > .radio:first-child,
215
+ .controls > .checkbox:first-child {
216
+ padding-top: 5px;
217
+ }
218
+
219
+ .radio.inline,
220
+ .checkbox.inline {
221
+ display: inline-block;
222
+ padding-top: 5px;
223
+ margin-bottom: 0;
224
+ vertical-align: middle;
225
+ }
226
+
227
+ .radio.inline + .radio.inline,
228
+ .checkbox.inline + .checkbox.inline {
229
+ margin-left: 10px;
230
+ }
231
+
232
+ .input-mini {
233
+ width: 60px;
234
+ }
235
+
236
+ .input-small {
237
+ width: 90px;
238
+ }
239
+
240
+ .input-medium {
241
+ width: 150px;
242
+ }
243
+
244
+ .input-large {
245
+ width: 210px;
246
+ }
247
+
248
+ .input-xlarge {
249
+ width: 270px;
250
+ }
251
+
252
+ .input-xxlarge {
253
+ width: 530px;
254
+ }
255
+
256
+ input[class*="span"],
257
+ select[class*="span"],
258
+ textarea[class*="span"],
259
+ .uneditable-input[class*="span"],
260
+ .row-fluid input[class*="span"],
261
+ .row-fluid select[class*="span"],
262
+ .row-fluid textarea[class*="span"],
263
+ .row-fluid .uneditable-input[class*="span"] {
264
+ float: none;
265
+ margin-left: 0;
266
+ }
267
+
268
+ .input-append input[class*="span"],
269
+ .input-append .uneditable-input[class*="span"],
270
+ .input-prepend input[class*="span"],
271
+ .input-prepend .uneditable-input[class*="span"],
272
+ .row-fluid .input-prepend [class*="span"],
273
+ .row-fluid .input-append [class*="span"] {
274
+ display: inline-block;
275
+ }
276
+
277
+ input,
278
+ textarea,
279
+ .uneditable-input {
280
+ margin-left: 0;
281
+ }
282
+
283
+ input.span12,
284
+ textarea.span12,
285
+ .uneditable-input.span12 {
286
+ width: 930px;
287
+ }
288
+
289
+ input.span11,
290
+ textarea.span11,
291
+ .uneditable-input.span11 {
292
+ width: 850px;
293
+ }
294
+
295
+ input.span10,
296
+ textarea.span10,
297
+ .uneditable-input.span10 {
298
+ width: 770px;
299
+ }
300
+
301
+ input.span9,
302
+ textarea.span9,
303
+ .uneditable-input.span9 {
304
+ width: 690px;
305
+ }
306
+
307
+ input.span8,
308
+ textarea.span8,
309
+ .uneditable-input.span8 {
310
+ width: 610px;
311
+ }
312
+
313
+ input.span7,
314
+ textarea.span7,
315
+ .uneditable-input.span7 {
316
+ width: 530px;
317
+ }
318
+
319
+ input.span6,
320
+ textarea.span6,
321
+ .uneditable-input.span6 {
322
+ width: 450px;
323
+ }
324
+
325
+ input.span5,
326
+ textarea.span5,
327
+ .uneditable-input.span5 {
328
+ width: 370px;
329
+ }
330
+
331
+ input.span4,
332
+ textarea.span4,
333
+ .uneditable-input.span4 {
334
+ width: 290px;
335
+ }
336
+
337
+ input.span3,
338
+ textarea.span3,
339
+ .uneditable-input.span3 {
340
+ width: 210px;
341
+ }
342
+
343
+ input.span2,
344
+ textarea.span2,
345
+ .uneditable-input.span2 {
346
+ width: 130px;
347
+ }
348
+
349
+ input.span1,
350
+ textarea.span1,
351
+ .uneditable-input.span1 {
352
+ width: 50px;
353
+ }
354
+
355
+ input[disabled],
356
+ select[disabled],
357
+ textarea[disabled],
358
+ input[readonly],
359
+ select[readonly],
360
+ textarea[readonly] {
361
+ cursor: not-allowed;
362
+ background-color: #eeeeee;
363
+ border-color: #ddd;
364
+ }
365
+
366
+ input[type="radio"][disabled],
367
+ input[type="checkbox"][disabled],
368
+ input[type="radio"][readonly],
369
+ input[type="checkbox"][readonly] {
370
+ background-color: transparent;
371
+ }
372
+
373
+ .control-group.warning > label,
374
+ .control-group.warning .help-block,
375
+ .control-group.warning .help-inline {
376
+ color: #c09853;
377
+ }
378
+
379
+ .control-group.warning .checkbox,
380
+ .control-group.warning .radio,
381
+ .control-group.warning input,
382
+ .control-group.warning select,
383
+ .control-group.warning textarea {
384
+ color: #c09853;
385
+ border-color: #c09853;
386
+ }
387
+
388
+ .control-group.warning .checkbox:focus,
389
+ .control-group.warning .radio:focus,
390
+ .control-group.warning input:focus,
391
+ .control-group.warning select:focus,
392
+ .control-group.warning textarea:focus {
393
+ border-color: #a47e3c;
394
+ -webkit-box-shadow: 0 0 6px #dbc59e;
395
+ -moz-box-shadow: 0 0 6px #dbc59e;
396
+ box-shadow: 0 0 6px #dbc59e;
397
+ }
398
+
399
+ .control-group.warning .input-prepend .add-on,
400
+ .control-group.warning .input-append .add-on {
401
+ color: #c09853;
402
+ background-color: #fcf8e3;
403
+ border-color: #c09853;
404
+ }
405
+
406
+ .control-group.error > label,
407
+ .control-group.error .help-block,
408
+ .control-group.error .help-inline {
409
+ color: #b94a48;
410
+ }
411
+
412
+ .control-group.error .checkbox,
413
+ .control-group.error .radio,
414
+ .control-group.error input,
415
+ .control-group.error select,
416
+ .control-group.error textarea {
417
+ color: #b94a48;
418
+ border-color: #b94a48;
419
+ }
420
+
421
+ .control-group.error .checkbox:focus,
422
+ .control-group.error .radio:focus,
423
+ .control-group.error input:focus,
424
+ .control-group.error select:focus,
425
+ .control-group.error textarea:focus {
426
+ border-color: #953b39;
427
+ -webkit-box-shadow: 0 0 6px #d59392;
428
+ -moz-box-shadow: 0 0 6px #d59392;
429
+ box-shadow: 0 0 6px #d59392;
430
+ }
431
+
432
+ .control-group.error .input-prepend .add-on,
433
+ .control-group.error .input-append .add-on {
434
+ color: #b94a48;
435
+ background-color: #f2dede;
436
+ border-color: #b94a48;
437
+ }
438
+
439
+ .control-group.success > label,
440
+ .control-group.success .help-block,
441
+ .control-group.success .help-inline {
442
+ color: #468847;
443
+ }
444
+
445
+ .control-group.success .checkbox,
446
+ .control-group.success .radio,
447
+ .control-group.success input,
448
+ .control-group.success select,
449
+ .control-group.success textarea {
450
+ color: #468847;
451
+ border-color: #468847;
452
+ }
453
+
454
+ .control-group.success .checkbox:focus,
455
+ .control-group.success .radio:focus,
456
+ .control-group.success input:focus,
457
+ .control-group.success select:focus,
458
+ .control-group.success textarea:focus {
459
+ border-color: #356635;
460
+ -webkit-box-shadow: 0 0 6px #7aba7b;
461
+ -moz-box-shadow: 0 0 6px #7aba7b;
462
+ box-shadow: 0 0 6px #7aba7b;
463
+ }
464
+
465
+ .control-group.success .input-prepend .add-on,
466
+ .control-group.success .input-append .add-on {
467
+ color: #468847;
468
+ background-color: #dff0d8;
469
+ border-color: #468847;
470
+ }
471
+
472
+ input:focus:required:invalid,
473
+ textarea:focus:required:invalid,
474
+ select:focus:required:invalid {
475
+ color: #b94a48;
476
+ border-color: #ee5f5b;
477
+ }
478
+
479
+ input:focus:required:invalid:focus,
480
+ textarea:focus:required:invalid:focus,
481
+ select:focus:required:invalid:focus {
482
+ border-color: #e9322d;
483
+ -webkit-box-shadow: 0 0 6px #f8b9b7;
484
+ -moz-box-shadow: 0 0 6px #f8b9b7;
485
+ box-shadow: 0 0 6px #f8b9b7;
486
+ }
487
+
488
+ .form-actions {
489
+ padding: 17px 20px 18px;
490
+ margin-top: 18px;
491
+ margin-bottom: 18px;
492
+ background-color: #f5f5f5;
493
+ border-top: 1px solid #e5e5e5;
494
+ *zoom: 1;
495
+ }
496
+
497
+ .form-actions:before,
498
+ .form-actions:after {
499
+ display: table;
500
+ content: "";
501
+ }
502
+
503
+ .form-actions:after {
504
+ clear: both;
505
+ }
506
+
507
+ .uneditable-input {
508
+ overflow: hidden;
509
+ white-space: nowrap;
510
+ cursor: not-allowed;
511
+ background-color: #ffffff;
512
+ border-color: #eee;
513
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
514
+ -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
515
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
516
+ }
517
+
518
+ :-moz-placeholder {
519
+ color: #999999;
520
+ }
521
+
522
+ :-ms-input-placeholder {
523
+ color: #999999;
524
+ }
525
+
526
+ ::-webkit-input-placeholder {
527
+ color: #999999;
528
+ }
529
+
530
+ .help-block,
531
+ .help-inline {
532
+ color: #555555;
533
+ }
534
+
535
+ .help-block {
536
+ display: block;
537
+ margin-bottom: 9px;
538
+ }
539
+
540
+ .help-inline {
541
+ display: inline-block;
542
+ *display: inline;
543
+ padding-left: 5px;
544
+ vertical-align: middle;
545
+ *zoom: 1;
546
+ }
547
+
548
+ .input-prepend,
549
+ .input-append {
550
+ margin-bottom: 5px;
551
+ }
552
+
553
+ .input-prepend input,
554
+ .input-append input,
555
+ .input-prepend select,
556
+ .input-append select,
557
+ .input-prepend .uneditable-input,
558
+ .input-append .uneditable-input {
559
+ position: relative;
560
+ margin-bottom: 0;
561
+ *margin-left: 0;
562
+ vertical-align: middle;
563
+ -webkit-border-radius: 0 3px 3px 0;
564
+ -moz-border-radius: 0 3px 3px 0;
565
+ border-radius: 0 3px 3px 0;
566
+ }
567
+
568
+ .input-prepend input:focus,
569
+ .input-append input:focus,
570
+ .input-prepend select:focus,
571
+ .input-append select:focus,
572
+ .input-prepend .uneditable-input:focus,
573
+ .input-append .uneditable-input:focus {
574
+ z-index: 2;
575
+ }
576
+
577
+ .input-prepend .uneditable-input,
578
+ .input-append .uneditable-input {
579
+ border-left-color: #ccc;
580
+ }
581
+
582
+ .input-prepend .add-on,
583
+ .input-append .add-on {
584
+ display: inline-block;
585
+ width: auto;
586
+ height: 18px;
587
+ min-width: 16px;
588
+ padding: 4px 5px;
589
+ font-weight: normal;
590
+ line-height: 18px;
591
+ text-align: center;
592
+ text-shadow: 0 1px 0 #ffffff;
593
+ vertical-align: middle;
594
+ background-color: #eeeeee;
595
+ border: 1px solid #ccc;
596
+ }
597
+
598
+ .input-prepend .add-on,
599
+ .input-append .add-on,
600
+ .input-prepend .btn,
601
+ .input-append .btn {
602
+ margin-left: -1px;
603
+ -webkit-border-radius: 0;
604
+ -moz-border-radius: 0;
605
+ border-radius: 0;
606
+ }
607
+
608
+ .input-prepend .active,
609
+ .input-append .active {
610
+ background-color: #a9dba9;
611
+ border-color: #46a546;
612
+ }
613
+
614
+ .input-prepend .add-on,
615
+ .input-prepend .btn {
616
+ margin-right: -1px;
617
+ }
618
+
619
+ .input-prepend .add-on:first-child,
620
+ .input-prepend .btn:first-child {
621
+ -webkit-border-radius: 3px 0 0 3px;
622
+ -moz-border-radius: 3px 0 0 3px;
623
+ border-radius: 3px 0 0 3px;
624
+ }
625
+
626
+ .input-append input,
627
+ .input-append select,
628
+ .input-append .uneditable-input {
629
+ -webkit-border-radius: 3px 0 0 3px;
630
+ -moz-border-radius: 3px 0 0 3px;
631
+ border-radius: 3px 0 0 3px;
632
+ }
633
+
634
+ .input-append .uneditable-input {
635
+ border-right-color: #ccc;
636
+ border-left-color: #eee;
637
+ }
638
+
639
+ .input-append .add-on:last-child,
640
+ .input-append .btn:last-child {
641
+ -webkit-border-radius: 0 3px 3px 0;
642
+ -moz-border-radius: 0 3px 3px 0;
643
+ border-radius: 0 3px 3px 0;
644
+ }
645
+
646
+ .input-prepend.input-append input,
647
+ .input-prepend.input-append select,
648
+ .input-prepend.input-append .uneditable-input {
649
+ -webkit-border-radius: 0;
650
+ -moz-border-radius: 0;
651
+ border-radius: 0;
652
+ }
653
+
654
+ .input-prepend.input-append .add-on:first-child,
655
+ .input-prepend.input-append .btn:first-child {
656
+ margin-right: -1px;
657
+ -webkit-border-radius: 3px 0 0 3px;
658
+ -moz-border-radius: 3px 0 0 3px;
659
+ border-radius: 3px 0 0 3px;
660
+ }
661
+
662
+ .input-prepend.input-append .add-on:last-child,
663
+ .input-prepend.input-append .btn:last-child {
664
+ margin-left: -1px;
665
+ -webkit-border-radius: 0 3px 3px 0;
666
+ -moz-border-radius: 0 3px 3px 0;
667
+ border-radius: 0 3px 3px 0;
668
+ }
669
+
670
+ .search-query {
671
+ padding-right: 14px;
672
+ padding-right: 4px \9;
673
+ padding-left: 14px;
674
+ padding-left: 4px \9;
675
+ /* IE7-8 doesn't have border-radius, so don't indent the padding */
676
+
677
+ margin-bottom: 0;
678
+ -webkit-border-radius: 14px;
679
+ -moz-border-radius: 14px;
680
+ border-radius: 14px;
681
+ }
682
+
683
+ .form-search input,
684
+ .form-inline input,
685
+ .form-horizontal input,
686
+ .form-search textarea,
687
+ .form-inline textarea,
688
+ .form-horizontal textarea,
689
+ .form-search select,
690
+ .form-inline select,
691
+ .form-horizontal select,
692
+ .form-search .help-inline,
693
+ .form-inline .help-inline,
694
+ .form-horizontal .help-inline,
695
+ .form-search .uneditable-input,
696
+ .form-inline .uneditable-input,
697
+ .form-horizontal .uneditable-input,
698
+ .form-search .input-prepend,
699
+ .form-inline .input-prepend,
700
+ .form-horizontal .input-prepend,
701
+ .form-search .input-append,
702
+ .form-inline .input-append,
703
+ .form-horizontal .input-append {
704
+ display: inline-block;
705
+ *display: inline;
706
+ margin-bottom: 0;
707
+ *zoom: 1;
708
+ }
709
+
710
+ .form-search .hide,
711
+ .form-inline .hide,
712
+ .form-horizontal .hide {
713
+ display: none;
714
+ }
715
+
716
+ .form-search label,
717
+ .form-inline label {
718
+ display: inline-block;
719
+ }
720
+
721
+ .form-search .input-append,
722
+ .form-inline .input-append,
723
+ .form-search .input-prepend,
724
+ .form-inline .input-prepend {
725
+ margin-bottom: 0;
726
+ }
727
+
728
+ .form-search .radio,
729
+ .form-search .checkbox,
730
+ .form-inline .radio,
731
+ .form-inline .checkbox {
732
+ padding-left: 0;
733
+ margin-bottom: 0;
734
+ vertical-align: middle;
735
+ }
736
+
737
+ .form-search .radio input[type="radio"],
738
+ .form-search .checkbox input[type="checkbox"],
739
+ .form-inline .radio input[type="radio"],
740
+ .form-inline .checkbox input[type="checkbox"] {
741
+ float: left;
742
+ margin-right: 3px;
743
+ margin-left: 0;
744
+ }
745
+
746
+ .control-group {
747
+ margin-bottom: 9px;
748
+ }
749
+
750
+ legend + .control-group {
751
+ margin-top: 18px;
752
+ -webkit-margin-top-collapse: separate;
753
+ }
754
+
755
+ .form-horizontal .control-group {
756
+ margin-bottom: 18px;
757
+ *zoom: 1;
758
+ }
759
+
760
+ .form-horizontal .control-group:before,
761
+ .form-horizontal .control-group:after {
762
+ display: table;
763
+ content: "";
764
+ }
765
+
766
+ .form-horizontal .control-group:after {
767
+ clear: both;
768
+ }
769
+
770
+ .form-horizontal .control-label {
771
+ float: left;
772
+ width: 140px;
773
+ padding-top: 5px;
774
+ text-align: right;
775
+ }
776
+
777
+ .form-horizontal .controls {
778
+ *display: inline-block;
779
+ *padding-left: 20px;
780
+ margin-left: 160px;
781
+ *margin-left: 0;
782
+ }
783
+
784
+ .form-horizontal .controls:first-child {
785
+ *padding-left: 160px;
786
+ }
787
+
788
+ .form-horizontal .help-block {
789
+ margin-top: 9px;
790
+ margin-bottom: 0;
791
+ }
792
+
793
+ .form-horizontal .form-actions {
794
+ padding-left: 160px;
795
+ }
796
+
797
+
798
+ .btn {
799
+ display: inline-block;
800
+ *display: inline;
801
+ padding: 4px 10px 4px;
802
+ margin-bottom: 0;
803
+ *margin-left: .3em;
804
+ font-size: 13px;
805
+ line-height: 18px;
806
+ *line-height: 20px;
807
+ color: #333333;
808
+ text-align: center;
809
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
810
+ vertical-align: middle;
811
+ cursor: pointer;
812
+ background-color: #f5f5f5;
813
+ *background-color: #e6e6e6;
814
+ background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
815
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
816
+ background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
817
+ background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
818
+ background-image: linear-gradient(top, #ffffff, #e6e6e6);
819
+ background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
820
+ background-repeat: repeat-x;
821
+ border: 1px solid #cccccc;
822
+ *border: 0;
823
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
824
+ border-color: #e6e6e6 #e6e6e6 #bfbfbf;
825
+ border-bottom-color: #b3b3b3;
826
+ -webkit-border-radius: 4px;
827
+ -moz-border-radius: 4px;
828
+ border-radius: 4px;
829
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
830
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
831
+ *zoom: 1;
832
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
833
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
834
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
835
+ }
836
+
837
+ .btn:hover,
838
+ .btn:active,
839
+ .btn.active,
840
+ .btn.disabled,
841
+ .btn[disabled] {
842
+ background-color: #e6e6e6;
843
+ *background-color: #d9d9d9;
844
+ }
845
+
846
+ .btn:active,
847
+ .btn.active {
848
+ background-color: #cccccc \9;
849
+ }
850
+
851
+ .btn:first-child {
852
+ *margin-left: 0;
853
+ }
854
+
855
+ .btn:hover {
856
+ color: #333333;
857
+ text-decoration: none;
858
+ background-color: #e6e6e6;
859
+ *background-color: #d9d9d9;
860
+ /* Buttons in IE7 don't get borders, so darken on hover */
861
+
862
+ background-position: 0 -15px;
863
+ -webkit-transition: background-position 0.1s linear;
864
+ -moz-transition: background-position 0.1s linear;
865
+ -ms-transition: background-position 0.1s linear;
866
+ -o-transition: background-position 0.1s linear;
867
+ transition: background-position 0.1s linear;
868
+ }
869
+
870
+ .btn:focus {
871
+ outline: thin dotted #333;
872
+ outline: 5px auto -webkit-focus-ring-color;
873
+ outline-offset: -2px;
874
+ }
875
+
876
+ .btn.active,
877
+ .btn:active {
878
+ background-color: #e6e6e6;
879
+ background-color: #d9d9d9 \9;
880
+ background-image: none;
881
+ outline: 0;
882
+ -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
883
+ -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
884
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
885
+ }
886
+
887
+ .btn.disabled,
888
+ .btn[disabled] {
889
+ cursor: default;
890
+ background-color: #e6e6e6;
891
+ background-image: none;
892
+ opacity: 0.65;
893
+ filter: alpha(opacity=65);
894
+ -webkit-box-shadow: none;
895
+ -moz-box-shadow: none;
896
+ box-shadow: none;
897
+ }
898
+
899
+ .btn-large {
900
+ padding: 9px 14px;
901
+ font-size: 15px;
902
+ line-height: normal;
903
+ -webkit-border-radius: 5px;
904
+ -moz-border-radius: 5px;
905
+ border-radius: 5px;
906
+ }
907
+
908
+ .btn-large [class^="icon-"] {
909
+ margin-top: 1px;
910
+ }
911
+
912
+ .btn-small {
913
+ padding: 5px 9px;
914
+ font-size: 11px;
915
+ line-height: 16px;
916
+ }
917
+
918
+ .btn-small [class^="icon-"] {
919
+ margin-top: -1px;
920
+ }
921
+
922
+ .btn-mini {
923
+ padding: 2px 6px;
924
+ font-size: 11px;
925
+ line-height: 14px;
926
+ }
927
+
928
+ .btn-primary,
929
+ .btn-primary:hover,
930
+ .btn-warning,
931
+ .btn-warning:hover,
932
+ .btn-danger,
933
+ .btn-danger:hover,
934
+ .btn-success,
935
+ .btn-success:hover,
936
+ .btn-info,
937
+ .btn-info:hover,
938
+ .btn-inverse,
939
+ .btn-inverse:hover {
940
+ color: #ffffff;
941
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
942
+ }
943
+
944
+ .btn-primary.active,
945
+ .btn-warning.active,
946
+ .btn-danger.active,
947
+ .btn-success.active,
948
+ .btn-info.active,
949
+ .btn-inverse.active {
950
+ color: rgba(255, 255, 255, 0.75);
951
+ }
952
+
953
+ .btn {
954
+ border-color: #ccc;
955
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
956
+ }
957
+
958
+ .btn-primary {
959
+ background-color: #0074cc;
960
+ *background-color: #0055cc;
961
+ background-image: -ms-linear-gradient(top, #0088cc, #0055cc);
962
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc));
963
+ background-image: -webkit-linear-gradient(top, #0088cc, #0055cc);
964
+ background-image: -o-linear-gradient(top, #0088cc, #0055cc);
965
+ background-image: -moz-linear-gradient(top, #0088cc, #0055cc);
966
+ background-image: linear-gradient(top, #0088cc, #0055cc);
967
+ background-repeat: repeat-x;
968
+ border-color: #0055cc #0055cc #003580;
969
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
970
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);
971
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
972
+ }
973
+
974
+ .btn-primary:hover,
975
+ .btn-primary:active,
976
+ .btn-primary.active,
977
+ .btn-primary.disabled,
978
+ .btn-primary[disabled] {
979
+ background-color: #0055cc;
980
+ *background-color: #004ab3;
981
+ }
982
+
983
+ .btn-primary:active,
984
+ .btn-primary.active {
985
+ background-color: #004099 \9;
986
+ }
987
+
988
+ .btn-warning {
989
+ background-color: #faa732;
990
+ *background-color: #f89406;
991
+ background-image: -ms-linear-gradient(top, #fbb450, #f89406);
992
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
993
+ background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
994
+ background-image: -o-linear-gradient(top, #fbb450, #f89406);
995
+ background-image: -moz-linear-gradient(top, #fbb450, #f89406);
996
+ background-image: linear-gradient(top, #fbb450, #f89406);
997
+ background-repeat: repeat-x;
998
+ border-color: #f89406 #f89406 #ad6704;
999
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1000
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);
1001
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1002
+ }
1003
+
1004
+ .btn-warning:hover,
1005
+ .btn-warning:active,
1006
+ .btn-warning.active,
1007
+ .btn-warning.disabled,
1008
+ .btn-warning[disabled] {
1009
+ background-color: #f89406;
1010
+ *background-color: #df8505;
1011
+ }
1012
+
1013
+ .btn-warning:active,
1014
+ .btn-warning.active {
1015
+ background-color: #c67605 \9;
1016
+ }
1017
+
1018
+ .btn-danger {
1019
+ background-color: #da4f49;
1020
+ *background-color: #bd362f;
1021
+ background-image: -ms-linear-gradient(top, #ee5f5b, #bd362f);
1022
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
1023
+ background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
1024
+ background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
1025
+ background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
1026
+ background-image: linear-gradient(top, #ee5f5b, #bd362f);
1027
+ background-repeat: repeat-x;
1028
+ border-color: #bd362f #bd362f #802420;
1029
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1030
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);
1031
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1032
+ }
1033
+
1034
+ .btn-danger:hover,
1035
+ .btn-danger:active,
1036
+ .btn-danger.active,
1037
+ .btn-danger.disabled,
1038
+ .btn-danger[disabled] {
1039
+ background-color: #bd362f;
1040
+ *background-color: #a9302a;
1041
+ }
1042
+
1043
+ .btn-danger:active,
1044
+ .btn-danger.active {
1045
+ background-color: #942a25 \9;
1046
+ }
1047
+
1048
+ .btn-success {
1049
+ background-color: #5bb75b;
1050
+ *background-color: #51a351;
1051
+ background-image: -ms-linear-gradient(top, #62c462, #51a351);
1052
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
1053
+ background-image: -webkit-linear-gradient(top, #62c462, #51a351);
1054
+ background-image: -o-linear-gradient(top, #62c462, #51a351);
1055
+ background-image: -moz-linear-gradient(top, #62c462, #51a351);
1056
+ background-image: linear-gradient(top, #62c462, #51a351);
1057
+ background-repeat: repeat-x;
1058
+ border-color: #51a351 #51a351 #387038;
1059
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1060
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);
1061
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1062
+ }
1063
+
1064
+ .btn-success:hover,
1065
+ .btn-success:active,
1066
+ .btn-success.active,
1067
+ .btn-success.disabled,
1068
+ .btn-success[disabled] {
1069
+ background-color: #51a351;
1070
+ *background-color: #499249;
1071
+ }
1072
+
1073
+ .btn-success:active,
1074
+ .btn-success.active {
1075
+ background-color: #408140 \9;
1076
+ }
1077
+
1078
+ .btn-info {
1079
+ background-color: #49afcd;
1080
+ *background-color: #2f96b4;
1081
+ background-image: -ms-linear-gradient(top, #5bc0de, #2f96b4);
1082
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
1083
+ background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
1084
+ background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
1085
+ background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
1086
+ background-image: linear-gradient(top, #5bc0de, #2f96b4);
1087
+ background-repeat: repeat-x;
1088
+ border-color: #2f96b4 #2f96b4 #1f6377;
1089
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1090
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);
1091
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1092
+ }
1093
+
1094
+ .btn-info:hover,
1095
+ .btn-info:active,
1096
+ .btn-info.active,
1097
+ .btn-info.disabled,
1098
+ .btn-info[disabled] {
1099
+ background-color: #2f96b4;
1100
+ *background-color: #2a85a0;
1101
+ }
1102
+
1103
+ .btn-info:active,
1104
+ .btn-info.active {
1105
+ background-color: #24748c \9;
1106
+ }
1107
+
1108
+ .btn-inverse {
1109
+ background-color: #414141;
1110
+ *background-color: #222222;
1111
+ background-image: -ms-linear-gradient(top, #555555, #222222);
1112
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222));
1113
+ background-image: -webkit-linear-gradient(top, #555555, #222222);
1114
+ background-image: -o-linear-gradient(top, #555555, #222222);
1115
+ background-image: -moz-linear-gradient(top, #555555, #222222);
1116
+ background-image: linear-gradient(top, #555555, #222222);
1117
+ background-repeat: repeat-x;
1118
+ border-color: #222222 #222222 #000000;
1119
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
1120
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);
1121
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
1122
+ }
1123
+
1124
+ .btn-inverse:hover,
1125
+ .btn-inverse:active,
1126
+ .btn-inverse.active,
1127
+ .btn-inverse.disabled,
1128
+ .btn-inverse[disabled] {
1129
+ background-color: #222222;
1130
+ *background-color: #151515;
1131
+ }
1132
+
1133
+ .btn-inverse:active,
1134
+ .btn-inverse.active {
1135
+ background-color: #080808 \9;
1136
+ }
1137
+
1138
+ button.btn,
1139
+ input[type="submit"].btn {
1140
+ *padding-top: 2px;
1141
+ *padding-bottom: 2px;
1142
+ }
1143
+
1144
+ button.btn::-moz-focus-inner,
1145
+ input[type="submit"].btn::-moz-focus-inner {
1146
+ padding: 0;
1147
+ border: 0;
1148
+ }
1149
+
1150
+ button.btn.btn-large,
1151
+ input[type="submit"].btn.btn-large {
1152
+ *padding-top: 7px;
1153
+ *padding-bottom: 7px;
1154
+ }
1155
+
1156
+ button.btn.btn-small,
1157
+ input[type="submit"].btn.btn-small {
1158
+ *padding-top: 3px;
1159
+ *padding-bottom: 3px;
1160
+ }
1161
+
1162
+ button.btn.btn-mini,
1163
+ input[type="submit"].btn.btn-mini {
1164
+ *padding-top: 1px;
1165
+ *padding-bottom: 1px;
1166
+ }
1167
+
1168
+ .btn-group {
1169
+ position: relative;
1170
+ *margin-left: .3em;
1171
+ *zoom: 1;
1172
+ }
1173
+
1174
+ .btn-group:before,
1175
+ .btn-group:after {
1176
+ display: table;
1177
+ content: "";
1178
+ }
1179
+
1180
+ .btn-group:after {
1181
+ clear: both;
1182
+ }
1183
+
1184
+ .btn-group:first-child {
1185
+ *margin-left: 0;
1186
+ }
1187
+
1188
+ .btn-group + .btn-group {
1189
+ margin-left: 5px;
1190
+ }
1191
+
1192
+ .btn-toolbar {
1193
+ margin-top: 9px;
1194
+ margin-bottom: 9px;
1195
+ }
1196
+
1197
+ .btn-toolbar .btn-group {
1198
+ display: inline-block;
1199
+ *display: inline;
1200
+ /* IE7 inline-block hack */
1201
+
1202
+ *zoom: 1;
1203
+ }
1204
+
1205
+ .btn-group > .btn {
1206
+ position: relative;
1207
+ float: left;
1208
+ margin-left: -1px;
1209
+ -webkit-border-radius: 0;
1210
+ -moz-border-radius: 0;
1211
+ border-radius: 0;
1212
+ }
1213
+
1214
+ .btn-group > .btn:first-child {
1215
+ margin-left: 0;
1216
+ -webkit-border-bottom-left-radius: 4px;
1217
+ border-bottom-left-radius: 4px;
1218
+ -webkit-border-top-left-radius: 4px;
1219
+ border-top-left-radius: 4px;
1220
+ -moz-border-radius-bottomleft: 4px;
1221
+ -moz-border-radius-topleft: 4px;
1222
+ }
1223
+
1224
+ .btn-group > .btn:last-child,
1225
+ .btn-group > .dropdown-toggle {
1226
+ -webkit-border-top-right-radius: 4px;
1227
+ border-top-right-radius: 4px;
1228
+ -webkit-border-bottom-right-radius: 4px;
1229
+ border-bottom-right-radius: 4px;
1230
+ -moz-border-radius-topright: 4px;
1231
+ -moz-border-radius-bottomright: 4px;
1232
+ }
1233
+
1234
+ .btn-group > .btn.large:first-child {
1235
+ margin-left: 0;
1236
+ -webkit-border-bottom-left-radius: 6px;
1237
+ border-bottom-left-radius: 6px;
1238
+ -webkit-border-top-left-radius: 6px;
1239
+ border-top-left-radius: 6px;
1240
+ -moz-border-radius-bottomleft: 6px;
1241
+ -moz-border-radius-topleft: 6px;
1242
+ }
1243
+
1244
+ .btn-group > .btn.large:last-child,
1245
+ .btn-group > .large.dropdown-toggle {
1246
+ -webkit-border-top-right-radius: 6px;
1247
+ border-top-right-radius: 6px;
1248
+ -webkit-border-bottom-right-radius: 6px;
1249
+ border-bottom-right-radius: 6px;
1250
+ -moz-border-radius-topright: 6px;
1251
+ -moz-border-radius-bottomright: 6px;
1252
+ }
1253
+
1254
+ .btn-group > .btn:hover,
1255
+ .btn-group > .btn:focus,
1256
+ .btn-group > .btn:active,
1257
+ .btn-group > .btn.active {
1258
+ z-index: 2;
1259
+ }
1260
+
1261
+ .btn-group .dropdown-toggle:active,
1262
+ .btn-group.open .dropdown-toggle {
1263
+ outline: 0;
1264
+ }
1265
+
1266
+ .btn-group > .dropdown-toggle {
1267
+ *padding-top: 4px;
1268
+ padding-right: 8px;
1269
+ *padding-bottom: 4px;
1270
+ padding-left: 8px;
1271
+ -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1272
+ -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1273
+ box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1274
+ }
1275
+
1276
+ .btn-group > .btn-mini.dropdown-toggle {
1277
+ padding-right: 5px;
1278
+ padding-left: 5px;
1279
+ }
1280
+
1281
+ .btn-group > .btn-small.dropdown-toggle {
1282
+ *padding-top: 4px;
1283
+ *padding-bottom: 4px;
1284
+ }
1285
+
1286
+ .btn-group > .btn-large.dropdown-toggle {
1287
+ padding-right: 12px;
1288
+ padding-left: 12px;
1289
+ }
1290
+
1291
+ .btn-group.open .dropdown-toggle {
1292
+ background-image: none;
1293
+ -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
1294
+ -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
1295
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
1296
+ }
1297
+
1298
+ .btn-group.open .btn.dropdown-toggle {
1299
+ background-color: #e6e6e6;
1300
+ }
1301
+
1302
+ .btn-group.open .btn-primary.dropdown-toggle {
1303
+ background-color: #0055cc;
1304
+ }
1305
+
1306
+ .btn-group.open .btn-warning.dropdown-toggle {
1307
+ background-color: #f89406;
1308
+ }
1309
+
1310
+ .btn-group.open .btn-danger.dropdown-toggle {
1311
+ background-color: #bd362f;
1312
+ }
1313
+
1314
+ .btn-group.open .btn-success.dropdown-toggle {
1315
+ background-color: #51a351;
1316
+ }
1317
+
1318
+ .btn-group.open .btn-info.dropdown-toggle {
1319
+ background-color: #2f96b4;
1320
+ }
1321
+
1322
+ .btn-group.open .btn-inverse.dropdown-toggle {
1323
+ background-color: #222222;
1324
+ }
1325
+
1326
+ .btn .caret {
1327
+ margin-top: 7px;
1328
+ margin-left: 0;
1329
+ }
1330
+
1331
+ .btn:hover .caret,
1332
+ .open.btn-group .caret {
1333
+ opacity: 1;
1334
+ filter: alpha(opacity=100);
1335
+ }
1336
+
1337
+ .btn-mini .caret {
1338
+ margin-top: 5px;
1339
+ }
1340
+
1341
+ .btn-small .caret {
1342
+ margin-top: 6px;
1343
+ }
1344
+
1345
+ .btn-large .caret {
1346
+ margin-top: 6px;
1347
+ border-top-width: 5px;
1348
+ border-right-width: 5px;
1349
+ border-left-width: 5px;
1350
+ }
1351
+
1352
+ .dropup .btn-large .caret {
1353
+ border-top: 0;
1354
+ border-bottom: 5px solid #000000;
1355
+ }
1356
+
1357
+ .btn-primary .caret,
1358
+ .btn-warning .caret,
1359
+ .btn-danger .caret,
1360
+ .btn-info .caret,
1361
+ .btn-success .caret,
1362
+ .btn-inverse .caret {
1363
+ border-top-color: #ffffff;
1364
+ border-bottom-color: #ffffff;
1365
+ opacity: 0.75;
1366
+ filter: alpha(opacity=75);
1367
+ }