This commit is contained in:
Saman Bemel-Benrud
2013-03-28 14:18:49 -04:00
parent 2e3dde2d63
commit 95f1bfe352
5 changed files with 13 additions and 20 deletions
+6 -13
View File
@@ -742,28 +742,21 @@ a.selected:hover .toggle.icon { background-position: -40px -180px;}
top: 3px;
}
.preset-grid-search-wrap {
border-bottom: 1px solid #ccc;
}
.preset-grid-search-wrap .icon {
display: block;
position: absolute;
left: 10px;
top: 20px;
top: 80px;
pointer-events: none;
}
.preset-grid-search-wrap input {
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: 0;
border: 0;
text-indent: 30px;
height: 100%;
position: absolute;
top: 60px;
border-radius: 0;
border-width: 0;
border-bottom-width: 1px;
text-indent: 30px;
}
.preset-search-result {
+1 -1
View File
@@ -49,7 +49,7 @@ iD.ui = function(context) {
container.append('div')
.style('display', 'none')
.attr('class', 'help-wrap fillL col5');
.attr('class', 'help-wrap fillL col5 content');
container.append('div')
.attr('class', 'map-control zoombuttons')
+1 -1
View File
@@ -148,7 +148,7 @@ iD.ui.Background = function(context) {
}
var content = selection.append('div')
.attr('class', 'fillL map-overlay hide'),
.attr('class', 'fillL map-overlay content hide'),
tooltip = bootstrap.tooltip()
.placement('right')
.html(true)
+1 -1
View File
@@ -115,7 +115,7 @@ iD.ui.Geocoder = function(context) {
var gcForm = selection.append('form');
var inputNode = gcForm.attr('class', 'fillL map-overlay hide')
var inputNode = gcForm.attr('class', 'fillL map-overlay content hide')
.append('input')
.attr({ type: 'text', placeholder: t('geocoder.placeholder') })
.attr('tabindex', 1)
+4 -4
View File
@@ -47,9 +47,6 @@ iD.ui.PresetGrid = function(context, entity) {
grid.call(drawGrid, defaultLimit);
var searchwrap = selection.append('div')
.attr('class', 'preset-grid-search-wrap inspector-inner');
function keydown() {
// hack to let delete shortcut work when search is autofocused
if (search.property('value').length === 0 &&
@@ -92,8 +89,11 @@ iD.ui.PresetGrid = function(context, entity) {
}
}
var searchwrap = selection.append('div')
.attr('class', 'preset-grid-search-wrap');
var search = searchwrap.append('input')
.attr('class', 'preset-grid-search major')
.attr('class', 'major')
.attr('placeholder','Search')
.attr('type', 'search')
.on('keydown', keydown)