webodf.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. @namespace draw url(urn:oasis:names:tc:opendocument:xmlns:drawing:1.0);
  2. @namespace fo url(urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0);
  3. @namespace office url(urn:oasis:names:tc:opendocument:xmlns:office:1.0);
  4. @namespace presentation url(urn:oasis:names:tc:opendocument:xmlns:presentation:1.0);
  5. @namespace style url(urn:oasis:names:tc:opendocument:xmlns:style:1.0);
  6. @namespace svg url(urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0);
  7. @namespace table url(urn:oasis:names:tc:opendocument:xmlns:table:1.0);
  8. @namespace text url(urn:oasis:names:tc:opendocument:xmlns:text:1.0);
  9. @namespace runtimens url(urn:webodf); /* namespace for runtime only */
  10. office|document > *, office|document-content > * {
  11. display: none;
  12. }
  13. office|body, office|document {
  14. display: inline-block;
  15. position: relative;
  16. }
  17. text|p, text|h {
  18. display: block;
  19. padding: 3px 3px 3px 3px;
  20. margin: 5px 5px 5px 5px;
  21. }
  22. text|h {
  23. font-weight: bold;
  24. }
  25. *[runtimens|containsparagraphanchor] {
  26. position: relative;
  27. }
  28. text|s:before { /* this needs to be the number of spaces given by text:c */
  29. content: ' ';
  30. }
  31. text|tab:before {
  32. display: inline;
  33. content: ' ';
  34. }
  35. text|line-break {
  36. content: " ";
  37. display: block;
  38. }
  39. text|tracked-changes {
  40. /*Consumers that do not support change tracking, should ignore changes.*/
  41. display: none;
  42. }
  43. office|binary-data {
  44. display: none;
  45. }
  46. office|text {
  47. display: block;
  48. width: 216mm; /* default to A4 width */
  49. min-height: 279mm;
  50. padding-left: 32mm;
  51. padding-right: 32mm;
  52. padding-top: 25mm;
  53. padding-bottom: 13mm;
  54. margin: 2px;
  55. text-align: left;
  56. overflow: hidden;
  57. }
  58. office|spreadsheet {
  59. display: block;
  60. border-collapse: collapse;
  61. empty-cells: show;
  62. font-family: sans-serif;
  63. font-size: 10pt;
  64. text-align: left;
  65. page-break-inside: avoid;
  66. overflow: hidden;
  67. }
  68. office|presentation {
  69. display: inline-block;
  70. text-align: left;
  71. }
  72. draw|page {
  73. display: block;
  74. height: 21cm;
  75. width: 28cm;
  76. margin: 3px;
  77. position: relative;
  78. overflow: hidden;
  79. }
  80. presentation|notes {
  81. display: none;
  82. }
  83. @media print {
  84. draw|page {
  85. border: 1pt solid black;
  86. page-break-inside: avoid;
  87. }
  88. presentation|notes {
  89. /*TODO*/
  90. }
  91. }
  92. office|spreadsheet text|p {
  93. border: 0px;
  94. padding: 1px;
  95. margin: 0px;
  96. }
  97. office|spreadsheet table|table {
  98. margin: 3px;
  99. }
  100. office|spreadsheet table|table:after {
  101. /* show sheet name the end of the sheet */
  102. /*content: attr(table|name);*/ /* gives parsing error in opera */
  103. }
  104. office|spreadsheet table|table-row {
  105. counter-increment: row;
  106. }
  107. office|spreadsheet table|table-row:before {
  108. width: 3em;
  109. background: #cccccc;
  110. border: 1px solid black;
  111. text-align: center;
  112. content: counter(row);
  113. }
  114. office|spreadsheet table|table-cell {
  115. border: 1px solid #cccccc;
  116. }
  117. table|table {
  118. display: table;
  119. }
  120. draw|frame table|table {
  121. width: 100%;
  122. height: 100%;
  123. background: white;
  124. }
  125. table|table-row {
  126. display: table-row;
  127. }
  128. table|table-column {
  129. display: table-column;
  130. }
  131. table|table-cell {
  132. display: table-cell;
  133. }
  134. draw|frame {
  135. display: block;
  136. }
  137. draw|image {
  138. display: block;
  139. width: 100%;
  140. height: 100%;
  141. top: 0px;
  142. left: 0px;
  143. background-repeat: no-repeat;
  144. background-size: 100% 100%;
  145. -moz-background-size: 100% 100%;
  146. }
  147. text|list {
  148. display: block;
  149. padding-left: 1.5em;
  150. counter-reset: list;
  151. }
  152. text|list-item {
  153. display: block;
  154. }
  155. text|list-item:before {
  156. display: inline-block;
  157. content: '•';
  158. counter-increment: list;
  159. width: 0.5em;
  160. margin-left: -0.5em;
  161. padding: 0px;
  162. border: 0px;
  163. }
  164. text|list-item > *:first-child {
  165. display: inline-block;
  166. }
  167. text|a {
  168. color: blue;
  169. text-decoration: underline;
  170. }
  171. text|note-citation {
  172. vertical-align: super;
  173. font-size: smaller;
  174. }
  175. text|note-body {
  176. display: none;
  177. }
  178. text|note:hover text|note-citation {
  179. background: #dddddd;
  180. }
  181. text|note:hover text|note-body {
  182. display: block;
  183. left:1em;
  184. max-width: 80%;
  185. position: absolute;
  186. background: #ffffaa;
  187. }
  188. svg|title, svg|desc {
  189. display: none;
  190. }