less-rails-bootstrap 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +5 -0
- data/lib/less/rails/bootstrap/version.rb +1 -1
- data/test/cases/usage_css_spec.rb +19 -19
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +8 -5
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +3 -3
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +5 -2
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +6 -5
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +3 -3
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +2 -2
- data/vendor/frameworks/twitter/bootstrap/accordion.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/alerts.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/bootstrap.less +1 -1
- data/vendor/frameworks/twitter/bootstrap/breadcrumbs.less +1 -1
- data/vendor/frameworks/twitter/bootstrap/button-groups.less +3 -2
- data/vendor/frameworks/twitter/bootstrap/buttons.less +26 -8
- data/vendor/frameworks/twitter/bootstrap/carousel.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/close.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/code.less +13 -0
- data/vendor/frameworks/twitter/bootstrap/component-animations.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/dropdowns.less +1 -2
- data/vendor/frameworks/twitter/bootstrap/forms.less +49 -42
- data/vendor/frameworks/twitter/bootstrap/grid.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/hero-unit.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/labels.less +23 -7
- data/vendor/frameworks/twitter/bootstrap/layouts.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/mixins.less +78 -25
- data/vendor/frameworks/twitter/bootstrap/modals.less +11 -0
- data/vendor/frameworks/twitter/bootstrap/navbar.less +12 -5
- data/vendor/frameworks/twitter/bootstrap/navs.less +22 -13
- data/vendor/frameworks/twitter/bootstrap/pager.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/pagination.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/popovers.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/progress-bars.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/reset.less +1 -1
- data/vendor/frameworks/twitter/bootstrap/responsive.less +10 -6
- data/vendor/frameworks/twitter/bootstrap/scaffolding.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/sprites.less +7 -5
- data/vendor/frameworks/twitter/bootstrap/tables.less +14 -3
- data/vendor/frameworks/twitter/bootstrap/thumbnails.less +2 -2
- data/vendor/frameworks/twitter/bootstrap/tooltip.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/type.less +3 -2
- data/vendor/frameworks/twitter/bootstrap/utilities.less +0 -0
- data/vendor/frameworks/twitter/bootstrap/variables.less +15 -7
- data/vendor/frameworks/twitter/bootstrap/wells.less +0 -0
- metadata +5 -5
    
        data/CHANGELOG.md
    CHANGED
    
    
| @@ -1,68 +1,68 @@ | |
| 1 1 | 
             
            require 'spec_helper'
         | 
| 2 2 |  | 
| 3 3 | 
             
            class UsageCssSpec < Less::Rails::Bootstrap::Spec
         | 
| 4 | 
            -
             | 
| 4 | 
            +
             | 
| 5 5 | 
             
              describe 'application.css' do
         | 
| 6 | 
            -
             | 
| 6 | 
            +
             | 
| 7 7 | 
             
                let(:app_css) { dummy_asset('application.css') }
         | 
| 8 | 
            -
             | 
| 8 | 
            +
             | 
| 9 9 | 
             
                it 'will render main bootstrap.less file and all included modules' do
         | 
| 10 10 | 
             
                  app_css.must_include 'Bootstrap v2'
         | 
| 11 11 | 
             
                end
         | 
| 12 | 
            -
             | 
| 12 | 
            +
             | 
| 13 13 | 
             
                it 'must include basic css afterward' do
         | 
| 14 14 | 
             
                  app_css.must_include '#other-css { color: red; }',  'From our code afterward.'
         | 
| 15 15 | 
             
                end
         | 
| 16 | 
            -
             | 
| 16 | 
            +
             | 
| 17 17 | 
             
                it 'uses less-rails asset-url helper for images' do
         | 
| 18 18 | 
             
                  app_css.must_include 'url(/assets/twitter/bootstrap/glyphicons-halflings.png)'
         | 
| 19 19 | 
             
                  app_css.must_include 'url(/assets/twitter/bootstrap/glyphicons-halflings-white.png)'
         | 
| 20 20 | 
             
                end
         | 
| 21 | 
            -
             | 
| 21 | 
            +
             | 
| 22 22 | 
             
              end
         | 
| 23 | 
            -
             | 
| 23 | 
            +
             | 
| 24 24 | 
             
              describe 'framework.css.less' do
         | 
| 25 | 
            -
             | 
| 25 | 
            +
             | 
| 26 26 | 
             
                before { dummy_config.less.compress = true }
         | 
| 27 | 
            -
             | 
| 27 | 
            +
             | 
| 28 28 | 
             
                let(:framework_css) { dummy_asset('framework.css') }
         | 
| 29 | 
            -
             | 
| 29 | 
            +
             | 
| 30 30 | 
             
                it 'will render bootstrap functions' do
         | 
| 31 31 | 
             
                  border_radius_line = line_for_framework_css('framework-border-radius')
         | 
| 32 32 | 
             
                  border_radius_line.must_include '-webkit-border-radius:4px'
         | 
| 33 33 | 
             
                  border_radius_line.must_include '-moz-border-radius:4px'
         | 
| 34 34 | 
             
                  border_radius_line.must_include 'border-radius:4px'
         | 
| 35 35 | 
             
                end
         | 
| 36 | 
            -
             | 
| 36 | 
            +
             | 
| 37 37 | 
             
                it 'will render bootstrap variables' do
         | 
| 38 38 | 
             
                  link_color_line = line_for_framework_css('framework-linkColor')
         | 
| 39 39 | 
             
                  link_color_line.must_include 'color:#0088cc;'
         | 
| 40 40 | 
             
                end
         | 
| 41 | 
            -
             | 
| 41 | 
            +
             | 
| 42 42 | 
             
              end
         | 
| 43 | 
            -
             | 
| 43 | 
            +
             | 
| 44 44 | 
             
              describe 'individual.css.less' do
         | 
| 45 | 
            -
             | 
| 45 | 
            +
             | 
| 46 46 | 
             
                before { dummy_config.less.compress = true }
         | 
| 47 | 
            -
             | 
| 47 | 
            +
             | 
| 48 48 | 
             
                let(:individual_css) { dummy_asset('individual.css') }
         | 
| 49 | 
            -
             | 
| 49 | 
            +
             | 
| 50 50 | 
             
                it 'will render bootstrap variables and mixins' do
         | 
| 51 51 | 
             
                  my_button_line = line_for_individual_css('individual-my-button')
         | 
| 52 52 | 
             
                  my_button_line.must_include '-webkit-border-radius:10px'
         | 
| 53 53 | 
             
                  my_button_line.must_include '-moz-border-radius:10px'
         | 
| 54 54 | 
             
                  my_button_line.must_include 'border-radius:10px'
         | 
| 55 55 | 
             
                end
         | 
| 56 | 
            -
             | 
| 56 | 
            +
             | 
| 57 57 | 
             
              end
         | 
| 58 58 |  | 
| 59 59 |  | 
| 60 60 | 
             
              private
         | 
| 61 | 
            -
             | 
| 61 | 
            +
             | 
| 62 62 | 
             
              def line_for_framework_css(name)
         | 
| 63 63 | 
             
                framework_css.each_line.detect{ |line| line.include? name }.strip
         | 
| 64 64 | 
             
              end
         | 
| 65 | 
            -
             | 
| 65 | 
            +
             | 
| 66 66 | 
             
              def line_for_individual_css(name)
         | 
| 67 67 | 
             
                individual_css.each_line.detect{ |line| line.include? name }.strip
         | 
| 68 68 | 
             
              end
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* ==========================================================
         | 
| 2 | 
            -
             * bootstrap-alert.js v2.0. | 
| 2 | 
            +
             * bootstrap-alert.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#alerts
         | 
| 4 4 | 
             
             * ==========================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -51,11 +51,14 @@ | |
| 51 51 |  | 
| 52 52 | 
             
                  $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
         | 
| 53 53 |  | 
| 54 | 
            -
                  $parent | 
| 54 | 
            +
                  $parent
         | 
| 55 | 
            +
                    .trigger('close')
         | 
| 56 | 
            +
                    .removeClass('in')
         | 
