on master help sign in
reduce docs measure, link code style
commit7bae9d9d01e04766237f11d9f4df87b9db131c38 authorGavin Atkinson <gvnatknsn@protonmail.com> dateThu 29 Jul 2021, 13:12 (5 years ago) parentf87acde
3 files changed+9−4
components/ContentArea.js+3−3 styles/markdown.module.css+5 tailwind.config.js+1−1
components/ContentArea.js+3−3
@@ -21,8 +21,8 @@ export default function ContentArea(props) {
2121 }, []);
2222
2323 return (
24− <div className="w-full min-w-0 flex flex-col">
25− <div className="px-4 md:px-12 lg:px-24 pb-24 pt-8 md:pt-10 lg:pt-16 flex flex-col w-full max-h-screen h-screen overflow-y-scroll">
24+ <div className="w-full min-w-0 flex flex-col items-center">
25+ <div className="px-4 md:px-12 lg:px-24 pb-24 pt-8 md:pt-10 lg:pt-16 flex flex-col w-full max-w-screen-xl max-h-screen h-screen overflow-y-scroll">
2626 <div className="flex justify-between w-full items-center flex-shrink-0">
2727 <div className="type-ui text-gray">{props.breadcrumbs}</div>
2828 <div className="hidden md:block">
@@ -31,7 +31,7 @@ export default function ContentArea(props) {
3131 e.stopPropagation();
3232 props.search.toggleSearch();
3333 }}
34− className="button-sm bg-wall text-gray"
34+ className="bg-wall text-gray flex px-4 py-1 rounded-lg type-ui"
3535 >
3636 Search<div className="ml-4 text-lightGray">{shortcut}</div>
3737 </button>
styles/markdown.module.css+5
@@ -75,6 +75,11 @@
7575 @apply px-2 py-0.5 bg-wall rounded-md;
7676}
7777
78+.markdown a code,
79+.markdown a code[class*="language-"] {
80+ @apply bg-washedGreen;
81+}
82+
7883.markdown pre code,
7984.markdown pre[class*="language-"] code {
8085 @apply p-4 md:p-8 rounded-xl;
tailwind.config.js+1−1
@@ -18,7 +18,7 @@ module.exports = {
1818 green: "rgba(0, 177, 113, 1)",
1919 midGreen: "rgba(0, 159, 101, 0.6)",
2020 lightGreen: "rgba(0, 159, 101, 0.3)",
21− washedGreen: "rgba(0, 159, 101, 0.05)",
21+ washedGreen: "rgba(0, 159, 101, 0.1)",
2222 blue: "#219DFF",
2323 purple: "rgba(157,82,255,0.8)",
2424 red: "#ff4136",