Use standard kbd styling for keys in help documentation

This commit is contained in:
Quincy Morgan
2020-06-29 11:33:47 -04:00
parent 9cdc89d8dc
commit af4aca14b2
2 changed files with 2 additions and 13 deletions
-13
View File
@@ -3746,19 +3746,6 @@ li.issue-fix-item:not(.actionable) .fix-icon {
margin-bottom: 20px;
}
.help-pane .left-content .body p code {
padding: 3px 4px;
font-size: 12px;
color: #555;
vertical-align: baseline;
background-color: #f6f6f6;
border: solid 1px #ccc;
margin: 0 2px;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.help-pane .left-content .icon.pre-text {
vertical-align: text-top;
margin-right: 0;
+2
View File
@@ -271,6 +271,8 @@ export function uiPaneHelp(context) {
return {
title: t(helpkey + '.title'),
html: marked(text.trim())
.replace(/<code>/g, '<kbd>')
.replace(/<\/code>/g, '<\/kbd>')
};
});