mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(button): Tweak vertical alignment of button icons, closes #739
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
padding: 0 0 $button-border-width 0;
|
||||
vertical-align: inherit;
|
||||
font-size: $button-icon-size;
|
||||
line-height: $button-height - $button-border-width;
|
||||
line-height: $button-height - $button-border-width + 1;
|
||||
}
|
||||
&.icon-left:before {
|
||||
float: left;
|
||||
@@ -164,7 +164,7 @@
|
||||
border-color: transparent;
|
||||
background: none;
|
||||
|
||||
&.button:active,
|
||||
&.button:active,
|
||||
&.button.active {
|
||||
border-color: transparent;
|
||||
background: none;
|
||||
@@ -206,8 +206,8 @@
|
||||
.button-block {
|
||||
display: block;
|
||||
clear: both;
|
||||
|
||||
&:after {
|
||||
|
||||
&:after {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=1 ); /* IE6-9 */
|
||||
}
|
||||
</style>
|
||||
<script src="../dist/js/ionic.bundle.js"></script>
|
||||
<script src="../../dist/js/ionic.bundle.js"></script>
|
||||
<script>
|
||||
angular.module('ionicApp', ['ionic'])
|
||||
</script>
|
||||
@@ -67,7 +67,8 @@
|
||||
<a class="button button-assertive"><i class="icon ion-home"></i></a>
|
||||
<a class="button button-energized"><i class="icon ion-home"></i> .button-energized</a>
|
||||
<a class="button button-royal">.button-royal</a>
|
||||
<a class="button button-dark"><i class="icon ion-home"></i> .button-dark</a>
|
||||
<a class="button button-dark"><i class="icon ion-chevron-right"></i> .button-dark</a>
|
||||
<a class="button button-energized icon-right ion-chevron-right">Login</a>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
Reference in New Issue
Block a user