/** * @copyright 2010-2013, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ @import "../common"; .button-group { @include reset-inline-block; white-space: nowrap; > li, > .button { float: left; margin-left: -1px !important; border-radius: 0; display: block; &:first-child { margin-left: 0; } &:hover { z-index: 1; } } > li .button { display: block; border-radius: 0; } &.round { border-radius: $round; > li:first-child .button, > .button:first-child, > .button.first { border-top-left-radius: $round; border-bottom-left-radius: $round; } > li:last-child .button, > .button:last-child, > .button.last { border-top-right-radius: $round; border-bottom-right-radius: $round; } } @include clear-fix; } // Space out groups .button-group + .button-group { margin-left: $margin; } //-------------------- Modifiers --------------------// .button-group.button-group--vertical { vertical-align: top; > li, > .button { float: none; display: block; margin: -1px 0 0 0 !important; width: auto; max-width: 100%; &:first-child { margin-top: 0 !important; } &:hover { z-index: 1; } } &.round, &.pill, &.skew, &.skew-reverse { .button { border-radius: 0; } } &.round { > li:first-child .button, > .button:first-child { border-top-left-radius: $round; border-top-right-radius: $round; } > li:last-child .button, > .button:last-child { border-bottom-left-radius: $round; border-bottom-right-radius: $round; } } } .button-group.button-group--justified { display: table; width: 100%; > li, > .button { float: none; display: table-cell; } }