-
Notifications
You must be signed in to change notification settings - Fork 6
/
vwc-dialog.scss
70 lines (58 loc) 路 1.26 KB
/
vwc-dialog.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@use '@vonage/vvd-typography/scss/typography' as typography;
@use '@vonage/vvd-design-tokens/build/scss/semantic-variables/scheme-variables' as scheme-variables;
@use '@vonage/vvd-foundation/scss/mixins/scrim' as scrim-mixins;
#title,
#content,
#actions,
#dialog_icon {
padding-right: 0;
padding-left: 0;
}
::slotted([slot='icon']) {
margin-bottom: 18px;
}
#title {
@include typography.typography-cat-shorthand('subtitle-2');
padding-bottom: 0;
margin-bottom: 8px;
color: var(#{scheme-variables.$vvd-color-on-canvas});
}
#content {
@include typography.typography-cat-shorthand('body-2');
color: var(#{scheme-variables.$vvd-color-on-canvas});
}
#actions {
@include typography.typography-cat-shorthand('body-2-bold');
padding-bottom: 0;
}
.mdc-dialog__surface {
padding: 24px;
}
.mdc-dialog .mdc-dialog__content {
padding-top: 0;
}
.mdc-dialog__content.last {
padding-bottom: 0;
}
.mdc-dialog__title::before {
height: 0;
}
.mdc-dialog .mdc-dialog__scrim {
@include scrim-mixins.scrim-variables;
}
.dismiss-button {
display: none;
}
:host([close-button]) {
.dismiss-button {
--vvd-icon-button-color: inherit;
position: absolute;
top: 16px;
right: 16px;
display: block;
}
.mdc-dialog__title,
.mdc-dialog__content {
width: calc(100% - 20px);
}
}