Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/stylesheets/bootstrap/_button-group.scss')
-rw-r--r--assets/stylesheets/bootstrap/_button-group.scss75
1 files changed, 40 insertions, 35 deletions
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 `<label>` value
+
input[type="radio"],
input[type="checkbox"] {
position: absolute;
- clip: rect(0,0,0,0);
+ clip: rect(0, 0, 0, 0);
pointer-events: none;
}
}