fix(svg): scope SVG CSS rules strictly to catalog image paths (/image/catalog/), removing artificial theme class overrides
This commit is contained in:
parent
c24b8d2ba8
commit
ea4cba3194
Binary file not shown.
|
|
@ -373,14 +373,6 @@ a.img-thumbnail img, a.thumbnail img {
|
||||||
' height: ' . $thumb_height . 'px !important;' . "\n" .
|
' height: ' . $thumb_height . 'px !important;' . "\n" .
|
||||||
' object-fit: contain !important;' . "\n" .
|
' object-fit: contain !important;' . "\n" .
|
||||||
'}' . "\n" .
|
'}' . "\n" .
|
||||||
'img[src*="catalog/language/"], img.lang, .language-select img, .pr-dropdown-box img {' . "\n" .
|
|
||||||
' max-width: none !important;' . "\n" .
|
|
||||||
' max-height: none !important;' . "\n" .
|
|
||||||
' flex-shrink: 0 !important;' . "\n" .
|
|
||||||
'}' . "\n" .
|
|
||||||
'.pr-dropdown-button-check {' . "\n" .
|
|
||||||
' flex-shrink: 0 !important;' . "\n" .
|
|
||||||
'}' . "\n" .
|
|
||||||
'</style>';
|
'</style>';
|
||||||
$output = str_ireplace('</head>', $svg_style . '</head>', $output);
|
$output = str_ireplace('</head>', $svg_style . '</head>', $output);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue