Skip to content

Commit

Permalink
Fixes #65094: Stylehr in markup content for hover
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Dec 14, 2018
1 parent edd216e commit 6d83770
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vs/editor/contrib/hover/hover.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
margin: 8px 0;
}

.monaco-editor-hover hr {
margin-top: 4px;
margin-bottom: -6px;
margin-left: -10px;
margin-right: -10px;
height: 1px;
}

.monaco-editor-hover p:first-child,
.monaco-editor-hover ul:first-child {
margin-top: 0;
Expand Down
2 changes: 2 additions & 0 deletions src/vs/editor/contrib/hover/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ registerThemingParticipant((theme, collector) => {
if (hoverBorder) {
collector.addRule(`.monaco-editor .monaco-editor-hover { border: 1px solid ${hoverBorder}; }`);
collector.addRule(`.monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${hoverBorder.transparent(0.5)}; }`);
collector.addRule(`.monaco-editor .monaco-editor-hover hr { border-top: 1px solid ${hoverBorder.transparent(0.5)}; }`);
collector.addRule(`.monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid ${hoverBorder.transparent(0.5)}; }`);
}
const link = theme.getColor(textLinkForeground);
if (link) {
Expand Down

0 comments on commit 6d83770

Please sign in to comment.