mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
iOS tab-bar hairline
This commit is contained in:
@ -3,14 +3,10 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
$navbar-ios-height: 4.4rem !default;
|
$navbar-ios-height: 4.4rem !default;
|
||||||
$navbar-ios-border-color: #c4c4c4 !default;
|
|
||||||
|
|
||||||
|
|
||||||
.nav[mode="ios"] .navbar-container {
|
.nav[mode="ios"] .navbar-container {
|
||||||
min-height: $navbar-ios-height;
|
min-height: $navbar-ios-height;
|
||||||
|
|
||||||
// navbar on top, border on bottom (default)
|
|
||||||
@include hairline(bottom, $navbar-ios-border-color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar[mode="ios"] {
|
.navbar[mode="ios"] {
|
||||||
|
@ -12,6 +12,12 @@ $tab-bar-ios-height: 50px !default;
|
|||||||
|
|
||||||
.tab-bar {
|
.tab-bar {
|
||||||
min-height: $tab-bar-ios-height;
|
min-height: $tab-bar-ios-height;
|
||||||
|
border-top: 1px solid $toolbar-ios-border-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&[tab-bar-placement="top"] .tab-bar {
|
||||||
|
border-top: none;
|
||||||
|
border-bottom: 1px solid $toolbar-ios-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-button {
|
.tab-button {
|
||||||
@ -37,16 +43,16 @@ $tab-bar-ios-height: 50px !default;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&[tab-bar-placement="bottom"] .tab-bar-container {
|
|
||||||
@include hairline(top, $toolbar-ios-border-color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&[tab-bar-placement="top"] .tab-bar-container {
|
.hairlines .tabs[mode="ios"] {
|
||||||
@include hairline(bottom, $toolbar-ios-border-color);
|
|
||||||
|
.tab-bar {
|
||||||
|
border-top-width: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&[tab-bar-placement="top"] .toolbar-container .toolbar {
|
&[tab-bar-placement="top"] .tab-bar {
|
||||||
@include hairline(bottom, none);
|
border-bottom-width: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ $toolbar-ios-title-font-size: 1.7rem !default;
|
|||||||
|
|
||||||
|
|
||||||
.toolbar[mode="ios"] {
|
.toolbar[mode="ios"] {
|
||||||
|
border-bottom: 1px solid $toolbar-ios-border-color;
|
||||||
|
|
||||||
.toolbar-title {
|
.toolbar-title {
|
||||||
order: map-get($toolbar-order-ios, title);
|
order: map-get($toolbar-order-ios, title);
|
||||||
@ -54,3 +55,7 @@ $toolbar-ios-title-font-size: 1.7rem !default;
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hairlines .toolbar[mode="ios"] {
|
||||||
|
border-bottom-width: 0.5px;
|
||||||
|
}
|
||||||
|
@ -5,6 +5,7 @@ Platform.register({
|
|||||||
name: 'core',
|
name: 'core',
|
||||||
settings: {
|
settings: {
|
||||||
backButtonText: 'Back',
|
backButtonText: 'Back',
|
||||||
|
backButtonIcon: 'ion-ios-arrow-back',
|
||||||
mode: 'ios',
|
mode: 'ios',
|
||||||
iconMode: 'ios',
|
iconMode: 'ios',
|
||||||
viewTransition: 'ios'
|
viewTransition: 'ios'
|
||||||
|
Reference in New Issue
Block a user