Skip to content

Commit

Permalink
refactor: modify edit icon instead of EditThisPage component
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinperaza committed Dec 17, 2022
1 parent 02a06e0 commit 1dd6204
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 35 deletions.
26 changes: 0 additions & 26 deletions src/theme/EditThisPage/index.js

This file was deleted.

10 changes: 10 additions & 0 deletions src/theme/Icon/Edit/index.js
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} />
);
}
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;
}
}

1 comment on commit 1dd6204

@vercel
Copy link

@vercel vercel bot commented on 1dd6204 Dec 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.