mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix tab icon alignments, closes #493
This commit is contained in:
21
dist/css/ionic.css
vendored
21
dist/css/ionic.css
vendored
@@ -1,4 +1,3 @@
|
||||
@charset "UTF-8";
|
||||
/*!
|
||||
* Copyright 2014 Drifty Co.
|
||||
* http://drifty.com/
|
||||
@@ -3575,7 +3574,7 @@ a.subdued {
|
||||
font-size: 12px;
|
||||
line-height: 14px; }
|
||||
|
||||
.tab-item .icon:before {
|
||||
.tab-item .icon {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
height: 32px;
|
||||
@@ -3584,20 +3583,22 @@ a.subdued {
|
||||
.tabs-icon-left .tab-item,
|
||||
.tabs-icon-right .tab-item {
|
||||
font-size: 12px; }
|
||||
.tabs-icon-left .tab-item .icon:before,
|
||||
.tabs-icon-right .tab-item .icon:before {
|
||||
.tabs-icon-left .tab-item .icon,
|
||||
.tabs-icon-right .tab-item .icon {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
font-size: 24px;
|
||||
line-height: 49px; }
|
||||
vertical-align: top; }
|
||||
.tabs-icon-left .tab-item .icon:before,
|
||||
.tabs-icon-right .tab-item .icon:before {
|
||||
font-size: 24px;
|
||||
line-height: 49px; }
|
||||
|
||||
.tabs-icon-left .tab-item .icon:before {
|
||||
.tabs-icon-left .tab-item .icon {
|
||||
padding-right: 3px; }
|
||||
|
||||
.tabs-icon-right .tab-item .icon:before {
|
||||
.tabs-icon-right .tab-item .icon {
|
||||
padding-left: 3px; }
|
||||
|
||||
.tabs-icon-only .icon:before {
|
||||
.tabs-icon-only .icon {
|
||||
line-height: inherit; }
|
||||
|
||||
/* Navigational tab */
|
||||
|
||||
4
dist/css/ionic.min.css
vendored
4
dist/css/ionic.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -101,7 +101,7 @@
|
||||
line-height: $tabs-text-font-size;
|
||||
}
|
||||
|
||||
.tab-item .icon:before {
|
||||
.tab-item .icon {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
height: $tabs-icon-size;
|
||||
@@ -112,23 +112,26 @@
|
||||
.tabs-icon-right .tab-item {
|
||||
font-size: $tabs-text-font-size-side-icon;
|
||||
|
||||
.icon:before {
|
||||
.icon {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
|
||||
&:before {
|
||||
font-size: $tabs-icon-size - 8;
|
||||
line-height: $tabs-height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tabs-icon-left .tab-item .icon:before {
|
||||
.tabs-icon-left .tab-item .icon {
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.tabs-icon-right .tab-item .icon:before {
|
||||
.tabs-icon-right .tab-item .icon {
|
||||
padding-left: 3px;
|
||||
}
|
||||
|
||||
.tabs-icon-only .icon:before {
|
||||
.tabs-icon-only .icon {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user