Skip to content

Commit

Permalink
fixed wysiwyg
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 1, 2024
1 parent 3c48803 commit c45565e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/styles/typography/wysiwyg.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
// @ts-nocheck
module.exports = function () {
return function ({addComponents, theme}) {
return function ({addComponents}) {

const components = {
'.wysiwyg': {
'a h2, h2 a, a h3, h3 a, a h4, h4 a, a h5, h5 a': {
color: theme('colors.digital-red'),
textDecoration: 'none',
},
'a:hover h2, h2 a:hover, a:hover h3, h3 a:hover, a:hover h4, h4 a:hover, a:hover h5, h5 a:hover, a:focus h2, h2 a:focus, a:focus h3, h3 a:focus, a:focus h4, h4 a:focus, a:focus h5, h5 a:focus': {
color: theme('colors.black'),
textDecoration: 'underline',
},
pre: {
whiteSpace: 'normal',
'> :first-child': {
marginTop: '0'
}
},
};
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = {
require('@tailwindcss/container-queries'),
require(`${dir}/typography/local-footer.tsx`)(),
require(`${dir}/typography/global-message.tsx`)(),
require(`${dir}/typography/wysiwyg.tsx`)(),
require(`${dir}/centered-container.tsx`)(),
],
};

0 comments on commit c45565e

Please sign in to comment.