sass-twitter-bootstrap 2.1.1 → 2.2.1
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/lib/_media.scss +55 -0
- data/lib/sass/twitter/bootstrap/version.rb +1 -1
- data/lib/tests/buttons.html +139 -0
- data/lib/tests/forms-responsive.html +71 -0
- data/lib/tests/navbar-fixed-top.html +104 -0
- data/lib/tests/navbar-static-top.html +107 -0
- data/vendor/assets/javascripts/twitter/bootstrap-affix.js +4 -2
- data/vendor/assets/javascripts/twitter/bootstrap-alert.js +2 -4
- data/vendor/assets/javascripts/twitter/bootstrap-button.js +5 -7
- data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +12 -12
- data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +9 -11
- data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +9 -11
- data/vendor/assets/javascripts/twitter/bootstrap-modal.js +20 -25
- data/vendor/assets/javascripts/twitter/bootstrap-popover.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap-tab.js +5 -7
- data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +12 -11
- data/vendor/assets/javascripts/twitter/bootstrap-transition.js +5 -5
- data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +19 -9
- data/vendor/assets/javascripts/twitter/bootstrap.js +1 -0
- data/vendor/assets/stylesheets/tests/navbar.html +35 -36
- data/vendor/assets/stylesheets/twitter/_accordion.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_alerts.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_button-groups.scss +5 -8
- data/vendor/assets/stylesheets/twitter/_buttons.scss +18 -17
- data/vendor/assets/stylesheets/twitter/_code.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_component-animations.scss +2 -2
- data/vendor/assets/stylesheets/twitter/_dropdowns.scss +32 -5
- data/vendor/assets/stylesheets/twitter/_forms.scss +46 -14
- data/vendor/assets/stylesheets/twitter/_hero-unit.scss +6 -5
- data/vendor/assets/stylesheets/twitter/_labels-badges.scss +4 -2
- data/vendor/assets/stylesheets/twitter/_mixins.scss +12 -7
- data/vendor/assets/stylesheets/twitter/_modals.scss +8 -11
- data/vendor/assets/stylesheets/twitter/_navbar.scss +8 -10
- data/vendor/assets/stylesheets/twitter/_navs.scss +5 -4
- data/vendor/assets/stylesheets/twitter/_pager.scss +10 -9
- data/vendor/assets/stylesheets/twitter/_pagination.scss +69 -12
- data/vendor/assets/stylesheets/twitter/_popovers.scss +2 -2
- data/vendor/assets/stylesheets/twitter/_progress-bars.scss +2 -2
- data/vendor/assets/stylesheets/twitter/_reset.scss +6 -4
- data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +20 -1
- data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +12 -4
- data/vendor/assets/stylesheets/twitter/_scaffolding.scss +1 -3
- data/vendor/assets/stylesheets/twitter/_sprites.scss +3 -3
- data/vendor/assets/stylesheets/twitter/_tables.scss +12 -8
- data/vendor/assets/stylesheets/twitter/_thumbnails.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_tooltip.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_type.scss +30 -24
- data/vendor/assets/stylesheets/twitter/_variables.scss +25 -2
- data/vendor/assets/stylesheets/twitter/_wells.scss +3 -3
- data/vendor/assets/stylesheets/twitter/bootstrap.scss +2 -1
- data/vendor/assets/stylesheets/twitter/responsive.scss +1 -1
- metadata +7 -2
| @@ -6,6 +6,10 @@ | |
| 6 6 | 
             
            .hero-unit {
         | 
| 7 7 | 
             
              padding: 60px;
         | 
| 8 8 | 
             
              margin-bottom: 30px;
         | 
| 9 | 
            +
              font-size: 18px;
         | 
| 10 | 
            +
              font-weight: 200;
         | 
| 11 | 
            +
              line-height: $baseLineHeight * 1.5;
         | 
| 12 | 
            +
              color: $heroUnitLeadColor;
         | 
| 9 13 | 
             
              background-color: $heroUnitBackground;
         | 
| 10 14 | 
             
              @include border-radius(6px);
         | 
| 11 15 | 
             
              h1 {
         | 
| @@ -15,10 +19,7 @@ | |
| 15 19 | 
             
                color: $heroUnitHeadingColor;
         | 
| 16 20 | 
             
                letter-spacing: -1px;
         | 
| 17 21 | 
             
              }
         | 
| 18 | 
            -
               | 
| 19 | 
            -
                 | 
| 20 | 
            -
                font-weight: 200;
         | 
| 21 | 
            -
                line-height: $baseLineHeight * 1.5;
         | 
| 22 | 
            -
                color: $heroUnitLeadColor;
         | 
| 22 | 
            +
              li {
         | 
| 23 | 
            +
                line-height: $baseLineHeight * 1.5; // Reset since we specify in type.scss
         | 
| 23 24 | 
             
              }
         | 
| 24 25 | 
             
            }
         | 
