mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
toolbar updates
This commit is contained in:
@ -7,33 +7,23 @@ $toolbar-android-background: #f7f7f8 !default;
|
||||
|
||||
$toolbar-android-title-font-size: 1.7rem !default;
|
||||
$toolbar-android-button-font-size: 1.7rem !default;
|
||||
$toolbar-android-button-color: #007aff !default;
|
||||
$toolbar-android-button-text-color: #007aff !default;
|
||||
|
||||
|
||||
.toolbar-android {
|
||||
height: $toolbar-android-height;
|
||||
background: $toolbar-android-background;
|
||||
|
||||
.bar-spacer {
|
||||
@include flex(none);
|
||||
}
|
||||
|
||||
.bar-title {
|
||||
position: static;
|
||||
margin: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.button {
|
||||
font-size: $toolbar-android-button-font-size;
|
||||
color: $toolbar-android-button-color;
|
||||
color: $toolbar-android-button-text-color;
|
||||
border: none;
|
||||
|
||||
padding: 0;
|
||||
margin: 0 10px;
|
||||
|
||||
min-height: $toolbar-android-height;
|
||||
min-width: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,8 @@ $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-color: #007aff !default;
|
||||
$toolbar-ios-button-text-color: #007aff !default;
|
||||
$toolbar-ios-button-background-color: transparent !default;
|
||||
|
||||
|
||||
.toolbar-ios {
|
||||
@ -34,21 +35,33 @@ $toolbar-ios-button-color: #007aff !default;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.bar-title {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.bar-inner-title {
|
||||
font-size: $toolbar-ios-title-font-size;
|
||||
text-align: center;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.bar-spacer {
|
||||
@include flex(1);
|
||||
}
|
||||
|
||||
.button {
|
||||
font-size: $toolbar-ios-button-font-size;
|
||||
color: $toolbar-ios-button-color;
|
||||
color: $toolbar-ios-button-text-color;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0 10px;
|
||||
min-height: $toolbar-ios-height;
|
||||
min-width: 0;
|
||||
background: transparent;
|
||||
background: $toolbar-ios-button-background-color;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,12 +2,16 @@
|
||||
// Toolbar
|
||||
// --------------------------------------------------
|
||||
|
||||
$toolbar-background: #f7f7f8 !default;
|
||||
|
||||
|
||||
.toolbar {
|
||||
position: relative;
|
||||
@include flex-display();
|
||||
@include flex-direction(row);
|
||||
@include flex-align-items(center);
|
||||
@include flex-justify-content(space-between);
|
||||
background: $toolbar-background;
|
||||
}
|
||||
|
||||
.bar-top {
|
||||
@ -30,13 +34,11 @@
|
||||
@include flex-align-items(center);
|
||||
}
|
||||
|
||||
.bar-title {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
.bar-spacer {
|
||||
@include flex(none);
|
||||
}
|
||||
|
||||
.bar-title {
|
||||
@include flex-display();
|
||||
@include flex(1);
|
||||
@include flex-align-items(center);
|
||||
@ -57,6 +59,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.bar-spacer {
|
||||
@include flex(1);
|
||||
.toolbar .button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
Reference in New Issue
Block a user