feat: Show icon on external links (#3100)

* feat: External links get treatment

* cache decorations
This commit is contained in:
Tom Moor
2022-02-16 18:05:02 -08:00
committed by GitHub
parent 3760a03c44
commit d7ee801fe4
11 changed files with 162 additions and 73 deletions

View File

@@ -529,13 +529,16 @@ const EditorStyles = styled.div<{
a {
color: ${(props) => props.theme.text};
border-bottom: 1px solid ${(props) => lighten(0.5, props.theme.text)};
text-decoration: none !important;
text-decoration: underline;
text-decoration-color: ${(props) => lighten(0.5, props.theme.text)};
text-decoration-thickness: 1px;
text-underline-offset: .15em;
font-weight: 500;
&:hover {
border-bottom: 1px solid ${(props) => props.theme.text};
text-decoration: none;
text-decoration: underline;
text-decoration-color: ${(props) => props.theme.text};
text-decoration-thickness: 1px;
}
}
}
@@ -718,6 +721,11 @@ const EditorStyles = styled.div<{
}
}
.external-link {
position: relative;
top: 2px;
}
.code-actions,
.notice-actions {
display: flex;