yakindu.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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: 0px;
  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.tiny {
  99. width: 23.6%;
  100. max-width: 23.6%;
  101. min-width: 23.6%;
  102. }
  103. .body-container .primary img.small {
  104. width: 38.2%;
  105. max-width: 38.2%;
  106. min-width: 38.2%;
  107. }
  108. .body-container .primary img.normal {
  109. width: 61.8%;
  110. max-width: 61.8%;
  111. min-width: 38.2%;
  112. }
  113. .body-container .primary img.large {
  114. width: 76.4%;
  115. max-width: 76.4%;
  116. min-width: 38.2%;
  117. }
  118. .body-container .primary img.full {
  119. width: 100%;
  120. max-width: 100%;
  121. min-width: 38.2%;
  122. }
  123. }
  124. /*
  125. * Responsive design: image widths for small viewports:
  126. */
  127. @media ( max-width : 30em) {
  128. .body-container .primary img {
  129. width: 100%;
  130. max-width: 100%;
  131. }
  132. .body-container .primary img.tiny {
  133. width: 61.8%;
  134. max-width: 61.8%;
  135. }
  136. .body-container .primary img.small {
  137. width: 76.4%;
  138. max-width: 76.4%;
  139. }
  140. .body-container .primary img.normal, .body-container .primary img.large, .body-container .primary img.full {
  141. max-width: 100%;
  142. min-width: 100%;
  143. }
  144. }
  145. /*
  146. * Tables:
  147. */
  148. .body-container .primary table, .body-container .primary th, .body-container .primary td {
  149. border: 0px solid black;
  150. }
  151. .body-container .primary table {
  152. border-collapse: collapse;
  153. max-width: 100%;
  154. }
  155. .body-container .primary th {
  156. color: #ffffff;
  157. background-color: #575757;
  158. }
  159. .body-container .primary th, .body-container .primary td {
  160. padding-top: 0.2em;
  161. padding-bottom: 0.2em;
  162. padding-left: 0.5em;
  163. padding-right: 0.5em;
  164. text-align: left;
  165. vertical-align: top;
  166. }
  167. .body-container .primary tr:nth-child(even) {
  168. background-color: #cfe3fc;
  169. }
  170. .body-container .primary tr.odd {
  171. background-color: inherit;
  172. }
  173. .body-container .primary tr.even {
  174. background-color: #cfe3fc;
  175. }
  176. /*
  177. * Chapter numbering:
  178. */
  179. .body-container .primary {
  180. counter-reset: h1
  181. }
  182. .body-container .primary h1 {
  183. counter-reset: h2
  184. }
  185. .body-container .primary h2 {
  186. counter-reset: h3
  187. }
  188. .body-container .primary h3 {
  189. counter-reset: h4
  190. }
  191. .body-container .primary h4 {
  192. counter-reset: h5
  193. }
  194. .body-container .primary h5 {
  195. counter-reset: h6
  196. }
  197. .body-container .primary h1:before {
  198. counter-increment: h1;
  199. content: counter(h1) ". "
  200. }
  201. .body-container .primary h2:before {
  202. counter-increment: h2;
  203. content: counter(h1) "." counter(h2) ". "
  204. }
  205. .body-container .primary h3:before {
  206. counter-increment: h3;
  207. content: counter(h1) "." counter(h2) "." counter(h3) ". "
  208. }
  209. .body-container .primary h4:before {
  210. counter-increment: h4;
  211. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". "
  212. }
  213. .body-container .primary h5:before {
  214. counter-increment: h5;
  215. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "
  216. }
  217. .body-container .primary h6:before {
  218. counter-increment: h6;
  219. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "
  220. }
  221. .body-container .primary .nocount:before {
  222. content: "";
  223. counter-increment: none
  224. }
  225. .body-container .primary .example {
  226. border-style: solid;
  227. border-width: 1px;
  228. border-color: #cccccc;
  229. border-radius: 4px;
  230. background-color: #e8f2fe;
  231. padding-top: 1ex;
  232. padding-bottom: 0.5ex;
  233. padding-right: 1em;
  234. padding-left: 1em;
  235. margin-bottom: 1ex;
  236. }
  237. .body-container .primary .inline-paramount {
  238. border-style: solid;
  239. border-width: 1px;
  240. border-color: #cccccc;
  241. border-radius: 4px;
  242. background-color: #e8f2fe;
  243. padding-top: 0ex;
  244. padding-bottom: 0.0ex;
  245. padding-right: 0em;
  246. padding-left: 0em;
  247. margin-bottom: 0ex;
  248. }
  249. .body-container .primary .web-link {
  250. background: #4178f0;
  251. color: #fff;
  252. padding: 10px 10px 10px 50px;
  253. display: block;
  254. position: relative;
  255. }
  256. .body-container .primary .web-link::before {
  257. content: "";
  258. position: absolute;
  259. left: 10px;
  260. height: 20px;
  261. width: 30px;
  262. border-right: 1px solid #fff;
  263. background: url(http://info.itemis.com/hubfs/Corporate_Website/itemis-cta-iconset.png?t=1504179064344) no-repeat -660px -46px transparent;
  264. background-size: 800px 600px;
  265. }
  266. .body-container .primary .web-link a {
  267. color: inherit;
  268. text-decoration: underline;
  269. }
  270. /* Add permalinks to headlines: */
  271. .permalink {
  272. position: relative;
  273. -webkit-transition: none;
  274. -moz-transition: none;
  275. -o-transition: none;
  276. -ms-transition: none;
  277. transition: none;
  278. opacity: 0;
  279. }
  280. .permalink:after {
  281. content: " 🔗 ";
  282. font-size-adjust: 0.3;
  283. }
  284. .permalink .tooltip {
  285. display: none;
  286. opacity: 0;
  287. position: absolute;
  288. left: 0;
  289. bottom: 100%;
  290. background: #ccc;
  291. white-space: nowrap;
  292. padding: 5px 10px;
  293. font-size: 16px;
  294. border-radius: 5px;
  295. color: #000;
  296. }
  297. .permalink .tooltip:after {
  298. content: "";
  299. position: absolute;
  300. top: 100%;
  301. left: 10px;
  302. display: block;
  303. height: 0;
  304. width: 0;
  305. border: 7px solid;
  306. border-color: #ccc transparent transparent;
  307. }
  308. .permalink:hover .tooltip, .permalink:focus .tooltip, .permalink:active .tooltip {
  309. opacity: 1;
  310. display: block;
  311. }
  312. h1:hover .permalink, h2:hover .permalink, h3:hover .permalink, h4:hover .permalink, h5:hover .permalink, h6:hover .permalink
  313. {
  314. opacity: 1;
  315. visibility: visible;
  316. text-decoration: none;
  317. }