-
Notifications
You must be signed in to change notification settings - Fork 6
/
vwc-popup.scss
48 lines (40 loc) 路 966 Bytes
/
vwc-popup.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@use '@vonage/vvd-design-tokens/build/scss/semantic-variables/scheme-variables' as scheme-variables;
@use '@vonage/vvd-typography/scss/typography' as typography;
:host {
//z-index: 7 to overcome the 6 of the vwc-side-drawer
//TODO: to check z-index of vwc-top-app-bar and other components.
z-index: 7;
}
.popup {
width: min-content;
background-color: var(#{scheme-variables.$vvd-color-surface-4dp});
border-radius: inherit;
contain: layout;
&:not(.popup-open) {
display: none;
}
&-wrapper {
position: absolute;
border-radius: 6px;
}
&-content {
display: grid;
.popup-dismissible & {
align-content: start;
grid-template-columns: 1fr auto;
}
}
&-arrow {
position: absolute;
z-index: -1;
width: 8px;
height: 8px;
background-color: var(#{scheme-variables.$vvd-color-surface-4dp});
transform: rotate(45deg);
}
&-dismissible-button {
align-self: flex-start;
margin-block-start: 4px;
margin-inline-end: 4px;
}
}