[BUGFIX] csc-uploads delivers broken CSS 34/35734/2
authorBenjamin Mack <benni@typo3.org>
Fri, 2 Jan 2015 11:04:54 +0000 (12:04 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 2 Jan 2015 11:54:23 +0000 (12:54 +0100)
In CSS Styled Content the CSS rule

ul.csc-uploads img { float: left; padding-right: 1em; vertical-align: top; }

causes images to be squeezed when they have the
width-attr (default=150, through
tt_content.uploads.20.renderObj.10.file.width) set
because the 1em is calculated inside the given
dimensions. The padding should be changed to
margin, otherwise all images are squeezed
horizontally regardless of the actual
dimension settings.

Releases: master, 6.2
Resolves: #59124
Change-Id: I171e4f3b048f0a0dc05476890d7af6f88c864874
Reviewed-on: http://review.typo3.org/35734
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/css_styled_content/static/setup.txt

index 5f355ac..e80073c 100644 (file)
@@ -2233,7 +2233,7 @@ plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
        /* File Links */
        ul.csc-uploads { padding: 0; }
        ul.csc-uploads li { list-style: none outside none; margin: 1em 0; }
-       ul.csc-uploads img { float: left; padding-right: 1em; vertical-align: top; }
+       ul.csc-uploads img { float: left; margin-right: 1em; vertical-align: top; }
        ul.csc-uploads span { display: block; }
        ul.csc-uploads span.csc-uploads-fileName { text-decoration: underline; }