mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
style improvements to details button
This commit is contained in:
+3
-4
@@ -451,12 +451,11 @@ button.Browse .label {
|
||||
}
|
||||
|
||||
.inspector-toggle {
|
||||
padding:10px;
|
||||
text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
|
||||
text-align:center;
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background:#7092ff;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.inspector-body {
|
||||
|
||||
@@ -198,19 +198,20 @@ iD.Inspector = function() {
|
||||
inspectorbody.style('display', 'none')
|
||||
.style('margin-top', (-inHeight) + 'px');
|
||||
|
||||
var inspectortoggle = selection.append('div')
|
||||
.attr('class', 'inspector-toggle')
|
||||
.text('Details')
|
||||
var inspectortoggle = selection.append('button')
|
||||
.attr('class', 'inspector-toggle action')
|
||||
.on('click', function() {
|
||||
inspectortoggle.style('display', 'none');
|
||||
inspectorbody
|
||||
.style('display', 'block')
|
||||
.transition()
|
||||
.style('margin-top', '0px');
|
||||
});
|
||||
|
||||
})
|
||||
formsel.select('input').node().focus();
|
||||
|
||||
inspectortoggle.append('span')
|
||||
.text('Details')
|
||||
.attr('class','label');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user