Skip to content

Commit

Permalink
fix: tweak blockquote styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals committed Mar 31, 2024
1 parent 9170507 commit 2467898
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
Binary file added resources/assets/gridicons_quote.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 43 additions & 2 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default {
css: {
color: theme('colors.white'),
a: {
color: theme('colors.blue.400'),
color: 'rgb(113, 180, 6)',
'&:hover': {
color: theme('colors.blue.600'),
color: 'rgb(113, 180, 6)',
},
},
h1: {
Expand All @@ -39,8 +39,49 @@ export default {
},
strong: {
color: theme('colors.white'),
},
blockquote: {
color: theme('colors.white'),
paddingInlineStart: 0,
borderRadius: theme('borderRadius.lg'),
margin: 0,
padding: theme('spacing.3') + ' ' + theme('spacing.6'),
background: 'rgba(255, 255, 255, 0.04)',
border: 0,
position: 'relative',
fontStyle: 'normal',
'&:before': {
content: '""',
position: 'absolute',
inset: 0,
padding: '2px',
borderRadius: theme('borderRadius.lg'),
background: 'linear-gradient(to bottom, rgb(255,221,0), rgba(113, 180, 6, 0.78) 22.5%, rgba(113, 180, 6, 0))',
mask: 'linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)',
maskComposite: 'exclude',
'-webkit-mask': 'linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)',
'-webkit-mask-composite': 'xor',
},
'&:after': {
content: '""',
position: 'absolute',
inset: 0,
width: '100%',
height: '100%',
backgroundRepeat: 'no-repeat',
backgroundPosition: '2% 0%',
backgroundImage: 'url(../assets/gridicons_quote.png)',
},
}
}
},
lg: {
css: {
blockquote: {
paddingInlineStart: 0,
padding: theme('spacing.6') + ' ' + theme('spacing.12'),
}
}
}
})
},
Expand Down

0 comments on commit 2467898

Please sign in to comment.