#50038space-before- and space-after- needs to be !important
Description
the dynamic CSS for space-befor- and space-after- needs to be !important;
because now a global definition of .csc-default
maybe witch is set in an own CSS file
overwrites every space the customer has set…
modifiing the following works for me (i think it would be usefull for all)…
typo3\sysext\css_styled_content\Classes\Controller\CssStyledContentController.php (row 1078 ff.)
________________________________________________
if ($configuration['space'] === 'before') {
$value = $constant + $this->cObj->data['spaceBefore'];
$declaration = 'margin-top: ' . $value . 'px *!important*;';
} else {
$value = $constant + $this->cObj->data['spaceAfter'];
$declaration = 'margin-bottom: ' . $value . 'px *!important*;';
}
_________________________________________________