1 @import url('../../../../doc/src/boostbook.css');
2 /* Contains the basic settings for BoostBook and used by Quickbook to docbook conversion. */
4 /* Note:this import link assumes called from doc/html, not from any backup copy in /doc. */
6 /*=============================================================================
7 Copyright (c) 2004 Joel de Guzman http://spirit.sourceforge.net/
8 Copyright (c) 2014 John Maddock
9 Copyright 2013 Niall Douglas additions for colors and alignment.
10 Copyright 2013 Paul A. Bristow additions for more colors and alignments.
11 Copyright 2019 Paul A. Bristow additions for more control of serif-italic font etc.
13 Distributed under the Boost Software License, Version 1.0. (See accompany-
14 ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
16 This Cascading Style Sheet is used to override and add to the standard Boost
17 CSS BoostBook for a particular library, for example Boost.Math and Boost.Multiprecision.
19 Visual Studio is recommended for editing this file
20 because it checks syntax, does layout and provides help on options.
22 boost-no-inspect to avoid error message from inspect.exe
23 doc\multiprecision.css: Unlinked file
24 (line 1) Broken link: ../../../../doc/src/boostbook.css
26 /*=============================================================================
28 =============================================================================*/
30 /* Code on paragraphs */
39 margin: 1pc 4% 0pc 4%;
40 padding: 0.5pc 0.5pc 0.5pc 0.5pc;
47 /* was margin: 1pc 4% 0pc 4%;
48 but that led to overflow on some code lines, so reduced and lined up with blockquote indent (see below). */
49 margin: 1pc 2% 0pc 2%;
50 /* https://www.w3schools.com/Css/css_margin.asp margin-top margin-right margin-bottom margin-left.
51 * auto - the browser calculates the margin
52 * length - specifies a margin in px, pt, cm, etc.
53 * % - specifies a margin in % of the width of the containing element
54 * inherit - specifies that the margin should be inherited from the parent element
57 padding: 0.5pc 0.5pc 0.5pc 0.5pc;
61 /* Syntax Highlighting */
62 .comment { color: green; }
63 /* .comment { color: #008000; } */
65 /* Program listings in tables don't get borders */
69 margin: 0pc 0pc 0pc 0pc;
70 padding: 0pc 0pc 0pc 0pc;
73 /*=============================================================================
75 =============================================================================*/
79 margin: 1pc 4% 0pc 4%;
80 padding: 0.1pc 1pc 0.1pc 1pc;
92 .toc .computeroutput { font-size: 120% }
94 /* No margin on nested menus */
96 .toc dl dl { margin: 0; }
99 /*==============================================================================
100 Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
101 Added from Niall Douglas for role color and alignment.
102 http://article.gmane.org/gmane.comp.lib.boost.devel/243318
105 /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */
108 display: inline-block; width: 100%; text-align: center;
112 display: inline-block; width: 100%; text-align: right;
114 /* alignleft is the default. */
117 display: inline-block; width: 100%; text-align: left;
120 /* alignjustify stretches the word spacing so that each line has equal width
121 within a chosen fraction of page width (here arbitrarily 20%).
122 *Not* useful inside table items as the column width remains the total string width.
123 Nor very useful, except to temporarily restrict the width.
127 display: inline-block; width: 20%; text-align: justify;
131 Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
132 Quickbook Usage: [role red Some red text]
135 span.red { inline-block; color: red; }
136 span.green { color: green; }
137 span.lime { color: #00FF00; }
138 span.blue { color: blue; }
139 span.navy { color: navy; }
140 span.yellow { color: yellow; }
141 span.magenta { color: magenta; }
142 span.indigo { color: #4B0082; }
143 span.cyan { color: cyan; }
144 span.purple { color: purple; }
145 span.gold { color: gold; }
146 span.silver { color: silver; } /* lighter gray */
147 span.gray { color: #808080; } /* light gray */
149 /* role for inline Unicode mathematical equations,
150 making font an italic (as is conventional for equations)
151 and a serif version of font (to match those generated using .mml to SVG or PNG)
152 and a little bigger (* 125%) because the serif font appears smaller than the default sans serif fonts.
153 Used, for example: [role serif_italic This is in serif font and italic].
154 Used in turn by template for inline expressions to match equations as SVG or PNG images.
161 font-stretch: expanded;
164 /* Custom indent of paragraphs to make equations look nicer, 2% to match that indent of code block above.
165 https://www.w3schools.com/tags/tag_blockquote.asp says
166 "Most browsers will display the <blockquote> element with left and right margin 40px values: "