[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)
commit8427a0124084e6d45a57c6325454899891a475ac
treed177aadeec83c9b91f098416b1c727039d91a00c
parent8e11adb318a6686a8f03d2127e4f651ba24d7a1e
[BUGFIX] csc-uploads delivers broken CSS

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