Modifications pour le document RatingWidget

Modifié par Pascale STEIMETZ-LE CACHEUX le 2026/03/27 17:23

Depuis la version 12.1
modifié par Pascale STEIMETZ-LE CACHEUX
sur 2026/03/25 16:54
Commentaire de modification : Il n'y a aucun commentaire pour cette version
À la version 15.1
modifié par Pascale STEIMETZ-LE CACHEUX
sur 2026/03/27 17:23
Commentaire de modification : Il n'y a aucun commentaire pour cette version

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -1,10 +1,6 @@
1 1  {{velocity}}
2 -#if(!$ratingTarget)
3 - #set($ratingTarget = $doc.fullName)
4 -#end
2 +#set($currentDoc = $xcontext.doc.fullName)
5 5  
6 -#set($currentDoc = $ratingTarget)
7 -
8 8  #set($storeDoc = $xwiki.getDocument("Flora.RatingStore3"))
9 9  #set($objects = $storeDoc.getObjects("Flora.RatingVoteClass3"))
10 10  
... ... @@ -58,16 +58,32 @@
58 58  .flora-stars button {
59 59   background: none;
60 60   border: none;
61 - font-size: 22px;
57 + font-size: 24px;
62 62   cursor: pointer;
63 - color: #d4af37;
59 + color: #ffffff;
64 64   padding: 0;
65 65   margin: 0;
62 + line-height: 1;
63 + text-shadow:
64 + -1px 0 #5b63c3,
65 + 0 1px #5b63c3,
66 + 1px 0 #5b63c3,
67 + 0 -1px #5b63c3;
68 + transition: color 0.15s ease, transform 0.15s ease;
66 66  }
70 +
67 67  .flora-stars button:hover,
68 -.flora-stars button.hovered {
72 +.flora-stars button.hovered,
73 +.flora-stars button.selected {
69 69   color: #f2c94c;
75 + text-shadow:
76 + -1px 0 #5b63c3,
77 + 0 1px #5b63c3,
78 + 1px 0 #5b63c3,
79 + 0 -1px #5b63c3;
80 + transform: scale(1.08);
70 70  }
82 +
71 71  .flora-rating-result {
72 72   color: #2F2F2F;
73 73  }
... ... @@ -74,7 +74,7 @@
74 74  </style>
75 75  
76 76  <div class="flora-rating-wrap" data-doc="$escapetool.xml($currentDoc)">
77 - <span class="flora-rating-label">Votre avis compte pour nous, que pensez-vous de cet article ?</span>
89 + <span class="flora-rating-label">Votre avis compte pour nous, que pensez-vous de cet article&nbsp;?</span>
78 78  
79 79   <div class="flora-stars">
80 80   <button class="flora-star" data-note="1" type="button">★</button>