Преглед на файлове

new doc style, brought to you by the folks on boost-docs

[SVN r33528]
Eric Niebler преди 20 години
родител
ревизия
0045af02ad
променени са 1 файла, в които са добавени 414 реда и са изтрити 302 реда
  1. 414 302
      doc/html/boostbook.css

+ 414 - 302
doc/html/boostbook.css

@@ -1,5 +1,5 @@
 /*=============================================================================
 /*=============================================================================
-    Copyright (c) 2002 2004 Joel de Guzman, Eric Niebler, Rene Rivera
+    Copyright (c) 2004 Joel de Guzman
     http://spirit.sourceforge.net/
     http://spirit.sourceforge.net/
 
 
     Use, modification and distribution is subject to the Boost Software
     Use, modification and distribution is subject to the Boost Software
@@ -7,369 +7,481 @@
     http://www.boost.org/LICENSE_1_0.txt)
     http://www.boost.org/LICENSE_1_0.txt)
 =============================================================================*/
 =============================================================================*/
 
 
-/* CSS based on w3c documentation which I like a lot, and the classic Spirit
-documentation. */
-
-/* Body defaults */
-body 
-{
-    padding: 2em 1em 2em 1em;
-    margin: 1em 1em 1em 1em;
-    font-family: sans-serif;
-}
-
-/* Paragraphs */
-p 
-{
-    text-align: justify;
-}
-
-pre.synopsis
-{
-    margin: 1pc 4% 0pc 4%;
-    padding: 0.5pc 0.5pc 0.5pc 0.5pc;
-}
-
-/* Headings */
-h1, h2, h3, h4, h5, h6 { text-align: left; margin-top: 2pc; }
-h1 { font: 170% sans-serif }
-h2 { font: bold 140% sans-serif }
-h3 { font: 120% sans-serif }
-h4 { font: bold 100% sans-serif }
-h5 { font: italic 100% sans-serif }
-h6 { font: italic 100% sans-serif }
-
-/* Unordered lists */
-ul 
-{
-    text-align: justify;
-}
-
-/* Links */
-a
-{
-    text-decoration: none; /* no underline */
-}
-
-a:hover
-{
-    text-decoration: underline;
-}
-
-/* Top page title */
-title, h1.title, h2.title, h3.title,
-       h4.title, h5.title, h6.title,
-       .refentrytitle
-{
-    font-weight:   bold;
-    font-size:     2pc;
-    margin-bottom: 1pc;
-}
-
-/* Spirit style navigation */
-.spirit-nav
-{
-    text-align: right;
-}
-
-.spirit-nav a
-{
-    color: white;
-    padding-left: 0.5em;
-}
-
-.spirit-nav img
-{
-    border-width: 0px;
-}
-
-/* Program listing box */
-.programlisting, .screen
-{
-    display: block;
-    margin-left:  4%;
-    margin-right: 4%;
-    padding: 0.5pc 0.5pc 0.5pc 0.5pc;
-}
-
-/* Table of contents */
-.toc
-{
-   margin: 1pc 4% 0pc 4%;
-   padding: 0.5pc 0.5pc 0.5pc 0.5pc;
-}
-
-.boost-toc
-{
-   float:   right;
-   padding: 0.5pc;
-}
-
-/* Tables */
-.table-title, div.table p.title
-{
-    margin-left: 4%;
-    padding-right: 0.5em; 
-    padding-left: 0.5em;
-    font-size: 120%;
-}
-
-.informaltable table, .table table
-{
-    width: 92%;
-    margin-left: 4%;
-    margin-right: 4%;
-}
-
-div.informaltable table, div.table table
-{
-    padding: 4px 0px 4px 0px;
-}
-
-div.informaltable table tr td, div.table table tr td
-{
-    padding: 0.5em 0.5em 0.5em 0.5em;
-    text-align: justify;
-}
-
-div.informaltable table tr th, div.table table tr th
-{
-    padding: 0.5em 0.5em 0.5em 0.5em;
-    border: 1pt solid white;
-}
-
-/* screen & programlisting, when used in a table cell, do not
-   need the extra padding and margin normally used */
-
-td .screen, td .programlisting
-{
-    display: block;
-    margin-left: 0%;
-    margin-right: 0%;
-    padding: 0.5pc 0.5pc 0.5pc 0.5pc;
-}
-
-/* inlined images */
-.inlinemediaobject
-{
-    padding: 0.5em 0.5em 0.5em 0.5em;
-}
-
-/* Variable lists as tables, as used by Doxygen-generated
-   reference docs */
-span.term
-{
-    font-weight: bold;
-}
-
-div.variablelist table tbody tr td
-{
-    text-align: left;
-    vertical-align: top;
-    padding: 0em 2em 0em 0em;
-}
-
-div.variablelist table tbody tr td p
-{
-    margin: 0em 0em 0.5em 0em;
-}
-
-/* tone down the title of Parameter lists */
-div.variablelist p.title
-{
-    font-weight: bold;
-    font-size: 100%;
-    text-align: left;
-}
-
-/* Make the terms in definition lists bold */
-div.variablelist dl dt
-{
-    font-weight: bold;
-}
-
-div.variablelist dl dd
-{
-    margin: 1em 0em 1em 2em;
-}
-
-/* In Doxygen-generaged parameter lists, the parameter descriptions
-   are wrapped in <p>...</p> for some reason. Ignore that. */
-div.variablelist dl dd p
-{
-    display: inline;
-}
-
-/* title of books and articles in bibliographies */
-span.title
-{
-    font-style: italic;
-}
-
-/* tips, notes and warnings done in Spirit style */
-div.tip, div.note, div.warning
-{
-    position: relative;
-    padding: 0.5em;
-    border: 0.5pt solid white;
-}
-
-div.tip .title, div.note .title, div.warning .title
-{
-    display: block;
-    font: bold xx-small sans-serif;
-    margin: 0;
-    padding: 0;
-    position: absolute;
-    left: -4em;
-    top: 0em;
-    height: 25px;
-    width: 24px;
-    text-indent: 32px;
-    overflow: hidden;
-    z-index: 2;
-}
-
-div.tip .title
-{
-    background: url(images/tip.png);
-}
-
-div.note .title
-{
-    background: url(images/note.png);
-}
-
-div.warning .title
-{
-    background: url(images/caution.png);
-}
-
-@media screen
-{
-    a
+/*=============================================================================
+    Body defaults
+=============================================================================*/
+
+    body 
     {
     {
-        color: #005a9c;
+        margin: 1em;
+        font-family: sans-serif;
     }
     }
 
 
-    a:visited
+/*=============================================================================
+    Paragraphs
+=============================================================================*/
+
+    p 
     {
     {
-        color: #9c5a9c;
+        text-align: left;
+        font-size: 10pt; 
+        line-height: 1.15;
     }
     }
 
 
-    /* Syntax Highlighting */
-    .keyword        { color: #0000AA; font-weight: bold; }
-    .identifier     {}
-    .special        { color: #707070; }
-    .preprocessor   { color: #402080; font-weight: bold; }
-    .char           { color: teal; }
-    .comment        { color: #800000; }
-    .string         { color: teal; }
-    .number         { color: teal; }
-    .copyright      { color: #666666; font-size: small; }
-    .white_bkd      { background-color: #FFFFFF; }
-    .dk_grey_bkd    { background-color: #999999; }
+/*=============================================================================
+    Program listings
+=============================================================================*/
+
+    /* Code on paragraphs */
+    p tt.computeroutput
+    {
+        font-size: 9pt;
+    }
 
 
     pre.synopsis
     pre.synopsis
     {
     {
-        background-color: #f3f3f3;
+        font-size: 90%;
+        margin: 1pc 4% 0pc 4%;
+        padding: 0.5pc 0.5pc 0.5pc 0.5pc;
     }
     }
 
 
-    .programlisting, .screen
+    .programlisting, 
+    .screen
     {
     {
-        background-color: #f3f3f3;
+        font-size: 9pt;
+        display: block;
+        margin: 1pc 4% 0pc 4%;
+        padding: 0.5pc 0.5pc 0.5pc 0.5pc;
     }
     }
 
 
-    /* Table of contents */
-    .toc
+/*=============================================================================
+    Headings
+=============================================================================*/
+
+    h1, h2, h3, h4, h5, h6 
+    { 
+        text-align: left; 
+        margin: 1em 0em 0.5em 0em;
+        font-weight: bold;
+    }
+
+    h1 { font: 140% }
+    h2 { font: bold 140% }
+    h3 { font: bold 130% }
+    h4 { font: bold 120% }
+    h5 { font: italic 110% }
+    h6 { font: italic 100% }
+
+    /* Top page titles */
+    title, 
+    h1.title, 
+    h2.title
+    h3.title, 
+    h4.title, 
+    h5.title, 
+    h6.title, 
+    .refentrytitle
     {
     {
-        background-color: #f3f3f3;
+        font-weight: bold;
+        margin-bottom: 1pc;
     }
     }
 
 
-    div.informaltable table tr td, div.table table tr td
+    h1.title { font-size: 140% }
+    h2.title { font-size: 140% }
+    h3.title { font-size: 130% }
+    h4.title { font-size: 120% }
+    h5.title { font-size: 110% }
+    h6.title { font-size: 100% }
+
+    .section h1 
     {
     {
-        background-color: #F3F3F3;
-        border: 1pt solid white;
+        margin: 0em 0em 0.5em 0em;
+        font-size: 140%;
     }
     }
 
 
-    div.informaltable table tr th, div.table table tr th
+    .section h2 { font-size: 140% }
+    .section h3 { font-size: 130% }
+    .section h4 { font-size: 120% }
+    .section h5 { font-size: 110% }
+    .section h6 { font-size: 100% }
+
+    /* Code on titles */
+    h1 tt.computeroutput { font-size: 140% }
+    h2 tt.computeroutput { font-size: 140% }
+    h3 tt.computeroutput { font-size: 130% }
+    h4 tt.computeroutput { font-size: 120% }
+    h5 tt.computeroutput { font-size: 110% }
+    h6 tt.computeroutput { font-size: 100% }
+
+/*=============================================================================
+    Author
+=============================================================================*/
+
+    h3.author 
+    { 
+        font-size: 100% 
+    }
+
+/*=============================================================================
+    Lists
+=============================================================================*/
+
+    li
+    {
+        font-size: 10pt;
+        line-height: 1.3;
+    }
+    
+    /* Unordered lists */
+    ul 
     {
     {
-        background-color: #e4e4e4;
+        text-align: left;
+    }
+    
+    /* Ordered lists */
+    ol 
+    {
+        text-align: left;
     }
     }
 
 
-    div.tip, div.note, div.warning
+/*=============================================================================
+    Links
+=============================================================================*/
+
+    a
     {
     {
-        background-color: #F3F3F3;
+        text-decoration: none; /* no underline */
     }
     }
+    
+    a:hover
+    {
+        text-decoration: underline;
+    }
+
+/*=============================================================================
+    Spirit style navigation
+=============================================================================*/
 
 
-    span.highlight
+    .spirit-nav
     {
     {
-        color: #00A000;
+        text-align: right;
+    }
+    
+    .spirit-nav a
+    {
+        color: white;
+        padding-left: 0.5em;
+    }
+    
+    .spirit-nav img
+    {
+        border-width: 0px;
     }
     }
-}
 
 
-@media print
-{
-    a
+/*=============================================================================
+    Table of contents
+=============================================================================*/
+
+    .toc
     {
     {
-        color: black;
+       margin: 1pc 4% 0pc 4%;
+       padding: 0.1pc 1pc 0.1pc 1pc;
+       font-size: 80%; 
+       line-height: 1.15;
     }
     }
+    
+    .boost-toc
+    {
+       float: right;
+       padding: 0.5pc;
+    }
+
+/*=============================================================================
+    Tables
+=============================================================================*/
 
 
-    a:visited
+    .table-title, 
+    div.table p.title
+    {
+        margin-left: 4%;
+        padding-right: 0.5em; 
+        padding-left: 0.5em;
+    }
+    
+    .informaltable table, 
+    .table table
     {
     {
-        color: black;
+        width: 92%;
+        margin-left: 4%;
+        margin-right: 4%;
+    }
+    
+    div.informaltable table, 
+    div.table table
+    {
+        padding: 4px;
+    }
+    
+    /* Table Cells */
+    div.informaltable table tr td, 
+    div.table table tr td
+    {
+        padding: 0.5em;
+        text-align: left;
+        font-size: 9pt;
     }
     }
 
 
-    .spirit-nav
+    div.informaltable table tr th, 
+    div.table table tr th
     {
     {
-        display: none;
+        padding: 0.5em 0.5em 0.5em 0.5em;
+        border: 1pt solid white;
+        font-size: 80%;
     }
     }
 
 
-    /* Syntax Highlighting */
-    .keyword
+/*=============================================================================
+    Blurbs
+=============================================================================*/
+
+    div.note,
+    div.tip,
+    div.important,
+    div.caution,
+    div.warning,
+    p.blurb
+    {
+        font-size: 9pt; /* A little bit smaller than the main text */
+        line-height: 1.2;
+        display: block;
+        margin: 1pc 4% 0pc 4%;
+        padding: 0.5pc 0.5pc 0.5pc 0.5pc;
+    }
+    
+    p.blurb img
+    {
+        padding: 1pt;
+    }
+
+/*=============================================================================
+    Variable Lists
+=============================================================================*/
+
+    span.term
     {
     {
         font-weight: bold;
         font-weight: bold;
+        font-size: 10pt;
     }
     }
 
 
-    pre.synopsis
+    div.variablelist table tbody tr td
     {
     {
-        border: 1px solid gray;
+        text-align: left;
+        vertical-align: top;
+        padding: 0em 2em 0em 0em;
+        font-size: 10pt;
     }
     }
 
 
-    .programlisting, .screen
+    div.variablelist table tbody tr td p
     {
     {
-        border: 1px solid gray;
+        margin: 0em 0em 0.5em 0em;
     }
     }
 
 
-    /* Table of contents */
-    .toc
+    /* Make the terms in definition lists bold */
+    div.variablelist dl dt
     {
     {
-        border: 1px solid gray;
+        font-weight: bold;
+        font-size: 10pt;
     }
     }
 
 
-    .informaltable table, .table table
+    div.variablelist dl dd
     {
     {
-        border: 1px solid gray;
-        border-collapse: collapse;
+        margin: 1em 0em 1em 2em;
+        font-size: 10pt;
     }
     }
 
 
-    div.informaltable table tr td, div.table table tr td
+/*=============================================================================
+    Misc
+=============================================================================*/
+
+    /* Title of books and articles in bibliographies */
+    span.title
     {
     {
-        border: 1px solid gray;
+        font-style: italic;
     }
     }
 
 
-    div.informaltable table tr th, div.table table tr th
+    span.underline
     {
     {
-        border: 1px solid gray;
+        text-decoration: underline;
     }
     }
 
 
-    div.tip, div.note, div.warning
+    span.strikethrough
     {
     {
-        border: 1px solid gray;
+        text-decoration: line-through;
     }
     }
 
 
-    span.highlight
+    /* Copyright, Legal Notice */
+    div div.legalnotice p
     {
     {
-        font-weight: bold;
+        text-align: left
+    }
+
+/*=============================================================================
+    Colors
+=============================================================================*/
+
+    @media screen
+    {
+    /* Links */
+        a
+        {
+            color: #005a9c;
+        }
+    
+        a:visited
+        {
+            color: #9c5a9c;
+        }
+
+        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
+        h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
+        h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
+        {
+            text-decoration: none; /* no underline */
+            color: #000000;
+        }
+    
+    /* Syntax Highlighting */
+        .keyword        { color: #0000AA; }
+        .identifier     { color: #000000; }
+        .special        { color: #707070; }
+        .preprocessor   { color: #402080; }
+        .char           { color: teal; }
+        .comment        { color: #800000; }
+        .string         { color: teal; }
+        .number         { color: teal; }
+        .white_bkd      { background-color: #FFFFFF; }
+        .dk_grey_bkd    { background-color: #999999; }
+    
+    /* Copyright, Legal Notice */
+        .copyright      
+        { 
+            color: #666666; 
+            font-size: small; 
+        }
+    
+        div div.legalnotice p
+        {
+            color: #666666;
+        }
+    
+    /* Program listing */
+        pre.synopsis
+        {
+            border: 1px solid #DCDCDC;
+        }
+    
+        .programlisting, 
+        .screen
+        {
+            border: 1px solid #DCDCDC;
+        }
+    
+    /* Blurbs */
+        div.note,
+        div.tip,
+        div.important,
+        div.caution,
+        div.warning,
+        p.blurb
+        {
+            border: 1px solid #DCDCDC;
+        }
+    
+    /* Table of contents */
+        .toc
+        {
+            border: 1px solid #DCDCDC;
+        }
+    
+    /* Tables */
+        div.informaltable table tr td, 
+        div.table table tr td
+        {
+            border: 1px solid #DCDCDC;
+        }
+    
+        div.informaltable table tr th, 
+        div.table table tr th
+        {
+            background-color: #F0F0F0;
+            border: 1px solid #DCDCDC;
+        }
+    
+    /* Misc */
+        span.highlight
+        {
+            color: #00A000;
+        }
+    }
+    
+    @media print
+    {
+    /* Links */
+        a
+        {
+            color: black;
+        }
+    
+        a:visited
+        {
+            color: black;
+        }
+    
+        .spirit-nav
+        {
+            display: none;
+        }
+    
+    /* Program listing */
+        pre.synopsis
+        {
+            border: 1px solid gray;
+        }
+    
+        .programlisting, 
+        .screen
+        {
+            border: 1px solid gray;
+        }
+    
+    /* Table of contents */
+        .toc
+        {
+            border: 1px solid gray;
+        }
+    
+        .informaltable table, 
+        .table table
+        {
+            border: 1px solid gray;
+            border-collapse: collapse;
+        }
+    
+    /* Tables */
+        div.informaltable table tr td, 
+        div.table table tr td
+        {
+            border: 1px solid gray;
+        }
+    
+        div.informaltable table tr th, 
+        div.table table tr th
+        {
+            border: 1px solid gray;
+        }
+    
+    /* Misc */
+        span.highlight
+        {
+            font-weight: bold;
+        }
     }
     }
-}

粤ICP备19079148号