| 55 57 |  | 
| 56 58 | 
             
                  function removeElement() {
         | 
| 57 | 
            -
                    $parent | 
| 58 | 
            -
             | 
| 59 | 
            +
                    $parent
         | 
| 60 | 
            +
                      .trigger('closed')
         | 
| 61 | 
            +
                      .remove()
         | 
| 59 62 | 
             
                  }
         | 
| 60 63 |  | 
| 61 64 | 
             
                  $.support.transition && $parent.hasClass('fade') ?
         | 
| @@ -88,4 +91,4 @@ | |
| 88 91 | 
             
                $('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
         | 
| 89 92 | 
             
              })
         | 
| 90 93 |  | 
| 91 | 
            -
            }( window.jQuery )
         | 
| 94 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* ============================================================
         | 
| 2 | 
            -
             * bootstrap-button.js v2.0. | 
| 2 | 
            +
             * bootstrap-button.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#buttons
         | 
| 4 4 | 
             
             * ============================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -91,8 +91,8 @@ | |
| 91 91 |  | 
| 92 92 | 
             
              $(function () {
         | 
| 93 93 | 
             
                $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
         | 
| 94 | 
            -
                  $(e. | 
| 94 | 
            +
                  $(e.currentTarget).button('toggle')
         | 
| 95 95 | 
             
                })
         | 
| 96 96 | 
             
              })
         | 
| 97 97 |  | 
| 98 | 
            -
            }( window.jQuery )
         | 
| 98 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* ==========================================================
         | 
| 2 | 
            -
             * bootstrap-carousel.js v2.0. | 
| 2 | 
            +
             * bootstrap-carousel.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#carousel
         | 
| 4 4 | 
             
             * ==========================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -61,6 +61,7 @@ | |
| 61 61 |  | 
| 62 62 | 
             
              , pause: function () {
         | 
| 63 63 | 
             
                  clearInterval(this.interval)
         | 
| 64 | 
            +
                  this.interval = null
         | 
| 64 65 | 
             
                  return this
         | 
| 65 66 | 
             
                }
         | 
| 66 67 |  | 
| @@ -82,6 +83,8 @@ | |
| 82 83 | 
             
                    , fallback  = type == 'next' ? 'first' : 'last'
         | 
| 83 84 | 
             
                    , that = this
         | 
| 84 85 |  | 
| 86 | 
            +
                  if (!$next.length) return
         | 
| 87 | 
            +
             | 
| 85 88 | 
             
                  this.sliding = true
         | 
| 86 89 |  | 
| 87 90 | 
             
                  isCycling && this.pause()
         | 
| @@ -151,4 +154,4 @@ | |
| 151 154 | 
             
                })
         | 
| 152 155 | 
             
              })
         | 
| 153 156 |  | 
| 154 | 
            -
            }( window.jQuery )
         | 
| 157 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* =============================================================
         | 
| 2 | 
            -
             * bootstrap-collapse.js v2.0. | 
| 2 | 
            +
             * bootstrap-collapse.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#collapse
         | 
| 4 4 | 
             
             * =============================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -133,4 +133,4 @@ | |
| 133 133 | 
             
                })
         | 
| 134 134 | 
             
              })
         | 
| 135 135 |  | 
| 136 | 
            -
            }( window.jQuery )
         | 
| 136 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* ============================================================
         | 
| 2 | 
            -
             * bootstrap-dropdown.js v2.0. | 
| 2 | 
            +
             * bootstrap-dropdown.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#dropdowns
         | 
| 4 4 | 
             
             * ============================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -89,4 +89,4 @@ | |
| 89 89 | 
             
                $('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
         | 
| 90 90 | 
             
              })
         | 
| 91 91 |  | 
| 92 | 
            -
            }( window.jQuery )
         | 
| 92 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* =========================================================
         | 
| 2 | 
            -
             * bootstrap-modal.js v2.0. | 
| 2 | 
            +
             * bootstrap-modal.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#modals
         | 
| 4 4 | 
             
             * =========================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -26,7 +26,7 @@ | |
| 26 26 | 
             
              * ====================== */
         | 
