mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
66 lines
1.2 KiB
SCSS
66 lines
1.2 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: $toolbar-border-color !default;
|
|
$toolbar-ios-button-font-size: 1.7rem !default;
|
|
$toolbar-ios-title-font-size: 1.7rem !default;
|
|
|
|
|
|
.nav[mode=ios] .toolbar,
|
|
.toolbar[mode=ios] {
|
|
border-bottom-width: 1px;
|
|
border-bottom-style: solid;
|
|
min-height: $toolbar-ios-height;
|
|
|
|
.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;
|
|
margin-top: -2px;
|
|
}
|
|
|
|
.back-button {
|
|
order: map-get($toolbar-order-ios, 'back-button');
|
|
overflow: inherit;
|
|
}
|
|
|
|
button,
|
|
[button] {
|
|
font-size: $toolbar-ios-button-font-size;
|
|
}
|
|
|
|
[icon] {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.back-button-icon {
|
|
padding-right: 0.6rem;
|
|
}
|
|
|
|
}
|
|
|
|
.hairlines .toolbar[mode=ios] {
|
|
border-bottom-width: 0.55px;
|
|
}
|