Skip to content

Instantly share code, notes, and snippets.

@ashleahhill
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save ashleahhill/c1393345b3697767298a to your computer and use it in GitHub Desktop.

Select an option

Save ashleahhill/c1393345b3697767298a to your computer and use it in GitHub Desktop.
LVzwwB
<div class='button-bar'>
<button><span class="icon"></span><span>text</span></button>
<button><span class="icon"></span><span>textlkasjddsalkfjlasdjlfjlasdkj</span></button><button><span class="icon"></span><span>
<span class="leetle">Little</span>
Big
</span></button>
</div>
.button-bar{
display:flex;
height: 50px;
max-width: 320px;
}
button{
flex:1 1 auto;
display: flex;
align-items: center;
font-size: 16px;
}
button .icon {
display: block;
flex: 0 1 auto;
text-align: right;
font-size: 20px;
}
button .icon::before {
content:'\2022';
line-height: 0;
color: #0054a0;
font-weight: bold;
}
button .icon+span {
display: block;
flex: 1 1 auto;
text-align: left;
padding-left: 10px;
}
.leetle {
font-size: .5em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment