multiprecision.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @import url('../../../../doc/src/boostbook.css');
  2. /* Contains the basic settings for BoostBook and used by Quickbook to docbook conversion. */
  3. /* Note:this import link assumes called from doc/html, not from any backup copy in /doc. */
  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. Distributed under the Boost Software License, Version 1.0. (See accompany-
  11. ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  12. This Cascading Style Sheet is used to override and add to the standard Boost
  13. CSS BoostBook for a particular library, for example Boost.Math and Boost.Multiprecision.
  14. Visual Studio is recommended for editing this file
  15. because it checks syntax, does layout and provides help on options.
  16. boost-no-inspect to avoid error message from inspect.exe
  17. doc\multiprecision.css: Unlinked file
  18. (line 1) Broken link: ../../../../doc/src/boostbook.css
  19. /*=============================================================================
  20. Program listings
  21. =============================================================================*/
  22. /* Code on paragraphs */
  23. p tt.computeroutput
  24. {
  25. font-size: 10pt;
  26. }
  27. pre.synopsis
  28. {
  29. font-size: 10pt;
  30. margin: 1pc 4% 0pc 4%;
  31. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  32. }
  33. .programlisting,
  34. .screen {
  35. font-size: 10pt;
  36. display: block;
  37. /* was margin: 1pc 4% 0pc 4%;
  38. but that led to overflow on some code lines, so reduced and lined up with blockquote indent (see below). */
  39. margin: 1pc 2% 0pc 2%;
  40. /* https://www.w3schools.com/Css/css_margin.asp margin-top margin-right margin-bottom margin-left.
  41. * auto - the browser calculates the margin
  42. * length - specifies a margin in px, pt, cm, etc.
  43. * % - specifies a margin in % of the width of the containing element
  44. * inherit - specifies that the margin should be inherited from the parent element
  45. */
  46. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  47. }
  48. @media screen
  49. {
  50. /* Syntax Highlighting */
  51. .comment { color: green; }
  52. /* .comment { color: #008000; } */
  53. }
  54. /* Program listings in tables don't get borders */
  55. td .programlisting,
  56. td .screen
  57. {
  58. margin: 0pc 0pc 0pc 0pc;
  59. padding: 0pc 0pc 0pc 0pc;
  60. }
  61. /*=============================================================================
  62. Table of contents
  63. =============================================================================*/
  64. div.toc
  65. {
  66. margin: 1pc 4% 0pc 4%;
  67. padding: 0.1pc 1pc 0.1pc 1pc;
  68. font-size: 100%;
  69. line-height: 1.15;
  70. }
  71. .boost-toc
  72. {
  73. float: right;
  74. padding: 0.5pc;
  75. }
  76. /* Code on toc */
  77. .toc .computeroutput { font-size: 120% }
  78. /* No margin on nested menus */
  79. .toc dl dl { margin: 0; }
  80. /*==============================================================================
  81. Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
  82. Added from Niall Douglas for role color and alignment.
  83. http://article.gmane.org/gmane.comp.lib.boost.devel/243318
  84. */
  85. /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */
  86. span.aligncenter
  87. {
  88. display: inline-block; width: 100%; text-align: center;
  89. }
  90. span.alignright
  91. {
  92. display: inline-block; width: 100%; text-align: right;
  93. }
  94. /* alignleft is the default. */
  95. span.alignleft
  96. {
  97. display: inline-block; width: 100%; text-align: left;
  98. }
  99. /* alignjustify stretches the word spacing so that each line has equal width
  100. within a chosen fraction of page width (here arbitrarily 20%).
  101. *Not* useful inside table items as the column width remains the total string width.
  102. Nor very useful, except to temporarily restrict the width.
  103. */
  104. span.alignjustify
  105. {
  106. display: inline-block; width: 20%; text-align: justify;
  107. }
  108. /* Text colors.
  109. Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
  110. Quickbook Usage: [role red Some red text]
  111. */
  112. span.red { inline-block; color: red; }
  113. span.green { color: green; }
  114. span.lime { color: #00FF00; }
  115. span.blue { color: blue; }
  116. span.navy { color: navy; }
  117. span.yellow { color: yellow; }
  118. span.magenta { color: magenta; }
  119. span.indigo { color: #4B0082; }
  120. span.cyan { color: cyan; }
  121. span.purple { color: purple; }
  122. span.gold { color: gold; }
  123. span.silver { color: silver; } /* lighter gray */
  124. span.gray { color: #808080; } /* light gray */
  125. /* role for inline Unicode mathematical equations,
  126. making font an italic (as is conventional for equations)
  127. and a serif version of font (to match those generated using .mml to SVG or PNG)
  128. and a little bigger (* 125%) because the serif font appears smaller than the default sans serif fonts.
  129. Used, for example: [role serif_italic This is in serif font and italic].
  130. Used in turn by template for inline expressions to match equations as SVG or PNG images.
  131. */
  132. span.serif_italic {
  133. font-family: serif;
  134. font-style: italic;
  135. font-size: 125%;
  136. font-stretch: expanded;
  137. }
  138. /* Custom indent of paragraphs to make equations look nicer, 2% to match that indent of code block above.
  139. https://www.w3schools.com/tags/tag_blockquote.asp says
  140. "Most browsers will display the <blockquote> element with left and right margin 40px values: "
  141. */
  142. blockquote {
  143. display: block;
  144. margin-top: 1em;
  145. margin-bottom: 1em;
  146. margin-left: 2%;
  147. margin-right: 2%;
  148. }