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