mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
65 lines
1.4 KiB
SCSS
65 lines
1.4 KiB
SCSS
|
|
// 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;
|
|
|
|
|
|
ion-toolbar {
|
|
/*@include flex-display();
|
|
@include flex-direction(row);
|
|
@include flex-align-items(center);
|
|
@include flex-justify-content(space-between);*/
|
|
background: $toolbar-background;
|
|
|
|
// by default ion-toolbar is hidden
|
|
// and the transition animation will display it
|
|
display: none;
|
|
}
|
|
|
|
// buttons are primary by default
|
|
ion-toolbar .button,
|
|
ion-toolbar [side="primary"] {
|
|
@include flex-order(map-get($toolbar-order-core, 'primary'));
|
|
}
|
|
|
|
ion-toolbar [side="secondary"] {
|
|
@include flex-order(map-get($toolbar-order-core, 'secondary'));
|
|
}
|
|
|
|
.toolbar-title.toolbar-title {
|
|
// double selector to override the following
|
|
@include flex-display();
|
|
@include flex(1);
|
|
@include flex-order(map-get($toolbar-order-core, 'title'));
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.toolbar-inner-title {
|
|
width: 100%;
|
|
padding: 0 15px;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.toolbar-back-button {
|
|
@include flex-order(map-get($toolbar-order-core, 'back-button'));
|
|
}
|
|
|
|
.toolbar .button {
|
|
background: transparent;
|
|
border: none;
|
|
}
|