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-title-font-size: 1.7rem !default;
|
||||||
$toolbar-android-button-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 {
|
.toolbar-android {
|
||||||
height: $toolbar-android-height;
|
height: $toolbar-android-height;
|
||||||
background: $toolbar-android-background;
|
background: $toolbar-android-background;
|
||||||
|
|
||||||
.bar-spacer {
|
|
||||||
@include flex(none);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bar-title {
|
|
||||||
position: static;
|
|
||||||
margin: 0;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
font-size: $toolbar-android-button-font-size;
|
font-size: $toolbar-android-button-font-size;
|
||||||
color: $toolbar-android-button-color;
|
color: $toolbar-android-button-text-color;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
|
|
||||||
min-height: $toolbar-android-height;
|
min-height: $toolbar-android-height;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
background: transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
// iOS Toolbar
|
// iOS Toolbar
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
$toolbar-ios-height: 4.4rem !default;
|
$toolbar-ios-height: 4.4rem !default;
|
||||||
$toolbar-ios-background: #f7f7f8 !default;
|
$toolbar-ios-background: #f7f7f8 !default;
|
||||||
$toolbar-ios-border-color: #c4c4c4 !default;
|
$toolbar-ios-border-color: #c4c4c4 !default;
|
||||||
|
|
||||||
$toolbar-ios-title-font-size: 1.7rem !default;
|
$toolbar-ios-title-font-size: 1.7rem !default;
|
||||||
$toolbar-ios-button-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 {
|
.toolbar-ios {
|
||||||
@ -34,21 +35,33 @@ $toolbar-ios-button-color: #007aff !default;
|
|||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bar-title {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.bar-inner-title {
|
.bar-inner-title {
|
||||||
font-size: $toolbar-ios-title-font-size;
|
font-size: $toolbar-ios-title-font-size;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bar-spacer {
|
||||||
|
@include flex(1);
|
||||||
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
font-size: $toolbar-ios-button-font-size;
|
font-size: $toolbar-ios-button-font-size;
|
||||||
color: $toolbar-ios-button-color;
|
color: $toolbar-ios-button-text-color;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
min-height: $toolbar-ios-height;
|
min-height: $toolbar-ios-height;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
background: transparent;
|
background: $toolbar-ios-button-background-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,16 @@
|
|||||||
// Toolbar
|
// Toolbar
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
$toolbar-background: #f7f7f8 !default;
|
||||||
|
|
||||||
|
|
||||||
.toolbar {
|
.toolbar {
|
||||||
position: relative;
|
position: relative;
|
||||||
@include flex-display();
|
@include flex-display();
|
||||||
@include flex-direction(row);
|
@include flex-direction(row);
|
||||||
@include flex-align-items(center);
|
@include flex-align-items(center);
|
||||||
@include flex-justify-content(space-between);
|
@include flex-justify-content(space-between);
|
||||||
|
background: $toolbar-background;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-top {
|
.bar-top {
|
||||||
@ -30,13 +34,11 @@
|
|||||||
@include flex-align-items(center);
|
@include flex-align-items(center);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-title {
|
.bar-spacer {
|
||||||
position: absolute;
|
@include flex(none);
|
||||||
top: 0;
|
}
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
|
|
||||||
|
.bar-title {
|
||||||
@include flex-display();
|
@include flex-display();
|
||||||
@include flex(1);
|
@include flex(1);
|
||||||
@include flex-align-items(center);
|
@include flex-align-items(center);
|
||||||
@ -57,6 +59,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-spacer {
|
.toolbar .button {
|
||||||
@include flex(1);
|
background: transparent;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user