Files
ionic-framework/src/components/tabs/tabs.scss
Brandy Carney 41064bf2be refactor(tabs): rename tab input/config options to be more clear/consistent
BREAKING CHANGES:

Tab input/config options have been renamed. The following options were
renamed:

- `tabbarHighlight` -> `tabsHighlight`
- `tabbarLayout` -> `tabsLayout`
- `tabSubPages` -> `tabsHideOnSubPages`
- `tabbarPlacement` -> `tabsPlacement`

The previous names have been deprecated. They will still work in the
current release but will be removed in the future so please update to
the new names.

references #7143
2016-07-07 13:09:00 -04:00

140 lines
1.9 KiB
SCSS

@import "../../globals.core";
// Tabs
// --------------------------------------------------
.tab-button {
@include user-select-none();
position: relative;
z-index: 0;
display: flex;
overflow: hidden;
flex: 1;
flex-direction: column;
align-items: center;
align-self: center;
justify-content: center;
margin: 0;
border: 0;
border-radius: 0;
text-align: center;
text-decoration: none;
background: none;
cursor: pointer;
}
.tab-disabled {
pointer-events: none;
ion-badge,
ion-icon,
span {
opacity: .4;
}
}
.tab-hidden {
display: none;
}
.tab-button-text {
margin-top: 3px;
margin-bottom: 2px;
}
.tab-button-text,
.tab-button-icon {
display: none;
overflow: hidden;
align-self: center;
min-width: 26px;
max-width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
}
.has-icon .tab-button-icon,
.has-title .tab-button-text {
display: block;
}
.has-title-only .tab-button-text {
white-space: normal;
}
tab-highlight {
display: none;
}
[tabsLayout=icon-bottom] .tab-button {
.tab-button-icon {
order: 10;
}
}
[tabsLayout=icon-left] .tab-button {
flex-direction: row;
.tab-button-icon {
padding-right: 8px;
text-align: right;
}
}
[tabsLayout=icon-right] .tab-button {
flex-direction: row;
.tab-button-icon {
order: 10;
padding-left: 8px;
text-align: left;
}
}
[tabsLayout=icon-hide] .tab-button-icon {
display: none;
}
[tabsLayout=title-hide] .tab-button-text {
display: none;
}
// Tab Badges
// --------------------------------------------------
.tab-badge {
position: absolute;
top: 6%;
right: 4%;
right: calc(50% - 50px);
padding: 1px 6px;
height: auto;
font-size: 12px;
line-height: 16px;
}
.has-icon .tab-badge {
right: calc(50% - 30px);
}
[tabsLayout=icon-bottom] .tab-badge,
[tabsLayout=icon-left] .tab-badge,
[tabsLayout=icon-right] .tab-badge {
right: calc(50% - 50px);
}