From bff06c002acced45bf75c47a22f4de50e60ebc73 Mon Sep 17 00:00:00 2001 From: Daniel Chapman Date: Wed, 15 May 2013 09:38:13 -0700 Subject: [PATCH] update to latest working copy of 3-wip --- .../stylesheets/bootstrap/_accordion.scss | 2 +- .../assets/stylesheets/bootstrap/_alerts.scss | 45 ++- .../assets/stylesheets/bootstrap/_badges.scss | 4 +- .../stylesheets/bootstrap/_breadcrumbs.scss | 4 +- .../stylesheets/bootstrap/_button-groups.scss | 77 ++-- .../stylesheets/bootstrap/_buttons.scss | 146 ++++---- .../stylesheets/bootstrap/_carousel.scss | 24 +- .../assets/stylesheets/bootstrap/_close.scss | 4 +- .../assets/stylesheets/bootstrap/_code.scss | 10 +- .../stylesheets/bootstrap/_dropdowns.scss | 18 +- .../assets/stylesheets/bootstrap/_forms.scss | 206 ++++------- .../stylesheets/bootstrap/_glyphicons.scss | 4 +- .../assets/stylesheets/bootstrap/_grid.scss | 36 +- .../stylesheets/bootstrap/_jumbotron.scss | 10 +- .../assets/stylesheets/bootstrap/_labels.scss | 64 +++- .../stylesheets/bootstrap/_list-group.scss | 96 +++++ .../assets/stylesheets/bootstrap/_mixins.scss | 101 ++++-- .../assets/stylesheets/bootstrap/_modals.scss | 7 +- .../assets/stylesheets/bootstrap/_navbar.scss | 321 ++++++++--------- .../assets/stylesheets/bootstrap/_navs.scss | 341 ++++++++---------- .../assets/stylesheets/bootstrap/_pager.scss | 77 ++-- .../stylesheets/bootstrap/_pagination.scss | 12 +- .../assets/stylesheets/bootstrap/_panels.scss | 86 +++++ .../stylesheets/bootstrap/_popovers.scss | 14 +- .../assets/stylesheets/bootstrap/_print.scss | 4 +- .../stylesheets/bootstrap/_progress-bars.scss | 8 +- .../bootstrap/_responsive-utilities.scss | 62 ++-- .../stylesheets/bootstrap/_scaffolding.scss | 23 +- .../assets/stylesheets/bootstrap/_tables.scss | 146 ++++---- .../stylesheets/bootstrap/_thumbnails.scss | 7 +- .../stylesheets/bootstrap/_tooltip.scss | 4 +- .../assets/stylesheets/bootstrap/_type.scss | 103 +++--- .../stylesheets/bootstrap/_utilities.scss | 2 +- .../stylesheets/bootstrap/_variables.scss | 299 +++++++++------ .../assets/stylesheets/bootstrap/_wells.scss | 4 +- .../stylesheets/bootstrap/bootstrap.scss | 2 + 36 files changed, 1310 insertions(+), 1063 deletions(-) create mode 100644 vendor/assets/stylesheets/bootstrap/_list-group.scss create mode 100644 vendor/assets/stylesheets/bootstrap/_panels.scss diff --git a/vendor/assets/stylesheets/bootstrap/_accordion.scss b/vendor/assets/stylesheets/bootstrap/_accordion.scss index 0cba7fb5..92a9b102 100644 --- a/vendor/assets/stylesheets/bootstrap/_accordion.scss +++ b/vendor/assets/stylesheets/bootstrap/_accordion.scss @@ -5,7 +5,7 @@ // Parent container .accordion { - margin-bottom: $line-height-base; + margin-bottom: $line-height-computed; } // Group == heading + body diff --git a/vendor/assets/stylesheets/bootstrap/_alerts.scss b/vendor/assets/stylesheets/bootstrap/_alerts.scss index b5b5a1a6..a3e5e52c 100644 --- a/vendor/assets/stylesheets/bootstrap/_alerts.scss +++ b/vendor/assets/stylesheets/bootstrap/_alerts.scss @@ -8,11 +8,11 @@ .alert { padding: 8px 35px 8px 14px; - margin-bottom: $line-height-base; - color: $state-warning-text; - background-color: $state-warning-background; - border: 1px solid $state-warning-border; - border-radius: $border-radius-base; + margin-bottom: $line-height-computed; + color: $alert-text; + background-color: $alert-bg; + border: 1px solid $alert-border; + border-radius: $alert-border-radius; // Headings for larger alerts h4 { @@ -22,13 +22,13 @@ } // Match the hr to the border of the alert hr { - border-top-color: darken($state-warning-border, 5%); + border-top-color: darken($alert-border, 5%); } // Inherit color for immediate links and bolden them some > a, > p > a { font-weight: 500; - color: darken($state-warning-text, 10%); + color: darken($alert-text, 10%); } @@ -37,7 +37,6 @@ position: relative; top: -2px; right: -21px; - line-height: $line-height-base; color: inherit; } } @@ -47,40 +46,40 @@ // ------------------------- .alert-success { - background-color: $state-success-background; + background-color: $state-success-bg; border-color: $state-success-border; - color: $state-success-text; + color: $alert-success-text; hr { - border-top-color: darken($state-success-border, 5%); + border-top-color: darken($alert-success-border, 5%); } > a, > p > a { - color: darken($state-success-text, 10%); + color: darken($alert-success-text, 10%); } } .alert-danger, .alert-error { - background-color: $state-error-background; - border-color: $state-error-border; - color: $state-error-text; + background-color: $alert-danger-bg; + border-color: $alert-danger-border; + color: $alert-danger-text; hr { - border-top-color: darken($state-error-border, 5%); + border-top-color: darken($alert-danger-border, 5%); } > a, > p > a { - color: darken($state-error-text, 10%); + color: darken($alert-danger-text, 10%); } } .alert-info { - background-color: $state-info-background; - border-color: $state-info-border; - color: $state-info-text; + background-color: $alert-danger-bg; + border-color: $alert-info-border; + color: $alert-info-text; hr { border-top-color: darken($state-info-border, 5%); } > a, > p > a { - color: darken($state-info-text, 10%); + color: darken($alert-info-text, 10%); } } @@ -88,8 +87,8 @@ // ------------------------- .alert-block { - padding-top: 14px; - padding-bottom: 14px; + padding-top: 15px; + padding-bottom: 15px; } .alert-block > p, .alert-block > ul { diff --git a/vendor/assets/stylesheets/bootstrap/_badges.scss b/vendor/assets/stylesheets/bootstrap/_badges.scss index b327913d..f9ceac2e 100644 --- a/vendor/assets/stylesheets/bootstrap/_badges.scss +++ b/vendor/assets/stylesheets/bootstrap/_badges.scss @@ -8,14 +8,14 @@ display: inline-block; min-width: 10px; padding: 3px 7px; - font-size: 12px; + font-size: $font-size-small; font-weight: bold; color: #fff; line-height: 1; vertical-align: middle; white-space: nowrap; text-align: center; - background-color: $grayLight; + background-color: $gray-light; border-radius: 10px; // Empty labels/badges collapse diff --git a/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss b/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss index 92f8e9cb..bd55b206 100644 --- a/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +++ b/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss @@ -19,10 +19,10 @@ color: #ccc; } &:last-child:after { - content: ""; // No divider after last element + display: none; // No divider after last element } } > .active { - color: $grayLight; + color: $gray-light; } } diff --git a/vendor/assets/stylesheets/bootstrap/_button-groups.scss b/vendor/assets/stylesheets/bootstrap/_button-groups.scss index 0e6614f0..82bc62a4 100644 --- a/vendor/assets/stylesheets/bootstrap/_button-groups.scss +++ b/vendor/assets/stylesheets/bootstrap/_button-groups.scss @@ -4,35 +4,37 @@ // Button carets .btn .caret { - border-top-color: $btn-color; + border-top-color: $btn-default-color; } .dropup .btn .caret { - border-bottom-color: $btn-color; + border-bottom-color: $btn-default-color; } // Make the div behave like a button -.btn-group { +.btn-group, +.btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; // match .btn alignment given font-size hack above > .btn { position: relative; float: left; - // Prevent double borders when buttons are next to each other - + btn { - margin-left: -1px; - } // Bring the "active" button to the front &:hover, &:active { z-index: 2; - } + } } } +// Prevent double borders when buttons are next to each other +.btn-group .btn + .btn { + margin-left: -1px; +} + // Optional: Group multiple button groups together for a toolbar .btn-toolbar { - @include clear_float(); + @include clearfix(); .btn-group { float: left; @@ -46,31 +48,36 @@ } } -// Float them, remove border radius, then re-add to first and last elements -.btn-group > .btn { - position: relative; +.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } - // 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 .btn-group > .btn:first-child { margin-left: 0; - @include border-left-radius($border-radius-base); + &:not(:last-child):not(.dropdown-toggle) { + @include border-right-radius(0); + } } // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it -.btn-group > .btn:last-child, -.btn-group > .dropdown-toggle { - @include border-right-radius($border-radius-base); +.btn-group > .btn:last-child:not(:first-child), +.btn-group > .dropdown-toggle:not(:first-child) { + @include border-left-radius(0); } -// Reset corners for large buttons -.btn-group > .btn.large:first-child { - margin-left: 0; - @include border-left-radius($border-radius-large); + +// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group) +.btn-group > .btn-group { + float: left; } -.btn-group > .btn.large:last-child, -.btn-group > .large.dropdown-toggle { - @include border-right-radius($border-radius-large); +.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; +} +.btn-group > .btn-group:first-child > .btn:last-child, +.btn-group > .btn-group:first-child > .dropdown-toggle { + @include border-right-radius(0); +} +.btn-group > .btn-group:last-child > .btn:first-child { + @include border-left-radius(0); } // On active and open, don't show outline @@ -80,7 +87,6 @@ } - // Split button dropdowns // ---------------------- @@ -128,22 +134,19 @@ float: none; width: 100%; max-width: 100%; + + .btn { + margin-top: -1px; + } +} +.btn-group-vertical .btn:not(:first-child):not(:last-child) { + border-radius: 0; } .btn-group-vertical .btn:first-child { - border-radius: 0; // Needs to be here for specificity since we're not zeroing them out again - @include border-top-radius($border-radius-base); + @inclue border-bottom-radius(0); } .btn-group-vertical .btn:last-child { - border-radius: 0; // Needs to be here for specificity since we're not zeroing them out again - @include border-bottom-radius($border-radius-base); + @include border-top-radius(0); } -.btn-group-vertical .btn-large:first-child { - @include border-top-radius($border-radius-large); -} -.btn-group-vertical .btn-large:last-child { - @include border-bottom-radius($border-radius-large); -} - // Justified button groups // ---------------------- @@ -163,4 +166,4 @@ .btn-group[data-toggle="buttons-radio"] > .btn > input[type="radio"], .btn-group[data-toggle="buttons-checkbox"] > .btn > input[type="checkbox"] { display: none; -} \ No newline at end of file +} diff --git a/vendor/assets/stylesheets/bootstrap/_buttons.scss b/vendor/assets/stylesheets/bootstrap/_buttons.scss index b933a800..ca4ab94d 100644 --- a/vendor/assets/stylesheets/bootstrap/_buttons.scss +++ b/vendor/assets/stylesheets/bootstrap/_buttons.scss @@ -17,7 +17,7 @@ text-align: center; vertical-align: middle; cursor: pointer; - border: 1px solid $btn-border; + border: 1px solid transparent; border-radius: $border-radius-base; white-space: nowrap; @@ -50,6 +50,75 @@ } +// Alternate buttons +// -------------------------------------------------- + +.btn-default { + @include btn-pseudo-states($btn-default-color, $btn-default-bg, $btn-default-border); +} +.btn-primary { + @include btn-pseudo-states($btn-primary-color, $btn-primary-bg, $btn-primary-border); +} +// Warning appears as orange +.btn-warning { + @include btn-pseudo-states($btn-warning-color, $btn-warning-bg, $btn-warning-border); +} +// Danger and error appear as red +.btn-danger { + @include btn-pseudo-states($btn-danger-color, $btn-danger-bg, $btn-danger-border); +} +// Success appears as green +.btn-success { + @include btn-pseudo-states($btn-success-color, $btn-success-bg, $btn-success-border); +} +// Info appears as blue-green +.btn-info { + @include btn-pseudo-states($btn-info-color, $btn-info-bg, $btn-info-border); +} + + +// Link buttons +// ------------------------- + +// Make a button look and behave like a link +.btn-link, +.btn-link:active, +.btn-link[disabled], +fieldset[disabled] .btn-link { + background-color: transparent; + background-image: none; + @include box-shadow(none); +} +.btn-link, +.btn-link:hover, +.btn-link:focus, +.btn-link:active { + border-color: transparent; +} +.btn-link { + color: $link-color; + font-weight: normal; + cursor: pointer; + border-radius: 0; +} +.btn-link:hover, +.btn-link:focus { + color: $link-hover-color; + text-decoration: underline; + background-color: transparent; +} +.btn-link { + &[disabled], + fieldset[disabled] & { + &:hover, + &:focus { + color: $gray-dark; + text-decoration: none; + } + } +} + + // Button Sizes // ------------------------- @@ -75,11 +144,6 @@ } -// Icons in buttons -// ------------------------- - -// TODO: figure this shit out - // Block button // ------------------------- @@ -103,73 +167,3 @@ input[type="button"] { width: 100%; } } - - -// Alternate buttons -// -------------------------------------------------- - -.btn { - color: $btn-color; - @include btn-pseudo-states($btn-background, $btn-border); -} -.btn-primary { - @include btn-pseudo-states($btn-background-primary, $btn-border-primary); -} -// Warning appears as orange -.btn-warning { - @include btn-pseudo-states($btn-background-warning, $btn-border-warning); -} -// Danger and error appear as red -.btn-danger { - @include btn-pseudo-states($btn-background-danger, $btn-border-danger); -} -// Success appears as green -.btn-success { - @include btn-pseudo-states($btn-background-success, $btn-border-success); -} -// Info appears as blue-green -.btn-info { - @include btn-pseudo-states($btn-background-info, $btn-border-info); -} - - -// Link buttons -// -------------------------------------------------- - -// Make a button look and behave like a link -.btn-link, -.btn-link:active, -.btn-link[disabled], -fieldset[disabled] .btn-link { - background-color: transparent; - background-image: none; - @include box-shadow(none); -} -.btn-link, -.btn-link:hover, -.btn-link:focus, -.btn-link:active { - border-color: transparent; -} -.btn-link { - color: $link-color; - font-weight: normal; - cursor: pointer; - border-radius: 0; -} -.btn-link:hover, -.btn-link:focus { - color: $link-color-hover; - text-decoration: underline; - background-color: transparent; -} -.btn-link { - &[disabled], - fieldset[disabled] & { - &:hover, - &:focus { - color: $grayDark; - text-decoration: none; - } - } -} \ No newline at end of file diff --git a/vendor/assets/stylesheets/bootstrap/_carousel.scss b/vendor/assets/stylesheets/bootstrap/_carousel.scss index 617c15e5..a22a317a 100644 --- a/vendor/assets/stylesheets/bootstrap/_carousel.scss +++ b/vendor/assets/stylesheets/bootstrap/_carousel.scss @@ -155,19 +155,22 @@ // Hidden by default for smaller viewports .carousel-caption { position: absolute; - left: 20%; - right: 20%; + left: 15%; + right: 15%; bottom: 20px; - display: none; + z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); + & .btn { + text-shadow: none; // No shadow for button elements in carousel-caption + } } -// Scale up controls for >768px -@media screen and (min-width: 768px) { +// Scale up controls for tablets and up +@media screen and (min-width: $screen-tablet) { // Scale up the controls a smidge .carousel-control .glyphicon { @@ -180,13 +183,8 @@ // Show and left align the captions .carousel-caption { - left: 0; - right: 0; - z-index: 10; - display: block; - max-width: 60%; + left: 20%; + right: 20%; padding: 30px; - margin-left: 0; - margin-right: 0; } -} \ No newline at end of file +} diff --git a/vendor/assets/stylesheets/bootstrap/_close.scss b/vendor/assets/stylesheets/bootstrap/_close.scss index da8eab48..30bcce36 100644 --- a/vendor/assets/stylesheets/bootstrap/_close.scss +++ b/vendor/assets/stylesheets/bootstrap/_close.scss @@ -7,7 +7,7 @@ float: right; font-size: 20px; font-weight: bold; - line-height: $line-height-base; + line-height: 1; color: #000; text-shadow: 0 1px 0 rgba(255,255,255,1); @include opacity(.2); @@ -29,4 +29,4 @@ button.close { background: transparent; border: 0; -webkit-appearance: none; -} \ No newline at end of file +} diff --git a/vendor/assets/stylesheets/bootstrap/_code.scss b/vendor/assets/stylesheets/bootstrap/_code.scss index 0c281491..9a952136 100644 --- a/vendor/assets/stylesheets/bootstrap/_code.scss +++ b/vendor/assets/stylesheets/bootstrap/_code.scss @@ -9,7 +9,7 @@ pre { padding: 0 3px 2px; font-family: $font-family-monospace; font-size: ($font-size-base - 2); - color: $grayDark; + color: $gray-dark; border-radius: 4px; } @@ -25,8 +25,8 @@ code { // Blocks of code pre { display: block; - padding: (($line-height-base - 1) / 2); - margin: 0 0 ($line-height-base / 2); + padding: (($line-height-computed - 1) / 2); + margin: 0 0 ($line-height-computed / 2); font-size: ($font-size-base - 1); // 14px to 13px line-height: $line-height-base; word-break: break-all; @@ -40,7 +40,7 @@ pre { // Make prettyprint styles more spaced out for readability &.prettyprint { - margin-bottom: $line-height-base; + margin-bottom: $line-height-computed; } // Account for some code outputs that place code tags in pre tags @@ -58,4 +58,4 @@ pre { .pre-scrollable { max-height: 340px; overflow-y: scroll; -} \ No newline at end of file +} diff --git a/vendor/assets/stylesheets/bootstrap/_dropdowns.scss b/vendor/assets/stylesheets/bootstrap/_dropdowns.scss index f368371b..69613a9a 100644 --- a/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +++ b/vendor/assets/stylesheets/bootstrap/_dropdowns.scss @@ -45,7 +45,7 @@ padding: 5px 0; margin: 2px 0 0; // override default ul list-style: none; - background-color: $dropdown-background; + background-color: $dropdown-bg; border: 1px solid #ccc; // IE8 fallback border: 1px solid $dropdown-border; border-radius: $border-radius-base; @@ -82,8 +82,8 @@ .dropdown-submenu:hover > a, .dropdown-submenu:focus > a { text-decoration: none; - color: $dropdown-link-color-hover; - @include gradient-vertical($dropdown-link-background-hover, darken($dropdown-link-background-hover, 5%)); + color: $dropdown-link-hover-color; + @include gradient-vertical($dropdown-link-hover-bg, darken($dropdown-link-hover-bg, 5%)); } // Active state @@ -91,10 +91,10 @@ .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { - color: $dropdown-link-color-active; + color: $dropdown-link-active-color; text-decoration: none; outline: 0; - @include gradient-vertical($dropdown-link-background-active, darken($dropdown-link-background-active, 5%)); + @include gradient-vertical($dropdown-link-active-bg, darken($dropdown-link-active-bg, 5%)); } // Disabled state @@ -103,7 +103,7 @@ .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { - color: $grayLight; + color: $gray-light; } // Nuke hover/focus effects .dropdown-menu > .disabled > a:hover, @@ -186,12 +186,12 @@ border-color: transparent; border-style: solid; border-width: 5px 0 5px 5px; - border-left-color: darken($dropdown-background, 20%); + border-left-color: darken($dropdown-bg, 20%); margin-top: 5px; margin-right: -10px; } .dropdown-submenu:hover > a:after { - border-left-color: $dropdown-link-color-hover; + border-left-color: $dropdown-link-hover-color; } // Left aligned submenus @@ -220,4 +220,4 @@ // --------------------------- .typeahead { z-index: 1051; -} \ No newline at end of file +} diff --git a/vendor/assets/stylesheets/bootstrap/_forms.scss b/vendor/assets/stylesheets/bootstrap/_forms.scss index da0b3e14..3f23610a 100644 --- a/vendor/assets/stylesheets/bootstrap/_forms.scss +++ b/vendor/assets/stylesheets/bootstrap/_forms.scss @@ -20,10 +20,10 @@ legend { display: block; width: 100%; padding: 0; - margin-bottom: $line-height-base; + margin-bottom: $line-height-computed; font-size: ($font-size-base * 1.5); - line-height: ($line-height-base * 2); - color: $grayDark; + line-height: $line-height-headings; + color: $gray-dark; border: 0; border-bottom: 1px solid #e5e5e5; } @@ -54,15 +54,14 @@ input[type="url"], input[type="search"], input[type="tel"], input[type="color"] { - display: inline-block; + display: block; min-height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border) padding: 6px 9px; - // margin-bottom: ($line-height-base / 2); font-size: $font-size-base; line-height: $line-height-base; color: $gray; vertical-align: middle; - background-color: $input-background; + background-color: $input-bg; border: 1px solid $input-border; border-radius: $input-border-radius; @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); @@ -88,6 +87,11 @@ input[type="checkbox"] { width: auto; // Override of generic input selector } +// Override content-box in Normalize (* isn't specific enough) +input[type="search"] { + @include box-sizing(border-box); +} + // Reset height since textareas have rows textarea { height: auto; @@ -166,16 +170,18 @@ textarea { .radio, .checkbox { display: block; - min-height: $line-height-base; // clear the floating input if there is no label text - margin-bottom: ($line-height-base / 2); + min-height: $line-height-computed; // clear the floating input if there is no label text + margin-top: 10px; + margin-bottom: 10px; padding-left: 20px; + vertical-align: middle; label { display: inline; margin-bottom: 0; font-weight: normal; + cursor: pointer; } } - .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], @@ -185,7 +191,7 @@ textarea { } .radio + .radio, .checkbox + .checkbox { - margin-top: (($line-height-base / 4) * -1); + margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing } // Move the options list down to align with labels @@ -198,11 +204,12 @@ textarea { .radio-inline, .checkbox-inline { display: inline-block; - padding-top: 5px; + // padding-top: 5px; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: normal; + cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { @@ -245,33 +252,6 @@ input[type="color"] { } - -// GRID SIZING FOR INPUTS -// ---------------------- - -// Grid style input sizes -input[class*="span"], -select[class*="span"], -textarea[class*="span"] { - float: none; - margin-left: 0; - margin-right: 0; -} - -// Ensure input-prepend/append never wraps -.input-append input[class*="span"], -.input-prepend input[class*="span"] { - display: inline-block; -} - -input[class*="span"], -select[class*="span"], -textarea[class*="span"] { - height: $input-height-base; -} - - - // DISABLED STATE // -------------- @@ -286,7 +266,7 @@ textarea { &[readonly], fieldset[disabled] & { cursor: not-allowed; - background-color: $input-background-disabled; + background-color: $input-bg-disabled; } } // Explicitly reset the colors here @@ -307,15 +287,15 @@ input[type="checkbox"] { // Warning .has-warning { - @include formFieldState($state-warning-text, $state-warning-text, $state-warning-background); + @include formFieldState($state-warning-text, $state-warning-text, $state-warning-bg); } // Error .has-error { - @include formFieldState($state-error-text, $state-error-text, $state-error-background); + @include formFieldState($state-danger-text, $state-danger-text, $state-danger-bg); } // Success .has-success { - @include formFieldState($state-success-text, $state-success-text, $state-success-background); + @include formFieldState($state-success-text, $state-success-text, $state-success-bg); } // HTML5 invalid states @@ -338,12 +318,12 @@ select:focus:invalid { // ------------ .form-actions { - padding: ($line-height-base - 1) 20px $line-height-base; - margin-top: $line-height-base; - margin-bottom: $line-height-base; - background-color: $form-actions-background; + padding: $line-height-computed 20px; + margin-top: $line-height-computed; + margin-bottom: $line-height-computed; + background-color: $form-actions-bg; border-top: 1px solid #e5e5e5; - @include clear_float(); // Adding clearfix to allow for .pull-right button containers + @include clearfix(); // Adding clearfix to allow for .pull-right button containers } @@ -351,20 +331,11 @@ select:focus:invalid { // HELP TEXT // --------- -.help-block, -.help-inline { - color: lighten($text-color, 25%); // lighten the text some for contrast -} - .help-block { display: block; // account for any element using help-block - margin-bottom: ($line-height-base / 2); -} - -.help-inline { - display: inline-block; - vertical-align: middle; - padding-left: 5px; + margin-top: 5px; + margin-bottom: 10px; + color: lighten($text-color, 25%); // lighten the text some for contrast } @@ -378,29 +349,26 @@ select:focus:invalid { display: table; // Undo padding and float of grid classes - &[class*="span"] { + &.col { float: none; - padding: 0; + padding-left: 0; + padding-right: 0; } input, select { width: 100%; + margin-bottom: 0; } } // Display as table-cell // ------------------------- -.input-group-addon, .input-group-btn, .input-group input { display: table-cell; - margin: 0; - border-radius: 0; - &.input-small { - border-radius: 0; - } - &.input-large { + + &:not(:first-child):not(:last-child) { border-radius: 0; } } @@ -421,42 +389,36 @@ select:focus:invalid { line-height: $line-height-base; text-align: center; text-shadow: 0 1px 0 #fff; - background-color: $grayLighter; + background-color: $gray-lighter; border: 1px solid #ccc; &.input-small { padding: $padding-small; font-size: $font-size-small; + border-radius: $border-radius-small; } &.input-large { padding: $padding-large; font-size: $font-size-large; + border-radius: $border-radius-large; } } // Reset rounded corners .input-group input:first-child, -.input-group-addon:first-child { - @include border-left-radius($border-radius-base); - &.input-small { - @include border-left-radius($border-radius-small); - } - &.input-large { - @include border-left-radius($border-radius-large); - } +.input-group-addon:first-child, +.input-group-btn:first-child > .btn:first-child, +.input-group-btn:first-child > .dropdown-toggle:first-child { + @include border-right-radius(0); } .input-group-addon:first-child { border-right: 0; } .input-group input:last-child, -.input-group-addon:last-child { - @include border-right-radius($border-radius-base); - &.input-small { - @include border-right-radius($border-radius-small); - } - &.input-large { - @include border-right-radius($border-radius-large); - } +.input-group-addon:last-child, +.input-group-btn:last-child > .btn:last-child, +.input-group-btn:last-child > .dropdown-toggle { + @include border-left-radius(0); } .input-group-addon:last-child { border-left: 0; @@ -482,62 +444,36 @@ select:focus:invalid { } } -// Prepended buttons -.input-group-btn:first-child { - // Round the left corners only - > .btn:first-child, - > .dropdown-toggle:first-child { - @include border-left-radius($border-radius-base); - &.btn-large { @include border-left-radius($border-radius-large); } - &.btn-small { @include border-left-radius($border-radius-small); } + +// Inline forms +// -------------------------------------------------- + +.form-inline { + input, + select, + textarea, + .radio, + .checkbox { + display: inline-block; + } + .radio, + .checkbox { + margin-top: 0; + margin-bottom: 0; } } -// Appended buttons -.input-group-btn:last-child { - // Round the right corners only - > .btn:last-child, - > .dropdown-toggle { - @include border-right-radius($border-radius-base); - &.btn-large { @include border-right-radius($border-radius-large); } - &.btn-small { @include border-right-radius($border-radius-small); } - } -} - - // Horizontal forms // -------------------------------------------------- +// Horizontal forms are built on grid classes. -@media screen and (min-width: 768px) { - - .form-horizontal { - - // Increase spacing between groups - .control-group { - position: relative; - margin-bottom: $line-height-base; - @include clear_float(); - - input, - select, - textarea { - margin-bottom: 0; - } - } - - // Float the labels left - .control-group > .control-label { - float: left; - width: ($component-offset-horizontal - 20); - padding-top: 6px; - text-align: right; - } - - // Move over all input controls and content over - .control-group > .controls { - margin-left: $component-offset-horizontal; - } - +.form-horizontal { + .row + .row { + margin-top: 15px; + } + .row-label { + padding-top: 6px; + text-align: right; } } diff --git a/vendor/assets/stylesheets/bootstrap/_glyphicons.scss b/vendor/assets/stylesheets/bootstrap/_glyphicons.scss index 6bdae204..0d935ea1 100644 --- a/vendor/assets/stylesheets/bootstrap/_glyphicons.scss +++ b/vendor/assets/stylesheets/bootstrap/_glyphicons.scss @@ -26,15 +26,15 @@ url('@{glyphicons-font-path}/glyphiconshalflings-regular.woff') format('woff'), url('@{glyphicons-font-path}/glyphiconshalflings-regular.ttf') format('truetype'), url('@{glyphicons-font-path}/glyphiconshalflings-regular.svg#glyphicons_halflingsregular') format('svg'); - font-style: normal; - font-weight: normal; } // Catchall baseclass .glyphicon:before { font-family: 'Glyphicons Halflings'; font-style: normal; + font-weight: normal; line-height: 1; + -webkit-font-smoothing: antialiased; } // Individual icons diff --git a/vendor/assets/stylesheets/bootstrap/_grid.scss b/vendor/assets/stylesheets/bootstrap/_grid.scss index 0df6816e..6efcfddf 100644 --- a/vendor/assets/stylesheets/bootstrap/_grid.scss +++ b/vendor/assets/stylesheets/bootstrap/_grid.scss @@ -12,38 +12,56 @@ .row { @include make-row(); } -[class^="span"] { + + +// Common styles for small and large grid columns +.col { position: relative; + // Float and set width: 100%; for easy stacking on mobile devices + float: left; + width: 100%; + // Prevent columns from collapsing when empty min-height: 1px; + // Inner gutter via padding padding-left: ($grid-gutter-width / 2); padding-right: ($grid-gutter-width / 2); } +// Generate small grid classes first +@include generate-grid-columns($grid-columns); + +// Then generate the larger grid classes via media query +@media screen and (min-width: $screen-small) { + @include generate-large-grid-columns($grid-columns); +} + + // Responsive: Tablets and up -@media screen and (min-width: 768px) { +@media screen and (min-width: $screen-tablet) { .container { max-width: 728px; } - // Generate the grid columns and offsets - [class^="span"] { float: left; } - @include generate-grid-columns($grid-columns); + .row { + margin-left: ($grid-gutter-width / -2); + margin-right: ($grid-gutter-width / -2); + } } // Responsive: Desktops and up -@media screen and (min-width: 992px) { +@media screen and (min-width: $screen-desktop) { .container { max-width: 940px; } } // Responsive: Large desktops and up -@media screen and (min-width: 1200px) { +@media screen and (min-width: $screen-large-desktop) { .container { max-width: 1170px; } } // Reset utility classes due to specificity -[class*="span"].pull-right { +/*[class*="col-span-"].pull-right { float: right; -} +}*/ diff --git a/vendor/assets/stylesheets/bootstrap/_jumbotron.scss b/vendor/assets/stylesheets/bootstrap/_jumbotron.scss index bac858cc..e98cc552 100644 --- a/vendor/assets/stylesheets/bootstrap/_jumbotron.scss +++ b/vendor/assets/stylesheets/bootstrap/_jumbotron.scss @@ -10,7 +10,7 @@ font-weight: 200; line-height: ($line-height-base * 1.5); color: $jumbotron-lead-color; - background-color: $jumbotron-background; + background-color: $jumbotron-bg; h1 { line-height: 1; color: $jumbotron-heading-color; @@ -20,13 +20,13 @@ } } -@media screen and (min-width: 768px) { +@media screen and (min-width: $screen-tablet) { .jumbotron { padding: 50px 60px; - border-radius: 6px; // Only round corners at higher resolutions + border-radius: $border-radius-large; // Only round corners at higher resolutions h1 { - font-size: 60px; + font-size: ($font-size-base * 4.5); } } -} \ No newline at end of file +} diff --git a/vendor/assets/stylesheets/bootstrap/_labels.scss b/vendor/assets/stylesheets/bootstrap/_labels.scss index b0de345f..b3c1004d 100644 --- a/vendor/assets/stylesheets/bootstrap/_labels.scss +++ b/vendor/assets/stylesheets/bootstrap/_labels.scss @@ -5,15 +5,15 @@ // Base classes .label { - padding: .25em .6em; + padding: inline; font-size: 75%; font-weight: 500; - color: #fff; line-height: 1; - vertical-align: middle; - white-space: nowrap; + color: #fff; text-align: center; - background-color: $grayLight; + white-space: nowrap; + vertical-align: middle; + background-color: $gray_light; border-radius: .25em; } @@ -24,20 +24,48 @@ a.label { color: #fff; text-decoration: none; cursor: pointer; + background-color: darken($gray-light, 10%); } } // Colors -// Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute) -// Danger (red) -.label-danger { background-color: $label-danger-background; } -.label-danger[href] { background-color: darken($label-danger-background, 10%); } -// Warnings (orange) -.label-warning { background-color: $label-warning-background; } -.label-warning[href] { background-color: darken($label-warning-background, 10%); } -// Success (green) -.label-success { background-color: $label-success-background; } -.label-success[href] { background-color: darken($label-success-background, 10%); } -// Info (turquoise) -.label-info { background-color: $label-info-background; } -.label-info[href] { background-color: darken($label-info-background, 10%); } +// Contextual variations (linked labels get darker on :hover) +.label-danger { + background-color: $label-danger-bg; + &[href] { + &:hover, + &:focus { + background-color: darken($label-danger-bg, 10%); + } + } +} + +.label-success { + background-color: $label-success-bg; + &[href] { + &:hover, + &:focus { + background-color: darken($label-success-bg, 10%); + } + } +} + +.label-warning { + background-color: $label-warning-bg; + &[href] { + &:hover, + &:focus { + background-color: darken($label-warning-bg, 10%); + } + } +} + +.label-info { + background-color: $label-info-bg; + &[href] { + &:hover, + &:focus { + background-color: darken($label-info-bg, 10%); + } + } +} diff --git a/vendor/assets/stylesheets/bootstrap/_list-group.scss b/vendor/assets/stylesheets/bootstrap/_list-group.scss new file mode 100644 index 00000000..6ba2d3c9 --- /dev/null +++ b/vendor/assets/stylesheets/bootstrap/_list-group.scss @@ -0,0 +1,96 @@ +// +// List groups +// -------------------------------------------------- + +// Base class +// +// Easily usable on