| 27 27 |  | 
| 28 28 | 
             
              var Modal = function ( content, options ) {
         | 
| 29 | 
            -
                this.options =  | 
| 29 | 
            +
                this.options = options
         | 
| 30 30 | 
             
                this.$element = $(content)
         | 
| 31 31 | 
             
                  .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
         | 
| 32 32 | 
             
              }
         | 
| @@ -177,16 +177,17 @@ | |
| 177 177 | 
             
                return this.each(function () {
         | 
| 178 178 | 
             
                  var $this = $(this)
         | 
| 179 179 | 
             
                    , data = $this.data('modal')
         | 
| 180 | 
            -
                    , options = typeof option == 'object' && option
         | 
| 180 | 
            +
                    , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
         | 
| 181 181 | 
             
                  if (!data) $this.data('modal', (data = new Modal(this, options)))
         | 
| 182 182 | 
             
                  if (typeof option == 'string') data[option]()
         | 
| 183 | 
            -
                  else data.show()
         | 
| 183 | 
            +
                  else if (options.show) data.show()
         | 
| 184 184 | 
             
                })
         | 
| 185 185 | 
             
              }
         | 
| 186 186 |  | 
| 187 187 | 
             
              $.fn.modal.defaults = {
         | 
| 188 188 | 
             
                  backdrop: true
         | 
| 189 189 | 
             
                , keyboard: true
         | 
| 190 | 
            +
                , show: true
         | 
| 190 191 | 
             
              }
         | 
| 191 192 |  | 
| 192 193 | 
             
              $.fn.modal.Constructor = Modal
         | 
| @@ -206,4 +207,4 @@ | |
| 206 207 | 
             
                })
         | 
| 207 208 | 
             
              })
         | 
| 208 209 |  | 
| 209 | 
            -
            }( window.jQuery )
         | 
| 210 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* ===========================================================
         | 
| 2 | 
            -
             * bootstrap-popover.js v2.0. | 
| 2 | 
            +
             * bootstrap-popover.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#popovers
         | 
| 4 4 | 
             
             * ===========================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -92,4 +92,4 @@ | |
| 92 92 | 
             
              , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
         | 
| 93 93 | 
             
              })
         | 
| 94 94 |  | 
| 95 | 
            -
            }( window.jQuery )
         | 
| 95 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* =============================================================
         | 
| 2 | 
            -
             * bootstrap-scrollspy.js v2.0. | 
| 2 | 
            +
             * bootstrap-scrollspy.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#scrollspy
         | 
| 4 4 | 
             
             * =============================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -122,4 +122,4 @@ | |
| 122 122 | 
             
                })
         | 
| 123 123 | 
             
              })
         | 
| 124 124 |  | 
| 125 | 
            -
            }( window.jQuery )
         | 
| 125 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* ========================================================
         | 
| 2 | 
            -
             * bootstrap-tab.js v2.0. | 
| 2 | 
            +
             * bootstrap-tab.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#tabs
         | 
| 4 4 | 
             
             * ========================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -127,4 +127,4 @@ | |
| 127 127 | 
             
                })
         | 
| 128 128 | 
             
              })
         | 
| 129 129 |  | 
| 130 | 
            -
            }( window.jQuery )
         | 
| 130 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* ===========================================================
         | 
| 2 | 
            -
             * bootstrap-tooltip.js v2.0. | 
| 2 | 
            +
             * bootstrap-tooltip.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#tooltips
         | 
| 4 4 | 
             
             * Inspired by the original jQuery.tipsy by Jason Frame
         | 
| 5 5 | 
             
             * ===========================================================
         | 
| @@ -267,4 +267,4 @@ | |
| 267 267 | 
             
              , template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
         | 
| 268 268 | 
             
              }
         | 
| 269 269 |  | 
| 270 | 
            -
            }( window.jQuery )
         | 
| 270 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* ===================================================
         | 
| 2 | 
            -
             * bootstrap-transition.js v2.0. | 
| 2 | 
            +
             * bootstrap-transition.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#transitions
         | 
| 4 4 | 
             
             * ===================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -47,5 +47,5 @@ | |
| 47 47 | 
             
                })()
         | 
| 48 48 |  | 
| 49 49 | 
             
              })
         | 
| 50 | 
            -
             | 
