Skip to content

Commit

Permalink
harmonizes whitespace surrounding special boxes and their inner parag…
Browse files Browse the repository at this point in the history
…raphs, removes unused selectors as well
  • Loading branch information
fxn committed Mar 8, 2009
1 parent 50e81d9 commit 3fbfb81
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions railties/guides/files/stylesheets/main.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ h6 {
margin-top: 0.25em; 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; background: #f9d9d8 url(../../images/tab_red.gif) no-repeat left top;
border: none; border: none;
padding: 1.25em 1.25em 1.25em 48px; padding: 1.25em 1.25em 1.25em 48px;
Expand Down Expand Up @@ -426,4 +426,16 @@ code {
.clearfix {display: inline-block;} .clearfix {display: inline-block;}
* html .clearfix {height: 1%;} * html .clearfix {height: 1%;}
.clearfix {display: block;} .clearfix {display: block;}
.clear { clear:both; } .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;
}

0 comments on commit 3fbfb81

Please sign in to comment.