mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
92 lines
1.7 KiB
SCSS
92 lines
1.7 KiB
SCSS
@import "../../../ionic.globals";
|
|
@import "../tabs";
|
|
|
|
// Material Design Tabs
|
|
// --------------------------------------------------
|
|
|
|
$tabbar-md-item-padding: 12px 10px 5px 10px !default;
|
|
$tabbar-md-item-font-size: 1.4rem !default;
|
|
$tabbar-md-item-font-weight: 500 !default;
|
|
$tabbar-md-item-icon-size: 2.4rem !default;
|
|
$tabbar-md-item-height: 4.8rem !default;
|
|
|
|
|
|
.tab-button {
|
|
padding: $tabbar-md-item-padding;
|
|
min-height: $tabbar-md-item-height;
|
|
font-size: $tabbar-md-item-font-size;
|
|
font-weight: $tabbar-md-item-font-weight;
|
|
opacity: 0.7;
|
|
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
border-bottom: 2px solid transparent;
|
|
|
|
&[aria-selected=true] {
|
|
opacity: 1.0;
|
|
}
|
|
}
|
|
|
|
.tab-button-text {
|
|
margin-top: 5px;
|
|
margin-bottom: 5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.tab-button-icon {
|
|
font-size: $tabbar-md-item-icon-size;
|
|
min-width: $tabbar-md-item-icon-size + 5;
|
|
}
|
|
|
|
[tabbar-icons=bottom] .tab-button {
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
[tabbar-icons=right] .tab-button,
|
|
[tabbar-icons=left] .tab-button {
|
|
padding-bottom: 10px;
|
|
|
|
icon {
|
|
min-width: 24px;
|
|
}
|
|
}
|
|
|
|
.tab-button.icon-only,
|
|
.tab-button.has-title-only {
|
|
padding: 6px 10px 6px 10px;
|
|
}
|
|
|
|
tab-highlight {
|
|
position: absolute;
|
|
display: block;
|
|
height: 2px;
|
|
width: 1px;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: $tab-button-active-color;
|
|
transform-origin: 0 0;
|
|
transform: translateZ(0);
|
|
|
|
&.animate {
|
|
transition-duration: 300ms;
|
|
}
|
|
}
|
|
|
|
[tabbar-placement=bottom] tab-highlight {
|
|
top: 0;
|
|
}
|
|
|
|
|
|
@each $color-name, $color-value in $colors {
|
|
|
|
tabbar[#{$color-name}] {
|
|
|
|
tab-highlight {
|
|
background: inverse($color-value);
|
|
}
|
|
|
|
}
|
|
|
|
}
|