mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
iOS tab bar borders
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
.tabs {
|
||||
background: red;
|
||||
|
||||
}
|
||||
|
||||
.toolbar.tab-bar {
|
||||
|
||||
@@ -16,25 +16,6 @@ $toolbar-ios-button-background-color: transparent !default;
|
||||
height: $toolbar-ios-height;
|
||||
background: $toolbar-ios-background;
|
||||
|
||||
&:after {
|
||||
position: absolute;
|
||||
top: auto;
|
||||
right: auto;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: $z-index-toolbar-border;
|
||||
display: block;
|
||||
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
|
||||
background-color: $toolbar-ios-border-color;
|
||||
|
||||
@include transform-origin(50%, 100%);
|
||||
|
||||
content: '';
|
||||
}
|
||||
|
||||
.toolbar-primary-item {
|
||||
@include flex-order(2);
|
||||
}
|
||||
@@ -64,4 +45,30 @@ $toolbar-ios-button-background-color: transparent !default;
|
||||
background: $toolbar-ios-button-background-color;
|
||||
}
|
||||
|
||||
// tab-bar bottom, border top (default)
|
||||
&:after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: auto;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
z-index: $z-index-toolbar-border;
|
||||
display: block;
|
||||
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
|
||||
background-color: $toolbar-ios-border-color;
|
||||
|
||||
@include transform-origin(50%, 100%);
|
||||
|
||||
content: '';
|
||||
}
|
||||
|
||||
// tab-bar bottom, border top
|
||||
&.toolbar-top:after {
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user