Änderungen von Dokument Style

Zuletzt geändert von Holger Engels am 2026/10/22 13:00

Von Version 2.1
bearbeitet von Holger Engels
am 2026/02/28 19:35
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-annotation-ui/18.1.0]
Auf Version 3.1
bearbeitet von Holger Engels
am 2026/09/22 10:06
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-annotation-ui/18.7.0]

Zusammenfassung

Details

XWiki.StyleSheetExtension[0]
Code
... ... @@ -50,6 +50,15 @@
50 50   The highlights can happen in the middle of words, and it would look odd. */
51 51   padding: 0;
52 52   cursor: pointer;
53 +
54 + &.updated {
55 + background-color: var(--mark-updated-bg);
56 + }
57 +
58 + &.altered {
59 + background-color: var(--mark-altered-bg);
60 + }
61 +
53 53   &.hovered,
54 54   &.hovered .annotation-highlight, &.hovered .selection-highlight {
55 55   /* We want to increase the accent on the element when hovered.
... ... @@ -197,17 +197,14 @@
197 197  #allAnnotations .annotation {
198 198   margin: 0 0 8px;
199 199  }
200 -#allAnnotations .annotation .annotationText, #Commentspane .annotation .annotationText {
201 - padding: 0 36px 0 14px;
202 - background: transparent #attImgURL('notesmall') left 4px no-repeat;
209 +.annotationText {
210 + padding: 0 36px 0 0;
203 203   text-align: justify;
204 204  }
205 -#allAnnotations .UPDATED .annotationText, #xwikicontent .UPDATED {
206 - ##background-image: #imgURL('note_error');
213 +#allAnnotations .UPDATED .annotationText {
207 207   background-image: #attImgURL('notesmallorange');
208 208  }
209 -#allAnnotations .ALTERED annotationText, #xwikicontent .ALTERED {
210 - ##background-image: #imgURL('note_delete');
216 +#allAnnotations .ALTERED annotationText {
211 211   background-image: #attImgURL('notesmallred');
212 212  }
213 213  
... ... @@ -215,6 +215,28 @@
215 215  .annotationHeader{
216 216   padding: 2px 0px 6px;
217 217  }
224 +
225 +.annotatedText {
226 + font-style: italic;
227 + font-size: 1.2em;
228 + border-left: none;
229 + padding: 10px 0 0 0;
230 + margin: 0;
231 + /* We hide the overflow so that the decorative quote doesn't go over the rest of the UI. */
232 + overflow: hidden;
233 +
234 + &:before {
235 + content: "“";
236 + font-size: 4em;
237 + line-height: .1em;
238 + margin-right: .1em;
239 + vertical-align: -.45em;
240 + font-family: var(--font-family-serif);
241 + font-weight: var(--font-weight-semibold);
242 + font-style: normal;
243 + }
244 +}
245 +
218 218  #allAnnotations .annotationHeader:hover {
219 219   background-color: $theme.highlightColor;
220 220  }