| @@ -6,6 +6,8 @@ | |
| 6 6 | 
             
            // Base classes
         | 
| 7 7 | 
             
            .label,
         | 
| 8 8 | 
             
            .badge {
         | 
| 9 | 
            +
              display: inline-block;
         | 
| 10 | 
            +
              padding: 2px 4px;
         | 
| 9 11 | 
             
              font-size: $baseFontSize * .846;
         | 
| 10 12 | 
             
              font-weight: bold;
         | 
| 11 13 | 
             
              line-height: 14px; // ensure proper line-height if floated
         | 
| @@ -17,11 +19,11 @@ | |
| 17 19 | 
             
            }
         | 
| 18 20 | 
             
            // Set unique padding and border-radii
         | 
| 19 21 | 
             
            .label {
         | 
| 20 | 
            -
              padding: 1px 4px 2px;
         | 
| 21 22 | 
             
              @include border-radius(3px);
         | 
| 22 23 | 
             
            }
         | 
| 23 24 | 
             
            .badge {
         | 
| 24 | 
            -
              padding:  | 
| 25 | 
            +
              padding-left: 9px;
         | 
| 26 | 
            +
              padding-right: 9px;
         | 
| 25 27 | 
             
              @include border-radius(9px);
         | 
| 26 28 | 
             
            }
         | 
| 27 29 |  | 
| @@ -149,7 +149,7 @@ | |
| 149 149 | 
             
            @mixin input-block-level {
         | 
| 150 150 | 
             
              display: block;
         | 
| 151 151 | 
             
              width: 100%;
         | 
| 152 | 
            -
              min-height:  | 
| 152 | 
            +
              min-height: $inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
         | 
| 153 153 | 
             
              @include box-sizing(border-box); // Makes inputs behave like true block-level elements
         | 
| 154 154 | 
             
            }
         | 
| 155 155 |  | 
| @@ -178,7 +178,7 @@ | |
| 178 178 | 
             
                @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
         | 
| 179 179 | 
             
                &:focus {
         | 
| 180 180 | 
             
                  border-color: darken($borderColor, 10%);
         | 
| 181 | 
            -
                  @include box-shadow( | 
| 181 | 
            +
                  @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($borderColor, 20%));
         | 
| 182 182 | 
             
                }
         | 
| 183 183 | 
             
              }
         | 
| 184 184 | 
             
              // Give a small background color for input-prepend/-append
         | 
| @@ -243,14 +243,14 @@ | |
| 243 243 | 
             
            }
         | 
| 244 244 |  | 
| 245 245 | 
             
            // Drop shadows
         | 
