math.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @import url('../../../../doc/src/boostbook.css');
  2. /* Contains the basic settings for BoostBook and used by Quickbook to docbook conversion. */
  3. /*=============================================================================
  4. Copyright (c) 2004 Joel de Guzman http://spirit.sourceforge.net/
  5. Copyright (c) 2014 John Maddock
  6. Copyright 2013 Niall Douglas additions for colors and alignment.
  7. Copyright 2013 Paul A. Bristow additions for more colors and alignments.
  8. Copyright 2019 Paul A. Bristow additions for more control of serif-italic font etc.
  9. Distributed under the Boost Software License, Version 1.0. (See accompany-
  10. ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  11. This Cascading Style Sheet is used to override and add to the standard Boost
  12. CSS BoostBook for a particular library, for example Boost.Math and Boost.Multiprecision.
  13. Visual Studio is recommended for editing this file
  14. because it checks syntax, does layout and provides help on options.
  15. IMPORTANT: there are two versions of this file -
  16. one in libs/math/doc and one in libs/math/doc/html
  17. ONLY EVER EDIT THE FIRST OF THESE !!!!
  18. =============================================================================*/
  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. {
  36. font-size: 10pt;
  37. display: block;
  38. /* was margin: 1pc 4% 0pc 4%; */
  39. margin: 1pc 2% 0pc 2%;
  40. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  41. }
  42. @media screen
  43. {
  44. /* Syntax Highlighting */
  45. .comment { color: green; }
  46. /* .comment { color: #008000; } */
  47. }
  48. /* Program listings in tables don't get borders */
  49. td .programlisting,
  50. td .screen
  51. {
  52. margin: 0pc 0pc 0pc 0pc;
  53. padding: 0pc 0pc 0pc 0pc;
  54. }
  55. /*=============================================================================
  56. Table of contents
  57. =============================================================================*/
  58. div.toc
  59. {
  60. margin: 1pc 4% 0pc 4%;
  61. padding: 0.1pc 1pc 0.1pc 1pc;
  62. font-size: 100%;
  63. line-height: 1.15;
  64. }
  65. .boost-toc
  66. {
  67. float: right;
  68. padding: 0.5pc;
  69. }
  70. /* Code on toc */
  71. .toc .computeroutput { font-size: 120% }
  72. /* No margin on nested menus */
  73. .toc dl dl { margin: 0; }
  74. /*==============================================================================
  75. Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
  76. Added from Niall Douglas for role color and alignment.
  77. http://article.gmane.org/gmane.comp.lib.boost.devel/243318
  78. */
  79. /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */
  80. span.aligncenter
  81. {
  82. display: inline-block; width: 100%; text-align: center;
  83. }
  84. span.alignright
  85. {
  86. display: inline-block; width: 100%; text-align: right;
  87. }
  88. /* alignleft is the default. */
  89. span.alignleft
  90. {
  91. display: inline-block; width: 100%; text-align: left;
  92. }
  93. /* alignjustify stretches the word spacing so that each line has equal width
  94. within a chosen fraction of page width (here arbitrarily 20%).
  95. *Not* useful inside table items as the column width remains the total string width.
  96. Nor very useful, except to temporarily restrict the width.
  97. */
  98. span.alignjustify
  99. {
  100. display: inline-block; width: 20%; text-align: justify;
  101. }
  102. /* Text colors.
  103. Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
  104. Quickbook Usage: [role red Some red text]
  105. */
  106. span.red { inline-block; color: red; }
  107. span.green { color: green; }
  108. span.lime { color: #00FF00; }
  109. span.blue { color: blue; }
  110. span.navy { color: navy; }
  111. span.yellow { color: yellow; }
  112. span.magenta { color: magenta; }
  113. span.indigo { color: #4B0082; }
  114. span.cyan { color: cyan; }
  115. span.purple { color: purple; }
  116. span.gold { color: gold; }
  117. span.silver { color: silver; } /* lighter gray */
  118. span.gray { color: #808080; } /* light gray */
  119. /* role for inline Unicode mathematical equations,
  120. making font an italic (as is conventional for equations)
  121. and a serif version of font (to match those generated using .mml to SVG or PNG)
  122. and a little bigger (* 125%) because the serif font appears smaller than the default sans serif fonts.
  123. Used, for example: [role serif_italic This is in serif font and italic].
  124. Used in turn by template for inline expressions to match equations as SVG or PNG images.
  125. */
  126. span.serif_italic {
  127. font-family: serif;
  128. font-style: italic;
  129. font-size: 125%;
  130. font-stretch: expanded;
  131. }
  132. /* Custom indent of paragraphs to make equations look nicer.
  133. https://www.w3schools.com/tags/tag_blockquote.asp says
  134. "Most browsers will display the <blockquote> element with left and right margin 40px values: "
  135. */
  136. blockquote {
  137. display: block;
  138. margin-top: 1em;
  139. margin-bottom: 1em;
  140. margin-left: 2%;
  141. margin-right: 2%;
  142. }