From 5ae93e717519e910360350e6c0396efae8aff716 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 23 Oct 2017 16:27:13 +0100 Subject: rake update[v4-dev] --- assets/stylesheets/bootstrap/_alert.scss | 2 + assets/stylesheets/bootstrap/_button-group.scss | 75 ++++++++++++---------- assets/stylesheets/bootstrap/_buttons.scss | 8 +-- assets/stylesheets/bootstrap/_card.scss | 26 +++++--- assets/stylesheets/bootstrap/_carousel.scss | 4 +- assets/stylesheets/bootstrap/_code.scss | 4 +- assets/stylesheets/bootstrap/_dropdown.scss | 2 +- assets/stylesheets/bootstrap/_forms.scss | 4 +- assets/stylesheets/bootstrap/_functions.scss | 4 +- assets/stylesheets/bootstrap/_images.scss | 1 - assets/stylesheets/bootstrap/_input-group.scss | 41 +++++++++--- assets/stylesheets/bootstrap/_list-group.scss | 4 +- assets/stylesheets/bootstrap/_modal.scss | 21 +++--- assets/stylesheets/bootstrap/_pagination.scss | 38 +++++------ assets/stylesheets/bootstrap/_reboot.scss | 2 +- assets/stylesheets/bootstrap/_variables.scss | 64 +++++++++--------- assets/stylesheets/bootstrap/mixins/_forms.scss | 15 +++-- .../bootstrap/mixins/_screen-reader.scss | 2 +- 18 files changed, 183 insertions(+), 134 deletions(-) (limited to 'assets/stylesheets') diff --git a/assets/stylesheets/bootstrap/_alert.scss b/assets/stylesheets/bootstrap/_alert.scss index 66fba24..c2d5c81 100644 --- a/assets/stylesheets/bootstrap/_alert.scss +++ b/assets/stylesheets/bootstrap/_alert.scss @@ -27,6 +27,8 @@ // Expand the right padding and account for the close button's positioning. .alert-dismissible { + padding-right: ($close-font-size + $alert-padding-x * 2); + // Adjust close link position .close { position: absolute; diff --git a/assets/stylesheets/bootstrap/_button-group.scss b/assets/stylesheets/bootstrap/_button-group.scss index 1a373f3..12d4982 100644 --- a/assets/stylesheets/bootstrap/_button-group.scss +++ b/assets/stylesheets/bootstrap/_button-group.scss @@ -14,12 +14,12 @@ // Bring the hover, focused, and "active" buttons to the front to overlay // the borders properly @include hover { - z-index: 2; + z-index: 1; } &:focus, &:active, &.active { - z-index: 2; + z-index: 1; } } @@ -43,47 +43,50 @@ } } -.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { - border-radius: 0; -} +.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; + // 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:first-child { + margin-left: 0; - &:not(:last-child):not(.dropdown-toggle) { - @include border-right-radius(0); + &: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:not(:first-child), -.btn-group > .dropdown-toggle:not(:first-child) { - @include border-left-radius(0); -} -// 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-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; -} + // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu + // immediately after it + > .btn:last-child:not(:first-child), + > .dropdown-toggle:not(:first-child) { + @include border-left-radius(0); + } -.btn-group > .btn-group:first-child:not(:last-child) { - > .btn:last-child, - > .dropdown-toggle { - @include border-right-radius(0); + // Custom edits for including btn-groups within btn-groups (useful for including + // dropdown buttons within a btn-group) + > .btn-group { + float: left; } -} -.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { - @include border-left-radius(0); -} + > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; + } + + > .btn-group:first-child:not(:last-child) { + > .btn:last-child, + > .dropdown-toggle { + @include border-right-radius(0); + } + } + > .btn-group:last-child:not(:first-child) > .btn:first-child { + @include border-left-radius(0); + } +} // Sizing // @@ -197,10 +200,12 @@ [data-toggle="buttons"] { > .btn, > .btn-group > .btn { + margin-bottom: 0; // Override default `