update
This commit is contained in:
56
iadmin/themes/default/scss/vendor/bootstrap-rtl-sass/_button-groups-rtl.sass
vendored
Normal file
56
iadmin/themes/default/scss/vendor/bootstrap-rtl-sass/_button-groups-rtl.sass
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
//
|
||||
// Button groups
|
||||
// --------------------------------------------------
|
||||
|
||||
// Make the div behave like a button
|
||||
.btn-group,
|
||||
.btn-group-vertical
|
||||
> .btn
|
||||
float: right
|
||||
|
||||
// Prevent double borders when buttons are next to each other
|
||||
.btn-group
|
||||
.btn + .btn,
|
||||
.btn + .btn-group,
|
||||
.btn-group + .btn,
|
||||
.btn-group + .btn-group
|
||||
margin-right: -1px
|
||||
|
||||
// Optional: Group multiple button groups together for a toolbar
|
||||
.btn-toolbar
|
||||
margin-right: -5px // Offset the first child's margin
|
||||
|
||||
.btn-group,
|
||||
.input-group
|
||||
float: right
|
||||
> .btn,
|
||||
> .btn-group,
|
||||
> .input-group
|
||||
margin-right: 5px
|
||||
|
||||
// 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-right: 0
|
||||
&:not(:last-child):not(.dropdown-toggle)
|
||||
@include border-left-radius(0)
|
||||
@include border-right-radius($border-radius-base)
|
||||
|
||||
// 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-right-radius(0)
|
||||
@include border-left-radius($border-radius-base)
|
||||
|
||||
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
|
||||
.btn-group > .btn-group
|
||||
float: right
|
||||
|
||||
.btn-group > .btn-group:first-child
|
||||
> .btn:last-child,
|
||||
> .dropdown-toggle
|
||||
@include border-left-radius(0)
|
||||
@include border-right-radius($border-radius-base)
|
||||
|
||||
.btn-group > .btn-group:last-child > .btn:first-child
|
||||
@include border-right-radius(0)
|
||||
@include border-left-radius($border-radius-base)
|
||||
Reference in New Issue
Block a user