mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
84 lines
1.4 KiB
SCSS
84 lines
1.4 KiB
SCSS
|
|
// Toolbar
|
|
// --------------------------------------------------
|
|
|
|
$toolbar-background: #f7f7f8 !default;
|
|
$toolbar-order: (
|
|
back-button: 10,
|
|
title: 20,
|
|
primary: 30,
|
|
secondary: 40
|
|
);
|
|
|
|
|
|
.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 {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
ion-toolbar back-button.toolbar-item {
|
|
order: map-get($toolbar-order, 'back-button');
|
|
}
|
|
|
|
.toolbar-title {
|
|
flex: 1;
|
|
order: map-get($toolbar-order, 'title');
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 0 2px;
|
|
}
|
|
|
|
// buttons are primary by default
|
|
ion-toolbar .button,
|
|
ion-toolbar [side="primary"] {
|
|
order: map-get($toolbar-order, 'primary');
|
|
}
|
|
|
|
ion-toolbar [side="secondary"] {
|
|
order: map-get($toolbar-order, 'secondary');
|
|
}
|
|
|
|
ion-title {
|
|
display: block;
|
|
|
|
// used to notify JS when the title has been rendered
|
|
animation-duration: 1ms;
|
|
animation-name: nodeInserted;
|
|
}
|
|
|
|
.toolbar-inner-title {
|
|
width: 100%;
|
|
padding: 0 15px;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.toolbar .button {
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
.toolbar-title-hide {
|
|
opacity: 0;
|
|
}
|