-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from paulcpederson/master
input groups, action bar, bump to 0.7.0
- Loading branch information
Showing
11 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Action bars are used to display multiple actions horizontally. Actions are meant to be used with buttons. They are clearfixed and floated right by default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
It is very common to have an input and a button attached to one another. The `input-group` component allows you to accomplish this with three classes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="action-bar {{modifier}}"> | ||
<button type="button" class="btn action-bar-btn">Submit</button> | ||
<button type="button" class="btn btn-transparent action-bar-btn">Cancel</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="input-group"> | ||
<input class="input-group-input" type="text" placeholder="Username"> | ||
<span class="input-group-button"> | ||
<button class="btn">Yay</button> | ||
</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@mixin action-bar() { | ||
@include clearfix(); | ||
} | ||
|
||
@mixin action-bar-btn() { | ||
float: right; | ||
margin-left: $baseline * .5; | ||
} | ||
|
||
@mixin action-bar-left() { | ||
@include clearfix(); | ||
.action-bar-btn { | ||
float: left; | ||
margin-left: 0; | ||
margin-right: $baseline * .5; | ||
} | ||
} | ||
|
||
@if $include-action-bar == true { | ||
.action-bar {@include action-bar();} | ||
.action-bar-btn {@include action-bar-btn();} | ||
.action-bar-left {@include action-bar-left();} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@mixin input-group() { | ||
display: table; | ||
margin-top: $baseline*.25; | ||
} | ||
|
||
@mixin input-group-input() { | ||
display: table-cell; | ||
position: relative; | ||
margin-top: 0; | ||
width: 100%; | ||
} | ||
|
||
@mixin input-group-button() { | ||
width: 1%; | ||
vertical-align: middle; | ||
display: table-cell; | ||
.btn { | ||
margin-left: -1px; | ||
} | ||
} | ||
|
||
@if $include-input-groups == true { | ||
.input-group {@include input-group();} | ||
.input-group-input {@include input-group-input();} | ||
.input-group-button {@include input-group-button();} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters