Skip to content

Commit 64c4864

Browse files
authored
Merge pull request #390 from nicolethoen/return_spotlight_css
fix(spotlight): return missing scss file
2 parents 06f9327 + e4306b2 commit 64c4864

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

packages/module/src/ConsoleShared/src/components/spotlight/InteractiveSpotlight.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './spotlight.scss';
12
import * as React from 'react';
23
import { Portal, SimplePopper } from '../popper';
34

packages/module/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './spotlight.scss';
12
import * as React from 'react';
23
import { useBoundingClientRect } from '../../hooks';
34
import Portal from '../popper/Portal';
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
}

0 commit comments

Comments
 (0)