File tree Expand file tree Collapse file tree 3 files changed +65
-0
lines changed
packages/module/src/ConsoleShared/src/components/spotlight Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ import './spotlight.scss' ;
12import * as React from 'react' ;
23import { Portal , SimplePopper } from '../popper' ;
34
Original file line number Diff line number Diff line change 1+ import './spotlight.scss' ;
12import * as React from 'react' ;
23import { useBoundingClientRect } from '../../hooks' ;
34import Portal from '../popper/Portal' ;
Original file line number Diff line number Diff line change 1+ @keyframes pfext-spotlight-expand {
2+ 0% {
3+ outline-offset : -4px ;
4+ outline-width : 4px ;
5+ opacity : 1 ;
6+ }
7+ 100% {
8+ outline-offset : 21px ;
9+ outline-width : 12px ;
10+ opacity : 0 ;
11+ }
12+ }
13+
14+ @keyframes pfext-spotlight-fade-in {
15+ 0% {
16+ opacity : 0 ;
17+ }
18+ 100% {
19+ opacity : 1 ;
20+ }
21+ }
22+
23+ @keyframes pfext-spotlight-fade-out {
24+ 0% {
25+ opacity : 1 ;
26+ }
27+ 100% {
28+ opacity : 0 ;
29+ }
30+ }
31+
32+ .pfext-spotlight {
33+ pointer-events : none ;
34+ position : absolute ;
35+ & __with-backdrop {
36+ mix-blend-mode : hard-light ;
37+ }
38+ & __element-highlight-noanimate {
39+ border : var (--pf-t--global--border--width--strong ) solid var (--pf-t--global--border--color--brand--default );
40+ background-color : var (--pf-t--color--gray--40 );
41+ z-index : 9999 ;
42+ }
43+ & __element-highlight-animate {
44+ pointer-events : none ;
45+ position : absolute ;
46+ box-shadow : inset 0px 0px 0px 4px var (--pf-t--global--color--brand--default );
47+ opacity : 0 ;
48+ animation : 0.4s pfext- spotlight- fade- in 0s ease-in-out , 5s pfext- spotlight- fade- out 12.8s ease-in-out ;
49+ animation-fill-mode : forwards ;
50+ & ::after {
51+ content : ' ' ;
52+ position : absolute ;
53+ left : 0 ;
54+ right : 0 ;
55+ top : 0 ;
56+ bottom : 0 ;
57+ animation : 1.2s pfext- spotlight- expand 1.6s ease-out ;
58+ animation-fill-mode : forwards ;
59+ outline : 4px solid var (--pf-t--global--color--brand--default );
60+ outline-offset : -4px ;
61+ }
62+ }
63+ }
You can’t perform that action at this time.
0 commit comments