mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(toolbar): place iOS border on ion-header/footer
This commit is contained in:
@ -488,7 +488,7 @@ export class Content extends Ion {
|
||||
this._scrollEle.style.paddingBottom = (this._paddingBottom > 0 ? this._paddingBottom + 'px' : '');
|
||||
}
|
||||
|
||||
if (this._tabbarOnTop && this._tabs) {
|
||||
if (this._tabbarOnTop !== null && this._tabs) {
|
||||
if (this._tabbarOnTop) {
|
||||
this._tabs.setTabbarPosition(this._headerHeight, -1);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<ion-header>
|
||||
|
||||
<ion-navbar>
|
||||
<ion-title>Test</ion-title>
|
||||
<ion-title>Searchbar Toolbars</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
</ion-header>
|
||||
|
@ -37,29 +37,43 @@ $navbar-ios-height: $toolbar-ios-height !default;
|
||||
}
|
||||
|
||||
|
||||
// iOS Header Toolbar
|
||||
// --------------------------------------------------
|
||||
|
||||
ion-header {
|
||||
border: 0;
|
||||
border-bottom-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: $toolbar-ios-border-color;
|
||||
}
|
||||
|
||||
&.hairlines ion-header {
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
|
||||
|
||||
// iOS Footer Toolbar
|
||||
// --------------------------------------------------
|
||||
|
||||
ion-footer {
|
||||
border: 0;
|
||||
border-top-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: $toolbar-ios-border-color;
|
||||
}
|
||||
|
||||
&.hairlines ion-footer {
|
||||
border-top-width: $hairlines-width;
|
||||
}
|
||||
|
||||
|
||||
// iOS Toolbar Background
|
||||
// --------------------------------------------------
|
||||
|
||||
.toolbar-background {
|
||||
border-bottom-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: $toolbar-ios-border-color;
|
||||
background: $toolbar-ios-background;
|
||||
}
|
||||
|
||||
&.hairlines .toolbar-background {
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
|
||||
.toolbar[position=bottom] .toolbar-background {
|
||||
border-top-width: 1px;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
&.hairlines .toolbar[position=bottom] .toolbar-background {
|
||||
border-top-width: $hairlines-width;
|
||||
}
|
||||
|
||||
|
||||
// iOS Toolbar Content
|
||||
// --------------------------------------------------
|
||||
|
Reference in New Issue
Block a user