| 51 | 
            -
            }( window.jQuery )
         | 
| 50 | 
            +
             | 
| 51 | 
            +
            }( window.jQuery );
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            /* =============================================================
         | 
| 2 | 
            -
             * bootstrap-typeahead.js v2.0. | 
| 2 | 
            +
             * bootstrap-typeahead.js v2.0.1
         | 
| 3 3 | 
             
             * http://twitter.github.com/bootstrap/javascript.html#typeahead
         | 
| 4 4 | 
             
             * =============================================================
         | 
| 5 5 | 
             
             * Copyright 2012 Twitter, Inc.
         | 
| @@ -268,4 +268,4 @@ | |
| 268 268 | 
             
                })
         | 
| 269 269 | 
             
              })
         | 
| 270 270 |  | 
| 271 | 
            -
            }( window.jQuery )
         | 
| 271 | 
            +
            }( window.jQuery );
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| @@ -29,7 +29,7 @@ | |
| 29 29 | 
             
              position: relative;
         | 
| 30 30 | 
             
              float: left;
         | 
| 31 31 | 
             
              margin-left: -1px;
         | 
| 32 | 
            -
              .border-radius( | 
| 32 | 
            +
              .border-radius(0);
         | 
| 33 33 | 
             
            }
         | 
| 34 34 | 
             
            // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
         | 
| 35 35 | 
             
            .btn-group .btn:first-child {
         | 
| @@ -133,7 +133,8 @@ | |
| 133 133 | 
             
            .btn-primary,
         | 
| 134 134 | 
             
            .btn-danger,
         | 
| 135 135 | 
             
            .btn-info,
         | 
| 136 | 
            -
            .btn-success | 
| 136 | 
            +
            .btn-success,
         | 
| 137 | 
            +
            .btn-inverse {
         | 
| 137 138 | 
             
              .caret {
         | 
| 138 139 | 
             
                border-top-color: @white;
         | 
| 139 140 | 
             
                .opacity(75);
         | 
| @@ -9,12 +9,14 @@ | |
| 9 9 | 
             
            .btn {
         | 
| 10 10 | 
             
              display: inline-block;
         | 
| 11 11 | 
             
              padding: 4px 10px 4px;
         | 
| 12 | 
            +
              margin-bottom: 0; // For input.btn
         | 
| 12 13 | 
             
              font-size: @baseFontSize;
         | 
| 13 14 | 
             
              line-height: @baseLineHeight;
         | 
| 14 15 | 
             
              color: @grayDark;
         | 
| 15 16 | 
             
              text-align: center;
         | 
| 16 17 | 
             
              text-shadow: 0 1px 1px rgba(255,255,255,.75);
         | 
| 17 | 
            -
               | 
| 18 | 
            +
              vertical-align: middle;
         | 
| 19 | 
            +
              .buttonBackground(@white, darken(@white, 10%));
         | 
| 18 20 | 
             
              border: 1px solid #ccc;
         | 
| 19 21 | 
             
              border-bottom-color: #bbb;
         | 
| 20 22 | 
             
              .border-radius(4px);
         | 
| @@ -23,6 +25,7 @@ | |
| 23 25 | 
             
              cursor: pointer;
         | 
| 24 26 |  | 
| 25 27 | 
             
              // Give IE7 some love
         | 
| 28 | 
            +
              .reset-filter();
         | 
| 26 29 | 
             
              .ie7-restore-left-whitespace();
         | 
| 27 30 | 
             
            }
         | 
| 28 31 |  | 
| @@ -51,7 +54,6 @@ | |
| 51 54 | 
             
              .box-shadow(@shadow);
         | 
| 52 55 | 
             
              background-color: darken(@white, 10%);
         | 
| 53 56 | 
             
              background-color: darken(@white, 15%) e("\9");
         | 
| 54 | 
            -
              color: rgba(0,0,0,.5);
         | 
| 55 57 | 
             
              outline: 0;
         | 
| 56 58 | 
             
            }
         | 
| 57 59 |  | 
| @@ -76,7 +78,7 @@ | |
| 76 78 | 
             
              line-height: normal;
         | 
| 77 79 | 
             
              .border-radius(5px);
         | 
| 78 80 | 
             
            }
         | 
| 79 | 
            -
            .btn-large  | 
| 81 | 
            +
            .btn-large [class^="icon-"] {
         | 
| 80 82 | 
             
              margin-top: 1px;
         | 
| 81 83 | 
             
            }
         | 
| 82 84 |  | 
| @@ -86,10 +88,17 @@ | |
| 86 88 | 
             
              font-size: @baseFontSize - 2px;
         | 
| 87 89 | 
             
              line-height: @baseLineHeight - 2px;
         | 
| 88 90 | 
             
            }
         | 
| 89 | 
            -
            .btn-small  | 
| 91 | 
            +
            .btn-small [class^="icon-"] {
         | 
| 90 92 | 
             
              margin-top: -1px;
         | 
| 91 93 | 
             
            }
         | 
| 92 94 |  | 
| 95 | 
            +
            // Mini
         | 
| 96 | 
            +
            .btn-mini {
         | 
| 97 | 
            +
              padding: 2px 6px;
         | 
| 98 | 
            +
              font-size: @baseFontSize - 2px;
         | 
| 99 | 
            +
              line-height: @baseLineHeight - 4px;
         | 
| 100 | 
            +
            }
         | 
| 101 | 
            +
             | 
| 93 102 |  | 
| 94 103 | 
             
            // Alternate buttons
         | 
| 95 104 | 
             
            // --------------------------------------------------
         | 
| @@ -105,16 +114,19 @@ | |
| 105 114 | 
             
            .btn-success,
         | 
| 106 115 | 
             
            .btn-success:hover,
         | 
| 107 116 | 
             
            .btn-info,
         | 
| 108 | 
            -
            .btn-info:hover | 
| 117 | 
            +
            .btn-info:hover,
         | 
| 118 | 
            +
            .btn-inverse,
         | 
| 119 | 
            +
            .btn-inverse:hover {
         | 
| 109 120 | 
             
              text-shadow: 0 -1px 0 rgba(0,0,0,.25);
         | 
| 110 | 
            -
              color: @white
         | 
| 121 | 
            +
              color: @white;
         | 
| 111 122 | 
             
            }
         | 
| 112 123 | 
             
            // Provide *some* extra contrast for those who can get it
         | 
| 113 124 | 
             
            .btn-primary.active,
         | 
| 114 125 | 
             
            .btn-warning.active,
         | 
| 115 126 | 
             
            .btn-danger.active,
         | 
| 116 127 | 
             
            .btn-success.active,
         | 
| 117 | 
            -
            .btn-info.active | 
| 128 | 
            +
            .btn-info.active,
         | 
| 129 | 
            +
            .btn-dark.active {
         | 
| 118 130 | 
             
              color: rgba(255,255,255,.75);
         | 
| 119 131 | 
             
            }
         | 
| 120 132 |  | 
| @@ -139,6 +151,10 @@ | |
| 139 151 | 
             
            .btn-info {
         | 
| 140 152 | 
             
              .buttonBackground(#5bc0de, #2f96b4);
         | 
| 141 153 | 
             
            }
         | 
| 154 | 
            +
            // Inverse appears as dark gray
         | 
| 155 | 
            +
            .btn-inverse {
         | 
| 156 | 
            +
              .buttonBackground(#454545, #262626);
         | 
| 157 | 
            +
            }
         | 
| 142 158 |  | 
| 143 159 |  | 
| 144 160 | 
             
            // Cross-browser Jank
         | 
| @@ -146,8 +162,10 @@ | |
| 146 162 |  | 
| 147 163 | 
             
            button.btn,
         | 
| 148 164 | 
             
            input[type="submit"].btn {
         | 
| 165 | 
            +
             | 
| 166 | 
            +
              // Firefox 3.6 only I believe
         | 
| 149 167 | 
             
              &::-moz-focus-inner {
         | 
| 150 | 
            -
             | 
| 168 | 
            +
                padding: 0;
         | 
| 151 169 | 
             
                border: 0;
         | 
| 152 170 | 
             
              }
         | 
| 153 171 |  |