File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 118
118
margin-bottom : 3px ;
119
119
position : relative;
120
120
}
121
+ .dot-cascade-stack > .dlp-label-silence {
122
+ opacity : 0.5 ;
123
+ transition : .2s ease-in-out;
124
+ }
125
+ .dot-cascade-stack > .dlp-label-active {
126
+ animation : dlpLabelActive ease-in-out 1s forwards;
127
+ }
121
128
.dlp-label > i {
122
129
position : absolute!important ;
123
130
right : 4px !important ;
127
134
left : 0 !important ;
128
135
right : unset!important ;
129
136
}
130
- .dot-cascade-stack > .dlp-label-silence {
131
- opacity : 0.5 ;
132
- transition : .2s ease-in-out;
133
- }
134
-
135
137
.dlp-input {
136
138
vertical-align : middle;
137
139
display : inline-block;
223
225
@keyframes dlpFadeIn {
224
226
0% {opacity : 0 ;}
225
227
100% {opacity : 1 ;}
228
+ }
229
+
230
+ @keyframes dlpLabelActive{
231
+ 0% {background : # d6d6d6 ;}
232
+ 100% {background : # ffffff ;}
226
233
}
Original file line number Diff line number Diff line change @@ -460,14 +460,18 @@ class ComponentCascadeDot {
460
460
currentStackDocuments . forEach ( ( D , index ) => {
461
461
let data = this . dimensional_data [ stack ] [ index ] ;
462
462
let parents = data . parentNodes ;
463
+ D . classList . remove ( 'dlp-label-active' ) ;
463
464
if ( checked === true || checked === undefined ) {
464
465
if ( parents . length > 0 && ( parents [ stack - 1 ] !== parentNode ) ) {
465
466
D . classList . add ( 'dlp-label-silence' ) ;
466
467
} else if ( parents . length === 0 && parseInt ( D . getAttribute ( 'data-id' ) ) !== node ) {
467
468
D . classList . add ( 'dlp-label-silence' ) ;
468
469
} else {
469
470
D . classList . remove ( 'dlp-label-silence' ) ;
470
- if ( to_first_index === null && parseInt ( D . getAttribute ( 'data-id' ) ) === node ) to_first_index = index ;
471
+ if ( to_first_index === null && parseInt ( D . getAttribute ( 'data-id' ) ) === node ) {
472
+ to_first_index = index ;
473
+ D . classList . add ( 'dlp-label-active' ) ;
474
+ }
471
475
}
472
476
}
473
477
if ( checked === true && node === data . key && data . mark !== true ) {
You can’t perform that action at this time.
0 commit comments