Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit b0c3044

Browse files
committed
Merge branch 'master' into preact
2 parents f4ec5a4 + d126243 commit b0c3044

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

src/components/PageTitle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function PageTitle({ children }) {
22
return (
3-
<h1 className="text-3xl leading-9 font-extrabold text-gray-900 tracking-tighter sm:text-4xl sm:leading-10 md:text-5xl md:leading-none">
3+
<h1 className="text-3xl leading-9 font-extrabold text-gray-900 tracking-tight sm:text-4xl sm:leading-10 md:text-5xl md:leading-13">
44
{children}
55
</h1>
66
)

src/components/Post.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,7 @@ export default function Post({ meta, children, posts }) {
2222
return (
2323
<article className="xl:divide-y xl:divide-gray-200">
2424
<header className="xl:pb-10">
25-
<div className="space-y-1">
26-
<div>
27-
<div className="text-sm uppercase font-medium leading-6 text-teal-500 tracking-wide">
28-
<Link href="/">
29-
<a>News</a>
30-
</Link>
31-
</div>
32-
<PageTitle>{meta.title}</PageTitle>
33-
</div>
25+
<div className="space-y-1 text-center">
3426
<dl className="space-y-10">
3527
<div>
3628
<dt className="sr-only">Published on</dt>
@@ -41,6 +33,9 @@ export default function Post({ meta, children, posts }) {
4133
</dd>
4234
</div>
4335
</dl>
36+
<div>
37+
<PageTitle>{meta.title}</PageTitle>
38+
</div>
4439
</div>
4540
</header>
4641
<div
@@ -50,7 +45,7 @@ export default function Post({ meta, children, posts }) {
5045
<dl className="py-10 xl:border-b xl:border-gray-200">
5146
<dt className="sr-only">Authors</dt>
5247
<dd>
53-
<ul className="flex xl:block space-x-8 sm:space-x-12 xl:space-x-0 xl:space-y-8">
48+
<ul className="flex justify-center xl:block space-x-8 sm:space-x-12 xl:space-x-0 xl:space-y-8">
5449
{meta.authors.map((author) => (
5550
<li key={author.twitter} className="flex items-center space-x-2">
5651
<img src={author.avatar} alt="" className="w-10 h-10 rounded-full" />

src/pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import SectionContainer from '@/components/SectionContainer'
44

55
export default function App({ Component, pageProps }) {
66
return (
7-
<div>
7+
<div className="antialiased">
88
<SectionContainer>
99
<Header />
1010
</SectionContainer>

src/pages/tailwindcss-v1-4-is-out.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ New features:
1717

1818
<!--/excerpt-->
1919

20-
Tailwind CSS v1.4.0 is here! 🥳 Another new minor version so soon? Merry Coronavirus 🎄😷🎄
20+
Dicta qui et iste. Sed dolorum suscipit a. Dolor iusto soluta. Quasi aut commodi in corrupti dolore perspiciatis necessitatibus a ut. Et et est perferendis exercitationem est exercitationem inventore fugit. Voluptatibus aut sunt laudantium eos hic rerum.
2121

2222
## New Features
2323

tailwind.config.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ module.exports = {
44
purge: { content: ['./src/**/*.{js,mdx}', './next.config.js'], mode: 'all' },
55
theme: {
66
extend: {
7+
lineHeight: {
8+
'11': '2.75rem',
9+
'12': '3rem',
10+
'13': '3.25rem',
11+
'14': '3.5rem',
12+
},
713
fontFamily: {
814
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
915
},
@@ -107,24 +113,24 @@ module.exports = {
107113
'ol li': {
108114
position: 'relative',
109115
counterIncrement: 'list-counter',
110-
paddingLeft: theme('spacing.9'),
116+
paddingLeft: theme('spacing.8'),
111117
},
112118
'ol li:before': {
113119
content: 'counter(list-counter) "."',
114120
position: 'absolute',
115121
left: '0',
116-
width: '1.5rem',
117-
textAlign: 'right',
122+
fontWeight: '600',
123+
color: theme('colors.gray.500'),
118124
},
119125
'ul li': {
120126
position: 'relative',
121-
paddingLeft: theme('spacing.9'),
127+
paddingLeft: theme('spacing.8'),
122128
},
123129
'ul li:before': {
124130
content: '""',
125131
position: 'absolute',
126132
top: 'calc(0.875em - 0.0625em)',
127-
left: '0.5em',
133+
left: '0',
128134
backgroundColor: theme('colors.gray.400'),
129135
height: '0.125em',
130136
width: '0.75em',

0 commit comments

Comments
 (0)