// Tabs // -------------------------------------------------- $tab-bar-background-color: $toolbar-background-color !default; $tab-button-text-active: $toolbar-active-color !default; $tab-button-text-inactive: $toolbar-inactive-color !default; $tab-button-padding: 10px !default; $tab-button-min-width: 80px !default; $tab-button-max-width: 160px !default; 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-view { 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; margin: 0; padding: $tab-button-padding; min-width: $tab-button-min-width; max-width: $tab-button-max-width; text-align: center; cursor: pointer; @include user-select-none(); color: $tab-button-text-inactive; border: 0; border-radius: 0; background: none; } [tab-bar-icons="bottom"] button.tab-button { .tab-button-icon { order: 10; } } [tab-bar-icons="left"] button.tab-button { flex-direction: row; .tab-button-icon { text-align: right; padding-right: 8px; } } [tab-bar-icons="right"] button.tab-button { flex-direction: row; .tab-button-icon { order: 10; text-align: left; padding-left: 8px; } } .tab-button-text { margin-top: 3px; margin-bottom: 2px; } .tab-button-text, .tab-button-icon { align-self: center; min-width: 26px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: none; } .has-icon .tab-button-icon, .has-title .tab-button-text { display: block; } .has-title-only .tab-button-text { white-space: normal; } button.tab-button[aria-selected="true"] { color: $toolbar-active-color; }