Skip to content

Commit

Permalink
Cleaned tailwind install, added emoji support
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonDocton committed Oct 23, 2021
1 parent b5bf318 commit 1b2fe7d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 24 deletions.
7 changes: 6 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export default /** @type {import('astro').AstroUserConfig} */ ({
"@astrojs/renderer-react",
],
devOptions: {
tailwindConfig: '/tailwind.config.js'
tailwindConfig: './tailwind.config.js',
},
markdownOptions: {
remarkPlugins: [
[import('remark-emoji'), { behavior: 'prepend'}]
]
}
});
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"generate": "all-contributors generate"
},
"dependencies": {
"@docsearch/react": "^1.0.0-alpha.27"
"@docsearch/react": "^1.0.0-alpha.27",
"@tailwindcss/typography": "^0.4.1",
"remark-emoji": "^3.0.1"
},
"devDependencies": {
"@astrojs/renderer-preact": "^0.2.2",
"@snowpack/plugin-dotenv": "^2.2.0",
"all-contributors-cli": "^6.20.0",
"astro": "^0.20.12",
"autoprefixer": "^10.3.7",
"postcss": "^8.3.11",
"tailwindcss": "^2.2.17"
}
}
6 changes: 0 additions & 6 deletions postcss.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions public/index.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

* {
box-sizing: border-box;
Expand Down
13 changes: 3 additions & 10 deletions src/components/PageContent/PageContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ import MoreMenu from '../RightSidebar/MoreMenu.astro';
import TableOfContents from '../RightSidebar/TableOfContents.tsx';
---
<style>
.content {
padding: 0;
max-width: 75ch;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}

.content > section {
margin-bottom: 4rem;
}
Expand All @@ -27,13 +20,13 @@ import TableOfContents from '../RightSidebar/TableOfContents.tsx';
}
}
</style>
<article id="article" class="content">
<article id="article">
<section class="main-section">
<h1 class="content-title" id="overview">{title}</h1>
<nav class="block sm:hidden">
<TableOfContents client:media="(max-width: 50em)" headers={headers}/>
</nav>
<slot />
<slot class="" />
</section>
<nav class="block sm:hidden">
<MoreMenu editHref={githubEditUrl}/>
Expand Down
3 changes: 3 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
4 changes: 3 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ module.exports = {
variants: {
extend: {},
},
plugins: [],
plugins: [
require('@tailwindcss/typography'),
],
}

0 comments on commit 1b2fe7d

Please sign in to comment.