fix toolbar title flickr

This commit is contained in:
Adam Bradley
2015-05-16 22:38:43 -05:00
parent c100bf9604
commit 44a06bea2f
9 changed files with 67 additions and 30 deletions

View File

@@ -1,6 +1,14 @@
// Util Mixins/Functions
// Appearance (not a CSS standard, does not autoprefix)
// --------------------------------------------------
@mixin appearance($val) {
-webkit-appearance: $val;
-moz-appearance: $val;
}
// String Replace Function
// --------------------------------------------------

View File

@@ -95,6 +95,6 @@ $content-padding: 10px !default;
// http://davidwalsh.name/detect-node-insertion
@keyframes nodeInserted {
from { opacity: 0.99; }
to { opacity: 1; }
from { transform: scale(0.999); }
to { transform: scale(1); }
}

View File

@@ -36,7 +36,7 @@ $button-small-icon-size: 2.1rem !default;
margin: $button-margin;
line-height: 1;
appearance: none;
@include appearance(none);
vertical-align: top; // the better option for most scenarios
vertical-align: -webkit-baseline-middle; // the best for those that support it

View File

@@ -48,7 +48,7 @@ textarea {
input {
border-radius: 0;
flex: 1 220px;
appearance: none;
@include appearance(none);
margin: 0;
padding-right: 24px;
background-color: transparent;
@@ -66,7 +66,7 @@ textarea {
.button-bar {
border-radius: 0;
flex: 1 0 220px;
appearance: none;
@include appearance(none);
}
.icon {

View File

@@ -21,7 +21,7 @@ ion-input {
border-radius: 0;
flex: 1 220px;
appearance: none;
@include appearance(none);
margin: 0;
padding-right: 24px;

View File

@@ -26,7 +26,7 @@ $search-bar-min-height: 44px !default;
height: 100%;
border: none;
font-family: inherit;
appearance: none;
@include appearance(none);
}
.search-bar-cancel {

View File

@@ -36,10 +36,10 @@ export class Toolbar {
this.config = Toolbar.config.invoke(this);
// http://davidwalsh.name/detect-node-insertion
this.domElement.addEventListener("animationstart", (ev) => {
ev.stopPropagation();
dom.animationStart(this.domElement, 'nodeInserted').then(() => {
this.alignTitle();
});
}
alignTitle() {

View File

@@ -51,7 +51,7 @@ ion-title {
display: block;
// used to notify JS when the title has been rendered
animation-duration: 0.001s;
animation-duration: 1ms;
animation-name: nodeInserted;
}