p-side-notes.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. /*
  2. Oxygen WebHelp Plugin
  3. Copyright (c) 1998-2020 Syncro Soft SRL, Romania. All rights reserved.
  4. */
  5. /*
  6. * ==========================================
  7. *
  8. * Side notes. These are the oXygen review processing instructions
  9. * converted to elements. They are floating to one
  10. * side of the page.
  11. *
  12. * For the WebHelp HTML output, the review elements are converted
  13. * to 'div' and 'span's having with a class name matching the name
  14. * of the element.
  15. *
  16. * ==========================================
  17. */
  18. @namespace oxy "http://www.oxygenxml.com/extensions/author";
  19. @media screen {
  20. oxy-attributes,
  21. oxy-comment,
  22. oxy-delete,
  23. oxy-insert,
  24. .oxy-attributes,
  25. .oxy-comment,
  26. .oxy-delete,
  27. .oxy-insert {
  28. margin: 0.5em;
  29. width: 20%;
  30. min-width:7em;
  31. }
  32. table oxy-attributes,
  33. table oxy-comment,
  34. table oxy-delete,
  35. table oxy-insert,
  36. table .oxy-attributes,
  37. table .oxy-comment,
  38. table .oxy-delete,
  39. table .oxy-insert {
  40. margin: 0.5em;
  41. width: 50%;
  42. }
  43. }
  44. @media print, screen {
  45. /*
  46. * Main callouts properties.
  47. */
  48. oxy-attributes,
  49. oxy-comment,
  50. oxy-delete,
  51. oxy-insert,
  52. .oxy-attributes,
  53. .oxy-comment,
  54. .oxy-delete,
  55. .oxy-insert {
  56. font-size:small;
  57. font-weight:normal !important; /* Do not take text styles from the context. */
  58. text-decoration:none !important;
  59. font-family:arial, helvetica, sans-serif;
  60. position:relative;
  61. float: right;
  62. clear:right;
  63. padding: 0.5em 1em 0.5em 1em;
  64. min-height:1em;
  65. page-break-inside: avoid;
  66. border-radius: 10px;
  67. link:attr(href);
  68. -ah-link: attr(href);
  69. -oxy-link: attr(href);
  70. }
  71. /*
  72. * Style the comment replies.
  73. */
  74. oxy-attributes oxy-comment,
  75. oxy-comment oxy-comment,
  76. oxy-delete oxy-comment,
  77. oxy-insert oxy-comment,
  78. .oxy-attributes .oxy-comment,
  79. .oxy-comment .oxy-comment,
  80. .oxy-delete .oxy-comment,
  81. .oxy-insert .oxy-comment {
  82. border-left: 2pt solid;
  83. padding-left: 0.5em;
  84. padding-right: 0;
  85. margin: 2pt 0 2pt 10%;
  86. width:90%;
  87. border-radius: 0;
  88. }
  89. /*
  90. * Hide the links from the replies.
  91. */
  92. oxy-attributes oxy-comment:before,
  93. oxy-comment oxy-comment:before,
  94. oxy-delete oxy-comment:before,
  95. oxy-insert oxy-comment:before,
  96. .oxy-attributes .oxy-comment:before,
  97. .oxy-comment .oxy-comment:before,
  98. .oxy-delete .oxy-comment:before,
  99. .oxy-insert .oxy-comment:before {
  100. display:none;
  101. }
  102. /*
  103. * Hide some meta information.
  104. */
  105. oxy-comment-id,
  106. oxy-comment-parent-id,
  107. oxy-mid,
  108. oxy-hour,
  109. oxy-tz,
  110. .oxy-comment-id,
  111. .oxy-comment-parent-id,
  112. .oxy-mid,
  113. .oxy-hour,
  114. .oxy-tz {
  115. display:none;
  116. }
  117. /* The ID of the change, like the number of a footnote. */
  118. oxy-attributes[hr_id]:before,
  119. oxy-comment[hr_id]:before,
  120. oxy-delete[hr_id]:before,
  121. oxy-insert[hr_id]:before{
  122. content:'[' attr(hr_id) '] ';
  123. }
  124. .oxy-attributes[hr_id]:before,
  125. .oxy-comment[hr_id]:before,
  126. .oxy-delete[hr_id]:before,
  127. .oxy-insert[hr_id]:before{
  128. /* For HTML, the hr_id is missing, the link is created as an "A" element. */
  129. content:none;
  130. }
  131. /* Author */
  132. oxy-author,
  133. .oxy-author {
  134. font-weight:bold;
  135. }
  136. /* Comment */
  137. oxy-comment-text,
  138. .oxy-comment-text{
  139. display:block;
  140. margin-top:0.5em;
  141. margin-bottom:0.5em;
  142. }
  143. /* Content of the change */
  144. oxy-content,
  145. .oxy-content{
  146. display:block;
  147. margin-top:0.5em;
  148. margin-bottom:0.5em;
  149. }
  150. oxy-delete > oxy-content,
  151. .oxy-delete > .oxy-content {
  152. text-decoration:line-through;
  153. }
  154. oxy-insert > oxy-content,
  155. .oxy-insert > .oxy-content {
  156. font-style:italic;
  157. }
  158. oxy-insert > oxy-content:before,
  159. .oxy-insert > .oxy-content:before {
  160. content:"<<";
  161. }
  162. oxy-insert > oxy-content:after,
  163. .oxy-insert > .oxy-content:after {
  164. content:">>";
  165. }
  166. /* Date */
  167. oxy-date,
  168. .oxy-date {
  169. display:block;
  170. margin-top:0.5em;
  171. margin-bottom:0.5em;
  172. text-align:right;
  173. font-size:0.8em;
  174. }
  175. /* Old and cuattribute value */
  176. oxy-old-value,
  177. .oxy-old-value {
  178. display:block;
  179. text-decoration: line-through;
  180. }
  181. oxy-old-value:before,
  182. .oxy-old-value:before,
  183. oxy-current-value:before,
  184. .oxy-current-value:before {
  185. display:block;
  186. font-weight:bold;
  187. text-decoration:none;
  188. }
  189. oxy-current-value[unknown='true']:before,
  190. .oxy-current-value[unknown='true']:before{
  191. content:"<< Cannot determine the current value >>";
  192. color:red;
  193. }
  194. oxy-current-value,
  195. .oxy-current-value
  196. {
  197. display:block;
  198. }
  199. oxy-attribute-change:before,
  200. .oxy-attribute-change:before{
  201. display:block;
  202. content: " @" attr(name) "\A" attr(type)" by \A";
  203. font-weight:bold;
  204. }
  205. oxy-range-start,
  206. .oxy-range-start,
  207. oxy-range-end,
  208. .oxy-range-end {
  209. display:inline;
  210. text-decoration: none;
  211. font-weight: normal;
  212. font-style: normal;
  213. }
  214. /*
  215. * This is the link to the floated comment.
  216. * This remains in the main content flow.
  217. */
  218. oxy-range-start:before,
  219. .oxy-range-start:before {
  220. display:inline;
  221. content:'[' attr(hr_id) ']';
  222. }
  223. /*
  224. * This marks the end of the range.
  225. */
  226. oxy-range-end:before,
  227. .oxy-range-end:before {
  228. display:inline ;
  229. content:'[/' attr(hr_id) ']';
  230. }
  231. }
  232. @media print {
  233. oxy-attributes,
  234. oxy-comment,
  235. oxy-delete,
  236. oxy-insert,
  237. .oxy-attributes,
  238. .oxy-comment,
  239. .oxy-delete,
  240. .oxy-insert {
  241. font-size:0.8rem;
  242. margin: 0.5em -0.7in 0.5em 0.5em;
  243. /* This should be correlated with the page margin from the p-page-size.css */
  244. width: 1.5in;
  245. }
  246. }
  247. /*
  248. *
  249. * Colors
  250. *
  251. */
  252. oxy-attributes,
  253. oxy-comment,
  254. oxy-delete,
  255. oxy-insert,
  256. .oxy-attributes,
  257. .oxy-comment,
  258. .oxy-delete,
  259. .oxy-insert {
  260. background-color: #FFFFAA;
  261. color:black;
  262. }
  263. /*
  264. * The highlight part.
  265. * This is also built-in Chemistry processor, but if one uses other processors is good to have it here also.
  266. */
  267. oxy-insert-hl,
  268. .oxy-insert-hl{
  269. display:inline;
  270. color:blue;
  271. text-decoration:underline;
  272. }
  273. oxy-delete-hl,
  274. .oxy-delete-hl {
  275. display:inline;
  276. color:red;
  277. text-decoration:line-through;
  278. }
  279. oxy-comment-hl,
  280. .oxy-comment-hl{
  281. display:inline;
  282. background-color:yellow;
  283. }
  284. oxy-color-hl[color],
  285. .oxy-color-hl[color]{
  286. display:inline;
  287. background-color:attr(color, color);
  288. }
  289. /*
  290. * The marked as done changes should be grayed out.
  291. */
  292. oxy-attributes[flag~="done"],
  293. oxy-comment[flag~="done"],
  294. oxy-delete[flag~="done"],
  295. oxy-insert[flag~="done"],
  296. .oxy-attributes[flag~="done"],
  297. .oxy-comment[flag~="done"],
  298. .oxy-delete[flag~="done"],
  299. .oxy-insert[flag~="done"] {
  300. color:gray;
  301. }
  302. oxy-attributes,
  303. .oxy-attributes{
  304. border-color:black;
  305. }
  306. oxy-comment,
  307. .oxy-comment{
  308. border-color:transparent;
  309. }
  310. oxy-delete,
  311. .oxy-delete{
  312. border-color:red;
  313. }
  314. oxy-insert,
  315. .oxy-insert{
  316. border-color:blue;
  317. }
  318. oxy-range-start,
  319. .oxy-range-start,
  320. oxy-range-end,
  321. .oxy-range-end {
  322. background-color: yellow;
  323. }
  324. oxy-attributes oxy-comment,
  325. oxy-comment oxy-comment,
  326. oxy-delete oxy-comment,
  327. oxy-insert oxy-comment,
  328. .oxy-attributes .oxy-comment,
  329. .oxy-comment .oxy-comment,
  330. .oxy-delete .oxy-comment,
  331. .oxy-insert .oxy-comment {
  332. border-left-color: orange;
  333. }
  334. /*
  335. Because Chemistry does not support the float:right, we use footnotes instead.
  336. Starting with Chemistry 21 the oxy-attributes, oxy-comment, oxy-delete and oxy-insert are
  337. moved from footnotes to PDF annotations. To keep them as footnotes, use
  338. the -no-pdf-annotaotions-for-change-tracking-and-comments Chemistry command line parameter.
  339. */
  340. @media oxygen-chemistry{
  341. oxy-attributes,
  342. oxy-comment,
  343. oxy-delete,
  344. oxy-insert,
  345. .oxy-attributes,
  346. .oxy-comment,
  347. .oxy-delete,
  348. .oxy-insert {
  349. margin: 0.5em;
  350. position:static;
  351. float: footnote;
  352. }
  353. /* Footnotes in footnotes are not allowed in the FO and they are not OK to represent the replies.
  354. So leave the replies as normal blocks, inside the parent change.*/
  355. oxy-attributes oxy-comment,
  356. oxy-comment oxy-comment,
  357. oxy-delete oxy-comment,
  358. oxy-insert oxy-comment,
  359. .oxy-attributes .oxy-comment,
  360. .oxy-comment .oxy-comment,
  361. .oxy-delete .oxy-comment,
  362. .oxy-insert .oxy-comment{
  363. float:none;
  364. }
  365. oxy-attributes[hr_id]:before,
  366. oxy-comment[hr_id]:before,
  367. oxy-delete[hr_id]:before,
  368. oxy-insert[hr_id]:before{
  369. content:none;
  370. }
  371. .oxy-attributes[hr_id]:before,
  372. .oxy-comment[hr_id]:before,
  373. .oxy-delete[hr_id]:before,
  374. .oxy-insert[hr_id]:before{
  375. content:none;
  376. }
  377. /* Do not leave the range id in the content, it creates confusion with the footnotes numbers. */
  378. oxy-range-start,
  379. .oxy-range-start,
  380. oxy-range-end,
  381. .oxy-range-end {
  382. background-color:inherit;
  383. color:maroon;
  384. }
  385. oxy-range-start:before,
  386. .oxy-range-start:before {
  387. content:'{';
  388. font-weight:bold;
  389. }
  390. oxy-range-end:before,
  391. .oxy-range-end:before {
  392. content:'}';
  393. font-weight:bold;
  394. }
  395. oxy-range-start[is-changebar]:before(100),
  396. .oxy-range-start[is-changebar]:before(100) {
  397. content: "";
  398. display:-oxy-changebar-start;
  399. -oxy-changebar-color: gray;
  400. -oxy-changebar-width: 1.5pt;
  401. }
  402. oxy-range-end[is-changebar]:before(100),
  403. .oxy-range-end[is-changebar]:before(100) {
  404. content: "";
  405. display:-oxy-changebar-end;
  406. }
  407. /* Remove the link from the HTML output, we already have a link from the footnote marker to the call. */
  408. .oxy-attributes > a,
  409. .oxy-comment > a,
  410. .oxy-delete > a,
  411. .oxy-insert > a{
  412. display:none;
  413. }
  414. oxy-attributes,
  415. oxy-attributes:footnote-call,
  416. oxy-attributes:footnote-marker,
  417. .oxy-attributes,
  418. .oxy-attributes:footnote-call,
  419. .oxy-attributes:footnote-marker {
  420. background-color:cyan;
  421. }
  422. oxy-comment,
  423. oxy-comment:footnote-call,
  424. oxy-comment:footnote-marker,
  425. .oxy-comment,
  426. .oxy-comment:footnote-call,
  427. .oxy-comment:footnote-marker{
  428. background-color:#FFFFAA;
  429. }
  430. oxy-delete,
  431. oxy-delete:footnote-call,
  432. oxy-delete:footnote-marker,
  433. .oxy-delete,
  434. .oxy-delete:footnote-call,
  435. .oxy-delete:footnote-marker{
  436. background-color:#FFAAAA;
  437. }
  438. oxy-insert,
  439. oxy-insert:footnote-call,
  440. oxy-insert:footnote-marker,
  441. .oxy-insert,
  442. .oxy-insert:footnote-call,
  443. .oxy-insert:footnote-marker {
  444. background-color:#DDDDFF;
  445. }
  446. }