-
Hello! I am using I have managed to get that working by including the following in the {
resolve: `gatsby-plugin-mdx`,
options: {
lessBabel: true,
extensions: [`.mdx`, `.md`],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 960,
quality: 90,
linkImagesToOriginal: false,
backgroundColor: `transparent`,
},
},
{
resolve: `gatsby-remark-autolink-headers`,
options: {
className: `header-link-icon`,
maintainCase: false,
}
}
],
},
}, I am however now trying to style the hyperlink icon in the screenshot above but have had no luck so far. I have tried Shadowing several files. The last file I've tried would be Thanks in advance, any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After a couple of tries I have managed to style the anchor icon! Will leave my solution here, but open to suggestions on better ways to do it. I was previously shadowing files in the wrong directory. The directory should not have To style the icon, I shadowed the import Layout from "@lekoarts/gatsby-theme-minimal-blog/src/components/layout"
import ItemTags from "@lekoarts/gatsby-theme-minimal-blog/src/components/item-tags"
import Seo from "@lekoarts/gatsby-theme-minimal-blog/src/components/seo"
import PostFooter from "@lekoarts/gatsby-theme-minimal-blog/src/components/post-footer" I then added a new a.anchor {
filter: invert(100%);
} And imported the .css file in import "./post.css" Notes:
|
Beta Was this translation helpful? Give feedback.
After a couple of tries I have managed to style the anchor icon! Will leave my solution here, but open to suggestions on better ways to do it.
I was previously shadowing files in the wrong directory. The directory should not have
/src
in it.To style the icon, I shadowed the
post.tsx
file by putting that in@lekoarts/gatsby-theme-minimal-blog/components
, then updated the relative imports to the following: