Files
2015-04-25 10:59:09 -05:00

58 lines
1.4 KiB
SCSS

// iOS Toolbar
// --------------------------------------------------
$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-primary-item {
@include flex-order(2);
}
.toolbar-title {
@include flex-order(3);
font-size: $toolbar-ios-title-font-size;
text-align: center;
}
.toolbar-inner-title {
opacity: 0; // JS will set to 1 after adjusting alignment
}
.toolbar-secondary-item {
@include flex-order(4);
}
.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;
}
}