| 246 | 
            -
            @mixin box-shadow($shadow) {  | 
| 246 | 
            +
            @mixin box-shadow($shadow...) { 
         | 
| 247 247 | 
             
              -webkit-box-shadow: $shadow;
         | 
| 248 248 | 
             
                 -moz-box-shadow: $shadow;
         | 
| 249 249 | 
             
                      box-shadow: $shadow;
         | 
| 250 250 | 
             
            }
         | 
| 251 251 |  | 
| 252 252 | 
             
            // Transitions
         | 
| 253 | 
            -
            @mixin transition($transition) {
         | 
| 253 | 
            +
            @mixin transition($transition...) {
         | 
| 254 254 | 
             
              -webkit-transition: $transition;
         | 
| 255 255 | 
             
                 -moz-transition: $transition;
         | 
| 256 256 | 
             
                   -o-transition: $transition;
         | 
| @@ -292,6 +292,7 @@ | |
| 292 292 | 
             
                  -ms-transform: skewX($x) skewY($y); // See https://github.com/twitter/bootstrap/issues/4885
         | 
| 293 293 | 
             
                   -o-transform: skew($x, $y);
         | 
| 294 294 | 
             
                      transform: skew($x, $y);
         | 
| 295 | 
            +
              -webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319
         | 
| 295 296 | 
             
            }
         | 
| 296 297 | 
             
            @mixin translate3d($x, $y, $z) {
         | 
| 297 298 | 
             
              -webkit-transform: translate3d($x, $y, $z);
         | 
| @@ -457,7 +458,7 @@ | |
| 457 458 | 
             
            }
         | 
| 458 459 |  | 
| 459 460 | 
             
            // Reset filters for IE
         | 
| 460 | 
            -
            @mixin  | 
| 461 | 
            +
            @mixin reset-filter() {
         | 
| 461 462 | 
             
              filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
         | 
| 462 463 | 
             
            }
         | 
| 463 464 |  | 
| @@ -489,7 +490,7 @@ | |
| 489 490 | 
             
              // gradientBar will set the background to a pleasing blend of these, to support IE<=9
         | 
| 490 491 | 
             
              @include gradientBar($startColor, $endColor, $textColor, $textShadow);
         | 
| 491 492 | 
             
              *background-color: $endColor; /* Darken IE7 buttons by default so they stand out more given they won't have borders */
         | 
| 492 | 
            -
              @include  | 
| 493 | 
            +
              @include reset-filter();
         | 
| 493 494 |  | 
| 494 495 | 
             
              // in these cases the gradient won't cover the background, so we override
         | 
| 495 496 | 
             
              &:hover, &:active, &.active, &.disabled, &[disabled] {
         | 
| @@ -544,7 +545,6 @@ | |
| 544 545 | 
             
              width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
         | 
| 545 546 | 
             
            }
         | 
| 546 547 |  | 
| 547 | 
            -
             | 
| 548 548 | 
             
            // The Grid
         | 
| 549 549 | 
             
            @mixin grid-core($gridColumnWidth, $gridGutterWidth) {
         | 
| 550 550 | 
             
              .row {
         | 
| @@ -609,6 +609,11 @@ | |
| 609 609 | 
             
                  margin-left: 0;
         | 
| 610 610 | 
             
                }
         | 
| 611 611 |  | 
| 612 | 
            +
                // Space grid-sized controls properly if multiple per line
         | 
| 613 | 
            +
                .controls-row [class*="span"] + [class*="span"] {
         | 
| 614 | 
            +
                  margin-left: $fluidGridGutterWidth;
         | 
| 615 | 
            +
                }
         | 
| 616 | 
            +
             | 
| 612 617 | 
             
                // generate .spanX and .offsetX
         | 
| 613 618 | 
             
                @include grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
         | 
| 614 619 | 
             
                @include grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
         | 
| @@ -2,16 +2,6 @@ | |
| 2 2 | 
             
            // Modals
         | 
| 3 3 | 
             
            // --------------------------------------------------
         | 
| 4 4 |  | 
| 5 | 
            -
             | 
| 6 | 
            -
            // Recalculate z-index where appropriate,
         | 
| 7 | 
            -
            // but only apply to elements within modal
         | 
| 8 | 
            -
            .modal-open .modal {
         | 
| 9 | 
            -
              .dropdown-menu {  z-index: $zindexDropdown + $zindexModal; }
         | 
| 10 | 
            -
              .dropdown.open { *z-index: $zindexDropdown + $zindexModal; }
         | 
| 11 | 
            -
              .popover       {  z-index: $zindexPopover  + $zindexModal; }
         | 
| 12 | 
            -
              .tooltip       {  z-index: $zindexTooltip  + $zindexModal; }
         | 
| 13 | 
            -
            }
         | 
| 14 | 
            -
             | 
| 15 5 | 
             
            // Background
         | 
| 16 6 | 
             
            .modal-backdrop {
         | 
| 17 7 | 
             
              position: fixed;
         | 
| @@ -46,8 +36,11 @@ | |
| 46 36 | 
             
              @include border-radius(6px);
         | 
| 47 37 | 
             
              @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
         | 
| 48 38 | 
             
              @include background-clip(padding-box);
         | 
| 39 | 
            +
              // Remove focus outline from opened modal
         | 
| 40 | 
            +
              outline: none;
         | 
| 41 | 
            +
             | 
| 49 42 | 
             
              &.fade {
         | 
| 50 | 
            -
                @include transition( | 
| 43 | 
            +
                @include transition(opacity .3s linear, top .3s ease-out);
         | 
| 51 44 | 
             
                top: -25%;
         | 
| 52 45 | 
             
              }
         | 
| 53 46 | 
             
              &.fade.in { top: 50%; }
         | 
| @@ -95,4 +88,8 @@ | |
| 95 88 | 
             
              .btn-group .btn + .btn {
         | 
| 96 89 | 
             
                margin-left: -1px;
         | 
| 97 90 | 
             
              }
         | 
| 91 | 
            +
              // and override it for block buttons as well
         | 
| 92 | 
            +
              .btn-block + .btn-block {
         | 
| 93 | 
            +
                margin-left: 0;
         | 
| 94 | 
            +
              }
         | 
| 98 95 | 
             
            }
         | 
| @@ -25,7 +25,7 @@ | |
| 25 25 | 
             
              padding-right: 20px;
         | 
| 26 26 | 
             
              @include gradient-vertical($navbarBackgroundHighlight, $navbarBackground);
         | 
| 27 27 | 
             
              border: 1px solid $navbarBorder;
         | 
| 28 | 
            -
              @include border-radius( | 
| 28 | 
            +
              @include border-radius($baseBorderRadius);
         | 
| 29 29 | 
             
              @include box-shadow(0 1px 4px rgba(0,0,0,.065));
         | 
| 30 30 |  | 
| 31 31 | 
             
              // Prevent floats from breaking the navbar
         | 
| @@ -41,6 +41,7 @@ | |
| 41 41 | 
             
            // Override the default collapsed state
         | 
| 42 42 | 
             
            .nav-collapse.collapse {
         | 
| 43 43 | 
             
              height: auto;
         | 
| 44 | 
            +
              overflow: visible;
         | 
| 44 45 | 
             
            }
         | 
| 45 46 |  | 
| 46 47 |  | 
| @@ -152,7 +153,6 @@ | |
| 152 153 |  | 
| 153 154 | 
             
            .navbar-static-top {
         | 
| 154 155 | 
             
              position: static;
         | 
| 155 | 
            -
              width: 100%;
         | 
| 156 156 | 
             
              margin-bottom: 0; // remove 18px margin for default navbar
         | 
| 157 157 | 
             
              .navbar-inner {
         | 
| 158 158 | 
             
                @include border-radius(0);
         | 
| @@ -202,7 +202,7 @@ | |
| 202 202 | 
             
            .navbar-fixed-top,
         | 
| 203 203 | 
             
            .navbar-static-top {
         | 
| 204 204 | 
             
              .navbar-inner {
         | 
| 205 | 
            -
                @include box-shadow( | 
| 205 | 
            +
                @include box-shadow(0 1px 10px rgba(0,0,0,.1));
         | 
| 206 206 | 
             
              }
         | 
| 207 207 | 
             
            }
         | 
| 208 208 |  | 
| @@ -210,7 +210,7 @@ | |
| 210 210 | 
             
            .navbar-fixed-bottom {
         | 
| 211 211 | 
             
              bottom: 0;
         | 
| 212 212 | 
             
              .navbar-inner {
         | 
| 213 | 
            -
                @include box-shadow( | 
| 213 | 
            +
                @include box-shadow(0 -1px 10px rgba(0,0,0,.1));
         | 
| 214 214 | 
             
              }
         | 
| 215 215 | 
             
            }
         | 
| 216 216 |  | 
| @@ -262,9 +262,7 @@ | |
| 262 262 | 
             
              color: $navbarLinkColorActive;
         | 
| 263 263 | 
             
              text-decoration: none;
         | 
| 264 264 | 
             
              background-color: $navbarLinkBackgroundActive;
         | 
| 265 | 
            -
               | 
| 266 | 
            -
                 -moz-box-shadow: inset 0 3px 8px rgba(0,0,0,.125);
         | 
| 267 | 
            -
                      box-shadow: inset 0 3px 8px rgba(0,0,0,.125);
         | 
| 265 | 
            +
              @include box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
         | 
| 268 266 | 
             
            }
         | 
| 269 267 |  | 
| 270 268 | 
             
            // Navbar button for toggling navbar items in responsive layouts
         | 
| @@ -276,7 +274,7 @@ | |
| 276 274 | 
             
              margin-left: 5px;
         | 
| 277 275 | 
             
              margin-right: 5px;
         | 
| 278 276 | 
             
              @include buttonBackground(darken($navbarBackgroundHighlight, 5%), darken($navbarBackground, 5.25%));
         | 
| 279 | 
            -
              @include box-shadow( | 
| 277 | 
            +
              @include box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075));
         | 
| 280 278 | 
             
            }
         | 
| 281 279 | 
             
            .navbar .btn-navbar .icon-bar {
         | 
| 282 280 | 
             
              display: block;
         | 
| @@ -320,7 +318,7 @@ | |
| 320 318 | 
             
              }
         | 
| 321 319 | 
             
            }
         | 
| 322 320 | 
             
            // Menu position and menu caret support for dropups via extra dropup class
         | 
| 323 | 
            -
            .navbar-fixed-bottom .dropdown-menu {
         | 
| 321 | 
            +
            .navbar-fixed-bottom .nav > li > .dropdown-menu {
         | 
| 324 322 | 
             
              &:before {
         | 
| 325 323 | 
             
                border-top: 7px solid #ccc;
         | 
| 326 324 | 
             
                border-top-color: $dropdownBorder;
         | 
| @@ -448,7 +446,7 @@ | |
| 448 446 | 
             
                  color: $white;
         | 
| 449 447 | 
             
                  background-color: $navbarInverseSearchBackground;
         | 
| 450 448 | 
             
                  border-color: $navbarInverseSearchBorder;
         | 
| 451 | 
            -
                  @include box-shadow( | 
| 449 | 
            +
                  @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15));
         | 
| 452 450 | 
             
                  @include transition(none);
         | 
| 453 451 | 
             
                  @include placeholder($navbarInverseSearchPlaceholderColor);
         | 
| 454 452 |  | 
| @@ -67,7 +67,8 @@ | |
| 67 67 | 
             
              text-shadow: 0 -1px 0 rgba(0,0,0,.2);
         | 
| 68 68 | 
             
              background-color: $linkColor;
         | 
| 69 69 | 
             
            }
         | 
| 70 | 
            -
            .nav-list [class^="icon-"] | 
| 70 | 
            +
            .nav-list [class^="icon-"],
         | 
| 71 | 
            +
            .nav-list [class*=" icon-"] {
         | 
| 71 72 | 
             
              margin-right: 2px;
         | 
| 72 73 | 
             
            }
         | 
| 73 74 | 
             
            // Dividers (basically an hr) within the dropdown
         | 
| @@ -123,7 +124,7 @@ | |
| 123 124 | 
             
            .nav-tabs > .active > a,
         | 
| 124 125 | 
             
            .nav-tabs > .active > a:hover {
         | 
| 125 126 | 
             
              color: $gray;
         | 
| 126 | 
            -
              background-color: $ | 
| 127 | 
            +
              background-color: $bodyBackground;
         | 
| 127 128 | 
             
              border: 1px solid #ddd;
         | 
| 128 129 | 
             
              border-bottom-color: transparent;
         | 
| 129 130 | 
             
              cursor: default;
         | 
| @@ -221,8 +222,8 @@ | |
| 221 222 | 
             
            // Active dropdown links
         | 
| 222 223 | 
             
            // -------------------------
         | 
| 223 224 | 
             
            .nav .active .dropdown-toggle .caret {
         | 
| 224 | 
            -
              border-top-color:  | 
| 225 | 
            -
              border-bottom-color:  | 
| 225 | 
            +
              border-top-color: #fff;
         | 
| 226 | 
            +
              border-bottom-color: #fff;
         | 
| 226 227 | 
             
            }
         | 
| 227 228 | 
             
            .nav-tabs .active .dropdown-toggle .caret {
         | 
| 228 229 | 
             
              border-top-color: $gray;
         | 
| @@ -12,28 +12,29 @@ | |
| 12 12 | 
             
            .pager li {
         | 
| 13 13 | 
             
              display: inline;
         | 
| 14 14 | 
             
            }
         | 
| 15 | 
            -
            .pager a,
         | 
| 16 | 
            -
            .pager span {
         | 
| 15 | 
            +
            .pager li > a,
         | 
| 16 | 
            +
            .pager li > span {
         | 
| 17 17 | 
             
              display: inline-block;
         | 
| 18 18 | 
             
              padding: 5px 14px;
         | 
| 19 19 | 
             
              background-color: #fff;
         | 
| 20 20 | 
             
              border: 1px solid #ddd;
         | 
| 21 21 | 
             
              @include border-radius(15px);
         | 
| 22 22 | 
             
            }
         | 
| 23 | 
            -
            .pager a:hover {
         | 
| 23 | 
            +
            .pager li > a:hover {
         | 
| 24 24 | 
             
              text-decoration: none;
         | 
| 25 25 | 
             
              background-color: #f5f5f5;
         | 
| 26 26 | 
             
            }
         | 
| 27 | 
            -
            .pager .next a,
         | 
| 28 | 
            -
            .pager .next span {
         | 
| 27 | 
            +
            .pager .next > a,
         | 
| 28 | 
            +
            .pager .next > span {
         | 
| 29 29 | 
             
              float: right;
         | 
| 30 30 | 
             
            }
         | 
| 31 | 
            -
            .pager .previous a | 
| 31 | 
            +
            .pager .previous > a,
         | 
| 32 | 
            +
            .pager .previous > span {
         | 
| 32 33 | 
             
              float: left;
         | 
| 33 34 | 
             
            }
         | 
| 34 | 
            -
            .pager .disabled a,
         | 
| 35 | 
            -
            .pager .disabled a:hover,
         | 
| 36 | 
            -
            .pager .disabled span {
         | 
| 35 | 
            +
            .pager .disabled > a,
         | 
| 36 | 
            +
            .pager .disabled > a:hover,
         | 
| 37 | 
            +
            .pager .disabled > span {
         | 
| 37 38 | 
             
              color: $grayLight;
         | 
| 38 39 | 
             
              background-color: #fff;
         | 
| 39 40 | 
             
              cursor: default;
         | 
| @@ -2,27 +2,30 @@ | |
| 2 2 | 
             
            // Pagination (multiple pages)
         | 
| 3 3 | 
             
            // --------------------------------------------------
         | 
| 4 4 |  | 
| 5 | 
            -
             | 
| 5 | 
            +
            // Space out pagination from surrounding content
         | 
| 6 6 | 
             
            .pagination {
         | 
| 7 | 
            -
              height: $baseLineHeight * 2;
         | 
| 8 7 | 
             
              margin: $baseLineHeight 0;
         | 
| 9 | 
            -
             | 
| 8 | 
            +
            }
         | 
| 9 | 
            +
             | 
| 10 10 | 
             
            .pagination ul {
         | 
| 11 | 
            +
              // Allow for text-based alignment
         | 
| 11 12 | 
             
              display: inline-block;
         | 
| 12 13 | 
             
              @include ie7-inline-block();
         | 
| 14 | 
            +
              // Reset default ul styles
         | 
| 13 15 | 
             
              margin-left: 0;
         | 
| 14 16 | 
             
              margin-bottom: 0;
         | 
| 15 | 
            -
               | 
| 17 | 
            +
              // Visuals
         | 
| 18 | 
            +
              @include border-radius($baseBorderRadius);
         | 
| 16 19 | 
             
              @include box-shadow(0 1px 2px rgba(0,0,0,.05));
         | 
| 17 20 | 
             
            }
         | 
| 18 21 | 
             
            .pagination ul > li {
         | 
| 19 | 
            -
              display: inline;
         | 
| 22 | 
            +
              display: inline; // Remove list-style and block-level defaults
         | 
| 20 23 | 
             
            }
         | 
| 21 24 | 
             
            .pagination ul > li > a,
         | 
| 22 25 | 
             
            .pagination ul > li > span {
         | 
| 23 | 
            -
              float: left;
         | 
| 24 | 
            -
              padding:  | 
| 25 | 
            -
              line-height:  | 
| 26 | 
            +
              float: left; // Collapse white-space
         | 
| 27 | 
            +
              padding: 4px 12px;
         | 
| 28 | 
            +
              line-height: $baseLineHeight;
         | 
| 26 29 | 
             
              text-decoration: none;
         | 
| 27 30 | 
             
              background-color: $paginationBackground;
         | 
| 28 31 | 
             
              border: 1px solid $paginationBorder;
         | 
| @@ -31,7 +34,7 @@ | |
| 31 34 | 
             
            .pagination ul > li > a:hover,
         | 
| 32 35 | 
             
            .pagination ul > .active > a,
         | 
| 33 36 | 
             
            .pagination ul > .active > span {
         | 
| 34 | 
            -
              background-color:  | 
| 37 | 
            +
              background-color: $paginationActiveBackground;
         | 
| 35 38 | 
             
            }
         | 
| 36 39 | 
             
            .pagination ul > .active > a,
         | 
| 37 40 | 
             
            .pagination ul > .active > span {
         | 
| @@ -48,17 +51,71 @@ | |
| 48 51 | 
             
            .pagination ul > li:first-child > a,
         | 
| 49 52 | 
             
            .pagination ul > li:first-child > span {
         | 
| 50 53 | 
             
              border-left-width: 1px;
         | 
| 51 | 
            -
              @include border-radius( | 
| 54 | 
            +
              @include border-left-radius($baseBorderRadius);
         | 
| 52 55 | 
             
            }
         | 
| 53 56 | 
             
            .pagination ul > li:last-child > a,
         | 
| 54 57 | 
             
            .pagination ul > li:last-child > span {
         | 
| 55 | 
            -
              @include border-radius( | 
| 58 | 
            +
              @include border-right-radius($baseBorderRadius);
         | 
| 56 59 | 
             
            }
         | 
| 57 60 |  | 
| 58 | 
            -
             | 
| 61 | 
            +
             | 
| 62 | 
            +
            // Alignment
         | 
| 63 | 
            +
            // --------------------------------------------------
         | 
| 64 | 
            +
             | 
| 59 65 | 
             
            .pagination-centered {
         | 
| 60 66 | 
             
              text-align: center;
         | 
| 61 67 | 
             
            }
         | 
| 62 68 | 
             
            .pagination-right {
         | 
| 63 69 | 
             
              text-align: right;
         | 
| 64 70 | 
             
            }
         | 
| 71 | 
            +
             | 
| 72 | 
            +
             | 
| 73 | 
            +
            // Sizing
         | 
| 74 | 
            +
            // --------------------------------------------------
         | 
| 75 | 
            +
             | 
| 76 | 
            +
            // Large
         | 
| 77 | 
            +
            .pagination-large {
         | 
| 78 | 
            +
              ul > li > a,
         | 
| 79 | 
            +
              ul > li > span {
         | 
| 80 | 
            +
                padding: $paddingLarge;
         | 
| 81 | 
            +
                font-size: $fontSizeLarge;
         | 
| 82 | 
            +
              }
         | 
| 83 | 
            +
              ul > li:first-child > a,
         | 
| 84 | 
            +
              ul > li:first-child > span {
         | 
| 85 | 
            +
                @include border-left-radius($borderRadiusLarge);
         | 
| 86 | 
            +
              }
         | 
| 87 | 
            +
              ul > li:last-child > a,
         | 
| 88 | 
            +
              ul > li:last-child > span {
         | 
| 89 | 
            +
                @include border-right-radius($borderRadiusLarge);
         | 
| 90 | 
            +
              }
         | 
| 91 | 
            +
            }
         | 
| 92 | 
            +
             | 
| 93 | 
            +
            // Small and mini
         | 
| 94 | 
            +
            .pagination-mini,
         | 
| 95 | 
            +
            .pagination-small {
         | 
| 96 | 
            +
              ul > li:first-child > a,
         | 
| 97 | 
            +
              ul > li:first-child > span {
         | 
| 98 | 
            +
                @include border-left-radius($borderRadiusSmall);
         | 
| 99 | 
            +
              }
         | 
| 100 | 
            +
              ul > li:last-child > a,
         | 
| 101 | 
            +
              ul > li:last-child > span {
         | 
| 102 | 
            +
                @include border-right-radius($borderRadiusSmall);
         | 
| 103 | 
            +
              }
         | 
| 104 | 
            +
            }
         | 
| 105 | 
            +
             | 
| 106 | 
            +
            // Small
         | 
| 107 | 
            +
            .pagination-small {
         | 
| 108 | 
            +
              ul > li > a,
         | 
| 109 | 
            +
              ul > li > span {
         | 
| 110 | 
            +
                padding: $paddingSmall;
         | 
| 111 | 
            +
                font-size: $fontSizeSmall;
         | 
| 112 | 
            +
              }
         | 
| 113 | 
            +
            }
         | 
| 114 | 
            +
            // Mini
         | 
| 115 | 
            +
            .pagination-mini {
         | 
| 116 | 
            +
              ul > li > a,
         | 
| 117 | 
            +
              ul > li > span {
         | 
| 118 | 
            +
                padding: $paddingMini;
         | 
| 119 | 
            +
                font-size: $fontSizeMini;
         | 
| 120 | 
            +
              }
         | 
| 121 | 
            +
            }
         | 
| @@ -21,10 +21,10 @@ | |
| 21 21 | 
             
              @include box-shadow(0 5px 10px rgba(0,0,0,.2));
         | 
| 22 22 |  | 
| 23 23 | 
             
              // Offset the popover to account for the popover arrow
         | 
| 24 | 
            -
              &.top     { margin- | 
| 24 | 
            +
              &.top     { margin-top: -10px; }
         | 
| 25 25 | 
             
              &.right   { margin-left: 10px; }
         | 
| 26 26 | 
             
              &.bottom  { margin-top: 10px; }
         | 
| 27 | 
            -
              &.left    { margin- | 
| 27 | 
            +
              &.left    { margin-left: -10px; }
         | 
| 28 28 |  | 
| 29 29 | 
             
            }
         | 
| 30 30 |  |