Add and use postcss-import
This commit is contained in:
parent
b591f5f2cf
commit
dc1feabc17
9 changed files with 81 additions and 61 deletions
|
@ -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';
|
||||
|
|
3
resources/css/components/container.css
Normal file
3
resources/css/components/container.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
.container {
|
||||
@apply w-full max-w-5xl px-4 mx-auto
|
||||
}
|
5
resources/css/components/lead.css
Normal file
5
resources/css/components/lead.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
p.lead {
|
||||
@screen md {
|
||||
@apply text-lg
|
||||
}
|
||||
}
|
7
resources/css/components/wrap.css
Normal file
7
resources/css/components/wrap.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
.wrap {
|
||||
@apply w-full max-w-3xl mx-auto;
|
||||
|
||||
&.is-wide {
|
||||
@apply max-w-5xl
|
||||
}
|
||||
}
|
27
resources/css/custom-base.css
Normal file
27
resources/css/custom-base.css
Normal 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
|
||||
}
|
9
resources/css/custom-components.css
Normal file
9
resources/css/custom-components.css
Normal 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';
|
Loading…
Add table
Add a link
Reference in a new issue