This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: nav item support http://xx.com type link
- Loading branch information
Showing
5 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
@antv/gatsby-theme-antv/site/components/ExternalLinkIcon.module.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
a { | ||
.export svg { | ||
width: 12px; | ||
height: 12px; | ||
margin-left: 3px; | ||
opacity: 0.3; | ||
position: relative; | ||
top: 1.5px; | ||
transition: all 0.3s; | ||
margin-right: -6px; | ||
} | ||
|
||
&:hover .export svg { | ||
opacity: 0.5; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
@antv/gatsby-theme-antv/site/components/ExternalLinkIcon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import ExternalLink from '../images/external-link.svg'; | ||
import styles from './ExternalLinkIcon.module.less'; | ||
|
||
const ExternalLinkIcon: React.FC = () => ( | ||
<i className={styles.export}> | ||
<ExternalLink /> | ||
</i> | ||
); | ||
|
||
export default ExternalLinkIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters