mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
Tweak issue pane icon badge
This commit is contained in:
@@ -420,19 +420,13 @@ button[disabled].action:hover {
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
right: 8px;
|
||||
top: 8px;
|
||||
right: 7px;
|
||||
top: 9px;
|
||||
}
|
||||
|
||||
.icon-badge.hide {
|
||||
display: none;
|
||||
}
|
||||
.icon-badge.error {
|
||||
color: #f00;
|
||||
}
|
||||
.icon-badge.warning {
|
||||
color: #ff0;
|
||||
}
|
||||
|
||||
|
||||
/* Toolbar / Persistent UI Elements
|
||||
@@ -3021,11 +3015,17 @@ div.full-screen > button:hover {
|
||||
li.issue.severity-warning {
|
||||
border-color: #FFDF5C;
|
||||
}
|
||||
.icon-badge.warning {
|
||||
color: #FFDF5C;
|
||||
}
|
||||
.errors-list,
|
||||
.issue.severity-error,
|
||||
li.issue.severity-error {
|
||||
border-color: #f5b0ab;
|
||||
}
|
||||
.icon-badge.error {
|
||||
color: #ff0c05;
|
||||
}
|
||||
|
||||
.issue.severity-warning,
|
||||
.issue.severity-warning button,
|
||||
|
||||
@@ -47,18 +47,18 @@ export function uiIssues(context) {
|
||||
}*/
|
||||
|
||||
function addIconBadge(selection) {
|
||||
var d = 10;
|
||||
selection.selectAll('svg.icon-badge')
|
||||
.data([0])
|
||||
.enter()
|
||||
.append('svg')
|
||||
.attr('viewbox', '0 0 10 10')
|
||||
.attr('viewbox', '0 0 ' + d + ' ' + d)
|
||||
.attr('class', 'icon-badge')
|
||||
.append('circle')
|
||||
.attr('cx', '5')
|
||||
.attr('cy', '5')
|
||||
.attr('r', '5')
|
||||
.attr('fill', 'currentColor')
|
||||
.attr('stroke', '#333');
|
||||
.attr('cx', d / 2)
|
||||
.attr('cy', d / 2)
|
||||
.attr('r', (d / 2) - 1)
|
||||
.attr('fill', 'currentColor');
|
||||
}
|
||||
|
||||
function renderErrorsList(selection) {
|
||||
|
||||
Reference in New Issue
Block a user