mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 11:16:36 +02:00
headings - more appropriate h2's and disclosure h3
This commit is contained in:
@@ -81,6 +81,13 @@ h2 {
|
||||
font-weight: bold;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.header h2,
|
||||
.modal-section h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.25;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h3:last-child,
|
||||
h2:last-child,
|
||||
|
||||
@@ -220,7 +220,7 @@ export function uiCommit(context) {
|
||||
|
||||
headerTitle
|
||||
.append('div')
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('commit.title'));
|
||||
|
||||
headerTitle
|
||||
|
||||
@@ -65,7 +65,7 @@ export function uiConflicts(context) {
|
||||
.call(svgIcon('#iD-icon-close'));
|
||||
|
||||
headerEnter
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('save.conflict.header'));
|
||||
|
||||
var bodyEnter = selection.selectAll('.body')
|
||||
|
||||
@@ -33,7 +33,7 @@ export function uiDataEditor(context) {
|
||||
.call(svgIcon('#iD-icon-close'));
|
||||
|
||||
headerEnter
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('map_data.title'));
|
||||
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ export function uiDisclosure(context, key, expandedDefault) {
|
||||
|
||||
// enter
|
||||
var hideToggleEnter = hideToggle.enter()
|
||||
.append('h3')
|
||||
.append('a')
|
||||
.attr('role', 'button')
|
||||
.attr('href', '#')
|
||||
|
||||
@@ -58,13 +58,13 @@ export function uiEntityEditor(context) {
|
||||
.call(svgIcon(_modified ? '#iD-icon-apply' : '#iD-icon-close'));
|
||||
|
||||
headerEnter
|
||||
.append('h3');
|
||||
.append('h2');
|
||||
|
||||
// Update
|
||||
header = header
|
||||
.merge(headerEnter);
|
||||
|
||||
header.selectAll('h3')
|
||||
header.selectAll('h2')
|
||||
.html(_entityIDs.length === 1 ? t.html('inspector.edit') : t.html('inspector.edit_features'));
|
||||
|
||||
header.selectAll('.preset-reset')
|
||||
|
||||
@@ -33,7 +33,7 @@ export function uiFeatureList(context) {
|
||||
.attr('class', 'header fillL');
|
||||
|
||||
header
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('inspector.feature_list'));
|
||||
|
||||
var searchWrap = selection
|
||||
|
||||
@@ -36,7 +36,7 @@ export function uiImproveOsmEditor(context) {
|
||||
.call(svgIcon('#iD-icon-close'));
|
||||
|
||||
headerEnter
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('QA.improveOSM.title'));
|
||||
|
||||
let body = selection.selectAll('.body')
|
||||
|
||||
@@ -35,7 +35,7 @@ export function uiKeepRightEditor(context) {
|
||||
.call(svgIcon('#iD-icon-close'));
|
||||
|
||||
headerEnter
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('QA.keepRight.title'));
|
||||
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ export function uiNoteEditor(context) {
|
||||
.call(svgIcon('#iD-icon-close'));
|
||||
|
||||
headerEnter
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('note.title'));
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export function uiOsmoseEditor(context) {
|
||||
.call(svgIcon('#iD-icon-close'));
|
||||
|
||||
headerEnter
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('QA.osmose.title'));
|
||||
|
||||
let body = selection.selectAll('.body')
|
||||
|
||||
@@ -34,7 +34,7 @@ export function uiPresetList(context) {
|
||||
.attr('class', 'header fillL');
|
||||
|
||||
var message = messagewrap
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('inspector.choose'));
|
||||
|
||||
var direction = (localizer.textDirection() === 'rtl') ? 'backward' : 'forward';
|
||||
|
||||
@@ -26,7 +26,7 @@ export function uiShortcuts(context) {
|
||||
content
|
||||
.append('div')
|
||||
.attr('class', 'modal-section')
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('shortcuts.title'));
|
||||
|
||||
fileFetcher.get('shortcuts')
|
||||
|
||||
@@ -81,7 +81,7 @@ export function uiSuccess(context) {
|
||||
.attr('class', 'header fillL');
|
||||
|
||||
header
|
||||
.append('h3')
|
||||
.append('h2')
|
||||
.html(t.html('success.just_edited'));
|
||||
|
||||
header
|
||||
|
||||
Reference in New Issue
Block a user