mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
65 lines
1.6 KiB
SCSS
65 lines
1.6 KiB
SCSS
|
|
// iOS Toolbar
|
|
// --------------------------------------------------
|
|
$toolbar-order-ios: (
|
|
back-button: 1,
|
|
primary: 2,
|
|
title: 3,
|
|
secondary: 4
|
|
);
|
|
|
|
$toolbar-ios-height: 4.4rem !default;
|
|
$toolbar-ios-background: #f7f7f8 !default;
|
|
$toolbar-ios-border-color: #c4c4c4 !default;
|
|
|
|
$toolbar-ios-title-font-size: 1.7rem !default;
|
|
$toolbar-ios-button-font-size: 1.7rem !default;
|
|
$toolbar-ios-button-text-color: #007aff !default;
|
|
$toolbar-ios-button-background-color: transparent !default;
|
|
|
|
|
|
.toolbar-ios {
|
|
height: $toolbar-ios-height;
|
|
background: $toolbar-ios-background;
|
|
|
|
.toolbar [side="primary"] {
|
|
@include flex-order(map-get($toolbar-order-ios, 'primary'));
|
|
}
|
|
.toolbar [side="secondary"] {
|
|
@include flex-order(map-get($toolbar-order-ios, 'secondary'));
|
|
}
|
|
.toolbar-title {
|
|
@include flex-order(map-get($toolbar-order-ios, 'title'));
|
|
font-size: $toolbar-ios-title-font-size;
|
|
text-align: center;
|
|
}
|
|
.toolbar-back-button {
|
|
@include flex-order(map-get($toolbar-order-ios, 'back-button'));
|
|
}
|
|
|
|
.toolbar-title-hide {
|
|
opacity: 0;
|
|
}
|
|
|
|
.button {
|
|
font-size: $toolbar-ios-button-font-size;
|
|
color: $toolbar-ios-button-text-color;
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0 10px;
|
|
min-height: $toolbar-ios-height;
|
|
min-width: 0;
|
|
background: $toolbar-ios-button-background-color;
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
|
|
}
|