Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / math / doc / html / math.css
1 @import url('../../../../doc/src/boostbook.css');
2 /* Contains the basic settings for BoostBook and used by Quickbook to docbook conversion. */
3
4 /*=============================================================================
5 Copyright (c) 2004 Joel de Guzman    http://spirit.sourceforge.net/
6 Copyright (c) 2014 John Maddock
7 Copyright 2013 Niall Douglas additions for colors and alignment.
8 Copyright 2013 Paul A. Bristow additions for more colors and alignments.
9 Copyright 2019 Paul A. Bristow additions for more control of serif-italic font etc.
10
11 Distributed under the Boost Software License, Version 1.0. (See accompany-
12 ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
13
14     This Cascading Style Sheet is used to override and add to the standard Boost
15     CSS BoostBook for a particular library, for example Boost.Math and Boost.Multiprecision.
16
17     Visual Studio is recommended for editing this file 
18     because it checks syntax, does layout and provides help on options.
19
20 IMPORTANT: there are two versions of this file - 
21
22 one in libs/math/doc and one in libs/math/doc/html
23
24 ONLY EVER EDIT THE FIRST OF THESE  !!!!
25
26 =============================================================================*/
27
28 /*=============================================================================
29 Program listings
30 =============================================================================*/
31
32     /* Code on paragraphs */
33     p tt.computeroutput
34     {
35         font-size: 10pt;
36     }
37
38     pre.synopsis
39     {
40         font-size: 10pt;
41         margin: 1pc 4% 0pc 4%;
42         padding: 0.5pc 0.5pc 0.5pc 0.5pc;
43     }
44
45     .programlisting,
46     .screen
47     {
48         font-size: 10pt;
49         display: block;
50         /* was margin: 1pc 4% 0pc 4%; */
51         margin: 1pc 2% 0pc 2%;
52         padding: 0.5pc 0.5pc 0.5pc 0.5pc;
53     }
54                 @media screen
55     {
56        /* Syntax Highlighting */
57                                 .comment { color: green; }
58                                 /* .comment { color: #008000; } */
59                 }                                               
60     /* Program listings in tables don't get borders */
61     td .programlisting,
62     td .screen
63     {
64         margin: 0pc 0pc 0pc 0pc;
65         padding: 0pc 0pc 0pc 0pc;
66     }
67
68 /*=============================================================================
69 Table of contents
70 =============================================================================*/
71
72     div.toc
73     {
74        margin: 1pc 4% 0pc 4%;
75        padding: 0.1pc 1pc 0.1pc 1pc;
76        font-size: 100%;
77        line-height: 1.15;
78     }
79
80     .boost-toc
81     {
82        float: right;
83        padding: 0.5pc;
84     }
85
86     /* Code on toc */
87     .toc .computeroutput { font-size: 120% }
88
89     /* No margin on nested menus */
90
91     .toc dl dl { margin: 0; }
92
93
94 /*==============================================================================
95 Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
96 Added from Niall Douglas for role color and alignment.
97 http://article.gmane.org/gmane.comp.lib.boost.devel/243318
98 */
99
100 /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */
101 span.aligncenter
102 {
103   display: inline-block; width: 100%; text-align: center;
104 }
105 span.alignright
106 {
107   display: inline-block; width: 100%; text-align: right;
108 }
109 /* alignleft is the default. */
110 span.alignleft
111 {
112   display: inline-block; width: 100%; text-align: left;
113 }
114
115 /* alignjustify stretches the word spacing so that each line has equal width
116 within a chosen fraction of page width (here arbitrarily 20%).
117 *Not* useful inside table items as the column width remains the total string width.
118 Nor very useful, except to temporarily restrict the width.
119 */
120 span.alignjustify
121 {
122   display: inline-block; width: 20%; text-align: justify;
123 }
124
125 /* Text colors.
126 Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
127 Quickbook Usage: [role red Some red text]
128
129 */
130 span.red { inline-block; color: red; }
131 span.green { color: green; }
132 span.lime { color: #00FF00; }
133 span.blue { color: blue; }
134 span.navy { color: navy; }
135 span.yellow { color: yellow; }
136 span.magenta { color: magenta; }
137 span.indigo { color: #4B0082; }
138 span.cyan { color: cyan; }
139 span.purple { color: purple; }
140 span.gold { color: gold; }
141 span.silver { color: silver; } /* lighter gray */
142 span.gray { color: #808080; } /* light gray */
143
144 /* role for inline Unicode mathematical equations,
145     making font an italic (as is conventional for equations)
146     and a serif version of font (to match those generated using .mml to SVG or PNG)
147     and a little bigger (* 125%) because the serif font appears smaller than the default sans serif fonts.
148     Used, for example: [role serif_italic This is in serif font and italic].
149     Used in turn by template for inline expressions to match equations as SVG or PNG images.
150
151 */
152 span.serif_italic {
153     font-family: serif;
154     font-style: italic;
155     font-size: 125%;
156     font-stretch: expanded;
157 }
158
159 /* Custom indent of paragraphs to make equations look nicer.
160 https://www.w3schools.com/tags/tag_blockquote.asp says 
161   "Most browsers will display the <blockquote> element with left and right margin 40px values: "
162 */
163 blockquote {
164     display: block;
165     margin-top: 1em;
166     margin-bottom: 1em;
167     margin-left: 2%;
168     margin-right: 2%;
169 }