Add and use postcss-import

This commit is contained in:
Oliver Davies 2019-06-07 21:41:43 +01:00
parent b591f5f2cf
commit dc1feabc17
9 changed files with 81 additions and 61 deletions

View file

@ -1,60 +1,8 @@
@import '~highlightjs/styles/github-gist.css';
@import 'tailwindcss/base';
@import 'custom-base';
@tailwind base;
@import 'tailwindcss/components';
@import 'highlightjs/styles/github-gist';
@import 'custom-components';
h1, h2, h3 {
@apply font-bold
}
h1 {
@apply text-3xl
}
h2 {
@apply text-2xl
}
img {
@apply max-w-full h-auto
}
a {
@apply text-blue-600 no-underline;
&:hover {
@apply underline
}
}
blockquote {
@apply border-l-4 border-blue-600 pl-4 px-6 py-2
}
@tailwind components;
.container {
@apply w-full max-w-5xl px-4 mx-auto
}
p.lead {
@screen md {
@apply text-lg
}
}
.wrap {
@apply w-full max-w-3xl mx-auto;
&.is-wide {
@apply max-w-5xl
}
}
@import 'components/button.css';
@import 'components/markup.css';
@import 'components/note.css';
@import 'components/table.css';
@import 'components/video.css';
@import 'components/widget.css';
@tailwind utilities;
@import 'tailwindcss/utilities';

View file

@ -0,0 +1,3 @@
.container {
@apply w-full max-w-5xl px-4 mx-auto
}

View file

@ -0,0 +1,5 @@
p.lead {
@screen md {
@apply text-lg
}
}

View file

@ -0,0 +1,7 @@
.wrap {
@apply w-full max-w-3xl mx-auto;
&.is-wide {
@apply max-w-5xl
}
}

View file

@ -0,0 +1,27 @@
h1, h2, h3 {
@apply font-bold
}
h1 {
@apply text-3xl
}
h2 {
@apply text-2xl
}
img {
@apply max-w-full h-auto
}
a {
@apply text-blue-600 no-underline;
&:hover {
@apply underline
}
}
blockquote {
@apply border-l-4 border-blue-600 pl-4 px-6 py-2
}

View file

@ -0,0 +1,9 @@
@import 'components/button';
@import 'components/container';
@import 'components/lead';
@import 'components/markup';
@import 'components/note';
@import 'components/table';
@import 'components/video';
@import 'components/widget';
@import 'components/wrap';