@@ -278,6 +278,43 @@ div.scrollable {
278278 margin-bottom : 5px ;
279279}
280280
281+ @keyframes starAnimation {
282+ 0% { transform : scale (1 ) rotate (0deg ); }
283+ 50% { transform : scale (1.2 ) rotate (180deg ); opacity : 1 ; }
284+ 100% { transform : scale (1 ) rotate (360deg ); }
285+ }
286+
287+ @keyframes starAnimationPath {
288+ 0% { fill : black ; }
289+ 50% { fill : @theme-color-brand ; stroke : @theme-color-brand ; }
290+ 100% { fill : black ; }
291+ }
292+
293+ @keyframes unstarAnimation {
294+ 0% { transform : scale (1 ) rotate (0deg ); }
295+ 50% { transform : scale (1.2 ) rotate (-180deg );}
296+ 100% { transform : scale (1 ) rotate (-360deg ); }
297+ }
298+
299+ @keyframes unstarAnimationPath {
300+ 0% { fill : black ; }
301+ 100% { fill : transparent ; }
302+ }
303+
304+ @keyframes starErrorAnimation {
305+ 0% { opacity : 0.5 ; }
306+ 5% , 15% , 25% , 35% , 45% { transform : translate (-2px )}
307+ 10% , 20% , 30% , 40% { transform : translate (2px )}
308+ 50% { opacity : 1 ; }
309+ 100% { transform : translate (0px ); opacity : 0.5 ; }
310+ }
311+
312+ @keyframes starErrorAnimationPath {
313+ 0% { stroke : black ; fill : black ; }
314+ 25% , 75% { stroke : red ; fill : red ; }
315+ 100% { stroke : black ; fill : transparent ; }
316+ }
317+
281318.segmentationContainer ul .submenu > li {
282319 span .editSegment ,
283320 span .compareSegment ,
@@ -310,6 +347,34 @@ div.scrollable {
310347 order : 2 ;
311348 }
312349
350+ .segmentStarAnimation .starSegment {
351+ animation : starAnimation 0.5s 1 ;
352+ }
353+
354+ .segmentStarAnimation .starSegment path {
355+ animation : starAnimationPath 0.5s 1 ;
356+ }
357+
358+ .segmentUnstarAnimation .starSegment {
359+ animation : unstarAnimation 0.5s 1 ;
360+ }
361+
362+ .segmentUnstarAnimation .starSegment path {
363+ animation : unstarAnimationPath 0.5s 1 ;
364+ }
365+
366+ .segmentStarErrorAnimation .starSegment {
367+ animation : starErrorAnimation 2s 1 ;
368+ }
369+
370+ .segmentStarErrorAnimation .starSegment path {
371+ animation : starErrorAnimationPath 2s 1 ;
372+ }
373+
374+ .segmentStarred.segmentStarErrorAnimation .starSegment path {
375+ animation-direction : reverse ;
376+ }
377+
313378 .segmentStarred .starSegment path {
314379 fill : black ;
315380 }
0 commit comments