// Toolbar // -------------------------------------------------- $toolbar-order: ( backButton: 10, title: 20, primary: 30, secondary: 40 ); $toolbar-background: $placeholder-background !default; $toolbar-button-text-color: #007aff !default; $toolbar-title-text-color: #000 !default; .toolbar { position: relative; z-index: $z-index-toolbar; width: 100%; height: 100%; min-height: 4.4rem; padding: 4px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; order: $flex-order-toolbar-top; flex: 0; background-color: $toolbar-background; button, [button] { color: $toolbar-button-text-color; box-shadow: none; } } .toolbar[position="bottom"] { order: $flex-order-toolbar-bottom; } .toolbar-inner { display: flex; width: 100%; } .toolbar-title { flex: 1; order: map-get($toolbar-order, title); display: flex; align-items: center; transform: translateZ(0px); } .toolbar-inner-title { width: 100%; padding: 0 1.5rem; } ion-title { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .toolbar-item { transform: translateZ(0px); } .toolbar-primary-item { order: map-get($toolbar-order, primary); } .toolbar-secondary-item { order: map-get($toolbar-order, secondary); } // Toolbar Color Generation // -------------------------------------------------- @each $color, $value in $colors { .toolbar[#{$color}] { background-color: get-color($color, base); ion-title, button, [button] { color: get-color($color, inverse); } } }