-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: modify edit icon instead of EditThisPage component
- Loading branch information
1 parent
02a06e0
commit 1dd6204
Showing
3 changed files
with
13 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
import React from "react"; | ||
import styles from "./styles.module.css"; | ||
import Github from "@site/static/img/shared/github.svg"; | ||
import clsx from "clsx"; | ||
|
||
export default function IconEdit({ className, ...restProps }) { | ||
return ( | ||
<Github className={clsx([styles["icon-edit"], className])} {...restProps} /> | ||
); | ||
} |
12 changes: 3 additions & 9 deletions
12
src/theme/EditThisPage/index.module.css → src/theme/Icon/Edit/styles.module.css
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 |
---|---|---|
@@ -1,21 +1,15 @@ | ||
.container { | ||
a:has(.icon-edit) { | ||
display: flex; | ||
align-items: center; | ||
font-weight: 600; | ||
font-size: 14px; | ||
line-height: 24px; | ||
} | ||
|
||
.container svg { | ||
.icon-edit { | ||
margin-right: 10px; | ||
} | ||
|
||
.container svg path { | ||
.icon-edit path { | ||
fill: var(--ifm-color-primary); | ||
} | ||
|
||
@media only screen and (max-width: 1024px) { | ||
.container { | ||
place-content: center; | ||
} | ||
} |
1dd6204
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
developers-basistheory-com – ./
developers-basistheory-com.vercel.app
developers-basistheory-com-basis-theory.vercel.app
developers-basistheory-com-git-master-basis-theory.vercel.app