// Make the div behave like a button .btn-group, .btn-group-vertical { position: relative; display: inline-flex; vertical-align: middle; // match .btn alignment given font-size hack above > .btn { position: relative; flex: 1 1 auto; } // Bring the hover, focused, and "active" buttons to the front to overlay // the borders properly > .btn-check:checked + .btn, > .btn-check:focus + .btn, > .btn:hover, > .btn:focus, > .btn:active, > .btn.active { z-index: 1; } } // Optional: Group multiple button groups together for a toolbar .btn-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-start; .input-group { width: auto; } } .btn-group { // Prevent double borders when buttons are next to each other > .btn:not(:first-child), > .btn-group:not(:first-child) { margin-left: -$btn-border-width; } // Reset rounded corners > .btn:not(:last-child):not(.dropdown-toggle), > .btn-group:not(:last-child) > .btn { @include border-end-radius(0); } // The left radius should be 0 if the button is: // - the "third or more" child // - the second child and the previous element isn't `.btn-check` (making it the first child visually) // - part of a btn-group which isn't the first child > .btn:nth-child(n + 3), > :not(.btn-check) + .btn, > .btn-group:not(:first-child) > .btn { @include border-start-radius(0); } } // Sizing // // Remix the default button sizing classes into new ones for easier manipulation. .btn-group-sm > .btn { @extend .btn-sm; } .btn-group-lg > .btn { @extend .btn-lg; } // // Split button dropdowns // .dropdown-toggle-split { padding-right: $btn-padding-x * .75; padding-left: $btn-padding-x * .75; &::after, .dropup &::after, .dropend &::after { margin-left: 0; } .dropstart &::before { margin-right: 0; } } .btn-sm + .dropdown-toggle-split { padding-right: $btn-padding-x-sm * .75; padding-left: $btn-padding-x-sm * .75; } .btn-lg + .dropdown-toggle-split { padding-right: $btn-padding-x-lg * .75; padding-left: $btn-padding-x-lg * .75; } // The clickable button for toggling the menu // Set the same inset shadow as the :active state .btn-group.show .dropdown-toggle { @include box-shadow($btn-active-box-shadow); // Show no shadow for `.btn-link` since it has no other button styles. &.btn-link { @include box-shadow(none); } } // // Vertical button groups // .btn-group-vertical { flex-direction: column; align-items: flex-start; justify-content: center; > .btn, > .btn-group { width: 100%; } > .btn:not(:first-child), > .btn-group:not(:first-child) { margin-top: -$btn-border-width; } // Reset rounded corners > .btn:not(:last-child):not(.dropdown-toggle), > .btn-group:not(:last-child) > .btn { @include border-bottom-radius(0); } > .btn ~ .btn, > .btn-group:not(:first-child) > .btn { @include border-top-radius(0); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
forms | Folder | 0755 |
|
|
helpers | Folder | 0755 |
|
|
mixins | Folder | 0755 |
|
|
utilities | Folder | 0755 |
|
|
vendor | Folder | 0755 |
|
|
_accordion.scss | File | 2.56 KB | 0644 |
|
_alert.scss | File | 1.44 KB | 0644 |
|
_badge.scss | File | 624 B | 0644 |
|
_bootstrap-grid.scss | File | 1.3 KB | 0644 |
|
_bootstrap-reboot.scss | File | 693 B | 0644 |
|
_bootstrap-utilities.scss | File | 393 B | 0644 |
|
_breadcrumb.scss | File | 923 B | 0644 |
|
_button-group.scss | File | 2.9 KB | 0644 |
|
_buttons.scss | File | 2.18 KB | 0644 |
|
_card.scss | File | 4.6 KB | 0644 |
|
_carousel.scss | File | 5.49 KB | 0644 |
|
_close.scss | File | 1.1 KB | 0644 |
|
_containers.scss | File | 1.17 KB | 0644 |
|
_dropdown.scss | File | 5.46 KB | 0644 |
|
_forms.scss | File | 256 B | 0644 |
|
_functions.scss | File | 7.72 KB | 0644 |
|
_grid.scss | File | 286 B | 0644 |
|
_helpers.scss | File | 218 B | 0644 |
|
_images.scss | File | 1.13 KB | 0644 |
|
_list-group.scss | File | 4.45 KB | 0644 |
|
_mixins.scss | File | 872 B | 0644 |
|
_modal.scss | File | 5.66 KB | 0644 |
|
_nav.scss | File | 2.61 KB | 0644 |
|
_navbar.scss | File | 6.65 KB | 0644 |
|
_offcanvas.scss | File | 1.72 KB | 0644 |
|
_pagination.scss | File | 1.64 KB | 0644 |
|
_popover.scss | File | 4.3 KB | 0644 |
|
_progress.scss | File | 1.14 KB | 0644 |
|
_reboot.scss | File | 12 KB | 0644 |
|
_root.scss | File | 1.14 KB | 0644 |
|
_spinners.scss | File | 1.49 KB | 0644 |
|
_tables.scss | File | 4.04 KB | 0644 |
|
_toasts.scss | File | 1.15 KB | 0644 |
|
_tooltip.scss | File | 2.54 KB | 0644 |
|
_transitions.scss | File | 309 B | 0644 |
|
_type.scss | File | 1.31 KB | 0644 |
|
_utilities.scss | File | 13.09 KB | 0644 |
|
_variables.scss | File | 61.69 KB | 0644 |
|