diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-04-18 09:42:22 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-04-18 09:42:22 -0400 |
| commit | 38d3feaa47e87e037c6fe4b320ad88417d565ea5 (patch) | |
| tree | 83f98a9f25ddfacfef835b5bfcc2edd8336c8e81 /www/lib/ionic/scss/_button-bar.scss | |
| parent | a86a09b90283950364b5bfdaf9904f13de2ce2fc (diff) | |
libs tbd cleanup
Diffstat (limited to 'www/lib/ionic/scss/_button-bar.scss')
| -rw-r--r-- | www/lib/ionic/scss/_button-bar.scss | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/www/lib/ionic/scss/_button-bar.scss b/www/lib/ionic/scss/_button-bar.scss new file mode 100644 index 00000000..da809d15 --- /dev/null +++ b/www/lib/ionic/scss/_button-bar.scss @@ -0,0 +1,92 @@ + +/** + * Button Bar + * -------------------------------------------------- + */ + +.button-bar { + @include display-flex(); + @include flex(1); + width: 100%; + + &.button-bar-inline { + display: block; + width: auto; + + @include clearfix(); + + > .button { + width: auto; + display: inline-block; + float: left; + } + } + + &.bar-light > .button { + border-color: $button-light-border; + } + &.bar-stable > .button { + border-color: $button-stable-border; + } + &.bar-positive > .button { + border-color: $button-positive-border; + } + &.bar-calm > .button { + border-color: $button-calm-border; + } + &.bar-assertive > .button { + border-color: $button-assertive-border; + } + &.bar-balanced > .button { + border-color: $button-balanced-border; + } + &.bar-energized > .button { + border-color: $button-energized-border; + } + &.bar-royal > .button { + border-color: $button-royal-border; + } + &.bar-dark > .button { + border-color: $button-dark-border; + } +} + +.button-bar > .button { + @include flex(1); + display: block; + + overflow: hidden; + + padding: 0 16px; + + width: 0; + + border-width: 1px 0px 1px 1px; + border-radius: 0; + text-align: center; + text-overflow: ellipsis; + white-space: nowrap; + + &:before, + .icon:before { + line-height: 44px; + } + + &:first-child { + border-radius: $button-border-radius 0px 0px $button-border-radius; + } + &:last-child { + border-right-width: 1px; + border-radius: 0px $button-border-radius $button-border-radius 0px; + } + &:only-child { + border-radius: $button-border-radius; + } +} + +.button-bar > .button-small { + &:before, + .icon:before { + line-height: 28px; + } +} |
