Skip to content

Commit 3209d74

Browse files
fix: inline cdk-overlay style (#8132)
1 parent a664db7 commit 3209d74

File tree

1 file changed

+91
-1
lines changed

1 file changed

+91
-1
lines changed

Diff for: components/style/patch.less

+91-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,96 @@
11
@import './themes/@{root-entry-name}.less';
2-
@import (inline) '../../node_modules/@angular/cdk/overlay-prebuilt.css';
32

3+
// cdk overlay
4+
.cdk-overlay-container,
5+
.cdk-global-overlay-wrapper {
6+
pointer-events: none;
7+
top: 0;
8+
left: 0;
9+
height: 100%;
10+
width: 100%
11+
}
12+
13+
.cdk-overlay-container {
14+
position: fixed;
15+
z-index: 1000
16+
}
17+
18+
.cdk-overlay-container:empty {
19+
display: none
20+
}
21+
22+
.cdk-global-overlay-wrapper {
23+
display: flex;
24+
position: absolute;
25+
z-index: 1000
26+
}
27+
28+
.cdk-overlay-pane {
29+
position: absolute;
30+
pointer-events: auto;
31+
box-sizing: border-box;
32+
z-index: 1000;
33+
display: flex;
34+
max-width: 100%;
35+
max-height: 100%
36+
}
37+
38+
.cdk-overlay-backdrop {
39+
position: absolute;
40+
top: 0;
41+
bottom: 0;
42+
left: 0;
43+
right: 0;
44+
z-index: 1000;
45+
pointer-events: auto;
46+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
47+
transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
48+
opacity: 0
49+
}
50+
51+
.cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
52+
opacity: 1
53+
}
54+
55+
.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
56+
opacity: .6
57+
}
58+
59+
.cdk-overlay-dark-backdrop {
60+
background: rgba(0, 0, 0, .32)
61+
}
62+
63+
.cdk-overlay-transparent-backdrop {
64+
transition: visibility 1ms linear, opacity 1ms linear;
65+
visibility: hidden;
66+
opacity: 1
67+
}
68+
69+
.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {
70+
opacity: 0;
71+
visibility: visible
72+
}
73+
74+
.cdk-overlay-backdrop-noop-animation {
75+
transition: none
76+
}
77+
78+
.cdk-overlay-connected-position-bounding-box {
79+
position: absolute;
80+
z-index: 1000;
81+
display: flex;
82+
flex-direction: column;
83+
min-width: 1px;
84+
min-height: 1px
85+
}
86+
87+
.cdk-global-scrollblock {
88+
position: fixed;
89+
width: 100%;
90+
overflow-y: scroll
91+
}
92+
93+
// cdk a11y
494
.cdk-visually-hidden {
595
border: 0;
696
clip: rect(0 0 0 0);

0 commit comments

Comments
 (0)