Files
Adam Bradley f1a61cb4d5 test updates
2015-06-19 15:57:35 -05:00

141 lines
2.2 KiB
SCSS

// Tabs
// --------------------------------------------------
$tab-bar-background-color: #f7f7f8 !default;
$tab-button-padding: 10px !default;
$tab-button-min-width: 80px !default;
$tab-button-max-width: 160px !default;
ion-tabs-view {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
display: none;
&.show-view {
display: flex;
}
}
ion-tabs {
display: flex;
flex-direction: column;
overflow: hidden;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
margin: 0;
padding: 0;
}
ion-tab {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
flex-direction: column;
display: none;
&.show-tab {
display: flex;
}
}
.tab-bar-container {
position: relative;
order: $flex-order-tab-bar-bottom;
}
[tab-bar-placement="top"] > .tab-bar-container {
order: $flex-order-tab-bar-top;
}
.tab-bar {
display: flex;
justify-content: center;
overflow: hidden;
background: $tab-bar-background-color;
}
button.tab-button {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1;
align-self: center;
align-items: center;
padding: $tab-button-padding;
min-width: $tab-button-min-width;
max-width: $tab-button-max-width;
text-align: center;
cursor: pointer;
user-select: none;
border: 0;
background: none;
}
[tab-bar-icons="bottom"] > .tab-bar-container button.tab-button {
.tab-button-icon {
order: 10;
}
}
[tab-bar-icons="left"] > .tab-bar-container button.tab-button {
flex-direction: row;
.tab-button-icon {
text-align: right;
padding-right: 5px;
}
}
[tab-bar-icons="right"] > .tab-bar-container button.tab-button {
flex-direction: row;
.tab-button-icon {
order: 10;
text-align: left;
padding-left: 5px;
}
}
.tab-button-text,
.tab-button-icon {
align-self: center;
min-width: 26px;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.tab-bar-icon-only .tab-button-text,
.tab-bar-text-only .tab-button-icon {
display: none;
}
button.tab-button:hover {
opacity: 0.6;
}
button.tab-button[aria-selected="true"] {
color: red;
}