Skip to content

Commit

Permalink
fix: footer icons and code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mdluo committed Apr 15, 2022
1 parent 4afcc80 commit 802a7c3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = {
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1200,
wrapperStyle: 'border-radius: 5px; overflow: hidden;',
},
},
{
Expand Down Expand Up @@ -84,6 +84,9 @@ module.exports = {
const [color] = match.colour;
classNames.push(color);
}
if (parsedOptions.breakSpaces) {
classNames.push('break-spaces');
}
if (parsedOptions.noLabel || language === 'shell') {
classNames.push('no-label');
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "mdluo's blog",
"version": "3.1.0",
"scripts": {
"develop": "gatsby develop",
"dev": "gatsby develop",
"start": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
Expand Down
2 changes: 0 additions & 2 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const Footer: React.FC<Props> = ({ author }) => {
<Icon icon="github" id={author} />
<Icon icon="twitter" id={author} />
<Icon icon="linkedin" id={author} />
<Icon icon="goodreads" id={author} />
<Icon icon="twitch" id={author} />
<Icon icon="steam" id={author} />
</p>
<p>
Expand Down
4 changes: 4 additions & 0 deletions src/styles/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ pre.grvsc-container {
line-height: 1.75;
background-color: scale-color(#f6f8fa, $lightness: -2%);

&.break-spaces {
white-space: break-spaces;
}

.grvsc-gutter-pad, .grvsc-line-number {
background-color: #e1e4e8;
}
Expand Down

0 comments on commit 802a7c3

Please sign in to comment.