mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
62 lines
882 B
SCSS
62 lines
882 B
SCSS
|
|
// Navbar
|
|
// --------------------------------------------------
|
|
|
|
$toolbar-order: (
|
|
title: 20,
|
|
primary: 30,
|
|
secondary: 40
|
|
);
|
|
|
|
|
|
ion-toolbar {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
}
|
|
|
|
.toolbar-inner {
|
|
width: 100%;
|
|
}
|
|
|
|
.toolbar-title {
|
|
flex: 1;
|
|
order: map-get($toolbar-order, 'title');
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 0 2px;
|
|
}
|
|
|
|
.toolbar-primary-item {
|
|
order: map-get($toolbar-order, 'primary');
|
|
}
|
|
|
|
.toolbar-secondary-item {
|
|
order: map-get($toolbar-order, 'secondary');
|
|
}
|
|
|
|
ion-toolbar ion-title {
|
|
display: block;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.toolbar-inner-title {
|
|
width: 100%;
|
|
padding: 0 15px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.toolbar button,
|
|
.toolbar [button] {
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
.toolbar-title-hide {
|
|
opacity: 0;
|
|
}
|