Project

General

Profile

Actions

Bug #50038

closed

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

Added by Ralf-Rene Schroeder over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2013-07-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

_________________________________________
Actions

Also available in: Atom PDF