[BUGFIX] CSS: Default vertical spacing for blocks 50/21050/3
authorFelix Kopp <felix-source@phorax.com>
Sun, 26 May 2013 01:10:55 +0000 (03:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 2 Jun 2013 18:14:08 +0000 (20:14 +0200)
Forms, tables, texts need a clear structure and obvious
visual distinction. Our Backend currently does not
deliver strong defaults for extensions.

Many modules already work around this lack of structure
by adding extra spacing and horizontal rules:

- DocumentTemplate::spacer(x-Pixel)
- DocumentTemplate::divider()

This patch brings vertical spacing based on CSS for:

- p
- ul / ol
- dl
- blockquote

Change-Id: I93a1a43b21d6e56db822558c6d4be0103097ed98
Resolves: #48540
Releases: 6.2
Reviewed-on: https://review.typo3.org/21050
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/t3skin/extjs/xtheme-t3skin.css
typo3/sysext/t3skin/stylesheets/structure/main_content.css

index bac1841..08a00a5 100644 (file)
@@ -1316,6 +1316,11 @@ td.x-grid3-hd-over, td.x-grid3-hd-menu-open {
        background-color:#d8d8d8;
        border-color:#8d8d8d;
 }
+
+.x-tree ul {
+       margin-bottom: 0;
+}
+
 .x-tree .x-panel-body{
        background-color:#fff;
 }
index 7db283e..f58f0ea 100644 (file)
@@ -39,6 +39,14 @@ h4 {
        margin: 6px 0;
 }
 
+p,
+ul,
+ol,
+dl,
+blockquote {
+       margin-bottom: 1.25em;
+}
+
 /* Preformatted text - not used so much in TYPO3 */
 pre {
        margin: 0px;
@@ -79,7 +87,7 @@ form {
        margin: 0;
 }
 
-#typo3-docbody form { margin-bottom: 24px; }
+#typo3-docbody form { margin-bottom: 1.25em; }
 
 input[type="submit"],
 input[type="reset"],