Split custom base classes into partials

This commit is contained in:
Oliver Davies 2020-12-11 20:22:18 +00:00
parent f12da38a40
commit d7b39a18e9
9 changed files with 52 additions and 36 deletions

View file

@ -0,0 +1,5 @@
@layer base {
iframe {
@apply max-w-full
}
}

View file

@ -0,0 +1,5 @@
@layer base {
input {
@apply dark:text-gray-900
}
}

View file

@ -0,0 +1,13 @@
@layer base {
h1, h2, h3 {
@apply font-bold
}
h1 {
@apply text-3xl leading-normal
}
h2 {
@apply text-2xl leading-normal
}
}

View file

@ -0,0 +1,5 @@
@layer base {
img {
@apply max-w-full h-auto
}
}

View file

@ -0,0 +1,5 @@
@layer base {
a {
@apply text-blue-500 no-underline hover:underline
}
}

View file

@ -0,0 +1,5 @@
@layer base {
th {
@apply dark:text-white
}
}

View file

@ -0,0 +1,13 @@
@layer base {
h1, h2, h3 {
@apply font-bold
}
h1 {
@apply text-3xl leading-normal
}
h2 {
@apply text-2xl leading-normal
}
}

View file

@ -1,35 +0,0 @@
h1, h2, h3 {
@apply font-bold
}
h1 {
@apply text-3xl leading-normal
}
h2 {
@apply text-2xl leading-normal
}
img {
@apply max-w-full h-auto
}
a {
@apply text-blue-500 no-underline hover:underline
}
blockquote {
@apply pl-5 border-l-4 border-gray-200 italic dark:text-gray-200
}
iframe {
@apply max-w-full
}
input {
@apply dark:text-gray-900
}
th {
@apply dark:text-white
}

View file

@ -1,5 +1,5 @@
@import 'tailwindcss/base';
@import './custom-base.pcss';
@import './base/*.pcss';
@import 'tailwindcss/components';
@import './components/*.pcss';