[TASK] Handle gallery position and alignment in fsc image content element 39/52039/3
authorGianluigi Martino <gmartino27@gmail.com>
Tue, 14 Mar 2017 12:28:50 +0000 (13:28 +0100)
committerBenjamin Kott <benjamin.kott@outlook.com>
Fri, 31 Mar 2017 21:51:01 +0000 (23:51 +0200)
Add relevant classes to fsc image content element to
handle gallery position and alignment

Resolves: #80164
Releases: master
Change-Id: Ia4fbd3e8951a5f2f6ee92a55aca78477a54504f3
Reviewed-on: https://review.typo3.org/52039
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
typo3/sysext/fluid_styled_content/Configuration/TypoScript/Styling/setup.txt
typo3/sysext/fluid_styled_content/Resources/Private/Templates/Image.html

index e6d411c..afa8936 100644 (file)
@@ -5,7 +5,7 @@ plugin.tx_frontend._CSS_DEFAULT_STYLE (
 
     .ce-table td, .ce-table th { vertical-align: top; }
 
-    .ce-textpic, .ce-nowrap .ce-bodytext, .ce-gallery, .ce-row, .ce-uploads li, .ce-uploads div { overflow: hidden; }
+    .ce-textpic, .ce-image, .ce-nowrap .ce-bodytext, .ce-gallery, .ce-row, .ce-uploads li, .ce-uploads div { overflow: hidden; }
 
     .ce-left .ce-gallery, .ce-column { float: left; }
     .ce-center .ce-outer { position: relative; float: right; right: 50%; }
index f2aaa71..56f658c 100644 (file)
@@ -2,7 +2,9 @@
 <f:layout name="Default" />
 <f:section name="Main">
 
-       <f:render partial="Media/Gallery" arguments="{_all}" />
+       <div class="ce-image ce-{gallery.position.horizontal} ce-{gallery.position.vertical}">
+               <f:render partial="Media/Gallery" arguments="{_all}" />
+       </div>
 
 </f:section>
 </html>