Issue Bug Closed

#50038space-before- and space-after- needs to be !important

Ralf-Rene Schroeder 07/15/13, 16:51 updated 10/02/18, 12:12

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*;';
}

_________________________________________________

Reviews 3