docbook-annotations.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /* ============================================================ */
  2. /* Inline annotations */
  3. .annotations {
  4. border-top: 2px dashed #afafaf;
  5. padding-top: 1em;
  6. margin-top: 6em;
  7. }
  8. a.annomark,
  9. a.annomark:visited {
  10. text-decoration: none;
  11. color: inherit;
  12. }
  13. .annotation-wrapper {
  14. margin-bottom: 1em;
  15. }
  16. .annotation-body {
  17. border: 1px solid black;
  18. border-bottom-left-radius: 0.25em;
  19. border-bottom-right-radius: 0.25em;;
  20. }
  21. .annotation-header {
  22. height: 2em;
  23. background-color: #cfcfcf;
  24. padding-left: 1em;
  25. padding-right: 0.5em;
  26. border-bottom: 1px solid black;
  27. }
  28. .annotation-header .annotation-close {
  29. float: right;
  30. }
  31. .annotation-content {
  32. padding-left: 1em;
  33. padding-right: 1em;
  34. padding-top: 0.5em;
  35. padding-bottom: 0.5em;
  36. }
  37. /* ============================================================ */
  38. /* Javascript annotations */
  39. .popup-annotation-wrapper {
  40. display: none;
  41. position: fixed;
  42. left: 0;
  43. top: 0;
  44. height: 100%;
  45. width: 100%;
  46. background-color: rgb(128, 128, 128, 0.85);
  47. }
  48. .popup-annotation-body {
  49. border: 1px solid black;
  50. width: 50%;
  51. background-color: white;
  52. min-height: 40%;
  53. max-height: 50%;
  54. margin-top: 10%;
  55. margin-left: auto;
  56. margin-right: auto;
  57. border-radius: 0.15em;
  58. display: grid;
  59. grid-template-rows: auto 1fr;
  60. grid-template-columns: 100%;
  61. }
  62. .wide .popup-annotation-body {
  63. width: 80%;
  64. }
  65. .tall .popup-annotation-body {
  66. max-height: 80%;
  67. }
  68. .popup-annotation-header {
  69. height: 2em;
  70. background-color: #cfcfcf;
  71. padding-left: 1em;
  72. padding-right: 0.5em;
  73. border-bottom: 1px solid black;
  74. }
  75. .popup-annotation-header .annotation-close {
  76. float: right;
  77. cursor: pointer;
  78. font-size: 125%;
  79. }
  80. .popup-annotation-header .annotation-title {
  81. padding-top: 0.1em;
  82. }
  83. .popup-annotation-content {
  84. padding-left: 1em;
  85. padding-right: 1em;
  86. padding-top: 0.5em;
  87. padding-bottom: 0.5em;
  88. overflow: scroll;
  89. }
  90. .annotation-close {
  91. padding-top: 4px;
  92. }