Add and use postcss-import, move button component
This commit is contained in:
parent
2b86365e0c
commit
1f10536d46
7 changed files with 64 additions and 34 deletions
18
src/assets/css/components/button.css
Normal file
18
src/assets/css/components/button.css
Normal file
|
@ -0,0 +1,18 @@
|
|||
.btn {
|
||||
@apply text-sm font-thin antialiased text-white px-4 py-3 no-underline rounded mx-1 bg-blue-300;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
@apply bg-blue-400
|
||||
}
|
||||
}
|
||||
|
||||
.btn.is-secondary {
|
||||
@apply bg-gray-500;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
@apply bg-gray-600
|
||||
}
|
||||
}
|
||||
|
12
src/assets/css/custom-base.css
Normal file
12
src/assets/css/custom-base.css
Normal file
|
@ -0,0 +1,12 @@
|
|||
html {
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
@apply font-bold
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply text-2xl
|
||||
}
|
1
src/assets/css/custom-components.css
Normal file
1
src/assets/css/custom-components.css
Normal file
|
@ -0,0 +1 @@
|
|||
@import 'components/button';
|
|
@ -1,36 +1,9 @@
|
|||
@tailwind base;
|
||||
@import 'tailwindcss/base';
|
||||
|
||||
html {
|
||||
line-height: 1.15;
|
||||
}
|
||||
@import 'custom-base';
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
@apply font-bold
|
||||
}
|
||||
@import 'tailwindcss/components';
|
||||
|
||||
h2 {
|
||||
@apply text-2xl
|
||||
}
|
||||
@import 'custom-components';
|
||||
|
||||
@tailwind components;
|
||||
|
||||
.btn {
|
||||
@apply text-sm font-thin antialiased text-white px-4 py-3 no-underline rounded mx-1 bg-blue-300;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
@apply bg-blue-400
|
||||
}
|
||||
}
|
||||
|
||||
.btn.is-secondary {
|
||||
@apply bg-gray-500;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
@apply bg-gray-600
|
||||
}
|
||||
}
|
||||
|
||||
@tailwind utilities;
|
||||
@import 'tailwindcss/utilities';
|
||||
|
|
Reference in a new issue