Skip to content

Commit

Permalink
put CSS closer to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Feb 21, 2024
1 parent 37426c9 commit f28f937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions docs/src/modules/components/Ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ export default function Ad() {
mt: AD_MARGIN_TOP,
mb: AD_MARGIN_BOTTOM,
minHeight: AD_HEIGHT_MOBILE,
'& a[target="_blank"]::after': {
// Remove link arrow for ads
display: 'none',
},
[theme.breakpoints.up('sm')]: {
minHeight: AD_HEIGHT,
},
Expand Down
6 changes: 0 additions & 6 deletions docs/src/modules/components/MarkdownElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,6 @@ const Root = styled('div')(
// Allows to remove link arrows for images
display: 'none',
},
'& .ea-placement, & .carbonads, & #carbonads': {
// Remove link arrow for ads
'& a[target="_blank"]::after': {
display: 'none',
},
},
'& a, & a code': {
// Style taken from the Link component
color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`,
Expand Down

0 comments on commit f28f937

Please sign in to comment.