update vert alignment of button icon, closes #155

This commit is contained in:
Adam Bradley
2013-11-17 21:20:53 -06:00
parent 8fe868f4eb
commit 6edfa82ae6
3 changed files with 21 additions and 3 deletions

4
dist/css/ionic.css vendored
View File

@ -2754,8 +2754,10 @@ a.subdued {
font-size: 12px; font-size: 12px;
line-height: 30px; } line-height: 30px; }
.bar .button .icon { .bar .button .icon {
padding-left: 2px;
padding-right: 2px;
font-size: 24px; font-size: 24px;
line-height: 29px; } line-height: 30px; }
.bar .button-bar > .button, .bar .buttons > .button { .bar .button-bar > .button, .bar .buttons > .button {
min-height: 31px; min-height: 31px;
height: 32px; height: 32px;

View File

@ -121,8 +121,10 @@
line-height: $button-bar-button-height - $button-border-width - 1; line-height: $button-bar-button-height - $button-border-width - 1;
.icon { .icon {
padding-left: 2px;
padding-right: 2px;
font-size: $button-bar-button-icon-size; font-size: $button-bar-button-icon-size;
line-height: $button-bar-button-height - $button-border-width - 2; line-height: $button-bar-button-height - $button-border-width - 1;
} }
} }

View File

@ -180,7 +180,7 @@
<header class="bar bar-light"> <header class="bar bar-light">
<a class="button"> <a class="button">
<i class="icon ion-home"></i> <i class="icon ion-arrow-left-c"></i>
</a> </a>
<div class="button-bar"> <div class="button-bar">
<a class="button">Success</a> <a class="button">Success</a>
@ -192,6 +192,20 @@
</a> </a>
</header> </header>
<header class="bar bar-assertive">
<a class="button button-icon">
<i class="icon ion-arrow-left-c"></i>
</a>
<div class="button-bar">
<a class="button">Success</a>
<a class="button">Warning</a>
<a class="button">Danger</a>
</div>
<a class="button button-clear">
title
</a>
</header>
</section> </section>
</body> </body>