mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
77 lines
1.4 KiB
SCSS
77 lines
1.4 KiB
SCSS
|
|
// iOS Toolbar
|
|
// --------------------------------------------------
|
|
|
|
$toolbar-order-ios: (
|
|
back-button: 10,
|
|
primary: 20,
|
|
title: 30,
|
|
secondary: 40
|
|
);
|
|
|
|
$toolbar-ios-height: 4.4rem !default;
|
|
$toolbar-ios-border-color: #c4c4c4 !default;
|
|
$toolbar-ios-button-font-size: 1.7rem !default;
|
|
$toolbar-ios-title-font-size: 1.7rem !default;
|
|
|
|
|
|
.nav[mode="ios"] .toolbar-container {
|
|
min-height: $toolbar-ios-height;
|
|
|
|
// toolbar on top, border on bottom (default)
|
|
@include hairline(bottom, $toolbar-ios-border-color);
|
|
|
|
|
|
// toolbar on bottom, border on top
|
|
&.toolbar-bottom:after {
|
|
top: 0;
|
|
bottom: auto;
|
|
}
|
|
}
|
|
|
|
.toolbar[mode="ios"] {
|
|
|
|
.toolbar-title {
|
|
order: map-get($toolbar-order-ios, title);
|
|
}
|
|
|
|
.toolbar-primary-item {
|
|
order: map-get($toolbar-order-ios, primary);
|
|
}
|
|
|
|
.toolbar-secondary-item {
|
|
order: map-get($toolbar-order-ios, secondary);
|
|
}
|
|
|
|
ion-title {
|
|
font-size: $toolbar-ios-title-font-size;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
|
|
.back-button {
|
|
order: map-get($toolbar-order-ios, 'back-button');
|
|
overflow: inherit;
|
|
}
|
|
|
|
button,
|
|
[button] {
|
|
padding: 0;
|
|
margin: 0 1rem;
|
|
|
|
min-width: 0;
|
|
min-height: $toolbar-ios-height;
|
|
|
|
font-size: $toolbar-ios-button-font-size;
|
|
}
|
|
|
|
[icon] {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.back-button-icon {
|
|
padding-right: 0.6rem;
|
|
}
|
|
|
|
}
|