better animation for modals.

This commit is contained in:
Saman Bemel-Benrud
2013-03-26 18:45:20 -04:00
parent 5ddc8b8a69
commit 6ddccb23e0
4 changed files with 8 additions and 4 deletions

View File

@@ -1785,7 +1785,6 @@ div.typeahead a:first-child {
left: 0;
right: 0;
margin: auto;
top: 30px;
z-index: 3;
}

View File

@@ -36,6 +36,11 @@ iD.ui.modal = function(selection, blocking) {
if (animate) {
shaded.transition().style('opacity', 1);
modal
.style('top','0px')
.transition()
.duration(200)
.style('top','40px')
} else {
shaded.style('opacity', 1);
}

View File

@@ -1,7 +1,7 @@
iD.ui.Splash = function(context) {
return function(selection) {
// if (context.storage('sawSplash'))
// return;
if (context.storage('sawSplash'))
return;
context.storage('sawSplash', true);

View File

@@ -68,7 +68,7 @@ iD.ui.TagEditor = function(context, entity) {
.call(presetUI);
editorwrap.append('div')
.attr('class', 'inspector-inner col12 fillL2 additional-tags')
.attr('class', 'inspector-inner col12 additional-tags')
.call(tagList, preset.id === 'other');
if (!entity.isNew()) {