mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
refactor(tabs): fix undefined sass variables
This commit is contained in:
@ -100,7 +100,7 @@ ion-tabs[tabsPlacement=top] ion-tabbar {
|
|||||||
|
|
||||||
[tabsLayout=icon-hide] .tab-button,
|
[tabsLayout=icon-hide] .tab-button,
|
||||||
.tab-button.has-title-only {
|
.tab-button.has-title-only {
|
||||||
min-height: $tabs-ios-height - 8;
|
min-height: $tabs-ios-tab-min-height - 8;
|
||||||
|
|
||||||
.tab-button-text {
|
.tab-button-text {
|
||||||
margin: 2px 0;
|
margin: 2px 0;
|
||||||
@ -112,7 +112,7 @@ ion-tabs[tabsPlacement=top] ion-tabbar {
|
|||||||
|
|
||||||
[tabsLayout=title-hide] .tab-button,
|
[tabsLayout=title-hide] .tab-button,
|
||||||
.tab-button.icon-only {
|
.tab-button.icon-only {
|
||||||
min-height: $tabs-ios-height - 8;
|
min-height: $tabs-ios-tab-min-height - 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.hairlines ion-tabs {
|
&.hairlines ion-tabs {
|
||||||
|
@ -13,12 +13,6 @@ $tabs-wp-tab-padding: 12px 10px 5px 10px !default;
|
|||||||
// Min height of the tab button
|
// Min height of the tab button
|
||||||
$tabs-wp-tab-min-height: 4.8rem !default;
|
$tabs-wp-tab-min-height: 4.8rem !default;
|
||||||
|
|
||||||
// Border on the inactive tab button (border-top when [tabsPlacement=bottom] and border-bottom when [tabsPlacement=top])
|
|
||||||
$tabs-wp-tab-border: 2px solid transparent !default;
|
|
||||||
|
|
||||||
// Border color on the active tab button (border-top when [tabsPlacement=bottom] and border-bottom when [tabsPlacement=top])
|
|
||||||
$tabs-wp-tab-border-color-active: $tabs-wp-tab-color-active !default;
|
|
||||||
|
|
||||||
// Font size of the tab button text
|
// Font size of the tab button text
|
||||||
$tabs-wp-tab-font-size: 1.2rem !default;
|
$tabs-wp-tab-font-size: 1.2rem !default;
|
||||||
|
|
||||||
@ -29,11 +23,17 @@ $tabs-wp-tab-font-weight: normal !default;
|
|||||||
$tabs-wp-tab-opacity: .7 !default;
|
$tabs-wp-tab-opacity: .7 !default;
|
||||||
|
|
||||||
// Text color of the inactive tab button
|
// Text color of the inactive tab button
|
||||||
$tabs-wp-tab-color: rgba($toolbar-wp-color, $tabs-wp-tab-opacity) !default;
|
$tabs-wp-tab-color: rgba($toolbar-wp-inactive-color, $tabs-wp-tab-opacity) !default;
|
||||||
|
|
||||||
// Text color of the active tab button
|
// Text color of the active tab button
|
||||||
$tabs-wp-tab-color-active: $toolbar-wp-active-color !default;
|
$tabs-wp-tab-color-active: $toolbar-wp-active-color !default;
|
||||||
|
|
||||||
|
// Border on the inactive tab button (border-top when [tabsPlacement=bottom] and border-bottom when [tabsPlacement=top])
|
||||||
|
$tabs-wp-tab-border: 2px solid transparent !default;
|
||||||
|
|
||||||
|
// Border color on the active tab button (border-top when [tabsPlacement=bottom] and border-bottom when [tabsPlacement=top])
|
||||||
|
$tabs-wp-tab-border-color-active: $tabs-wp-tab-color-active !default;
|
||||||
|
|
||||||
// Background of the tab button when pressed
|
// Background of the tab button when pressed
|
||||||
$tabs-wp-tab-background-activated: rgba(0, 0, 0, .1) !default;
|
$tabs-wp-tab-background-activated: rgba(0, 0, 0, .1) !default;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user