aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/files
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-03-08 16:28:34 +0100
committerXavier Noria <fxn@hashref.com>2009-03-08 16:28:34 +0100
commit3fbfb81aa049a6e482e5b6ae37480988bfd28ec4 (patch)
treeba9478db76fcccbab46efddc07ef0adec783edf5 /railties/guides/files
parent50e81d9bc4465e21e1518e137839fada3ad563da (diff)
downloadrails-3fbfb81aa049a6e482e5b6ae37480988bfd28ec4.tar.gz
rails-3fbfb81aa049a6e482e5b6ae37480988bfd28ec4.tar.bz2
rails-3fbfb81aa049a6e482e5b6ae37480988bfd28ec4.zip
harmonizes whitespace surrounding special boxes and their inner paragraphs, removes unused selectors as well
Diffstat (limited to 'railties/guides/files')
-rw-r--r--railties/guides/files/stylesheets/main.css16
1 files changed, 14 insertions, 2 deletions
diff --git a/railties/guides/files/stylesheets/main.css b/railties/guides/files/stylesheets/main.css
index a47013748c..d377628d73 100644
--- a/railties/guides/files/stylesheets/main.css
+++ b/railties/guides/files/stylesheets/main.css
@@ -337,7 +337,7 @@ h6 {
margin-top: 0.25em;
}
-#mainCol div.warning, #subCol div.warning, #mainCol dd.warning, #subCol dd.warning {
+#mainCol div.warning, #subCol dd.warning {
background: #f9d9d8 url(../../images/tab_red.gif) no-repeat left top;
border: none;
padding: 1.25em 1.25em 1.25em 48px;
@@ -426,4 +426,16 @@ code {
.clearfix {display: inline-block;}
* html .clearfix {height: 1%;}
.clearfix {display: block;}
-.clear { clear:both; } \ No newline at end of file
+.clear { clear:both; }
+
+/* Same bottom margin for special boxes than for regular paragraphs, this way
+intermediate whitespace looks uniform. */
+div.code_container, div.important, div.caution, div.warning, div.note, div.info {
+ margin-bottom: 1.5em;
+}
+
+/* Remove bottom margin of paragraphs in special boxes, otherwise they get a
+spurious blank area below with the box background. */
+div.important p, div.caution p, div.warning p, div.note p, div.info p {
+ margin-bottom: 0px;
+}