Skip to content

Commit ec66435

Browse files
committed
Add new Link component
1 parent 0149263 commit ec66435

File tree

1 file changed

+25
-0
lines changed
  • extensions/ql-vscode/src/view/common

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { styled } from "styled-components";
2+
3+
export const Link = styled.a`
4+
background: transparent;
5+
box-sizing: border-box;
6+
color: var(--link-foreground);
7+
cursor: pointer;
8+
fill: currentcolor;
9+
font-family: var(--font-family);
10+
font-size: var(--type-ramp-base-font-size);
11+
line-height: var(--type-ramp-base-line-height);
12+
outline: none;
13+
14+
&:hover {
15+
text-decoration: underline;
16+
}
17+
18+
&:focus-visible {
19+
border: 1px solid var(--vscode-focusBorder);
20+
}
21+
22+
&:focus {
23+
border: 1px solid var(--vscode-focusBorder);
24+
}
25+
`;

0 commit comments

Comments
 (0)