• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@import url('../../../../doc/src/boostbook.css');
2/* Contains the basic settings for BoostBook and used by Quickbook to docbook conversion. */
3
4/*=============================================================================
5Copyright (c) 2004 Joel de Guzman    http://spirit.sourceforge.net/
6Copyright (c) 2014 John Maddock
7Copyright 2013 Niall Douglas additions for colors and alignment.
8Copyright 2013 Paul A. Bristow additions for more colors and alignments.
9Copyright 2019 Paul A. Bristow additions for more control of serif-italic font etc.
10
11Distributed under the Boost Software License, Version 1.0. (See accompany-
12ing 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
20IMPORTANT: there are two versions of this file -
21
22one in libs/math/doc and one in libs/math/doc/html
23
24ONLY EVER EDIT THE FIRST OF THESE  !!!!
25
26=============================================================================*/
27
28/*=============================================================================
29Program 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/*=============================================================================
69Table 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/*==============================================================================
95Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
96Added from Niall Douglas for role color and alignment.
97http://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) */
101span.aligncenter
102{
103  display: inline-block; width: 100%; text-align: center;
104}
105span.alignright
106{
107  display: inline-block; width: 100%; text-align: right;
108}
109/* alignleft is the default. */
110span.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
116within a chosen fraction of page width (here arbitrarily 20%).
117*Not* useful inside table items as the column width remains the total string width.
118Nor very useful, except to temporarily restrict the width.
119*/
120span.alignjustify
121{
122  display: inline-block; width: 20%; text-align: justify;
123}
124
125/* Text colors.
126Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
127Quickbook Usage: [role red Some red text]
128
129*/
130span.red { inline-block; color: red; }
131span.green { color: green; }
132span.lime { color: #00FF00; }
133span.blue { color: blue; }
134span.navy { color: navy; }
135span.yellow { color: yellow; }
136span.magenta { color: magenta; }
137span.indigo { color: #4B0082; }
138span.cyan { color: cyan; }
139span.purple { color: purple; }
140span.gold { color: gold; }
141span.silver { color: silver; } /* lighter gray */
142span.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*/
152span.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.
160https://www.w3schools.com/tags/tag_blockquote.asp says
161  "Most browsers will display the <blockquote> element with left and right margin 40px values: "
162*/
163blockquote {
164    display: block;
165    margin-top: 1em;
166    margin-bottom: 1em;
167    margin-left: 2%;
168    margin-right: 2%;
169}
170