// Toolbar // -------------------------------------------------- $toolbar-background: #f7f7f8 !default; $toolbar-order-core: ( back-button: 1, title: 2, primary: 3, secondary: 4 ); $toolbar-primary-flex-order: 1; $toolbar-primary-flex-order: 1; $toolbar-title-flex-order: 5; $toolbar-secondary-flex-order: 10; .toolbar-container { background: $toolbar-background; } ion-toolbar { flex-direction: row; align-items: center; justify-content: space-between; // by default ion-toolbar is display:none and // the transition animation will add the show class display: none; &.show-toolbar { display: flex; } } .toolbar-inner { width: 100%; } // buttons are primary by default ion-toolbar .button, ion-toolbar [side="primary"] { order: map-get($toolbar-order-core, 'primary'); } ion-toolbar [side="secondary"] { order: map-get($toolbar-order-core, 'secondary'); } ion-title { display: block; // used to notify JS when the title has been rendered animation-duration: 0.001s; animation-name: nodeInserted; } .toolbar-inner-title { width: 100%; padding: 0 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .toolbar-back-button { order: map-get($toolbar-order-core, 'back-button'); } .toolbar .button { background: transparent; border: none; } .toolbar-title-hide { opacity: 0; }