mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(toolbar/tabs): change toolbar-background to use the background property
Renamed Sass variables for toolbar and tabbar to use just background, not color. Closes #716
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
// iOS Tabs
|
||||
// --------------------------------------------------
|
||||
|
||||
$tabbar-ios-background-color: $toolbar-ios-background-color !default;
|
||||
$tabbar-ios-background: $toolbar-ios-background !default;
|
||||
$tabbar-ios-item-padding: 0px 10px !default;
|
||||
$tabbar-ios-item-font-size: 10px !default;
|
||||
$tabbar-ios-item-icon-size: 32px !default;
|
||||
@ -18,7 +18,7 @@ $tab-button-ios-inactive-color: $toolbar-ios-inactive-color !default;
|
||||
|
||||
tabbar {
|
||||
border-top: 1px solid $toolbar-ios-border-color;
|
||||
background: $tabbar-ios-background-color;
|
||||
background: $tabbar-ios-background;
|
||||
}
|
||||
|
||||
ion-tabs[tabbar-placement=top] tabbar {
|
||||
|
@ -4,7 +4,7 @@
|
||||
// Material Design Tabs
|
||||
// --------------------------------------------------
|
||||
|
||||
$tabbar-md-background-color: $toolbar-md-background-color !default;
|
||||
$tabbar-md-background: $toolbar-md-background !default;
|
||||
$tabbar-md-item-padding: 12px 10px 5px 10px !default;
|
||||
$tabbar-md-item-font-size: 1.4rem !default;
|
||||
$tabbar-md-item-font-weight: 500 !default;
|
||||
@ -16,7 +16,7 @@ $tab-button-md-inactive-color: $toolbar-md-inactive-color !default;
|
||||
|
||||
|
||||
tabbar {
|
||||
background: $tabbar-md-background-color;
|
||||
background: $tabbar-md-background;
|
||||
}
|
||||
|
||||
|
||||
|
@ -43,7 +43,7 @@ ion-navbar-section {
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
border-color: $toolbar-ios-border-color;
|
||||
background-color: $toolbar-ios-background-color;
|
||||
background: $toolbar-ios-background;
|
||||
}
|
||||
|
||||
&.hairlines .toolbar-background {
|
||||
@ -82,7 +82,7 @@ ion-title {
|
||||
.toolbar[#{$color-name}] {
|
||||
|
||||
.toolbar-background {
|
||||
background-color: $color-value;
|
||||
background: $color-value;
|
||||
border-color: darken($color-value, 10%);
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ ion-navbar-section {
|
||||
|
||||
.toolbar-background {
|
||||
border-color: $toolbar-md-border-color;
|
||||
background-color: $toolbar-md-background-color;
|
||||
background: $toolbar-md-background;
|
||||
}
|
||||
|
||||
|
||||
@ -67,7 +67,7 @@ ion-title {
|
||||
.toolbar[#{$color-name}] {
|
||||
|
||||
.toolbar-background {
|
||||
background-color: $color-value;
|
||||
background: $color-value;
|
||||
}
|
||||
|
||||
.toolbar-title,
|
||||
@ -112,7 +112,7 @@ ion-buttons[right] {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0.2rem;
|
||||
margin-right: 0.2rem;
|
||||
margin-right: 0.2rem;
|
||||
padding: 0 5px;
|
||||
min-height: 32px;
|
||||
border: 0;
|
||||
|
@ -26,7 +26,7 @@ $font-size-ios-base: $font-size-base !default;
|
||||
// iOS Toolbar
|
||||
// --------------------------------------------------
|
||||
|
||||
$toolbar-ios-background-color: $toolbar-background-color !default;
|
||||
$toolbar-ios-background: $toolbar-background !default;
|
||||
$toolbar-ios-border-color: $toolbar-border-color !default;
|
||||
$toolbar-ios-text-color: $toolbar-text-color !default;
|
||||
$toolbar-ios-active-color: $toolbar-active-color !default;
|
||||
|
@ -26,7 +26,7 @@ $font-size-md-base: $font-size-base !default;
|
||||
// Material Design Toolbar
|
||||
// --------------------------------------------------
|
||||
|
||||
$toolbar-md-background-color: $toolbar-background-color !default;
|
||||
$toolbar-md-background: $toolbar-background !default;
|
||||
$toolbar-md-border-color: $toolbar-border-color !default;
|
||||
$toolbar-md-text-color: $toolbar-text-color !default;
|
||||
$toolbar-md-active-color: $toolbar-active-color !default;
|
||||
|
@ -21,7 +21,7 @@ $subdued-text-color: #666 !default;
|
||||
$font-family-base: -apple-system, "Helvetica Neue", "Roboto", sans-serif !default;
|
||||
$font-size-base: 1.4rem !default; // 1.4rem == 14px
|
||||
|
||||
$toolbar-background-color: #f8f8f8 !default;
|
||||
$toolbar-background: #f8f8f8 !default;
|
||||
$toolbar-border-color: #b2b2b2 !default;
|
||||
$toolbar-text-color: $text-color !default;
|
||||
$toolbar-active-color: $link-color !default;
|
||||
|
Reference in New Issue
Block a user