yakindu.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /*
  2. * This file contains common CSS styling for documentation artifacts of all YAKINDU projects. It reverts some changes
  3. * introduced by the bootstrap framework.
  4. *
  5. * Any project-specific changes should not be done here, but rather in the <projectname>.css file.
  6. */
  7. /*
  8. * The font size in a blockquote should be the same as specified by the parent element:
  9. */
  10. .body-container .primary blockquote {
  11. font-size: inherit;
  12. }
  13. /*
  14. * For Eclipsehelp, establish proper left and right margins for the body:
  15. */
  16. body.eclipsehelp {
  17. margin-left: 2%;
  18. margin-right: 3%;
  19. }
  20. /*
  21. * Revert bootstrap's fancy "code" rendering:
  22. */
  23. .body-container .primary code {
  24. padding: 0;
  25. color: #111111;
  26. background-color: transparent;
  27. font-size: 100%;
  28. border-radius: 0;
  29. }
  30. /*
  31. * On small screens, allow "unbreakable" words in "code" elements to be broken:
  32. */
  33. @media ( max-width : 767px) {
  34. .body-container .primary code {
  35. word-wrap: break-word;
  36. }
  37. }
  38. /*
  39. * Add some vertical space above and below images and tables to separate them from the text:
  40. */
  41. .body-container .primary img, .body-container .primary table {
  42. margin-top: 1em;
  43. margin-bottom: 2em;
  44. }
  45. /*
  46. * Images should look uniquely. The default settings are as follows:
  47. * - According to the Golden Cut, the image width is between 38.2 and 61.8 percent. However, this is not suited for all
  48. * images. There are CSS classes to e.g. render an image at full width or at a small fraction of the view port size.
  49. * - Images are centered.
  50. * - Images have a shadow with a certain corner radius.
  51. */
  52. .body-container .primary img {
  53. height: auto;
  54. text-align: center;
  55. display: block;
  56. margin-left: auto;
  57. margin-right: auto;
  58. box-shadow: 5px 5px 20px #888888;
  59. -webkit-box-shadow: 5px 5px 20px #888888;
  60. -moz-box-shadow: 5px 5px 20px #888888;
  61. border-radius: 4px;
  62. }
  63. /*
  64. * Use the CSS class "inlinemediaobject" to include small images like symbols or buttons within a paragraph of text
  65. * similar to a character. The image is scaled to have the height of the line.
  66. */
  67. .body-container .primary img.inlinemediaobject {
  68. line-height: 1;
  69. vertical-align: baseline;
  70. min-width: inherit;
  71. max-width: inherit;
  72. width: inherit;
  73. height: 1em;
  74. text-align: inherit;
  75. display: inline;
  76. margin-left: 0px;
  77. margin-right: 0px;
  78. margin-top: 0px;
  79. margin-bottom: 0px;
  80. box-shadow: none;
  81. border-radius: 0px;
  82. }
  83. /*
  84. * CSS class "shadowless" for images that should not have a shadow.
  85. */
  86. .body-container .primary img.shadowless {
  87. box-shadow: none;
  88. margin-bottom: 0px;
  89. }
  90. /*
  91. * Responsive design: image widths for normal and wide viewports:
  92. */
  93. @media ( min-width : 30em) {
  94. .body-container .primary img {
  95. max-width: 61.8%;
  96. min-width: 38.2%;
  97. }
  98. .body-container .primary img.small {
  99. width: 38.2%;
  100. max-width: 38.2%;
  101. }
  102. .body-container .primary img.normal {
  103. width: 61.8%;
  104. min-width: 38.2%;
  105. }
  106. .body-container .primary img.large {
  107. width: 76.4%;
  108. max-width: 76.4%;
  109. }
  110. .body-container .primary img.full {
  111. width: 100%;
  112. max-width: 100%;
  113. }
  114. }
  115. /*
  116. * Responsive design: image widths for small viewports:
  117. */
  118. @media ( max-width : 30em) {
  119. .body-container .primary img {
  120. width: 100%;
  121. max-width: 100%;
  122. }
  123. .body-container .primary img.small {
  124. width: 76.4%;
  125. max-width: 76.4%;
  126. }
  127. .body-container .primary img.normal, .body-container .primary img.large, .body-container .primary img.full {
  128. max-width: 100%;
  129. min-width: 100%;
  130. }
  131. }
  132. /*
  133. * Tables:
  134. */
  135. .body-container .primary table, .body-container .primary th, .body-container .primary td {
  136. border: 0px solid black;
  137. }
  138. .body-container .primary table {
  139. border-collapse: collapse;
  140. max-width: 100%;
  141. }
  142. .body-container .primary th {
  143. color: #ffffff;
  144. background-color: #575757;
  145. }
  146. .body-container .primary th, .body-container .primary td {
  147. padding-top: 0.2em;
  148. padding-bottom: 0.2em;
  149. padding-left: 0.5em;
  150. padding-right: 0.5em;
  151. text-align: left;
  152. vertical-align: top;
  153. }
  154. .body-container .primary tr:nth-child(even) {
  155. background-color: #cfe3fc;
  156. }
  157. .body-container .primary tr.odd {
  158. background-color: inherit;
  159. }
  160. .body-container .primary tr.even {
  161. background-color: #cfe3fc;
  162. }
  163. /*
  164. * Chapter numbering:
  165. */
  166. .body-container .primary {
  167. counter-reset: h1
  168. }
  169. .body-container .primary h1 {
  170. counter-reset: h2
  171. }
  172. .body-container .primary h2 {
  173. counter-reset: h3
  174. }
  175. .body-container .primary h3 {
  176. counter-reset: h4
  177. }
  178. .body-container .primary h4 {
  179. counter-reset: h5
  180. }
  181. .body-container .primary h5 {
  182. counter-reset: h6
  183. }
  184. .body-container .primary h1:before {
  185. counter-increment: h1;
  186. content: counter(h1) ". "
  187. }
  188. .body-container .primary h2:before {
  189. counter-increment: h2;
  190. content: counter(h1) "." counter(h2) ". "
  191. }
  192. .body-container .primary h3:before {
  193. counter-increment: h3;
  194. content: counter(h1) "." counter(h2) "." counter(h3) ". "
  195. }
  196. .body-container .primary h4:before {
  197. counter-increment: h4;
  198. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". "
  199. }
  200. .body-container .primary h5:before {
  201. counter-increment: h5;
  202. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "
  203. }
  204. .body-container .primary h6:before {
  205. counter-increment: h6;
  206. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "
  207. }
  208. .body-container .primary .nocount:before {
  209. content: "";
  210. counter-increment: none
  211. }