Improve analysis tab CSS
There are some ways the look of the analysis tab can be polished: - Properly right-align the length header (it had extra margins required for the sorting arrows in the data tab) - Use the same font size for table header and body (like in the data tab) - Improve padding of the totals row (to align with the rows above) - Add missing style for headings, so they look more balanced (the CSS was already there, but the wrong class was used in the HTML) - Fine-tune vertical spacing (to help visual grouping) - Remove unused and redundant CSS - Do not show yellow hover effect over table header
This commit is contained in:
parent
9d648fc1d7
commit
8ca92e260d
2 changed files with 20 additions and 18 deletions
|
|
@ -226,11 +226,17 @@ BR.TrackAnalysis = L.Class.extend({
|
|||
var $content = $('#track_statistics');
|
||||
|
||||
$content.html('');
|
||||
$content.append($('<h4 class="analysis-heading">' + i18next.t('sidebar.analysis.header.highway') + '</h4>'));
|
||||
$content.append(
|
||||
$('<h4 class="track-analysis-heading">' + i18next.t('sidebar.analysis.header.highway') + '</h4>')
|
||||
);
|
||||
$content.append(this.renderTable('highway', analysis.highway));
|
||||
$content.append($('<h4 class="analysis-heading">' + i18next.t('sidebar.analysis.header.surface') + '</h4>'));
|
||||
$content.append(
|
||||
$('<h4 class="track-analysis-heading">' + i18next.t('sidebar.analysis.header.surface') + '</h4>')
|
||||
);
|
||||
$content.append(this.renderTable('surface', analysis.surface));
|
||||
$content.append($('<h4 class="analysis-heading">' + i18next.t('sidebar.analysis.header.smoothness') + '</h4>'));
|
||||
$content.append(
|
||||
$('<h4 class="track-analysis-heading">' + i18next.t('sidebar.analysis.header.smoothness') + '</h4>')
|
||||
);
|
||||
$content.append(this.renderTable('smoothness', analysis.smoothness));
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue