multiprecision/doc/multiprecision.css

175 lines
5.6 KiB
CSS

@import url('../../../../doc/src/boostbook.css');
/* Contains the basic settings for BoostBook and used by Quickbook to docbook conversion. */
/* Note:this import link assumes called from doc/html, not from any backup copy in /doc. */
/*=============================================================================
Copyright (c) 2004 Joel de Guzman http://spirit.sourceforge.net/
Copyright (c) 2014 John Maddock
Copyright 2013 Niall Douglas additions for colors and alignment.
Copyright 2013 Paul A. Bristow additions for more colors and alignments.
Copyright 2019 Paul A. Bristow additions for more control of serif-italic font etc.
Distributed under the Boost Software License, Version 1.0. (See accompany-
ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
This Cascading Style Sheet is used to override and add to the standard Boost
CSS BoostBook for a particular library, for example Boost.Math and Boost.Multiprecision.
Visual Studio is recommended for editing this file
because it checks syntax, does layout and provides help on options.
boost-no-inspect to avoid error message from inspect.exe
doc\multiprecision.css: Unlinked file
(line 1) Broken link: ../../../../doc/src/boostbook.css
/*=============================================================================
Program listings
=============================================================================*/
/* Code on paragraphs */
p tt.computeroutput
{
font-size: 10pt;
}
pre.synopsis
{
font-size: 10pt;
margin: 1pc 4% 0pc 4%;
padding: 0.5pc 0.5pc 0.5pc 0.5pc;
}
.programlisting,
.screen {
font-size: 10pt;
display: block;
/* was margin: 1pc 4% 0pc 4%;
but that led to overflow on some code lines, so reduced and lined up with blockquote indent (see below). */
margin: 1pc 2% 0pc 2%;
/* https://www.w3schools.com/Css/css_margin.asp margin-top margin-right margin-bottom margin-left.
* auto - the browser calculates the margin
* length - specifies a margin in px, pt, cm, etc.
* % - specifies a margin in % of the width of the containing element
* inherit - specifies that the margin should be inherited from the parent element
*/
padding: 0.5pc 0.5pc 0.5pc 0.5pc;
}
@media screen
{
/* Syntax Highlighting */
.comment { color: green; }
/* .comment { color: #008000; } */
}
/* Program listings in tables don't get borders */
td .programlisting,
td .screen
{
margin: 0pc 0pc 0pc 0pc;
padding: 0pc 0pc 0pc 0pc;
}
/*=============================================================================
Table of contents
=============================================================================*/
div.toc
{
margin: 1pc 4% 0pc 4%;
padding: 0.1pc 1pc 0.1pc 1pc;
font-size: 100%;
line-height: 1.15;
}
.boost-toc
{
float: right;
padding: 0.5pc;
}
/* Code on toc */
.toc .computeroutput { font-size: 120% }
/* No margin on nested menus */
.toc dl dl { margin: 0; }
/*==============================================================================
Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
Added from Niall Douglas for role color and alignment.
http://article.gmane.org/gmane.comp.lib.boost.devel/243318
*/
/* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */
span.aligncenter
{
display: inline-block; width: 100%; text-align: center;
}
span.alignright
{
display: inline-block; width: 100%; text-align: right;
}
/* alignleft is the default. */
span.alignleft
{
display: inline-block; width: 100%; text-align: left;
}
/* alignjustify stretches the word spacing so that each line has equal width
within a chosen fraction of page width (here arbitrarily 20%).
*Not* useful inside table items as the column width remains the total string width.
Nor very useful, except to temporarily restrict the width.
*/
span.alignjustify
{
display: inline-block; width: 20%; text-align: justify;
}
/* Text colors.
Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
Quickbook Usage: [role red Some red text]
*/
span.red { inline-block; color: red; }
span.green { color: green; }
span.lime { color: #00FF00; }
span.blue { color: blue; }
span.navy { color: navy; }
span.yellow { color: yellow; }
span.magenta { color: magenta; }
span.indigo { color: #4B0082; }
span.cyan { color: cyan; }
span.purple { color: purple; }
span.gold { color: gold; }
span.silver { color: silver; } /* lighter gray */
span.gray { color: #808080; } /* light gray */
/* role for inline Unicode mathematical equations,
making font an italic (as is conventional for equations)
and a serif version of font (to match those generated using .mml to SVG or PNG)
and a little bigger (* 125%) because the serif font appears smaller than the default sans serif fonts.
Used, for example: [role serif_italic This is in serif font and italic].
Used in turn by template for inline expressions to match equations as SVG or PNG images.
*/
span.serif_italic {
font-family: serif;
font-style: italic;
font-size: 125%;
font-stretch: expanded;
}
/* Custom indent of paragraphs to make equations look nicer, 2% to match that indent of code block above.
https://www.w3schools.com/tags/tag_blockquote.asp says
"Most browsers will display the <blockquote> element with left and right margin 40px values: "
*/
blockquote {
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 2%;
margin-right: 2%;
}