Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2006-12-13 19:59:49


David Abrahams wrote:
>
> Please propose a specific patch to the stylesheet. I tried to make
> this change but it had no effect.
>

OK, here is the patch. It also resolves an Internet Explorer issue that causes the border of the first code block to show up on the right side of the TOC and gives tables consistent indentation.

The patch is hereby put under Boost license (IOW use the parts you like ;-P ).

Regards,

Tobias


--- ../rst.css.bak Wed Dec 13 22:33:08 2006
+++ ../rst.css Thu Dec 14 00:25:55 2006
@@ -95,8 +95,23 @@
   color: red ;
   font-weight: bold }
 
-div.topic {
- margin: 2em }
+/* Here is a workaround for what seems to be an Internet Explorer box model
+ issue. IE's currently disfunctional > selector is used as a conditional. */
+
+div.topic, div.sidebar {
+ margin: 2em ;
+ margin-right: 1em /* IE only */ }
+
+* > /* not for IE */ div.topic, div.sidebar {
+ margin-right: 2em }
+
+/* Consistent indentation for tables, unless for footnotes */
+
+table {
+ margin: 2em; }
+
+table.footnote {
+ margin: none }
 
 dt {
   font-weight: bold
@@ -131,16 +146,17 @@
 {
     MARGIN-LEFT: 2em;
     FONT-FAMILY: Courier;
+ white-space: pre-wrap;
 }
 CODE
 {
     FONT-FAMILY: Courier;
- white-space: pre;
+ white-space: pre-wrap;
 }
 .pre
 {
     FONT-FAMILY: Courier;
- white-space: pre;
+ white-space: pre-wrap;
 }
 .index
 {
@@ -231,6 +247,7 @@
 pre.literal-block, pre.doctest-block {
   margin-left: 2em ;
   margin-right: 2em ;
+/* font-size: smaller; */
   background-color: #eeeeee }
 
 span.class {
@@ -264,9 +281,6 @@
 
 span.option-argument {
   font-style: italic }
-
-span.pre {
- white-space: pre }
 
 span.problematic {
   color: red }


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk