Skip to content

Commit f28f937

Browse files
committed
put CSS closer to the code
1 parent 37426c9 commit f28f937

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/src/modules/components/Ad.js

+4
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ export default function Ad() {
222222
mt: AD_MARGIN_TOP,
223223
mb: AD_MARGIN_BOTTOM,
224224
minHeight: AD_HEIGHT_MOBILE,
225+
'& a[target="_blank"]::after': {
226+
// Remove link arrow for ads
227+
display: 'none',
228+
},
225229
[theme.breakpoints.up('sm')]: {
226230
minHeight: AD_HEIGHT,
227231
},

docs/src/modules/components/MarkdownElement.js

-6
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,6 @@ const Root = styled('div')(
407407
// Allows to remove link arrows for images
408408
display: 'none',
409409
},
410-
'& .ea-placement, & .carbonads, & #carbonads': {
411-
// Remove link arrow for ads
412-
'& a[target="_blank"]::after': {
413-
display: 'none',
414-
},
415-
},
416410
'& a, & a code': {
417411
// Style taken from the Link component
418412
color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`,

0 commit comments

Comments
 (0)