mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 14:58:36 +08:00
56 lines
1.2 KiB
SCSS
56 lines
1.2 KiB
SCSS
|
|
// Material Design Tabs
|
|
// --------------------------------------------------
|
|
|
|
$tab-bar-md-item-padding: 12px 10px 4px 10px !default;
|
|
$tab-bar-md-item-font-size: 1.4rem !default;
|
|
$tab-bar-md-item-icon-size: 2.4rem !default;
|
|
$tab-bar-md-item-height: 4.8rem !default;
|
|
|
|
|
|
.tabs[mode=md] {
|
|
|
|
button.tab-button {
|
|
padding: $tab-bar-md-item-padding;
|
|
min-height: $tab-bar-md-item-height;
|
|
font-size: $tab-bar-md-item-font-size;
|
|
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
button.tab-button[aria-selected="true"] {
|
|
border-bottom-color: $tab-button-text-active;
|
|
}
|
|
|
|
.tab-button-text {
|
|
margin-top: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tab-button-icon {
|
|
font-size: $tab-bar-md-item-icon-size;
|
|
min-width: $tab-bar-md-item-icon-size + 5;
|
|
}
|
|
|
|
}
|
|
|
|
[mode=md][tab-bar-icons=bottom] button.tab-button {
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
}
|
|
[mode=md][tab-bar-icons=right] button.tab-button,
|
|
[mode=md][tab-bar-icons=left] button.tab-button {
|
|
padding-bottom: 10px;
|
|
|
|
icon {
|
|
min-width: 24px;
|
|
}
|
|
}
|
|
|
|
[mode=md] button.tab-button.icon-only,
|
|
[mode=md] button.tab-button.has-title-only {
|
|
padding: 8px 10px;
|
|
}
|