Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配色・配置の変更 #22

Merged
merged 2 commits into from Jul 12, 2021
Merged

配色・配置の変更 #22

merged 2 commits into from Jul 12, 2021

Conversation

cmygsm
Copy link
Contributor

@cmygsm cmygsm commented Jul 12, 2021

#8 ライト/ダークモード切り替えボタンを追加しました
(自動でOSの設定に合わせなくなりました)
・ダークモード時のpreタグの配色を設定しました
・preタグの左右の余白を広くしました
・ヘッダ アイコンの並び順を変更しました(猫が中央にいると良いため)
・ヘッダ アイコンのmargin-topを広くしました
・記事内のタグにflex-wrapを設定しました

※配色切換えに使ったもの → next-themes
https://github.com/pacocoursey/next-themes
※デフォルトの配色をOSに合わせる方法は調査中
現状、最後に選択したカラーモードが記憶されるっぽい

@vercel
Copy link

vercel bot commented Jul 12, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tagucch/random-tagucch-dev/EHTm1MEQWrpNNopy9fwaky7qB9Cp
✅ Preview: https://random-tagucch-dev-git-fork-cmygsm-main-tagucch.vercel.app

</a>

{/* ライト・ダークモード切り替えボタン */}
<div>
Copy link
Owner

Choose a reason for hiding this comment

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

たぶんだけどここのdiv不要だと思うから取ってくれたら嬉しいな〜

Copy link
Contributor Author

Choose a reason for hiding this comment

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

不要でした!削除しました

@tagucch
Copy link
Owner

tagucch commented Jul 12, 2021

圧倒的感謝!!!!!!!!!!!!!!!!!!!!!!!!

@tagucch tagucch merged commit 9a5c904 into tagucch:main Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants