Icon-only buttons and rightside button groups

This commit is contained in:
Max Lynch
2013-09-10 10:45:13 -05:00
parent 30718279a5
commit 7a57d2d1c5
7 changed files with 89 additions and 12 deletions

View File

@@ -49,8 +49,10 @@
.button {
@include box-flex(0);
background-color: transparent;
line-height: $barButtonLineHeight;
font-size: 12px;
padding: 4px 12px;
}
.button-bar {
@@ -64,7 +66,8 @@
// Place the last button in a bar on the right of the bar
.title + .button:last-child,
> .button + .button:last-child,
> .button.pull-right {
> .button.pull-right,
.title + .buttons {
position: absolute;
top: 5px;
right: 5px;

View File

@@ -93,3 +93,13 @@
border-right-width: 1px;
}
}
// Buttons are used to group a set of buttons, useful
// to pull a set of buttons to the right side of a header
// bar, for example.
.buttons {
display: -webkit-box;
display: box;
@include box-flex(1);
@include box-orient(horizontal);
}

View File

@@ -6,6 +6,11 @@
cursor: pointer;
margin: 0;
&.button-icon {
background: none;
border: none;
}
&.button-block {
margin: $buttonBlockMargin;
display: block;