Skip to content

Commit 7cb3d03

Browse files
committed
feat(extra[vscode]): add CSS for the TypeScript linting plugin
1 parent cafbde9 commit 7cb3d03

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

extra/vscode/css/typescript.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* Allow copying */
2+
.codicon-none {
3+
user-select: text !important;
4+
-webkit-user-select: text !important;
5+
}
6+
7+
/* Hide errors */
8+
div.monaco-hover-content:has(.codicon-none) > .hover-row:first-child {
9+
display: none !important;
10+
}
11+
div.monaco-hover-content:has([style="color:#f96363;"])
12+
> .hover-row:first-child {
13+
display: none !important;
14+
}
15+
16+
/* Change order */
17+
.monaco-hover .monaco-hover-content {
18+
display: flex;
19+
flex-direction: column;
20+
}
21+
.monaco-hover .monaco-hover-content .hover-row {
22+
order: 2;
23+
}
24+
.monaco-hover .monaco-hover-content .hover-row:has(.codicon-none) {
25+
order: 1;
26+
}
27+
.monaco-hover .monaco-hover-content .hover-row:has([style="color:#f96363;"]) {
28+
order: 1;
29+
}

0 commit comments

Comments
 (0)